diff --git a/.librarian/generator-input/client-post-processing/run-tests-in-parallel-compute.yaml b/.librarian/generator-input/client-post-processing/run-tests-in-parallel-compute.yaml new file mode 100644 index 000000000000..073033d604fd --- /dev/null +++ b/.librarian/generator-input/client-post-processing/run-tests-in-parallel-compute.yaml @@ -0,0 +1,63 @@ +# Copyright 2025 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. +description: Run tests in parallel to debug generation issue +url: https://github.com/googleapis/google-cloud-python/issues/14992 +replacements: + - paths: [ + packages/google-cloud-compute/noxfile.py, + ] + before: | + "pytest-asyncio", + \] + after: | + "pytest-asyncio", + "pytest-xdist", + ] + count: 1 + - paths: [ + packages/google-cloud-compute/noxfile.py, + ] + before: | + session.install\("protobuf<4"\) + \ + \ # Run py.test against the unit tests. + \ session.run\( + \ "py.test", + \ "--quiet", + after: | + session.install("protobuf<4")\n + import os + import faulthandler + import sys + os.environ['export PYTHONFAULTHANDLER'] = "1" + faulthandler.enable(sys.stderr) + concurrent_args = ["-n", "auto", "--max-worker-restart", "0"]\n + # Run py.test against the unit tests. + session.run( + "py.test", + "-W", + "ignore::DeprecationWarning", + count: 1 + - paths: [ + packages/google-cloud-compute/noxfile.py, + ] + before: | + \*session.posargs, + \ env=\{ + after: | + *session.posargs, + *concurrent_args, + env={ + count: 1 + diff --git a/.librarian/state.yaml b/.librarian/state.yaml index f23860eb9e7e..a64bae0d27b4 100644 --- a/.librarian/state.yaml +++ b/.librarian/state.yaml @@ -1,4 +1,4 @@ -image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209 +image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:4fe5532475bb530b71cef8d2a48112704367fcac78dc8cfa09e8853b27503d06 libraries: - id: google-ads-admanager version: 0.7.0 @@ -1150,7 +1150,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-compute version: 1.40.0 - last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd + last_generated_commit: 110554fa597b7ceb89d133583d38982eaff0dc11 apis: - path: google/cloud/compute/v1 service_config: compute_v1.yaml diff --git a/packages/google-ads-admanager/tests/unit/gapic/admanager_v1/test_content_bundle_service.py b/packages/google-ads-admanager/tests/unit/gapic/admanager_v1/test_content_bundle_service.py index ce93e89b6156..fa67a6208f63 100644 --- a/packages/google-ads-admanager/tests/unit/gapic/admanager_v1/test_content_bundle_service.py +++ b/packages/google-ads-admanager/tests/unit/gapic/admanager_v1/test_content_bundle_service.py @@ -841,6 +841,9 @@ def test_content_bundle_service_client_mtls_env_auto( @pytest.mark.parametrize("client_class", [ContentBundleServiceClient]) +@pytest.mark.filterwarnings( + "ignore:get_mtls_endpoint_and_cert_source is deprecated:DeprecationWarning" +) @mock.patch.object( ContentBundleServiceClient, "DEFAULT_ENDPOINT", diff --git a/packages/google-cloud-compute/docs/compute_v1/services_.rst b/packages/google-cloud-compute/docs/compute_v1/services_.rst index ea980a658598..9fdb27695488 100644 --- a/packages/google-cloud-compute/docs/compute_v1/services_.rst +++ b/packages/google-cloud-compute/docs/compute_v1/services_.rst @@ -5,15 +5,18 @@ Services for Google Cloud Compute v1 API accelerator_types addresses + advice autoscalers backend_buckets backend_services + cross_site_networks disks disk_types external_vpn_gateways firewall_policies firewalls forwarding_rules + future_reservations global_addresses global_forwarding_rules global_network_endpoint_groups @@ -106,5 +109,6 @@ Services for Google Cloud Compute v1 API url_maps vpn_gateways vpn_tunnels + wire_groups zone_operations zones diff --git a/packages/google-cloud-compute/google/cloud/compute/__init__.py b/packages/google-cloud-compute/google/cloud/compute/__init__.py index 1c0e2ce8c375..7c6fbe535645 100644 --- a/packages/google-cloud-compute/google/cloud/compute/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute/__init__.py @@ -22,11 +22,15 @@ AcceleratorTypesClient, ) from google.cloud.compute_v1.services.addresses.client import AddressesClient +from google.cloud.compute_v1.services.advice.client import AdviceClient from google.cloud.compute_v1.services.autoscalers.client import AutoscalersClient from google.cloud.compute_v1.services.backend_buckets.client import BackendBucketsClient from google.cloud.compute_v1.services.backend_services.client import ( BackendServicesClient, ) +from google.cloud.compute_v1.services.cross_site_networks.client import ( + CrossSiteNetworksClient, +) from google.cloud.compute_v1.services.disk_types.client import DiskTypesClient from google.cloud.compute_v1.services.disks.client import DisksClient from google.cloud.compute_v1.services.external_vpn_gateways.client import ( @@ -39,6 +43,9 @@ from google.cloud.compute_v1.services.forwarding_rules.client import ( ForwardingRulesClient, ) +from google.cloud.compute_v1.services.future_reservations.client import ( + FutureReservationsClient, +) from google.cloud.compute_v1.services.global_addresses.client import ( GlobalAddressesClient, ) @@ -257,6 +264,7 @@ from google.cloud.compute_v1.services.url_maps.client import UrlMapsClient from google.cloud.compute_v1.services.vpn_gateways.client import VpnGatewaysClient from google.cloud.compute_v1.services.vpn_tunnels.client import VpnTunnelsClient +from google.cloud.compute_v1.services.wire_groups.client import WireGroupsClient from google.cloud.compute_v1.services.zone_operations.client import ZoneOperationsClient from google.cloud.compute_v1.services.zones.client import ZonesClient from google.cloud.compute_v1.types.compute import ( @@ -264,6 +272,9 @@ AbandonInstancesRegionInstanceGroupManagerRequest, AcceleratorConfig, Accelerators, + AcceleratorTopologiesInfo, + AcceleratorTopologiesInfoAcceleratorTopologyInfo, + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState, AcceleratorType, AcceleratorTypeAggregatedList, AcceleratorTypeList, @@ -304,6 +315,7 @@ AggregatedListDisksRequest, AggregatedListDiskTypesRequest, AggregatedListForwardingRulesRequest, + AggregatedListFutureReservationsRequest, AggregatedListGlobalOperationsRequest, AggregatedListHealthChecksRequest, AggregatedListInstanceGroupManagersRequest, @@ -434,6 +446,11 @@ BulkZoneSetLabelsRequest, CacheInvalidationRule, CacheKeyPolicy, + CalendarModeAdviceRequest, + CalendarModeAdviceResponse, + CalendarModeAdviceRpcRequest, + CalendarModeRecommendation, + CancelFutureReservationRequest, CancelInstanceGroupManagerResizeRequestRequest, CircuitBreakers, CloneRulesFirewallPolicyRequest, @@ -455,6 +472,8 @@ CreateMembersInterconnectGroupRequest, CreateSnapshotDiskRequest, CreateSnapshotRegionDiskRequest, + CrossSiteNetwork, + CrossSiteNetworkList, CustomerEncryptionKey, CustomerEncryptionKeyProtectedDisk, CustomErrorResponsePolicy, @@ -466,11 +485,13 @@ DeleteAutoscalerRequest, DeleteBackendBucketRequest, DeleteBackendServiceRequest, + DeleteCrossSiteNetworkRequest, DeleteDiskRequest, DeleteExternalVpnGatewayRequest, DeleteFirewallPolicyRequest, DeleteFirewallRequest, DeleteForwardingRuleRequest, + DeleteFutureReservationRequest, DeleteGlobalAddressRequest, DeleteGlobalForwardingRuleRequest, DeleteGlobalNetworkEndpointGroupRequest, @@ -555,6 +576,7 @@ DeleteUrlMapRequest, DeleteVpnGatewayRequest, DeleteVpnTunnelRequest, + DeleteWireGroupRequest, DeleteZoneOperationRequest, DeleteZoneOperationResponse, Denied, @@ -618,12 +640,34 @@ FirewallPolicyRuleMatcherLayer4Config, FirewallPolicyRuleSecureTag, FixedOrPercent, + FlexibleTimeRange, ForwardingRule, ForwardingRuleAggregatedList, ForwardingRuleList, ForwardingRuleReference, ForwardingRuleServiceDirectoryRegistration, ForwardingRulesScopedList, + FutureReservation, + FutureReservationCommitmentInfo, + FutureReservationsAggregatedListResponse, + FutureReservationsListResponse, + FutureReservationSpecificSKUProperties, + FutureReservationsScopedList, + FutureReservationStatus, + FutureReservationStatusExistingMatchingUsageInfo, + FutureReservationStatusLastKnownGoodState, + FutureReservationStatusLastKnownGoodStateFutureReservationSpecs, + FutureReservationStatusSpecificSKUProperties, + FutureReservationTimeWindow, + FutureResourcesRecommendation, + FutureResourcesRecommendationOtherLocation, + FutureResourcesSpec, + FutureResourcesSpecAggregateResources, + FutureResourcesSpecLocalSsdPartition, + FutureResourcesSpecLocationPolicy, + FutureResourcesSpecLocationPolicyLocation, + FutureResourcesSpecSpecificSKUResources, + FutureResourcesSpecTargetResources, GetAcceleratorTypeRequest, GetAddressRequest, GetAssociationFirewallPolicyRequest, @@ -633,6 +677,7 @@ GetAutoscalerRequest, GetBackendBucketRequest, GetBackendServiceRequest, + GetCrossSiteNetworkRequest, GetDiagnosticsInterconnectRequest, GetDiskRequest, GetDiskTypeRequest, @@ -646,6 +691,7 @@ GetFirewallRequest, GetForwardingRuleRequest, GetFromFamilyImageRequest, + GetFutureReservationRequest, GetGlobalAddressRequest, GetGlobalForwardingRuleRequest, GetGlobalNetworkEndpointGroupRequest, @@ -677,7 +723,9 @@ GetIamPolicyRegionDiskRequest, GetIamPolicyRegionInstantSnapshotRequest, GetIamPolicyRegionNetworkFirewallPolicyRequest, + GetIamPolicyReservationBlockRequest, GetIamPolicyReservationRequest, + GetIamPolicyReservationSubBlockRequest, GetIamPolicyResourcePolicyRequest, GetIamPolicyServiceAttachmentRequest, GetIamPolicySnapshotRequest, @@ -784,6 +832,7 @@ GetUrlMapRequest, GetVpnGatewayRequest, GetVpnTunnelRequest, + GetWireGroupRequest, GetXpnHostProjectRequest, GetXpnResourcesProjectsRequest, GetZoneOperationRequest, @@ -796,6 +845,7 @@ GlobalSetPolicyRequest, GroupMaintenanceInfo, GRPCHealthCheck, + GRPCTLSHealthCheck, GuestAttributes, GuestAttributesEntry, GuestAttributesValue, @@ -838,11 +888,13 @@ InsertAutoscalerRequest, InsertBackendBucketRequest, InsertBackendServiceRequest, + InsertCrossSiteNetworkRequest, InsertDiskRequest, InsertExternalVpnGatewayRequest, InsertFirewallPolicyRequest, InsertFirewallRequest, InsertForwardingRuleRequest, + InsertFutureReservationRequest, InsertGlobalAddressRequest, InsertGlobalForwardingRuleRequest, InsertGlobalNetworkEndpointGroupRequest, @@ -913,6 +965,7 @@ InsertUrlMapRequest, InsertVpnGatewayRequest, InsertVpnTunnelRequest, + InsertWireGroupRequest, Instance, InstanceAggregatedList, InstanceConsumptionData, @@ -1029,7 +1082,12 @@ InterconnectAttachmentGroupsListResponse, InterconnectAttachmentGroupsOperationalStatus, InterconnectAttachmentGroupsOperationalStatusAttachmentStatus, + InterconnectAttachmentL2Forwarding, + InterconnectAttachmentL2ForwardingApplianceMapping, + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping, + InterconnectAttachmentL2ForwardingGeneveHeader, InterconnectAttachmentList, + InterconnectAttachmentParams, InterconnectAttachmentPartnerMetadata, InterconnectAttachmentPrivateInfo, InterconnectAttachmentsScopedList, @@ -1059,6 +1117,7 @@ InterconnectGroupsOperationalStatusInterconnectStatus, InterconnectList, InterconnectLocation, + InterconnectLocationCrossSiteInterconnectInfo, InterconnectLocationList, InterconnectLocationRegionInfo, InterconnectMacsec, @@ -1066,6 +1125,7 @@ InterconnectMacsecConfigPreSharedKey, InterconnectMacsecPreSharedKey, InterconnectOutageNotification, + InterconnectParams, InterconnectRemoteLocation, InterconnectRemoteLocationConstraints, InterconnectRemoteLocationConstraintsSubnetLengthRange, @@ -1091,6 +1151,7 @@ ListBackendBucketsRequest, ListBackendServicesRequest, ListBgpRoutesRoutersRequest, + ListCrossSiteNetworksRequest, ListDisksRequest, ListDisksStoragePoolsRequest, ListDiskTypesRequest, @@ -1100,6 +1161,7 @@ ListFirewallPoliciesRequest, ListFirewallsRequest, ListForwardingRulesRequest, + ListFutureReservationsRequest, ListGlobalAddressesRequest, ListGlobalForwardingRulesRequest, ListGlobalNetworkEndpointGroupsRequest, @@ -1203,6 +1265,7 @@ ListUsableSubnetworksRequest, ListVpnGatewaysRequest, ListVpnTunnelsRequest, + ListWireGroupsRequest, ListXpnHostsProjectsRequest, ListZoneOperationsRequest, ListZonesRequest, @@ -1325,6 +1388,7 @@ PatchAutoscalerRequest, PatchBackendBucketRequest, PatchBackendServiceRequest, + PatchCrossSiteNetworkRequest, PatchFirewallPolicyRequest, PatchFirewallRequest, PatchForwardingRuleRequest, @@ -1378,6 +1442,7 @@ PatchTargetHttpProxyRequest, PatchTargetHttpsProxyRequest, PatchUrlMapRequest, + PatchWireGroupRequest, PathMatcher, PathRule, PerformMaintenanceInstanceRequest, @@ -1535,6 +1600,7 @@ ResourceStatus, ResourceStatusEffectiveInstanceMetadata, ResourceStatusPhysicalHostTopology, + ResourceStatusReservationConsumptionInfo, ResourceStatusScheduling, ResumeInstanceRequest, ResumeInstancesInstanceGroupManagerRequest, @@ -1658,7 +1724,9 @@ SetIamPolicyRegionDiskRequest, SetIamPolicyRegionInstantSnapshotRequest, SetIamPolicyRegionNetworkFirewallPolicyRequest, + SetIamPolicyReservationBlockRequest, SetIamPolicyReservationRequest, + SetIamPolicyReservationSubBlockRequest, SetIamPolicyResourcePolicyRequest, SetIamPolicyServiceAttachmentRequest, SetIamPolicySnapshotRequest, @@ -1773,6 +1841,7 @@ StoragePool, StoragePoolAggregatedList, StoragePoolDisk, + StoragePoolExapoolProvisionedCapacityGb, StoragePoolList, StoragePoolListDisks, StoragePoolResourceStatus, @@ -1851,6 +1920,7 @@ TestIamPermissionsDiskRequest, TestIamPermissionsExternalVpnGatewayRequest, TestIamPermissionsFirewallPolicyRequest, + TestIamPermissionsFirewallRequest, TestIamPermissionsGlobalAddressRequest, TestIamPermissionsImageRequest, TestIamPermissionsInstanceGroupRequest, @@ -1873,7 +1943,9 @@ TestIamPermissionsRegionInstanceGroupRequest, TestIamPermissionsRegionInstantSnapshotRequest, TestIamPermissionsRegionNetworkFirewallPolicyRequest, + TestIamPermissionsReservationBlockRequest, TestIamPermissionsReservationRequest, + TestIamPermissionsReservationSubBlockRequest, TestIamPermissionsResourcePolicyRequest, TestIamPermissionsServiceAttachmentRequest, TestIamPermissionsSnapshotRequest, @@ -1893,6 +1965,7 @@ UpdateDiskRequest, UpdateDisplayDeviceInstanceRequest, UpdateFirewallRequest, + UpdateFutureReservationRequest, UpdateHealthCheckRequest, UpdateInstanceRequest, UpdateLicenseRequest, @@ -1959,6 +2032,15 @@ Warning, Warnings, WeightedBackendService, + Wire, + WireEndpoint, + WireGroup, + WireGroupEndpoint, + WireGroupEndpointInterconnect, + WireGroupList, + WireGroupTopology, + WireGroupTopologyEndpoint, + WireProperties, WithdrawPublicAdvertisedPrefixeRequest, WithdrawPublicDelegatedPrefixeRequest, XpnHostList, @@ -1966,21 +2048,25 @@ Zone, ZoneList, ZoneSetLabelsRequest, + ZoneSetNestedPolicyRequest, ZoneSetPolicyRequest, ) __all__ = ( "AcceleratorTypesClient", "AddressesClient", + "AdviceClient", "AutoscalersClient", "BackendBucketsClient", "BackendServicesClient", + "CrossSiteNetworksClient", "DisksClient", "DiskTypesClient", "ExternalVpnGatewaysClient", "FirewallPoliciesClient", "FirewallsClient", "ForwardingRulesClient", + "FutureReservationsClient", "GlobalAddressesClient", "GlobalForwardingRulesClient", "GlobalNetworkEndpointGroupsClient", @@ -2073,12 +2159,16 @@ "UrlMapsClient", "VpnGatewaysClient", "VpnTunnelsClient", + "WireGroupsClient", "ZoneOperationsClient", "ZonesClient", "AbandonInstancesInstanceGroupManagerRequest", "AbandonInstancesRegionInstanceGroupManagerRequest", "AcceleratorConfig", "Accelerators", + "AcceleratorTopologiesInfo", + "AcceleratorTopologiesInfoAcceleratorTopologyInfo", + "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState", "AcceleratorType", "AcceleratorTypeAggregatedList", "AcceleratorTypeList", @@ -2119,6 +2209,7 @@ "AggregatedListDisksRequest", "AggregatedListDiskTypesRequest", "AggregatedListForwardingRulesRequest", + "AggregatedListFutureReservationsRequest", "AggregatedListGlobalOperationsRequest", "AggregatedListHealthChecksRequest", "AggregatedListInstanceGroupManagersRequest", @@ -2249,6 +2340,11 @@ "BulkZoneSetLabelsRequest", "CacheInvalidationRule", "CacheKeyPolicy", + "CalendarModeAdviceRequest", + "CalendarModeAdviceResponse", + "CalendarModeAdviceRpcRequest", + "CalendarModeRecommendation", + "CancelFutureReservationRequest", "CancelInstanceGroupManagerResizeRequestRequest", "CircuitBreakers", "CloneRulesFirewallPolicyRequest", @@ -2270,6 +2366,8 @@ "CreateMembersInterconnectGroupRequest", "CreateSnapshotDiskRequest", "CreateSnapshotRegionDiskRequest", + "CrossSiteNetwork", + "CrossSiteNetworkList", "CustomerEncryptionKey", "CustomerEncryptionKeyProtectedDisk", "CustomErrorResponsePolicy", @@ -2281,11 +2379,13 @@ "DeleteAutoscalerRequest", "DeleteBackendBucketRequest", "DeleteBackendServiceRequest", + "DeleteCrossSiteNetworkRequest", "DeleteDiskRequest", "DeleteExternalVpnGatewayRequest", "DeleteFirewallPolicyRequest", "DeleteFirewallRequest", "DeleteForwardingRuleRequest", + "DeleteFutureReservationRequest", "DeleteGlobalAddressRequest", "DeleteGlobalForwardingRuleRequest", "DeleteGlobalNetworkEndpointGroupRequest", @@ -2370,6 +2470,7 @@ "DeleteUrlMapRequest", "DeleteVpnGatewayRequest", "DeleteVpnTunnelRequest", + "DeleteWireGroupRequest", "DeleteZoneOperationRequest", "DeleteZoneOperationResponse", "Denied", @@ -2433,12 +2534,34 @@ "FirewallPolicyRuleMatcherLayer4Config", "FirewallPolicyRuleSecureTag", "FixedOrPercent", + "FlexibleTimeRange", "ForwardingRule", "ForwardingRuleAggregatedList", "ForwardingRuleList", "ForwardingRuleReference", "ForwardingRuleServiceDirectoryRegistration", "ForwardingRulesScopedList", + "FutureReservation", + "FutureReservationCommitmentInfo", + "FutureReservationsAggregatedListResponse", + "FutureReservationsListResponse", + "FutureReservationSpecificSKUProperties", + "FutureReservationsScopedList", + "FutureReservationStatus", + "FutureReservationStatusExistingMatchingUsageInfo", + "FutureReservationStatusLastKnownGoodState", + "FutureReservationStatusLastKnownGoodStateFutureReservationSpecs", + "FutureReservationStatusSpecificSKUProperties", + "FutureReservationTimeWindow", + "FutureResourcesRecommendation", + "FutureResourcesRecommendationOtherLocation", + "FutureResourcesSpec", + "FutureResourcesSpecAggregateResources", + "FutureResourcesSpecLocalSsdPartition", + "FutureResourcesSpecLocationPolicy", + "FutureResourcesSpecLocationPolicyLocation", + "FutureResourcesSpecSpecificSKUResources", + "FutureResourcesSpecTargetResources", "GetAcceleratorTypeRequest", "GetAddressRequest", "GetAssociationFirewallPolicyRequest", @@ -2448,6 +2571,7 @@ "GetAutoscalerRequest", "GetBackendBucketRequest", "GetBackendServiceRequest", + "GetCrossSiteNetworkRequest", "GetDiagnosticsInterconnectRequest", "GetDiskRequest", "GetDiskTypeRequest", @@ -2461,6 +2585,7 @@ "GetFirewallRequest", "GetForwardingRuleRequest", "GetFromFamilyImageRequest", + "GetFutureReservationRequest", "GetGlobalAddressRequest", "GetGlobalForwardingRuleRequest", "GetGlobalNetworkEndpointGroupRequest", @@ -2492,7 +2617,9 @@ "GetIamPolicyRegionDiskRequest", "GetIamPolicyRegionInstantSnapshotRequest", "GetIamPolicyRegionNetworkFirewallPolicyRequest", + "GetIamPolicyReservationBlockRequest", "GetIamPolicyReservationRequest", + "GetIamPolicyReservationSubBlockRequest", "GetIamPolicyResourcePolicyRequest", "GetIamPolicyServiceAttachmentRequest", "GetIamPolicySnapshotRequest", @@ -2599,6 +2726,7 @@ "GetUrlMapRequest", "GetVpnGatewayRequest", "GetVpnTunnelRequest", + "GetWireGroupRequest", "GetXpnHostProjectRequest", "GetXpnResourcesProjectsRequest", "GetZoneOperationRequest", @@ -2611,6 +2739,7 @@ "GlobalSetPolicyRequest", "GroupMaintenanceInfo", "GRPCHealthCheck", + "GRPCTLSHealthCheck", "GuestAttributes", "GuestAttributesEntry", "GuestAttributesValue", @@ -2653,11 +2782,13 @@ "InsertAutoscalerRequest", "InsertBackendBucketRequest", "InsertBackendServiceRequest", + "InsertCrossSiteNetworkRequest", "InsertDiskRequest", "InsertExternalVpnGatewayRequest", "InsertFirewallPolicyRequest", "InsertFirewallRequest", "InsertForwardingRuleRequest", + "InsertFutureReservationRequest", "InsertGlobalAddressRequest", "InsertGlobalForwardingRuleRequest", "InsertGlobalNetworkEndpointGroupRequest", @@ -2728,6 +2859,7 @@ "InsertUrlMapRequest", "InsertVpnGatewayRequest", "InsertVpnTunnelRequest", + "InsertWireGroupRequest", "Instance", "InstanceAggregatedList", "InstanceConsumptionData", @@ -2844,7 +2976,12 @@ "InterconnectAttachmentGroupsListResponse", "InterconnectAttachmentGroupsOperationalStatus", "InterconnectAttachmentGroupsOperationalStatusAttachmentStatus", + "InterconnectAttachmentL2Forwarding", + "InterconnectAttachmentL2ForwardingApplianceMapping", + "InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping", + "InterconnectAttachmentL2ForwardingGeneveHeader", "InterconnectAttachmentList", + "InterconnectAttachmentParams", "InterconnectAttachmentPartnerMetadata", "InterconnectAttachmentPrivateInfo", "InterconnectAttachmentsScopedList", @@ -2874,6 +3011,7 @@ "InterconnectGroupsOperationalStatusInterconnectStatus", "InterconnectList", "InterconnectLocation", + "InterconnectLocationCrossSiteInterconnectInfo", "InterconnectLocationList", "InterconnectLocationRegionInfo", "InterconnectMacsec", @@ -2881,6 +3019,7 @@ "InterconnectMacsecConfigPreSharedKey", "InterconnectMacsecPreSharedKey", "InterconnectOutageNotification", + "InterconnectParams", "InterconnectRemoteLocation", "InterconnectRemoteLocationConstraints", "InterconnectRemoteLocationConstraintsSubnetLengthRange", @@ -2906,6 +3045,7 @@ "ListBackendBucketsRequest", "ListBackendServicesRequest", "ListBgpRoutesRoutersRequest", + "ListCrossSiteNetworksRequest", "ListDisksRequest", "ListDisksStoragePoolsRequest", "ListDiskTypesRequest", @@ -2915,6 +3055,7 @@ "ListFirewallPoliciesRequest", "ListFirewallsRequest", "ListForwardingRulesRequest", + "ListFutureReservationsRequest", "ListGlobalAddressesRequest", "ListGlobalForwardingRulesRequest", "ListGlobalNetworkEndpointGroupsRequest", @@ -3018,6 +3159,7 @@ "ListUsableSubnetworksRequest", "ListVpnGatewaysRequest", "ListVpnTunnelsRequest", + "ListWireGroupsRequest", "ListXpnHostsProjectsRequest", "ListZoneOperationsRequest", "ListZonesRequest", @@ -3140,6 +3282,7 @@ "PatchAutoscalerRequest", "PatchBackendBucketRequest", "PatchBackendServiceRequest", + "PatchCrossSiteNetworkRequest", "PatchFirewallPolicyRequest", "PatchFirewallRequest", "PatchForwardingRuleRequest", @@ -3193,6 +3336,7 @@ "PatchTargetHttpProxyRequest", "PatchTargetHttpsProxyRequest", "PatchUrlMapRequest", + "PatchWireGroupRequest", "PathMatcher", "PathRule", "PerformMaintenanceInstanceRequest", @@ -3350,6 +3494,7 @@ "ResourceStatus", "ResourceStatusEffectiveInstanceMetadata", "ResourceStatusPhysicalHostTopology", + "ResourceStatusReservationConsumptionInfo", "ResourceStatusScheduling", "ResumeInstanceRequest", "ResumeInstancesInstanceGroupManagerRequest", @@ -3473,7 +3618,9 @@ "SetIamPolicyRegionDiskRequest", "SetIamPolicyRegionInstantSnapshotRequest", "SetIamPolicyRegionNetworkFirewallPolicyRequest", + "SetIamPolicyReservationBlockRequest", "SetIamPolicyReservationRequest", + "SetIamPolicyReservationSubBlockRequest", "SetIamPolicyResourcePolicyRequest", "SetIamPolicyServiceAttachmentRequest", "SetIamPolicySnapshotRequest", @@ -3588,6 +3735,7 @@ "StoragePool", "StoragePoolAggregatedList", "StoragePoolDisk", + "StoragePoolExapoolProvisionedCapacityGb", "StoragePoolList", "StoragePoolListDisks", "StoragePoolResourceStatus", @@ -3666,6 +3814,7 @@ "TestIamPermissionsDiskRequest", "TestIamPermissionsExternalVpnGatewayRequest", "TestIamPermissionsFirewallPolicyRequest", + "TestIamPermissionsFirewallRequest", "TestIamPermissionsGlobalAddressRequest", "TestIamPermissionsImageRequest", "TestIamPermissionsInstanceGroupRequest", @@ -3688,7 +3837,9 @@ "TestIamPermissionsRegionInstanceGroupRequest", "TestIamPermissionsRegionInstantSnapshotRequest", "TestIamPermissionsRegionNetworkFirewallPolicyRequest", + "TestIamPermissionsReservationBlockRequest", "TestIamPermissionsReservationRequest", + "TestIamPermissionsReservationSubBlockRequest", "TestIamPermissionsResourcePolicyRequest", "TestIamPermissionsServiceAttachmentRequest", "TestIamPermissionsSnapshotRequest", @@ -3708,6 +3859,7 @@ "UpdateDiskRequest", "UpdateDisplayDeviceInstanceRequest", "UpdateFirewallRequest", + "UpdateFutureReservationRequest", "UpdateHealthCheckRequest", "UpdateInstanceRequest", "UpdateLicenseRequest", @@ -3774,6 +3926,15 @@ "Warning", "Warnings", "WeightedBackendService", + "Wire", + "WireEndpoint", + "WireGroup", + "WireGroupEndpoint", + "WireGroupEndpointInterconnect", + "WireGroupList", + "WireGroupTopology", + "WireGroupTopologyEndpoint", + "WireProperties", "WithdrawPublicAdvertisedPrefixeRequest", "WithdrawPublicDelegatedPrefixeRequest", "XpnHostList", @@ -3781,5 +3942,6 @@ "Zone", "ZoneList", "ZoneSetLabelsRequest", + "ZoneSetNestedPolicyRequest", "ZoneSetPolicyRequest", ) diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py b/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py index 0e9f1c8dcb8e..0d4595ed33c2 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/__init__.py @@ -30,15 +30,18 @@ from .services.accelerator_types import AcceleratorTypesClient from .services.addresses import AddressesClient +from .services.advice import AdviceClient from .services.autoscalers import AutoscalersClient from .services.backend_buckets import BackendBucketsClient from .services.backend_services import BackendServicesClient +from .services.cross_site_networks import CrossSiteNetworksClient from .services.disk_types import DiskTypesClient from .services.disks import DisksClient from .services.external_vpn_gateways import ExternalVpnGatewaysClient from .services.firewall_policies import FirewallPoliciesClient from .services.firewalls import FirewallsClient from .services.forwarding_rules import ForwardingRulesClient +from .services.future_reservations import FutureReservationsClient from .services.global_addresses import GlobalAddressesClient from .services.global_forwarding_rules import GlobalForwardingRulesClient from .services.global_network_endpoint_groups import GlobalNetworkEndpointGroupsClient @@ -137,6 +140,7 @@ from .services.url_maps import UrlMapsClient from .services.vpn_gateways import VpnGatewaysClient from .services.vpn_tunnels import VpnTunnelsClient +from .services.wire_groups import WireGroupsClient from .services.zone_operations import ZoneOperationsClient from .services.zones import ZonesClient from .types.compute import ( @@ -144,6 +148,9 @@ AbandonInstancesRegionInstanceGroupManagerRequest, AcceleratorConfig, Accelerators, + AcceleratorTopologiesInfo, + AcceleratorTopologiesInfoAcceleratorTopologyInfo, + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState, AcceleratorType, AcceleratorTypeAggregatedList, AcceleratorTypeList, @@ -184,6 +191,7 @@ AggregatedListDisksRequest, AggregatedListDiskTypesRequest, AggregatedListForwardingRulesRequest, + AggregatedListFutureReservationsRequest, AggregatedListGlobalOperationsRequest, AggregatedListHealthChecksRequest, AggregatedListInstanceGroupManagersRequest, @@ -314,6 +322,11 @@ BulkZoneSetLabelsRequest, CacheInvalidationRule, CacheKeyPolicy, + CalendarModeAdviceRequest, + CalendarModeAdviceResponse, + CalendarModeAdviceRpcRequest, + CalendarModeRecommendation, + CancelFutureReservationRequest, CancelInstanceGroupManagerResizeRequestRequest, CircuitBreakers, CloneRulesFirewallPolicyRequest, @@ -335,6 +348,8 @@ CreateMembersInterconnectGroupRequest, CreateSnapshotDiskRequest, CreateSnapshotRegionDiskRequest, + CrossSiteNetwork, + CrossSiteNetworkList, CustomerEncryptionKey, CustomerEncryptionKeyProtectedDisk, CustomErrorResponsePolicy, @@ -346,11 +361,13 @@ DeleteAutoscalerRequest, DeleteBackendBucketRequest, DeleteBackendServiceRequest, + DeleteCrossSiteNetworkRequest, DeleteDiskRequest, DeleteExternalVpnGatewayRequest, DeleteFirewallPolicyRequest, DeleteFirewallRequest, DeleteForwardingRuleRequest, + DeleteFutureReservationRequest, DeleteGlobalAddressRequest, DeleteGlobalForwardingRuleRequest, DeleteGlobalNetworkEndpointGroupRequest, @@ -435,6 +452,7 @@ DeleteUrlMapRequest, DeleteVpnGatewayRequest, DeleteVpnTunnelRequest, + DeleteWireGroupRequest, DeleteZoneOperationRequest, DeleteZoneOperationResponse, Denied, @@ -498,12 +516,34 @@ FirewallPolicyRuleMatcherLayer4Config, FirewallPolicyRuleSecureTag, FixedOrPercent, + FlexibleTimeRange, ForwardingRule, ForwardingRuleAggregatedList, ForwardingRuleList, ForwardingRuleReference, ForwardingRuleServiceDirectoryRegistration, ForwardingRulesScopedList, + FutureReservation, + FutureReservationCommitmentInfo, + FutureReservationsAggregatedListResponse, + FutureReservationsListResponse, + FutureReservationSpecificSKUProperties, + FutureReservationsScopedList, + FutureReservationStatus, + FutureReservationStatusExistingMatchingUsageInfo, + FutureReservationStatusLastKnownGoodState, + FutureReservationStatusLastKnownGoodStateFutureReservationSpecs, + FutureReservationStatusSpecificSKUProperties, + FutureReservationTimeWindow, + FutureResourcesRecommendation, + FutureResourcesRecommendationOtherLocation, + FutureResourcesSpec, + FutureResourcesSpecAggregateResources, + FutureResourcesSpecLocalSsdPartition, + FutureResourcesSpecLocationPolicy, + FutureResourcesSpecLocationPolicyLocation, + FutureResourcesSpecSpecificSKUResources, + FutureResourcesSpecTargetResources, GetAcceleratorTypeRequest, GetAddressRequest, GetAssociationFirewallPolicyRequest, @@ -513,6 +553,7 @@ GetAutoscalerRequest, GetBackendBucketRequest, GetBackendServiceRequest, + GetCrossSiteNetworkRequest, GetDiagnosticsInterconnectRequest, GetDiskRequest, GetDiskTypeRequest, @@ -526,6 +567,7 @@ GetFirewallRequest, GetForwardingRuleRequest, GetFromFamilyImageRequest, + GetFutureReservationRequest, GetGlobalAddressRequest, GetGlobalForwardingRuleRequest, GetGlobalNetworkEndpointGroupRequest, @@ -557,7 +599,9 @@ GetIamPolicyRegionDiskRequest, GetIamPolicyRegionInstantSnapshotRequest, GetIamPolicyRegionNetworkFirewallPolicyRequest, + GetIamPolicyReservationBlockRequest, GetIamPolicyReservationRequest, + GetIamPolicyReservationSubBlockRequest, GetIamPolicyResourcePolicyRequest, GetIamPolicyServiceAttachmentRequest, GetIamPolicySnapshotRequest, @@ -664,6 +708,7 @@ GetUrlMapRequest, GetVpnGatewayRequest, GetVpnTunnelRequest, + GetWireGroupRequest, GetXpnHostProjectRequest, GetXpnResourcesProjectsRequest, GetZoneOperationRequest, @@ -676,6 +721,7 @@ GlobalSetPolicyRequest, GroupMaintenanceInfo, GRPCHealthCheck, + GRPCTLSHealthCheck, GuestAttributes, GuestAttributesEntry, GuestAttributesValue, @@ -718,11 +764,13 @@ InsertAutoscalerRequest, InsertBackendBucketRequest, InsertBackendServiceRequest, + InsertCrossSiteNetworkRequest, InsertDiskRequest, InsertExternalVpnGatewayRequest, InsertFirewallPolicyRequest, InsertFirewallRequest, InsertForwardingRuleRequest, + InsertFutureReservationRequest, InsertGlobalAddressRequest, InsertGlobalForwardingRuleRequest, InsertGlobalNetworkEndpointGroupRequest, @@ -793,6 +841,7 @@ InsertUrlMapRequest, InsertVpnGatewayRequest, InsertVpnTunnelRequest, + InsertWireGroupRequest, Instance, InstanceAggregatedList, InstanceConsumptionData, @@ -909,7 +958,12 @@ InterconnectAttachmentGroupsListResponse, InterconnectAttachmentGroupsOperationalStatus, InterconnectAttachmentGroupsOperationalStatusAttachmentStatus, + InterconnectAttachmentL2Forwarding, + InterconnectAttachmentL2ForwardingApplianceMapping, + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping, + InterconnectAttachmentL2ForwardingGeneveHeader, InterconnectAttachmentList, + InterconnectAttachmentParams, InterconnectAttachmentPartnerMetadata, InterconnectAttachmentPrivateInfo, InterconnectAttachmentsScopedList, @@ -939,6 +993,7 @@ InterconnectGroupsOperationalStatusInterconnectStatus, InterconnectList, InterconnectLocation, + InterconnectLocationCrossSiteInterconnectInfo, InterconnectLocationList, InterconnectLocationRegionInfo, InterconnectMacsec, @@ -946,6 +1001,7 @@ InterconnectMacsecConfigPreSharedKey, InterconnectMacsecPreSharedKey, InterconnectOutageNotification, + InterconnectParams, InterconnectRemoteLocation, InterconnectRemoteLocationConstraints, InterconnectRemoteLocationConstraintsSubnetLengthRange, @@ -971,6 +1027,7 @@ ListBackendBucketsRequest, ListBackendServicesRequest, ListBgpRoutesRoutersRequest, + ListCrossSiteNetworksRequest, ListDisksRequest, ListDisksStoragePoolsRequest, ListDiskTypesRequest, @@ -980,6 +1037,7 @@ ListFirewallPoliciesRequest, ListFirewallsRequest, ListForwardingRulesRequest, + ListFutureReservationsRequest, ListGlobalAddressesRequest, ListGlobalForwardingRulesRequest, ListGlobalNetworkEndpointGroupsRequest, @@ -1083,6 +1141,7 @@ ListUsableSubnetworksRequest, ListVpnGatewaysRequest, ListVpnTunnelsRequest, + ListWireGroupsRequest, ListXpnHostsProjectsRequest, ListZoneOperationsRequest, ListZonesRequest, @@ -1205,6 +1264,7 @@ PatchAutoscalerRequest, PatchBackendBucketRequest, PatchBackendServiceRequest, + PatchCrossSiteNetworkRequest, PatchFirewallPolicyRequest, PatchFirewallRequest, PatchForwardingRuleRequest, @@ -1258,6 +1318,7 @@ PatchTargetHttpProxyRequest, PatchTargetHttpsProxyRequest, PatchUrlMapRequest, + PatchWireGroupRequest, PathMatcher, PathRule, PerformMaintenanceInstanceRequest, @@ -1415,6 +1476,7 @@ ResourceStatus, ResourceStatusEffectiveInstanceMetadata, ResourceStatusPhysicalHostTopology, + ResourceStatusReservationConsumptionInfo, ResourceStatusScheduling, ResumeInstanceRequest, ResumeInstancesInstanceGroupManagerRequest, @@ -1538,7 +1600,9 @@ SetIamPolicyRegionDiskRequest, SetIamPolicyRegionInstantSnapshotRequest, SetIamPolicyRegionNetworkFirewallPolicyRequest, + SetIamPolicyReservationBlockRequest, SetIamPolicyReservationRequest, + SetIamPolicyReservationSubBlockRequest, SetIamPolicyResourcePolicyRequest, SetIamPolicyServiceAttachmentRequest, SetIamPolicySnapshotRequest, @@ -1653,6 +1717,7 @@ StoragePool, StoragePoolAggregatedList, StoragePoolDisk, + StoragePoolExapoolProvisionedCapacityGb, StoragePoolList, StoragePoolListDisks, StoragePoolResourceStatus, @@ -1731,6 +1796,7 @@ TestIamPermissionsDiskRequest, TestIamPermissionsExternalVpnGatewayRequest, TestIamPermissionsFirewallPolicyRequest, + TestIamPermissionsFirewallRequest, TestIamPermissionsGlobalAddressRequest, TestIamPermissionsImageRequest, TestIamPermissionsInstanceGroupRequest, @@ -1753,7 +1819,9 @@ TestIamPermissionsRegionInstanceGroupRequest, TestIamPermissionsRegionInstantSnapshotRequest, TestIamPermissionsRegionNetworkFirewallPolicyRequest, + TestIamPermissionsReservationBlockRequest, TestIamPermissionsReservationRequest, + TestIamPermissionsReservationSubBlockRequest, TestIamPermissionsResourcePolicyRequest, TestIamPermissionsServiceAttachmentRequest, TestIamPermissionsSnapshotRequest, @@ -1773,6 +1841,7 @@ UpdateDiskRequest, UpdateDisplayDeviceInstanceRequest, UpdateFirewallRequest, + UpdateFutureReservationRequest, UpdateHealthCheckRequest, UpdateInstanceRequest, UpdateLicenseRequest, @@ -1839,6 +1908,15 @@ Warning, Warnings, WeightedBackendService, + Wire, + WireEndpoint, + WireGroup, + WireGroupEndpoint, + WireGroupEndpointInterconnect, + WireGroupList, + WireGroupTopology, + WireGroupTopologyEndpoint, + WireProperties, WithdrawPublicAdvertisedPrefixeRequest, WithdrawPublicDelegatedPrefixeRequest, XpnHostList, @@ -1846,6 +1924,7 @@ Zone, ZoneList, ZoneSetLabelsRequest, + ZoneSetNestedPolicyRequest, ZoneSetPolicyRequest, ) @@ -1948,6 +2027,9 @@ def _get_version(dependency_name): "AbandonInstancesInstanceGroupManagerRequest", "AbandonInstancesRegionInstanceGroupManagerRequest", "AcceleratorConfig", + "AcceleratorTopologiesInfo", + "AcceleratorTopologiesInfoAcceleratorTopologyInfo", + "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState", "AcceleratorType", "AcceleratorTypeAggregatedList", "AcceleratorTypeList", @@ -1984,6 +2066,7 @@ def _get_version(dependency_name): "AddressesClient", "AddressesScopedList", "AdvancedMachineFeatures", + "AdviceClient", "AggregatedListAcceleratorTypesRequest", "AggregatedListAddressesRequest", "AggregatedListAutoscalersRequest", @@ -1991,6 +2074,7 @@ def _get_version(dependency_name): "AggregatedListDiskTypesRequest", "AggregatedListDisksRequest", "AggregatedListForwardingRulesRequest", + "AggregatedListFutureReservationsRequest", "AggregatedListGlobalOperationsRequest", "AggregatedListHealthChecksRequest", "AggregatedListInstanceGroupManagersRequest", @@ -2123,6 +2207,11 @@ def _get_version(dependency_name): "BulkZoneSetLabelsRequest", "CacheInvalidationRule", "CacheKeyPolicy", + "CalendarModeAdviceRequest", + "CalendarModeAdviceResponse", + "CalendarModeAdviceRpcRequest", + "CalendarModeRecommendation", + "CancelFutureReservationRequest", "CancelInstanceGroupManagerResizeRequestRequest", "CircuitBreakers", "CloneRulesFirewallPolicyRequest", @@ -2144,6 +2233,9 @@ def _get_version(dependency_name): "CreateMembersInterconnectGroupRequest", "CreateSnapshotDiskRequest", "CreateSnapshotRegionDiskRequest", + "CrossSiteNetwork", + "CrossSiteNetworkList", + "CrossSiteNetworksClient", "CustomErrorResponsePolicy", "CustomErrorResponsePolicyCustomErrorResponseRule", "CustomerEncryptionKey", @@ -2155,11 +2247,13 @@ def _get_version(dependency_name): "DeleteAutoscalerRequest", "DeleteBackendBucketRequest", "DeleteBackendServiceRequest", + "DeleteCrossSiteNetworkRequest", "DeleteDiskRequest", "DeleteExternalVpnGatewayRequest", "DeleteFirewallPolicyRequest", "DeleteFirewallRequest", "DeleteForwardingRuleRequest", + "DeleteFutureReservationRequest", "DeleteGlobalAddressRequest", "DeleteGlobalForwardingRuleRequest", "DeleteGlobalNetworkEndpointGroupRequest", @@ -2244,6 +2338,7 @@ def _get_version(dependency_name): "DeleteUrlMapRequest", "DeleteVpnGatewayRequest", "DeleteVpnTunnelRequest", + "DeleteWireGroupRequest", "DeleteZoneOperationRequest", "DeleteZoneOperationResponse", "Denied", @@ -2312,6 +2407,7 @@ def _get_version(dependency_name): "FirewallPolicyRuleSecureTag", "FirewallsClient", "FixedOrPercent", + "FlexibleTimeRange", "ForwardingRule", "ForwardingRuleAggregatedList", "ForwardingRuleList", @@ -2319,7 +2415,30 @@ def _get_version(dependency_name): "ForwardingRuleServiceDirectoryRegistration", "ForwardingRulesClient", "ForwardingRulesScopedList", + "FutureReservation", + "FutureReservationCommitmentInfo", + "FutureReservationSpecificSKUProperties", + "FutureReservationStatus", + "FutureReservationStatusExistingMatchingUsageInfo", + "FutureReservationStatusLastKnownGoodState", + "FutureReservationStatusLastKnownGoodStateFutureReservationSpecs", + "FutureReservationStatusSpecificSKUProperties", + "FutureReservationTimeWindow", + "FutureReservationsAggregatedListResponse", + "FutureReservationsClient", + "FutureReservationsListResponse", + "FutureReservationsScopedList", + "FutureResourcesRecommendation", + "FutureResourcesRecommendationOtherLocation", + "FutureResourcesSpec", + "FutureResourcesSpecAggregateResources", + "FutureResourcesSpecLocalSsdPartition", + "FutureResourcesSpecLocationPolicy", + "FutureResourcesSpecLocationPolicyLocation", + "FutureResourcesSpecSpecificSKUResources", + "FutureResourcesSpecTargetResources", "GRPCHealthCheck", + "GRPCTLSHealthCheck", "GetAcceleratorTypeRequest", "GetAddressRequest", "GetAssociationFirewallPolicyRequest", @@ -2329,6 +2448,7 @@ def _get_version(dependency_name): "GetAutoscalerRequest", "GetBackendBucketRequest", "GetBackendServiceRequest", + "GetCrossSiteNetworkRequest", "GetDiagnosticsInterconnectRequest", "GetDiskRequest", "GetDiskTypeRequest", @@ -2342,6 +2462,7 @@ def _get_version(dependency_name): "GetFirewallRequest", "GetForwardingRuleRequest", "GetFromFamilyImageRequest", + "GetFutureReservationRequest", "GetGlobalAddressRequest", "GetGlobalForwardingRuleRequest", "GetGlobalNetworkEndpointGroupRequest", @@ -2373,7 +2494,9 @@ def _get_version(dependency_name): "GetIamPolicyRegionDiskRequest", "GetIamPolicyRegionInstantSnapshotRequest", "GetIamPolicyRegionNetworkFirewallPolicyRequest", + "GetIamPolicyReservationBlockRequest", "GetIamPolicyReservationRequest", + "GetIamPolicyReservationSubBlockRequest", "GetIamPolicyResourcePolicyRequest", "GetIamPolicyServiceAttachmentRequest", "GetIamPolicySnapshotRequest", @@ -2480,6 +2603,7 @@ def _get_version(dependency_name): "GetUrlMapRequest", "GetVpnGatewayRequest", "GetVpnTunnelRequest", + "GetWireGroupRequest", "GetXpnHostProjectRequest", "GetXpnResourcesProjectsRequest", "GetZoneOperationRequest", @@ -2542,11 +2666,13 @@ def _get_version(dependency_name): "InsertAutoscalerRequest", "InsertBackendBucketRequest", "InsertBackendServiceRequest", + "InsertCrossSiteNetworkRequest", "InsertDiskRequest", "InsertExternalVpnGatewayRequest", "InsertFirewallPolicyRequest", "InsertFirewallRequest", "InsertForwardingRuleRequest", + "InsertFutureReservationRequest", "InsertGlobalAddressRequest", "InsertGlobalForwardingRuleRequest", "InsertGlobalNetworkEndpointGroupRequest", @@ -2617,6 +2743,7 @@ def _get_version(dependency_name): "InsertUrlMapRequest", "InsertVpnGatewayRequest", "InsertVpnTunnelRequest", + "InsertWireGroupRequest", "Instance", "InstanceAggregatedList", "InstanceConsumptionData", @@ -2741,7 +2868,12 @@ def _get_version(dependency_name): "InterconnectAttachmentGroupsListResponse", "InterconnectAttachmentGroupsOperationalStatus", "InterconnectAttachmentGroupsOperationalStatusAttachmentStatus", + "InterconnectAttachmentL2Forwarding", + "InterconnectAttachmentL2ForwardingApplianceMapping", + "InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping", + "InterconnectAttachmentL2ForwardingGeneveHeader", "InterconnectAttachmentList", + "InterconnectAttachmentParams", "InterconnectAttachmentPartnerMetadata", "InterconnectAttachmentPrivateInfo", "InterconnectAttachmentsClient", @@ -2773,6 +2905,7 @@ def _get_version(dependency_name): "InterconnectGroupsOperationalStatusInterconnectStatus", "InterconnectList", "InterconnectLocation", + "InterconnectLocationCrossSiteInterconnectInfo", "InterconnectLocationList", "InterconnectLocationRegionInfo", "InterconnectLocationsClient", @@ -2781,6 +2914,7 @@ def _get_version(dependency_name): "InterconnectMacsecConfigPreSharedKey", "InterconnectMacsecPreSharedKey", "InterconnectOutageNotification", + "InterconnectParams", "InterconnectRemoteLocation", "InterconnectRemoteLocationConstraints", "InterconnectRemoteLocationConstraintsSubnetLengthRange", @@ -2810,6 +2944,7 @@ def _get_version(dependency_name): "ListBackendBucketsRequest", "ListBackendServicesRequest", "ListBgpRoutesRoutersRequest", + "ListCrossSiteNetworksRequest", "ListDiskTypesRequest", "ListDisksRequest", "ListDisksStoragePoolsRequest", @@ -2819,6 +2954,7 @@ def _get_version(dependency_name): "ListFirewallPoliciesRequest", "ListFirewallsRequest", "ListForwardingRulesRequest", + "ListFutureReservationsRequest", "ListGlobalAddressesRequest", "ListGlobalForwardingRulesRequest", "ListGlobalNetworkEndpointGroupsRequest", @@ -2922,6 +3058,7 @@ def _get_version(dependency_name): "ListUsableSubnetworksRequest", "ListVpnGatewaysRequest", "ListVpnTunnelsRequest", + "ListWireGroupsRequest", "ListXpnHostsProjectsRequest", "ListZoneOperationsRequest", "ListZonesRequest", @@ -3057,6 +3194,7 @@ def _get_version(dependency_name): "PatchAutoscalerRequest", "PatchBackendBucketRequest", "PatchBackendServiceRequest", + "PatchCrossSiteNetworkRequest", "PatchFirewallPolicyRequest", "PatchFirewallRequest", "PatchForwardingRuleRequest", @@ -3110,6 +3248,7 @@ def _get_version(dependency_name): "PatchTargetHttpProxyRequest", "PatchTargetHttpsProxyRequest", "PatchUrlMapRequest", + "PatchWireGroupRequest", "PathMatcher", "PathRule", "PerInstanceConfig", @@ -3300,6 +3439,7 @@ def _get_version(dependency_name): "ResourceStatus", "ResourceStatusEffectiveInstanceMetadata", "ResourceStatusPhysicalHostTopology", + "ResourceStatusReservationConsumptionInfo", "ResourceStatusScheduling", "ResumeInstanceRequest", "ResumeInstancesInstanceGroupManagerRequest", @@ -3428,7 +3568,9 @@ def _get_version(dependency_name): "SetIamPolicyRegionDiskRequest", "SetIamPolicyRegionInstantSnapshotRequest", "SetIamPolicyRegionNetworkFirewallPolicyRequest", + "SetIamPolicyReservationBlockRequest", "SetIamPolicyReservationRequest", + "SetIamPolicyReservationSubBlockRequest", "SetIamPolicyResourcePolicyRequest", "SetIamPolicyServiceAttachmentRequest", "SetIamPolicySnapshotRequest", @@ -3546,6 +3688,7 @@ def _get_version(dependency_name): "StoragePool", "StoragePoolAggregatedList", "StoragePoolDisk", + "StoragePoolExapoolProvisionedCapacityGb", "StoragePoolList", "StoragePoolListDisks", "StoragePoolResourceStatus", @@ -3635,6 +3778,7 @@ def _get_version(dependency_name): "TestIamPermissionsDiskRequest", "TestIamPermissionsExternalVpnGatewayRequest", "TestIamPermissionsFirewallPolicyRequest", + "TestIamPermissionsFirewallRequest", "TestIamPermissionsGlobalAddressRequest", "TestIamPermissionsImageRequest", "TestIamPermissionsInstanceGroupRequest", @@ -3657,7 +3801,9 @@ def _get_version(dependency_name): "TestIamPermissionsRegionInstanceGroupRequest", "TestIamPermissionsRegionInstantSnapshotRequest", "TestIamPermissionsRegionNetworkFirewallPolicyRequest", + "TestIamPermissionsReservationBlockRequest", "TestIamPermissionsReservationRequest", + "TestIamPermissionsReservationSubBlockRequest", "TestIamPermissionsResourcePolicyRequest", "TestIamPermissionsServiceAttachmentRequest", "TestIamPermissionsSnapshotRequest", @@ -3677,6 +3823,7 @@ def _get_version(dependency_name): "UpdateDiskRequest", "UpdateDisplayDeviceInstanceRequest", "UpdateFirewallRequest", + "UpdateFutureReservationRequest", "UpdateHealthCheckRequest", "UpdateInstanceRequest", "UpdateLicenseRequest", @@ -3746,6 +3893,16 @@ def _get_version(dependency_name): "Warning", "Warnings", "WeightedBackendService", + "Wire", + "WireEndpoint", + "WireGroup", + "WireGroupEndpoint", + "WireGroupEndpointInterconnect", + "WireGroupList", + "WireGroupTopology", + "WireGroupTopologyEndpoint", + "WireGroupsClient", + "WireProperties", "WithdrawPublicAdvertisedPrefixeRequest", "WithdrawPublicDelegatedPrefixeRequest", "XpnHostList", @@ -3754,6 +3911,7 @@ def _get_version(dependency_name): "ZoneList", "ZoneOperationsClient", "ZoneSetLabelsRequest", + "ZoneSetNestedPolicyRequest", "ZoneSetPolicyRequest", "ZonesClient", ) diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/gapic_metadata.json b/packages/google-cloud-compute/google/cloud/compute_v1/gapic_metadata.json index 894a0d959c06..b951373d0dee 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/gapic_metadata.json +++ b/packages/google-cloud-compute/google/cloud/compute_v1/gapic_metadata.json @@ -78,6 +78,20 @@ } } }, + "Advice": { + "clients": { + "rest": { + "libraryClient": "AdviceClient", + "rpcs": { + "CalendarMode": { + "methods": [ + "calendar_mode" + ] + } + } + } + } + }, "Autoscalers": { "clients": { "rest": { @@ -285,6 +299,40 @@ } } }, + "CrossSiteNetworks": { + "clients": { + "rest": { + "libraryClient": "CrossSiteNetworksClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "List": { + "methods": [ + "list" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + } + } + } + } + }, "DiskTypes": { "clients": { "rest": { @@ -581,6 +629,11 @@ "patch" ] }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + }, "Update": { "methods": [ "update" @@ -639,6 +692,50 @@ } } }, + "FutureReservations": { + "clients": { + "rest": { + "libraryClient": "FutureReservationsClient", + "rpcs": { + "AggregatedList": { + "methods": [ + "aggregated_list" + ] + }, + "Cancel": { + "methods": [ + "cancel" + ] + }, + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "List": { + "methods": [ + "list" + ] + }, + "Update": { + "methods": [ + "update" + ] + } + } + } + } + }, "GlobalAddresses": { "clients": { "rest": { @@ -3903,6 +4000,11 @@ "get" ] }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, "List": { "methods": [ "list" @@ -3912,6 +4014,16 @@ "methods": [ "perform_maintenance" ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] } } } @@ -3927,6 +4039,11 @@ "get" ] }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, "List": { "methods": [ "list" @@ -3941,6 +4058,16 @@ "methods": [ "report_faulty" ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] } } } @@ -5147,6 +5274,40 @@ } } }, + "WireGroups": { + "clients": { + "rest": { + "libraryClient": "WireGroupsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "List": { + "methods": [ + "list" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + } + } + } + } + }, "ZoneOperations": { "clients": { "rest": { diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/accelerator_types/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/accelerator_types/client.py index d9a7567e8c3d..4efc79fa6b32 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/accelerator_types/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/accelerator_types/client.py @@ -722,8 +722,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of accelerator types. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of accelerator types. + + To prevent failure, it is recommended that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -911,13 +912,13 @@ def sample_get(): Returns: google.cloud.compute_v1.types.AcceleratorType: Represents an Accelerator Type - resource. Google Cloud Platform provides - graphics processing units (accelerators) - that you can add to VM instances to - improve or accelerate performance when - working with intensive workloads. For - more information, read GPUs on Compute - Engine. + resource. + Google Cloud Platform provides graphics + processing units (accelerators) that you + can add to VM instances to improve or + accelerate performance when working with + intensive workloads. For more + information, readGPUs on Compute Engine. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/accelerator_types/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/accelerator_types/transports/rest.py index 81925c9b3e67..9fde99b99837 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/accelerator_types/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/accelerator_types/transports/rest.py @@ -541,13 +541,13 @@ def __call__( Returns: ~.compute.AcceleratorType: Represents an Accelerator Type - resource. Google Cloud Platform provides - graphics processing units (accelerators) - that you can add to VM instances to - improve or accelerate performance when - working with intensive workloads. For - more information, read GPUs on Compute - Engine. + resource. + Google Cloud Platform provides graphics + processing units (accelerators) that you + can add to VM instances to improve or + accelerate performance when working with + intensive workloads. For more + information, readGPUs on Compute Engine. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/addresses/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/addresses/client.py index 4330f61eb621..a5a6689b2e34 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/addresses/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/addresses/client.py @@ -712,9 +712,10 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of addresses. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + r"""Retrieves an aggregated list of addresses. + + To prevent failure, it is recommended that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1188,13 +1189,17 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Address: - Represents an IP Address resource. Google Compute Engine - has two IP Address resources: \* [Global (external and - internal)](https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses) - \* [Regional (external and - internal)](https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - For more information, see Reserving a static external IP - address. + Represents an IP Address resource. + + Google Compute Engine has two IP Address resources: + + \* [Global (external and + internal)](https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses) + \* [Regional (external and + internal)](https://cloud.google.com/compute/docs/reference/rest/v1/addresses) + + For more information, see Reserving a static external + IP address. """ # Create or coerce a protobuf request object. @@ -1548,8 +1553,8 @@ def list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListPager: - r"""Retrieves a list of addresses contained within the - specified region. + r"""Retrieves a list of addresses contained within + the specified region. .. code-block:: python @@ -2012,7 +2017,7 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on an Address. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python @@ -2163,7 +2168,7 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on an Address. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/addresses/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/addresses/transports/rest.py index 7729c798abe5..2bd1d7a002f1 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/addresses/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/addresses/transports/rest.py @@ -800,21 +800,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -962,11 +973,15 @@ def __call__( Returns: ~.compute.Address: - Represents an IP Address resource. Google Compute Engine - has two IP Address resources: \* `Global (external and - internal) `__ - \* `Regional (external and - internal) `__ + Represents an IP Address resource. + + Google Compute Engine has two IP Address resources: + + - `Global (external and + internal) `__ + - `Regional (external and + internal) `__ + For more information, see Reserving a static external IP address. @@ -1112,21 +1127,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1421,21 +1447,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1586,21 +1623,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/autoscalers/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/autoscalers/client.py index 54ef50693f90..47ee0d68d517 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/autoscalers/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/autoscalers/client.py @@ -712,9 +712,10 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of autoscalers. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + r"""Retrieves an aggregated list of autoscalers. + + To prevent failure, it is recommended that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1183,17 +1184,23 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Autoscaler: - Represents an Autoscaler resource. Google Compute Engine - has two Autoscaler resources: \* - [Zonal](/compute/docs/reference/rest/v1/autoscalers) \* - [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) - Use autoscalers to automatically add or delete instances - from a managed instance group according to your defined - autoscaling policy. For more information, read - Autoscaling Groups of Instances. For zonal managed - instance groups resource, use the autoscaler resource. - For regional managed instance groups, use the - regionAutoscalers resource. + Represents an Autoscaler resource. + + Google Compute Engine has two Autoscaler resources: + + - [Zonal](/compute/docs/reference/rest/v1/autoscalers) + - [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) + + Use autoscalers to automatically add or delete + instances from a managed instance group according to + your defined autoscaling policy. For more + information, read Autoscaling Groups of Instances. + + For zonal managed instance groups resource, use the + autoscaler resource. + + For regional managed instance groups, use + theregionAutoscalers resource. """ # Create or coerce a protobuf request object. @@ -1547,8 +1554,8 @@ def list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListPager: - r"""Retrieves a list of autoscalers contained within the - specified zone. + r"""Retrieves a list of autoscalers contained within + the specified zone. .. code-block:: python @@ -1686,9 +1693,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates an autoscaler in the specified project using - the data included in the request. This method supports - PATCH semantics and uses the JSON merge patch format and - processing rules. + the data included in the request. This method + supportsPATCH semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -1818,9 +1825,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates an autoscaler in the specified project using - the data included in the request. This method supports - PATCH semantics and uses the JSON merge patch format and - processing rules. + the data included in the request. This method + supportsPATCH semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/autoscalers/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/autoscalers/transports/rest.py index 483abdc8b5a8..e7548d1517a6 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/autoscalers/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/autoscalers/transports/rest.py @@ -746,21 +746,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -909,18 +920,23 @@ def __call__( Returns: ~.compute.Autoscaler: - Represents an Autoscaler resource. Google Compute Engine - has two Autoscaler resources: \* - `Zonal `__ - \* - `Regional `__ + Represents an Autoscaler resource. + + Google Compute Engine has two Autoscaler resources: + + - `Zonal `__ + - `Regional `__ + Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read - Autoscaling Groups of Instances. For zonal managed - instance groups resource, use the autoscaler resource. - For regional managed instance groups, use the - regionAutoscalers resource. + Autoscaling Groups of Instances. + + For zonal managed instance groups resource, use the + autoscaler resource. + + For regional managed instance groups, use + theregionAutoscalers resource. """ @@ -1066,21 +1082,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1381,21 +1408,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1550,21 +1588,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_buckets/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_buckets/client.py index 900676fd1b05..4e9eecca807c 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_buckets/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_buckets/client.py @@ -1643,10 +1643,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.BackendBucket: Represents a Cloud Storage Bucket - resource. This Cloud Storage bucket - resource is referenced by a URL map of a - load balancer. For more information, - read Backend Buckets. + resource. + This Cloud Storage bucket resource is + referenced by a URL map of a load + balancer. For more information, + readBackend Buckets. """ # Create or coerce a protobuf request object. @@ -1769,28 +1770,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2237,9 +2246,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates the specified BackendBucket resource with the - data included in the request. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. + data included in the request. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -2371,9 +2380,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates the specified BackendBucket resource with the - data included in the request. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. + data included in the request. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -2894,28 +2903,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_buckets/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_buckets/transports/rest.py index 85cf269413c8..6fb5f867f740 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_buckets/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_buckets/transports/rest.py @@ -888,21 +888,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1056,21 +1067,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1223,21 +1245,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1387,10 +1420,11 @@ def __call__( Returns: ~.compute.BackendBucket: Represents a Cloud Storage Bucket - resource. This Cloud Storage bucket - resource is referenced by a URL map of a - load balancer. For more information, - read Backend Buckets. + resource. + This Cloud Storage bucket resource is + referenced by a URL map of a load + balancer. For more information, + readBackend Buckets. """ @@ -1538,26 +1572,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1705,21 +1790,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2024,21 +2120,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2198,21 +2305,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2370,26 +2488,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2696,21 +2865,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_services/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_services/client.py index 504ff7b0b759..67f2884bf8f1 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_services/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_services/client.py @@ -1018,9 +1018,10 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all BackendService resources, regional and - global, available to the specified project. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + global, available to the specified project. + + To prevent failure, it is recommended that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1773,21 +1774,25 @@ def sample_get(): Returns: google.cloud.compute_v1.types.BackendService: - Represents a Backend Service resource. A backend service - defines how Google Cloud load balancers distribute - traffic. The backend service configuration contains a - set of values, such as the protocol used to connect to - backends, various distribution and session settings, - health checks, and timeouts. These settings provide - fine-grained control over how your load balancer - behaves. Most of the settings have default values that - allow for easy configuration if you need to get started - quickly. Backend services in Google Compute Engine can - be either regionally or globally scoped. \* - [Global](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) - \* - [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices) - For more information, see Backend Services. + Represents a Backend Service resource. + + A backend service defines how Google Cloud load + balancers distribute traffic. The backend service + configuration contains a set of values, such as the + protocol used to connect to backends, various + distribution and session settings, health checks, and + timeouts. These settings provide fine-grained control + over how your load balancer behaves. Most of the + settings have default values that allow for easy + configuration if you need to get started quickly. + + Backend services in Google Compute Engine can be + either regionally or globally scoped. + + - [Global](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) + - [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices) + + For more information, seeBackend Services. """ # Create or coerce a protobuf request object. @@ -1988,7 +1993,12 @@ def get_health( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.BackendServiceGroupHealth: r"""Gets the most recent health check results for this - BackendService. Example request body: { "group": + BackendService. + + Example request body: + + { + "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" } .. code-block:: python @@ -2178,28 +2188,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2267,7 +2285,7 @@ def insert_unary( ) -> compute.Operation: r"""Creates a BackendService resource in the specified project using the data included in the request. For more - information, see Backend services overview . + information, see Backend services overview. .. code-block:: python @@ -2384,7 +2402,7 @@ def insert( ) -> extended_operation.ExtendedOperation: r"""Creates a BackendService resource in the specified project using the data included in the request. For more - information, see Backend services overview . + information, see Backend services overview. .. code-block:: python @@ -2772,9 +2790,9 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified BackendService resource with the data included in the request. For more information, - see Backend services overview. This method supports - PATCH semantics and uses the JSON merge patch format and - processing rules. + see Backend services overview. This method + supports PATCH semantics and uses the JSON merge patch + format and processing rules. .. code-block:: python @@ -2907,9 +2925,9 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified BackendService resource with the data included in the request. For more information, - see Backend services overview. This method supports - PATCH semantics and uses the JSON merge patch format and - processing rules. + see Backend services overview. This method + supports PATCH semantics and uses the JSON merge patch + format and processing rules. .. code-block:: python @@ -3442,28 +3460,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -3539,8 +3565,8 @@ def set_security_policy_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the Google Cloud Armor security policy for the - specified backend service. For more information, see - Google Cloud Armor Overview + specified backend service. For more information, + seeGoogle Cloud Armor Overview .. code-block:: python @@ -3683,8 +3709,8 @@ def set_security_policy( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the Google Cloud Armor security policy for the - specified backend service. For more information, see - Google Cloud Armor Overview + specified backend service. For more information, + seeGoogle Cloud Armor Overview .. code-block:: python @@ -3984,7 +4010,7 @@ def update_unary( ) -> compute.Operation: r"""Updates the specified BackendService resource with the data included in the request. For more information, - see Backend services overview. + seeBackend services overview. .. code-block:: python @@ -4117,7 +4143,7 @@ def update( ) -> extended_operation.ExtendedOperation: r"""Updates the specified BackendService resource with the data included in the request. For more information, - see Backend services overview. + seeBackend services overview. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_services/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_services/transports/rest.py index 4316c7a87e9f..f2983ded1503 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_services/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/backend_services/transports/rest.py @@ -1181,21 +1181,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1501,21 +1512,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1669,21 +1691,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1832,21 +1865,25 @@ def __call__( Returns: ~.compute.BackendService: - Represents a Backend Service resource. A backend service - defines how Google Cloud load balancers distribute - traffic. The backend service configuration contains a - set of values, such as the protocol used to connect to - backends, various distribution and session settings, - health checks, and timeouts. These settings provide - fine-grained control over how your load balancer - behaves. Most of the settings have default values that - allow for easy configuration if you need to get started - quickly. Backend services in Google Compute Engine can - be either regionally or globally scoped. \* - `Global `__ - \* - `Regional `__ - For more information, see Backend Services. + Represents a Backend Service resource. + + A backend service defines how Google Cloud load + balancers distribute traffic. The backend service + configuration contains a set of values, such as the + protocol used to connect to backends, various + distribution and session settings, health checks, and + timeouts. These settings provide fine-grained control + over how your load balancer behaves. Most of the + settings have default values that allow for easy + configuration if you need to get started quickly. + + Backend services in Google Compute Engine can be either + regionally or globally scoped. + + - `Global `__ + - `Regional `__ + + For more information, seeBackend Services. """ @@ -2314,26 +2351,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2483,21 +2571,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2952,21 +3051,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3126,21 +3236,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3300,26 +3421,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -3475,21 +3647,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3801,21 +3984,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/disk_types/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/disk_types/client.py index 9c0759b48c95..2375d136a601 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/disk_types/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/disk_types/client.py @@ -709,9 +709,10 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of disk types. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + r"""Retrieves an aggregated list of disk types. + + To prevent failure, it is recommended that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -894,17 +895,24 @@ def sample_get(): Returns: google.cloud.compute_v1.types.DiskType: - Represents a Disk Type resource. Google Compute Engine - has two Disk Type resources: \* - [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) - \* [Zonal](/compute/docs/reference/rest/v1/diskTypes) - You can choose from a variety of disk types based on - your needs. For more information, read Storage options. - The diskTypes resource represents disk types for a zonal - persistent disk. For more information, read Zonal - persistent disks. The regionDiskTypes resource - represents disk types for a regional persistent disk. - For more information, read Regional persistent disks. + Represents a Disk Type resource. + + Google Compute Engine has two Disk Type resources: + + - [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) + - [Zonal](/compute/docs/reference/rest/v1/diskTypes) + + You can choose from a variety of disk types based on + your needs. For more information, readStorage + options. + + The diskTypes resource represents disk types for a + zonal persistent disk. For more information, + readZonal persistent disks. + + The regionDiskTypes resource represents disk types + for a regional persistent disk. For more information, + read Regional persistent disks. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/disk_types/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/disk_types/transports/rest.py index 661d397876e1..06650c0f9611 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/disk_types/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/disk_types/transports/rest.py @@ -530,17 +530,23 @@ def __call__( Returns: ~.compute.DiskType: - Represents a Disk Type resource. Google Compute Engine - has two Disk Type resources: \* - `Regional `__ - \* `Zonal `__ + Represents a Disk Type resource. + + Google Compute Engine has two Disk Type resources: + + - `Regional `__ + - `Zonal `__ + You can choose from a variety of disk types based on - your needs. For more information, read Storage options. + your needs. For more information, readStorage options. + The diskTypes resource represents disk types for a zonal - persistent disk. For more information, read Zonal - persistent disks. The regionDiskTypes resource - represents disk types for a regional persistent disk. - For more information, read Regional persistent disks. + persistent disk. For more information, readZonal + persistent disks. + + The regionDiskTypes resource represents disk types for a + regional persistent disk. For more information, read + Regional persistent disks. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/disks/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/disks/client.py index 9417fa7339a3..bc9f6943830c 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/disks/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/disks/client.py @@ -1041,8 +1041,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of persistent disks. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of persistent disks. + + To prevent failure, it is recommended that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1463,7 +1464,7 @@ def bulk_set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on many disks at once. To learn more - about labels, read the Labeling Resources documentation. + about labels, read theLabeling Resources documentation. .. code-block:: python @@ -1599,7 +1600,7 @@ def bulk_set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on many disks at once. To learn more - about labels, read the Labeling Resources documentation. + about labels, read theLabeling Resources documentation. .. code-block:: python @@ -2079,8 +2080,8 @@ def delete_unary( r"""Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots - previously made from the disk. You must separately - delete snapshots. + previously made from the disk. You must separatelydelete + snapshots. .. code-block:: python @@ -2217,8 +2218,8 @@ def delete( r"""Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots - previously made from the disk. You must separately - delete snapshots. + previously made from the disk. You must separatelydelete + snapshots. .. code-block:: python @@ -2440,18 +2441,26 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Disk: - Represents a Persistent Disk resource. Google Compute - Engine has two Disk resources: \* - [Zonal](/compute/docs/reference/rest/v1/disks) \* - [Regional](/compute/docs/reference/rest/v1/regionDisks) - Persistent disks are required for running your VM - instances. Create both boot and non-boot (data) - persistent disks. For more information, read Persistent - Disks. For more storage options, read Storage options. - The disks resource represents a zonal persistent disk. - For more information, read Zonal persistent disks. The - regionDisks resource represents a regional persistent - disk. For more information, read Regional resources. + Represents a Persistent Disk resource. + + Google Compute Engine has two Disk resources: + + - [Zonal](/compute/docs/reference/rest/v1/disks) + - [Regional](/compute/docs/reference/rest/v1/regionDisks) + + Persistent disks are required for running your VM + instances. Create both boot and non-boot (data) + persistent disks. For more information, read + Persistent Disks. For more storage options, read + Storage options. + + The disks resource represents a zonal persistent + disk. For more information, readZonal persistent + disks. + + The regionDisks resource represents a regional + persistent disk. For more information, read Regional + resources. """ # Create or coerce a protobuf request object. @@ -2586,28 +2595,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2679,8 +2696,8 @@ def insert_unary( ) -> compute.Operation: r"""Creates a persistent disk in the specified project using the data in the request. You can create a disk - from a source (sourceImage, sourceSnapshot, or - sourceDisk) or create an empty 500 GB data disk by + from a source (sourceImage, sourceSnapshot, + orsourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property. @@ -2815,8 +2832,8 @@ def insert( ) -> extended_operation.ExtendedOperation: r"""Creates a persistent disk in the specified project using the data in the request. You can create a disk - from a source (sourceImage, sourceSnapshot, or - sourceDisk) or create an empty 500 GB data disk by + from a source (sourceImage, sourceSnapshot, + orsourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property. @@ -3442,8 +3459,8 @@ def resize_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Resizes the specified persistent disk. You can only - increase the size of the disk. + r"""Resizes the specified persistent disk. + You can only increase the size of the disk. .. code-block:: python @@ -3583,8 +3600,8 @@ def resize( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Resizes the specified persistent disk. You can only - increase the size of the disk. + r"""Resizes the specified persistent disk. + You can only increase the size of the disk. .. code-block:: python @@ -3819,28 +3836,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -3916,7 +3941,7 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on a disk. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python @@ -4062,7 +4087,7 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on a disk. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python @@ -4234,8 +4259,8 @@ def start_async_replication_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Starts asynchronous replication. Must be invoked on - the primary disk. + r"""Starts asynchronous replication. + Must be invoked on the primary disk. .. code-block:: python @@ -4385,8 +4410,8 @@ def start_async_replication( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Starts asynchronous replication. Must be invoked on - the primary disk. + r"""Starts asynchronous replication. + Must be invoked on the primary disk. .. code-block:: python @@ -4558,8 +4583,9 @@ def stop_async_replication_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Stops asynchronous replication. Can be invoked either - on the primary or on the secondary disk. + r"""Stops asynchronous replication. + Can be invoked either on the primary or on the secondary + disk. .. code-block:: python @@ -4692,8 +4718,9 @@ def stop_async_replication( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Stops asynchronous replication. Can be invoked either - on the primary or on the secondary disk. + r"""Stops asynchronous replication. + Can be invoked either on the primary or on the secondary + disk. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/disks/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/disks/transports/rest.py index ebad80103150..9b9cec1d87ae 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/disks/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/disks/transports/rest.py @@ -1251,21 +1251,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1572,21 +1583,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1741,21 +1763,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1912,21 +1945,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2081,21 +2125,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2241,18 +2296,24 @@ def __call__( Returns: ~.compute.Disk: - Represents a Persistent Disk resource. Google Compute - Engine has two Disk resources: \* - `Zonal `__ \* - `Regional `__ + Represents a Persistent Disk resource. + + Google Compute Engine has two Disk resources: + + - `Zonal `__ + - `Regional `__ + Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. + The disks resource represents a zonal persistent disk. - For more information, read Zonal persistent disks. The - regionDisks resource represents a regional persistent - disk. For more information, read Regional resources. + For more information, readZonal persistent disks. + + The regionDisks resource represents a regional + persistent disk. For more information, read Regional + resources. """ @@ -2396,26 +2457,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2564,21 +2676,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2874,21 +2997,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3042,21 +3176,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3210,26 +3355,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -3384,21 +3580,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3555,21 +3762,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3725,21 +3943,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3892,21 +4121,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4220,21 +4460,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/external_vpn_gateways/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/external_vpn_gateways/client.py index e2d478737558..c167923ab0f3 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/external_vpn_gateways/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/external_vpn_gateways/client.py @@ -1052,19 +1052,23 @@ def sample_get(): Returns: google.cloud.compute_v1.types.ExternalVpnGateway: Represents an external VPN gateway. + External VPN gateway is the on-premises VPN gateway(s) or another cloud provider's VPN gateway that connects to - your Google Cloud VPN gateway. To create - a highly available VPN from Google Cloud - Platform to your VPN gateway or another - cloud provider's VPN gateway, you must - create a external VPN gateway resource - with information about the other - gateway. For more information about - using external VPN gateways, see - Creating an HA VPN gateway and tunnel - pair to a peer VPN. + your Google Cloud VPN gateway. + + To create a highly available VPN from + Google Cloud Platform to your VPN + gateway or another cloud provider's VPN + gateway, you must create a external VPN + gateway resource with information about + the other gateway. + + For more information about using + external VPN gateways, see Creating an + HA VPN gateway and tunnel pair to a peer + VPN. """ # Create or coerce a protobuf request object. @@ -1515,8 +1519,8 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on an ExternalVpnGateway. To learn - more about labels, read the Labeling Resources - documentation. + more about labels, read the Labeling + Resources documentation. .. code-block:: python @@ -1654,8 +1658,8 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on an ExternalVpnGateway. To learn - more about labels, read the Labeling Resources - documentation. + more about labels, read the Labeling + Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py index 67bff9658212..ff9e29fdde16 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/external_vpn_gateways/transports/rest.py @@ -557,21 +557,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -721,19 +732,23 @@ def __call__( Returns: ~.compute.ExternalVpnGateway: Represents an external VPN gateway. + External VPN gateway is the on-premises VPN gateway(s) or another cloud provider's VPN gateway that connects to - your Google Cloud VPN gateway. To create - a highly available VPN from Google Cloud - Platform to your VPN gateway or another - cloud provider's VPN gateway, you must - create a external VPN gateway resource - with information about the other - gateway. For more information about - using external VPN gateways, see - Creating an HA VPN gateway and tunnel - pair to a peer VPN. + your Google Cloud VPN gateway. + + To create a highly available VPN from + Google Cloud Platform to your VPN + gateway or another cloud provider's VPN + gateway, you must create a external VPN + gateway resource with information about + the other gateway. + + For more information about using + external VPN gateways, see Creating an + HA VPN gateway and tunnel pair to a peer + VPN. """ @@ -883,21 +898,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1203,21 +1229,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewall_policies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewall_policies/client.py index 8fc31c5cf552..3e86a911ae40 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewall_policies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewall_policies/client.py @@ -2019,28 +2019,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -3987,28 +3995,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewall_policies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewall_policies/transports/rest.py index 84d106ffd8d4..3737dcf89019 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewall_policies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewall_policies/transports/rest.py @@ -1220,21 +1220,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1389,21 +1400,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1563,21 +1585,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1726,21 +1759,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2190,26 +2234,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2513,21 +2608,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2984,21 +3090,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3150,21 +3267,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3323,21 +3451,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3492,21 +3631,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3657,21 +3807,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3822,26 +3983,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/client.py index 556bb3136016..88d08a66042c 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/client.py @@ -1033,10 +1033,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Firewall: Represents a Firewall Rule resource. + Firewall rules allow or deny ingress traffic to, and egress traffic from your - instances. For more information, read - Firewall rules. + instances. For more information, + readFirewall rules. """ # Create or coerce a protobuf request object. @@ -1482,9 +1483,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates the specified firewall rule with the data - included in the request. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -1614,9 +1615,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates the specified firewall rule with the data - included in the request. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -1758,6 +1759,142 @@ def error_code(self): # Done; return the response. return response + def test_iam_permissions( + self, + request: Optional[ + Union[compute.TestIamPermissionsFirewallRequest, dict] + ] = None, + *, + project: Optional[str] = None, + resource: Optional[str] = None, + test_permissions_request_resource: Optional[ + compute.TestPermissionsRequest + ] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.TestPermissionsResponse: + r"""Returns permissions that a caller has on the + specified resource. + + .. code-block:: python + + # 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 compute_v1 + + def sample_test_iam_permissions(): + # Create a client + client = compute_v1.FirewallsClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsFirewallRequest( + project="project_value", + resource="resource_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.compute_v1.types.TestIamPermissionsFirewallRequest, dict]): + The request object. A request message for + Firewalls.TestIamPermissions. See the + method description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + resource (str): + Name or id of the resource for this + request. + + This corresponds to the ``resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + test_permissions_request_resource (google.cloud.compute_v1.types.TestPermissionsRequest): + The body resource for this request + This corresponds to the ``test_permissions_request_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + google.cloud.compute_v1.types.TestPermissionsResponse: + + """ + # Create or coerce a protobuf request object. + # - Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + flattened_params = [project, resource, test_permissions_request_resource] + has_flattened_params = ( + len([param for param in flattened_params if param is not None]) > 0 + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # - Use the request object if provided (there's no risk of modifying the input as + # there are no flattened fields), or create one. + if not isinstance(request, compute.TestIamPermissionsFirewallRequest): + request = compute.TestIamPermissionsFirewallRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if resource is not None: + request.resource = resource + if test_permissions_request_resource is not None: + request.test_permissions_request_resource = ( + test_permissions_request_resource + ) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.test_iam_permissions] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("resource", request.resource), + ) + ), + ) + + # Validate the universe domain. + self._validate_universe_domain() + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + def update_unary( self, request: Optional[Union[compute.UpdateFirewallRequest, dict]] = None, @@ -1770,10 +1907,10 @@ def update_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates the specified firewall rule with the data - included in the request. Note that all fields will be - updated if using PUT, even fields that are not - specified. To update individual fields, please use PATCH - instead. + included in the request. + Note that all fields will be updated if using PUT, even + fields that are not specified. To update individual + fields, please use PATCH instead. .. code-block:: python @@ -1903,10 +2040,10 @@ def update( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates the specified firewall rule with the data - included in the request. Note that all fields will be - updated if using PUT, even fields that are not - specified. To update individual fields, please use PATCH - instead. + included in the request. + Note that all fields will be updated if using PUT, even + fields that are not specified. To update individual + fields, please use PATCH instead. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/base.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/base.py index ed8f6bad8cfd..390a0ac79b18 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/base.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/base.py @@ -163,6 +163,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.test_iam_permissions: gapic_v1.method.wrap_method( + self.test_iam_permissions, + default_timeout=None, + client_info=client_info, + ), self.update: gapic_v1.method.wrap_method( self.update, default_timeout=None, @@ -224,6 +229,17 @@ def patch( ]: raise NotImplementedError() + @property + def test_iam_permissions( + self, + ) -> Callable[ + [compute.TestIamPermissionsFirewallRequest], + Union[ + compute.TestPermissionsResponse, Awaitable[compute.TestPermissionsResponse] + ], + ]: + raise NotImplementedError() + @property def update( self, diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/rest.py index 4e59b16b834a..d2d5e01f1274 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/rest.py @@ -112,6 +112,14 @@ def post_patch(self, response): logging.log(f"Received response: {response}") return response + def pre_test_iam_permissions(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_test_iam_permissions(self, response): + logging.log(f"Received response: {response}") + return response + def pre_update(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata @@ -346,6 +354,57 @@ def post_patch_with_metadata( """ return response, metadata + def pre_test_iam_permissions( + self, + request: compute.TestIamPermissionsFirewallRequest, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.TestIamPermissionsFirewallRequest, + Sequence[Tuple[str, Union[str, bytes]]], + ]: + """Pre-rpc interceptor for test_iam_permissions + + Override in a subclass to manipulate the request or metadata + before they are sent to the Firewalls server. + """ + return request, metadata + + def post_test_iam_permissions( + self, response: compute.TestPermissionsResponse + ) -> compute.TestPermissionsResponse: + """Post-rpc interceptor for test_iam_permissions + + DEPRECATED. Please use the `post_test_iam_permissions_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response + after it is returned by the Firewalls server but before + it is returned to user code. This `post_test_iam_permissions` interceptor runs + before the `post_test_iam_permissions_with_metadata` interceptor. + """ + return response + + def post_test_iam_permissions_with_metadata( + self, + response: compute.TestPermissionsResponse, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.TestPermissionsResponse, Sequence[Tuple[str, Union[str, bytes]]] + ]: + """Post-rpc interceptor for test_iam_permissions + + Override in a subclass to read or manipulate the response or metadata after it + is returned by the Firewalls server but before it is returned to user code. + + We recommend only using this `post_test_iam_permissions_with_metadata` + interceptor in new development instead of the `post_test_iam_permissions` interceptor. + When both interceptors are used, this `post_test_iam_permissions_with_metadata` interceptor runs after the + `post_test_iam_permissions` interceptor. The (possibly modified) response returned by + `post_test_iam_permissions` will be passed to + `post_test_iam_permissions_with_metadata`. + """ + return response, metadata + def pre_update( self, request: compute.UpdateFirewallRequest, @@ -533,21 +592,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -696,10 +766,11 @@ def __call__( Returns: ~.compute.Firewall: Represents a Firewall Rule resource. + Firewall rules allow or deny ingress traffic to, and egress traffic from your - instances. For more information, read - Firewall rules. + instances. For more information, + readFirewall rules. """ @@ -843,21 +914,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1153,21 +1235,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1270,6 +1363,160 @@ def __call__( ) return resp + class _TestIamPermissions( + _BaseFirewallsRestTransport._BaseTestIamPermissions, FirewallsRestStub + ): + def __hash__(self): + return hash("FirewallsRestTransport.TestIamPermissions") + + @staticmethod + def _get_response( + host, + metadata, + query_params, + session, + timeout, + transcoded_request, + body=None, + ): + uri = transcoded_request["uri"] + method = transcoded_request["method"] + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(session, method)( + "{host}{uri}".format(host=host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + return response + + def __call__( + self, + request: compute.TestIamPermissionsFirewallRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.TestPermissionsResponse: + r"""Call the test iam permissions method over HTTP. + + Args: + request (~.compute.TestIamPermissionsFirewallRequest): + The request object. A request message for + Firewalls.TestIamPermissions. See the + method description for details. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + ~.compute.TestPermissionsResponse: + + """ + + http_options = ( + _BaseFirewallsRestTransport._BaseTestIamPermissions._get_http_options() + ) + + request, metadata = self._interceptor.pre_test_iam_permissions( + request, metadata + ) + transcoded_request = _BaseFirewallsRestTransport._BaseTestIamPermissions._get_transcoded_request( + http_options, request + ) + + body = _BaseFirewallsRestTransport._BaseTestIamPermissions._get_request_body_json( + transcoded_request + ) + + # Jsonify the query params + query_params = _BaseFirewallsRestTransport._BaseTestIamPermissions._get_query_params_json( + transcoded_request + ) + + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + request_url = "{host}{uri}".format( + host=self._host, uri=transcoded_request["uri"] + ) + method = transcoded_request["method"] + try: + request_payload = type(request).to_json(request) + except: + request_payload = None + http_request = { + "payload": request_payload, + "requestMethod": method, + "requestUrl": request_url, + "headers": dict(metadata), + } + _LOGGER.debug( + f"Sending request for google.cloud.compute_v1.FirewallsClient.TestIamPermissions", + extra={ + "serviceName": "google.cloud.compute.v1.Firewalls", + "rpcName": "TestIamPermissions", + "httpRequest": http_request, + "metadata": http_request["headers"], + }, + ) + + # Send the request + response = FirewallsRestTransport._TestIamPermissions._get_response( + self._host, + metadata, + query_params, + self._session, + timeout, + transcoded_request, + body, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.TestPermissionsResponse() + pb_resp = compute.TestPermissionsResponse.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + + resp = self._interceptor.post_test_iam_permissions(resp) + response_metadata = [(k, str(v)) for k, v in response.headers.items()] + resp, _ = self._interceptor.post_test_iam_permissions_with_metadata( + resp, response_metadata + ) + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + try: + response_payload = compute.TestPermissionsResponse.to_json(response) + except: + response_payload = None + http_response = { + "payload": response_payload, + "headers": dict(response.headers), + "status": response.status_code, + } + _LOGGER.debug( + "Received response for google.cloud.compute_v1.FirewallsClient.test_iam_permissions", + extra={ + "serviceName": "google.cloud.compute.v1.Firewalls", + "rpcName": "TestIamPermissions", + "metadata": http_response["headers"], + "httpResponse": http_response, + }, + ) + return resp + class _Update(_BaseFirewallsRestTransport._BaseUpdate, FirewallsRestStub): def __hash__(self): return hash("FirewallsRestTransport.Update") @@ -1322,21 +1569,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1469,6 +1727,16 @@ def patch(self) -> Callable[[compute.PatchFirewallRequest], compute.Operation]: # In C++ this would require a dynamic_cast return self._Patch(self._session, self._host, self._interceptor) # type: ignore + @property + def test_iam_permissions( + self, + ) -> Callable[ + [compute.TestIamPermissionsFirewallRequest], compute.TestPermissionsResponse + ]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._TestIamPermissions(self._session, self._host, self._interceptor) # type: ignore + @property def update(self) -> Callable[[compute.UpdateFirewallRequest], compute.Operation]: # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/rest_base.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/rest_base.py index dd7023c0b0a2..d9da4faa4f4d 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/rest_base.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/firewalls/transports/rest_base.py @@ -337,6 +337,62 @@ def _get_query_params_json(transcoded_request): return query_params + class _BaseTestIamPermissions: + def __hash__(self): # pragma: NO COVER + return NotImplementedError("__hash__ must be implemented.") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + @staticmethod + def _get_http_options(): + http_options: List[Dict[str, str]] = [ + { + "method": "post", + "uri": "/compute/v1/projects/{project}/global/firewalls/{resource}/testIamPermissions", + "body": "test_permissions_request_resource", + }, + ] + return http_options + + @staticmethod + def _get_transcoded_request(http_options, request): + pb_request = compute.TestIamPermissionsFirewallRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + return transcoded_request + + @staticmethod + def _get_request_body_json(transcoded_request): + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], use_integers_for_enums=False + ) + return body + + @staticmethod + def _get_query_params_json(transcoded_request): + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + use_integers_for_enums=False, + ) + ) + query_params.update( + _BaseFirewallsRestTransport._BaseTestIamPermissions._get_unset_required_fields( + query_params + ) + ) + + return query_params + class _BaseUpdate: def __hash__(self): # pragma: NO COVER return NotImplementedError("__hash__ must be implemented.") diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/forwarding_rules/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/forwarding_rules/client.py index d0b22e6fd097..0a56b4818329 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/forwarding_rules/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/forwarding_rules/client.py @@ -721,8 +721,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of forwarding rules. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of forwarding rules. + + To prevent failure, it is recommended that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1204,18 +1205,22 @@ def sample_get(): Returns: google.cloud.compute_v1.types.ForwardingRule: - Represents a Forwarding Rule resource. Forwarding rule - resources in Google Cloud can be either regional or - global in scope: \* - [Global](https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules) - \* - [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules) - A forwarding rule and its corresponding IP address - represent the frontend configuration of a Google Cloud - load balancer. Forwarding rules can also reference - target instances and Cloud VPN Classic gateways - (targetVpnGateway). For more information, read - Forwarding rule concepts and Using protocol forwarding. + Represents a Forwarding Rule resource. + + Forwarding rule resources in Google Cloud can be + either regional or global in scope: + + - [Global](https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules) + - [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules) + + A forwarding rule and its corresponding IP address + represent the frontend configuration of a Google + Cloud load balancer. Forwarding rules can also + reference target instances and Cloud VPN Classic + gateways (targetVpnGateway). + + For more information, read Forwarding rule concepts + and Using protocol forwarding. """ # Create or coerce a protobuf request object. @@ -1717,9 +1722,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates the specified forwarding rule with the data included in - the request. This method supports PATCH semantics and uses the - JSON merge patch format and processing rules. Currently, you can - only patch the network_tier field. + the request. This method supportsPATCH semantics and uses + theJSON merge patch format and processing rules. Currently, you + can only patch the network_tier field. .. code-block:: python @@ -1863,9 +1868,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates the specified forwarding rule with the data included in - the request. This method supports PATCH semantics and uses the - JSON merge patch format and processing rules. Currently, you can - only patch the network_tier field. + the request. This method supportsPATCH semantics and uses + theJSON merge patch format and processing rules. Currently, you + can only patch the network_tier field. .. code-block:: python @@ -2036,8 +2041,8 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on the specified resource. To learn - more about labels, read the Labeling Resources - documentation. + more about labels, read the + Labeling Resources documentation. .. code-block:: python @@ -2188,8 +2193,8 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on the specified resource. To learn - more about labels, read the Labeling Resources - documentation. + more about labels, read the + Labeling Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py index 72e3bc2362db..a3921a320e82 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/forwarding_rules/transports/rest.py @@ -810,21 +810,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -975,18 +986,22 @@ def __call__( Returns: ~.compute.ForwardingRule: - Represents a Forwarding Rule resource. Forwarding rule - resources in Google Cloud can be either regional or - global in scope: \* - `Global `__ - \* - `Regional `__ + Represents a Forwarding Rule resource. + + Forwarding rule resources in Google Cloud can be either + regional or global in scope: + + - `Global `__ + - `Regional `__ + A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules can also reference target instances and Cloud VPN Classic gateways - (targetVpnGateway). For more information, read - Forwarding rule concepts and Using protocol forwarding. + (targetVpnGateway). + + For more information, read Forwarding rule concepts and + Using protocol forwarding. """ @@ -1136,21 +1151,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1455,21 +1481,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1628,21 +1665,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1801,21 +1849,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_addresses/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_addresses/client.py index 931dcafb7f46..2316cef53ffa 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_addresses/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_addresses/client.py @@ -1046,13 +1046,17 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Address: - Represents an IP Address resource. Google Compute Engine - has two IP Address resources: \* [Global (external and - internal)](https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses) - \* [Regional (external and - internal)](https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - For more information, see Reserving a static external IP - address. + Represents an IP Address resource. + + Google Compute Engine has two IP Address resources: + + \* [Global (external and + internal)](https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses) + \* [Regional (external and + internal)](https://cloud.google.com/compute/docs/reference/rest/v1/addresses) + + For more information, see Reserving a static external + IP address. """ # Create or coerce a protobuf request object. @@ -1796,7 +1800,7 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on a GlobalAddress. To learn more - about labels, read the Labeling Resources documentation. + about labels, read theLabeling Resources documentation. .. code-block:: python @@ -1932,7 +1936,7 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on a GlobalAddress. To learn more - about labels, read the Labeling Resources documentation. + about labels, read theLabeling Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_addresses/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_addresses/transports/rest.py index ac29ba31e6dd..5882212eb4f3 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_addresses/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_addresses/transports/rest.py @@ -606,21 +606,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -771,11 +782,15 @@ def __call__( Returns: ~.compute.Address: - Represents an IP Address resource. Google Compute Engine - has two IP Address resources: \* `Global (external and - internal) `__ - \* `Regional (external and - internal) `__ + Represents an IP Address resource. + + Google Compute Engine has two IP Address resources: + + - `Global (external and + internal) `__ + - `Regional (external and + internal) `__ + For more information, see Reserving a static external IP address. @@ -927,21 +942,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1244,21 +1270,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1415,21 +1452,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_forwarding_rules/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_forwarding_rules/client.py index 22f9ea263761..a553abe357ac 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_forwarding_rules/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_forwarding_rules/client.py @@ -1057,18 +1057,22 @@ def sample_get(): Returns: google.cloud.compute_v1.types.ForwardingRule: - Represents a Forwarding Rule resource. Forwarding rule - resources in Google Cloud can be either regional or - global in scope: \* - [Global](https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules) - \* - [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules) - A forwarding rule and its corresponding IP address - represent the frontend configuration of a Google Cloud - load balancer. Forwarding rules can also reference - target instances and Cloud VPN Classic gateways - (targetVpnGateway). For more information, read - Forwarding rule concepts and Using protocol forwarding. + Represents a Forwarding Rule resource. + + Forwarding rule resources in Google Cloud can be + either regional or global in scope: + + - [Global](https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules) + - [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules) + + A forwarding rule and its corresponding IP address + represent the frontend configuration of a Google + Cloud load balancer. Forwarding rules can also + reference target instances and Cloud VPN Classic + gateways (targetVpnGateway). + + For more information, read Forwarding rule concepts + and Using protocol forwarding. """ # Create or coerce a protobuf request object. @@ -1521,9 +1525,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates the specified forwarding rule with the data included in - the request. This method supports PATCH semantics and uses the - JSON merge patch format and processing rules. Currently, you can - only patch the network_tier field. + the request. This method supportsPATCH semantics and uses + theJSON merge patch format and processing rules. Currently, you + can only patch the network_tier field. .. code-block:: python @@ -1655,9 +1659,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates the specified forwarding rule with the data included in - the request. This method supports PATCH semantics and uses the - JSON merge patch format and processing rules. Currently, you can - only patch the network_tier field. + the request. This method supportsPATCH semantics and uses + theJSON merge patch format and processing rules. Currently, you + can only patch the network_tier field. .. code-block:: python @@ -1817,8 +1821,8 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on the specified resource. To learn - more about labels, read the Labeling resources - documentation. + more about labels, read the + Labeling resources documentation. .. code-block:: python @@ -1956,8 +1960,8 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on the specified resource. To learn - more about labels, read the Labeling resources - documentation. + more about labels, read the + Labeling resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py index cedf55c32e90..eda07d88ac71 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_forwarding_rules/transports/rest.py @@ -610,21 +610,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -773,18 +784,22 @@ def __call__( Returns: ~.compute.ForwardingRule: - Represents a Forwarding Rule resource. Forwarding rule - resources in Google Cloud can be either regional or - global in scope: \* - `Global `__ - \* - `Regional `__ + Represents a Forwarding Rule resource. + + Forwarding rule resources in Google Cloud can be either + regional or global in scope: + + - `Global `__ + - `Regional `__ + A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules can also reference target instances and Cloud VPN Classic gateways - (targetVpnGateway). For more information, read - Forwarding rule concepts and Using protocol forwarding. + (targetVpnGateway). + + For more information, read Forwarding rule concepts and + Using protocol forwarding. """ @@ -933,21 +948,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1249,21 +1275,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1419,21 +1456,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1589,21 +1637,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py index a72aee77ad7d..bc83f93add72 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_network_endpoint_groups/client.py @@ -1722,13 +1722,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.NetworkEndpointGroup: Represents a collection of network - endpoints. A network endpoint group - (NEG) defines how a set of endpoints - should be reached, whether they are - reachable, and where they are located. - For more information about using NEGs - for different use cases, see Network - endpoint groups overview. + endpoints. + A network endpoint group (NEG) defines + how a set of endpoints should be + reached, whether they are reachable, and + where they are located. For more + information about using NEGs for + different use cases, seeNetwork endpoint + groups overview. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py index 0a632a4231cb..887a85c4452f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_network_endpoint_groups/transports/rest.py @@ -629,21 +629,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -800,21 +811,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -967,21 +989,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1139,13 +1172,14 @@ def __call__( Returns: ~.compute.NetworkEndpointGroup: Represents a collection of network - endpoints. A network endpoint group - (NEG) defines how a set of endpoints - should be reached, whether they are - reachable, and where they are located. - For more information about using NEGs - for different use cases, see Network - endpoint groups overview. + endpoints. + A network endpoint group (NEG) defines + how a set of endpoints should be + reached, whether they are reachable, and + where they are located. For more + information about using NEGs for + different use cases, seeNetwork endpoint + groups overview. """ @@ -1292,21 +1326,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_operations/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_operations/client.py index 165dd0493f47..739685a85f9c 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_operations/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_operations/client.py @@ -719,8 +719,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of all operations. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of all operations. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1024,23 +1025,30 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - [Global](/compute/docs/reference/rest/v1/globalOperations) - \* - [Regional](/compute/docs/reference/rest/v1/regionOperations) - \* - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) - You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the globalOperations - resource. - For regional operations, use the - regionOperations resource. - For zonal operations, use - the zoneOperations resource. For more information, read - Global, Regional, and Zonal Resources. Note that - completed Operation resources have a limited retention - period. + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - [Global](/compute/docs/reference/rest/v1/globalOperations) + - [Regional](/compute/docs/reference/rest/v1/regionOperations) + - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) + + You can use an operation resource to manage + asynchronous API requests. For more information, + readHandling API responses. + + Operations can be global, regional or zonal. + + - For global operations, use the globalOperations + resource. - For regional operations, use the + regionOperations resource. - For zonal operations, + use the zoneOperations resource. + + For more information, read Global, Regional, and + Zonal Resources. + + Note that completed Operation resources have a + limited retention period. """ # Create or coerce a protobuf request object. @@ -1235,13 +1243,17 @@ def wait( from the ``GET`` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be ``DONE`` or still in progress. - This method is called on a best-effort basis. Specifically: - In - uncommon cases, when the server is overloaded, the request might - return before the default deadline is reached, or might return - after zero seconds. - If the default deadline is reached, there - is no guarantee that the operation is actually done when the - method returns. Be prepared to retry if the operation is not - ``DONE``. + + This method is called on a best-effort basis. Specifically: + + :: + + - In uncommon cases, when the server is overloaded, the request might + return before the default deadline is reached, or might return after zero + seconds. + - If the default deadline is reached, there is no guarantee that the + operation is actually done when the method returns. Be prepared to retry + if the operation is not `DONE`. .. code-block:: python @@ -1298,23 +1310,30 @@ def sample_wait(): Returns: google.cloud.compute_v1.types.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - [Global](/compute/docs/reference/rest/v1/globalOperations) - \* - [Regional](/compute/docs/reference/rest/v1/regionOperations) - \* - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) - You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the globalOperations - resource. - For regional operations, use the - regionOperations resource. - For zonal operations, use - the zoneOperations resource. For more information, read - Global, Regional, and Zonal Resources. Note that - completed Operation resources have a limited retention - period. + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - [Global](/compute/docs/reference/rest/v1/globalOperations) + - [Regional](/compute/docs/reference/rest/v1/regionOperations) + - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) + + You can use an operation resource to manage + asynchronous API requests. For more information, + readHandling API responses. + + Operations can be global, regional or zonal. + + - For global operations, use the globalOperations + resource. - For regional operations, use the + regionOperations resource. - For zonal operations, + use the zoneOperations resource. + + For more information, read Global, Regional, and + Zonal Resources. + + Note that completed Operation resources have a + limited retention period. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_operations/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_operations/transports/rest.py index 4611078a0916..84b5806d1161 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_operations/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_operations/transports/rest.py @@ -801,21 +801,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1112,21 +1123,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_organization_operations/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_organization_operations/client.py index b1de2386aa08..7fd9e487f1c0 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_organization_operations/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_organization_operations/client.py @@ -902,23 +902,30 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - [Global](/compute/docs/reference/rest/v1/globalOperations) - \* - [Regional](/compute/docs/reference/rest/v1/regionOperations) - \* - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) - You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the globalOperations - resource. - For regional operations, use the - regionOperations resource. - For zonal operations, use - the zoneOperations resource. For more information, read - Global, Regional, and Zonal Resources. Note that - completed Operation resources have a limited retention - period. + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - [Global](/compute/docs/reference/rest/v1/globalOperations) + - [Regional](/compute/docs/reference/rest/v1/regionOperations) + - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) + + You can use an operation resource to manage + asynchronous API requests. For more information, + readHandling API responses. + + Operations can be global, regional or zonal. + + - For global operations, use the globalOperations + resource. - For regional operations, use the + regionOperations resource. - For zonal operations, + use the zoneOperations resource. + + For more information, read Global, Regional, and + Zonal Resources. + + Note that completed Operation resources have a + limited retention period. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py index 682c6f44d4f7..e345f0a1dd29 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_organization_operations/transports/rest.py @@ -550,21 +550,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py index 1c65436fb6a6..2db2fa9f2348 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_public_delegated_prefixes/client.py @@ -1546,7 +1546,7 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This - method supports PATCH semantics and uses JSON merge + method supportsPATCH semantics and usesJSON merge patch format and processing rules. .. code-block:: python @@ -1690,7 +1690,7 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This - method supports PATCH semantics and uses JSON merge + method supportsPATCH semantics and usesJSON merge patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py index 401099677530..7fca32032c00 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/global_public_delegated_prefixes/transports/rest.py @@ -509,21 +509,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -828,21 +839,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1145,21 +1167,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/health_checks/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/health_checks/client.py index 730bd57f756c..49030fb6fa1e 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/health_checks/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/health_checks/client.py @@ -715,9 +715,10 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all HealthCheck resources, regional and - global, available to the specified project. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + global, available to the specified project. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1166,23 +1167,33 @@ def sample_get(): Returns: google.cloud.compute_v1.types.HealthCheck: - Represents a health check resource. Google Compute - Engine has two health check resources: \* - [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) - \* - [Global](/compute/docs/reference/rest/v1/healthChecks) - These health check resources can be used for load - balancing and for autohealing VMs in a managed instance - group (MIG). **Load balancing** Health check - requirements vary depending on the type of load - balancer. For details about the type of health check - supported for each load balancer and corresponding - backend type, see Health checks overview: Load balancer - guide. **Autohealing in MIGs** The health checks that - you use for autohealing VMs in a MIG can be either - regional or global. For more information, see Set up an - application health check and autohealing. For more - information, see Health checks overview. + Represents a health check resource. + + Google Compute Engine has two health check resources: + + - [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) + - [Global](/compute/docs/reference/rest/v1/healthChecks) + + These health check resources can be used for load + balancing and for autohealing VMs in a managed + instance group (MIG). + + **Load balancing** + + Health check requirements vary depending on the type + of load balancer. For details about the type of + health check supported for each load balancer and + corresponding backend type, see Health checks + overview: Load balancer guide. + + **Autohealing in MIGs** + + The health checks that you use for autohealing VMs in + a MIG can be either regional or global. For more + information, see Set up an application health check + and autohealing. + + For more information, seeHealth checks overview. """ # Create or coerce a protobuf request object. @@ -1630,7 +1641,7 @@ def patch_unary( ) -> compute.Operation: r"""Updates a HealthCheck resource in the specified project using the data included in the request. This - method supports PATCH semantics and uses the JSON merge + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python @@ -1764,7 +1775,7 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Updates a HealthCheck resource in the specified project using the data included in the request. This - method supports PATCH semantics and uses the JSON merge + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/health_checks/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/health_checks/transports/rest.py index 4028587acdcd..ee2cad54f319 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/health_checks/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/health_checks/transports/rest.py @@ -750,21 +750,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -915,23 +926,33 @@ def __call__( Returns: ~.compute.HealthCheck: - Represents a health check resource. Google Compute - Engine has two health check resources: \* - `Regional `__ - \* - `Global `__ + Represents a health check resource. + + Google Compute Engine has two health check resources: + + - `Regional `__ + - `Global `__ + These health check resources can be used for load balancing and for autohealing VMs in a managed instance - group (MIG). **Load balancing** Health check - requirements vary depending on the type of load - balancer. For details about the type of health check - supported for each load balancer and corresponding + group (MIG). + + **Load balancing** + + Health check requirements vary depending on the type of + load balancer. For details about the type of health + check supported for each load balancer and corresponding backend type, see Health checks overview: Load balancer - guide. **Autohealing in MIGs** The health checks that - you use for autohealing VMs in a MIG can be either - regional or global. For more information, see Set up an - application health check and autohealing. For more - information, see Health checks overview. + guide. + + **Autohealing in MIGs** + + The health checks that you use for autohealing VMs in a + MIG can be either regional or global. For more + information, see Set up an application health check and + autohealing. + + For more information, seeHealth checks overview. """ @@ -1077,21 +1098,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1394,21 +1426,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1563,21 +1606,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/images/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/images/client.py index 0ca1cfb53f6e..2e82792a743f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/images/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/images/client.py @@ -978,9 +978,10 @@ def deprecate_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Sets the deprecation status of an image. If an empty - request body is given, clears the deprecation status - instead. + r"""Sets the deprecation status of an image. + + If an empty request body is given, clears the + deprecation status instead. .. code-block:: python @@ -1109,9 +1110,10 @@ def deprecate( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Sets the deprecation status of an image. If an empty - request body is given, clears the deprecation status - instead. + r"""Sets the deprecation status of an image. + + If an empty request body is given, clears the + deprecation status instead. .. code-block:: python @@ -1316,10 +1318,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Image: - Represents an Image resource. You can - use images to create boot disks for your - VM instances. For more information, read - Images. + Represents an Image resource. + + You can use images to create boot disks + for your VM instances. For more + information, read Images. """ # Create or coerce a protobuf request object. @@ -1387,7 +1390,7 @@ def get_from_family( ) -> compute.Image: r"""Returns the latest image that is part of an image family and is not deprecated. For more information on - image families, see Public image families documentation. + image families, seePublic image families documentation. .. code-block:: python @@ -1447,10 +1450,11 @@ def sample_get_from_family(): Returns: google.cloud.compute_v1.types.Image: - Represents an Image resource. You can - use images to create boot disks for your - VM instances. For more information, read - Images. + Represents an Image resource. + + You can use images to create boot disks + for your VM instances. For more + information, read Images. """ # Create or coerce a protobuf request object. @@ -1573,28 +1577,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1913,14 +1925,15 @@ def list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListPager: - r"""Retrieves the list of custom images available to the - specified project. Custom images are images you create - that belong to your project. This method does not get - any images that belong to other projects, including - publicly-available images, like Debian 8. If you want to - get a list of publicly-available images, use this method - to make a request to the respective image project, such - as debian-cloud or windows-cloud. + r"""Retrieves the list of custom images + available to the specified project. Custom images are + images you create that belong to your project. This + method does not get any images that belong to other + projects, including publicly-available images, like + Debian 8. If you want to get a list of + publicly-available images, use this method to make a + request to the respective image project, such as + debian-cloud or windows-cloud. .. code-block:: python @@ -2391,28 +2404,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2486,7 +2507,7 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on an image. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python @@ -2622,7 +2643,7 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on an image. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/images/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/images/transports/rest.py index b179b4e77ba0..b893107a4ad0 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/images/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/images/transports/rest.py @@ -800,21 +800,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -962,21 +973,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1129,10 +1151,11 @@ def __call__( Returns: ~.compute.Image: - Represents an Image resource. You can - use images to create boot disks for your - VM instances. For more information, read - Images. + Represents an Image resource. + + You can use images to create boot disks + for your VM instances. For more + information, read Images. """ @@ -1275,10 +1298,11 @@ def __call__( Returns: ~.compute.Image: - Represents an Image resource. You can - use images to create boot disks for your - VM instances. For more information, read - Images. + Represents an Image resource. + + You can use images to create boot disks + for your VM instances. For more + information, read Images. """ @@ -1428,26 +1452,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1598,21 +1673,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1905,21 +1991,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2073,26 +2170,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2249,21 +2397,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_manager_resize_requests/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_manager_resize_requests/client.py index a56a3b476fe0..fa040c3afbd9 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_manager_resize_requests/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_manager_resize_requests/client.py @@ -798,9 +798,9 @@ def sample_cancel(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. The - name should conform to RFC1035. + The name of thezone where the managed + instance group is located. The name + should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -955,9 +955,9 @@ def sample_cancel(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. The - name should conform to RFC1035. + The name of thezone where the managed + instance group is located. The name + should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1137,9 +1137,9 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. The - name should conform to RFC1035. + The name of thezone where the managed + instance group is located. The name + should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1294,9 +1294,9 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. The - name should conform to RFC1035. + The name of thezone where the managed + instance group is located. The name + should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1491,8 +1491,8 @@ def sample_get(): on the ``request`` instance; if ``request`` is provided, this should not be set. resize_request (str): - The name of the resize request. Name - should conform to RFC1035 or be a + The name of the resize request. + Name should conform to RFC1035 or be a resource ID. This corresponds to the ``resize_request`` field @@ -1635,10 +1635,10 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located and - where the resize request will be - created. Name should conform to RFC1035. + The name of thezone where the managed + instance group is located and where the + resize request will be created. Name + should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1796,10 +1796,10 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located and - where the resize request will be - created. Name should conform to RFC1035. + The name of thezone where the managed + instance group is located and where the + resize request will be created. Name + should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1980,9 +1980,9 @@ def sample_list(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. The - name should conform to RFC1035. + The name of thezone where the managed + instance group is located. The name + should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_manager_resize_requests/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_manager_resize_requests/transports/rest.py index 11900702271c..a06e714b687f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_manager_resize_requests/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_manager_resize_requests/transports/rest.py @@ -513,21 +513,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -679,21 +690,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1003,21 +1025,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_managers/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_managers/client.py index 8f97faf463e5..78c42f1e4ceb 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_managers/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_managers/client.py @@ -735,18 +735,22 @@ def abandon_instances_unary( managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed - instance group. This method reduces the targetSize of - the managed instance group by the number of instances - that you abandon. This operation is marked as DONE when - the action is scheduled even if the instances have not - yet been removed from the group. You must separately - verify the status of the abandoning action with the - listmanagedinstances method. If the group is part of a - backend service that has enabled connection draining, it - can take up to 60 seconds after the connection draining - duration has elapsed before the VM instance is removed - or deleted. You can specify a maximum of 1000 instances - with this method per request. + instance group. This method reduces thetargetSize of the + managed instance group by the number of instances that + you abandon. This operation is marked asDONE when the + action is scheduled even if the instances have not yet + been removed from the group. You must separately verify + the status of the abandoning action with + thelistmanagedinstances method. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -787,8 +791,8 @@ def sample_abandon_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -904,18 +908,22 @@ def abandon_instances( managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed - instance group. This method reduces the targetSize of - the managed instance group by the number of instances - that you abandon. This operation is marked as DONE when - the action is scheduled even if the instances have not - yet been removed from the group. You must separately - verify the status of the abandoning action with the - listmanagedinstances method. If the group is part of a - backend service that has enabled connection draining, it - can take up to 60 seconds after the connection draining - duration has elapsed before the VM instance is removed - or deleted. You can specify a maximum of 1000 instances - with this method per request. + instance group. This method reduces thetargetSize of the + managed instance group by the number of instances that + you abandon. This operation is marked asDONE when the + action is scheduled even if the instances have not yet + been removed from the group. You must separately verify + the status of the abandoning action with + thelistmanagedinstances method. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -956,8 +964,8 @@ def sample_abandon_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1090,7 +1098,9 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of managed instance groups and groups them by - zone. To prevent failure, Google recommends that you set the + zone. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1261,9 +1271,9 @@ def sample_apply_updates_to_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. - Should conform to RFC1035. + The name of thezone + where the managed instance group is + located. Should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1424,9 +1434,9 @@ def sample_apply_updates_to_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. - Should conform to RFC1035. + The name of thezone + where the managed instance group is + located. Should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1571,11 +1581,11 @@ def create_instances_unary( ) -> compute.Operation: r"""Creates instances with per-instance configurations in this managed instance group. Instances are created using - the current instance template. The create instances - operation is marked DONE if the createInstances request + the current instance template. Thecreate instances + operation is marked DONE if thecreateInstances request is successful. The underlying actions take additional - time. You must separately verify the status of the - creating or actions with the listmanagedinstances + time. You must separately verify the status of + thecreating or actions with the listmanagedinstances method. .. code-block:: python @@ -1617,9 +1627,9 @@ def sample_create_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone + where the managed instance group is + located. It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1733,11 +1743,11 @@ def create_instances( ) -> extended_operation.ExtendedOperation: r"""Creates instances with per-instance configurations in this managed instance group. Instances are created using - the current instance template. The create instances - operation is marked DONE if the createInstances request + the current instance template. Thecreate instances + operation is marked DONE if thecreateInstances request is successful. The underlying actions take additional - time. You must separately verify the status of the - creating or actions with the listmanagedinstances + time. You must separately verify the status of + thecreating or actions with the listmanagedinstances method. .. code-block:: python @@ -1779,9 +1789,9 @@ def sample_create_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone + where the managed instance group is + located. It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1959,8 +1969,8 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2099,8 +2109,8 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2226,16 +2236,20 @@ def delete_instances_unary( r"""Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a - member. This method reduces the targetSize of the - managed instance group by the number of instances that - you delete. This operation is marked as DONE when the - action is scheduled even if the instances are still - being deleted. You must separately verify the status of - the deleting action with the listmanagedinstances - method. If the group is part of a backend service that - has enabled connection draining, it can take up to 60 - seconds after the connection draining duration has - elapsed before the VM instance is removed or deleted. + member. This method reduces thetargetSize of the managed + instance group by the number of instances that you + delete. This operation is marked as DONE when the action + is scheduled even if the instances are still being + deleted. You must separately verify the status of the + deleting action with thelistmanagedinstances + method. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + You can specify a maximum of 1000 instances with this method per request. @@ -2278,8 +2292,8 @@ def sample_delete_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2394,16 +2408,20 @@ def delete_instances( r"""Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a - member. This method reduces the targetSize of the - managed instance group by the number of instances that - you delete. This operation is marked as DONE when the - action is scheduled even if the instances are still - being deleted. You must separately verify the status of - the deleting action with the listmanagedinstances - method. If the group is part of a backend service that - has enabled connection draining, it can take up to 60 - seconds after the connection draining duration has - elapsed before the VM instance is removed or deleted. + member. This method reduces thetargetSize of the managed + instance group by the number of instances that you + delete. This operation is marked as DONE when the action + is scheduled even if the instances are still being + deleted. You must separately verify the status of the + deleting action with thelistmanagedinstances + method. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + You can specify a maximum of 1000 instances with this method per request. @@ -2446,8 +2464,8 @@ def sample_delete_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2626,9 +2644,10 @@ def sample_delete_per_instance_configs(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone + where the managed instance + group is located. + It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2791,9 +2810,10 @@ def sample_delete_per_instance_configs(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone + where the managed instance + group is located. + It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2976,8 +2996,8 @@ def sample_get(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -3000,14 +3020,17 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InstanceGroupManager: Represents a Managed Instance Group - resource. An instance group is a - collection of VM instances that you can - manage as a single entity. For more - information, read Instance groups. For - zonal Managed Instance Group, use the - instanceGroupManagers resource. For - regional Managed Instance Group, use the - regionInstanceGroupManagers resource. + resource. + An instance group is a collection of VM + instances that you can manage as a + single entity. For more information, + readInstance groups. + + For zonal Managed Instance Group, use + the instanceGroupManagers resource. + + For regional Managed Instance Group, use + theregionInstanceGroupManagers resource. """ # Create or coerce a protobuf request object. @@ -3082,14 +3105,16 @@ def insert_unary( r"""Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created - using the specified instance template. This operation is - marked as DONE when the group is created even if the - instances in the group have not yet been created. You - must separately verify the status of the individual - instances with the listmanagedinstances method. A - managed instance group can have up to 1000 VM instances - per group. Please contact Cloud Support if you need an - increase in this limit. + using the specified instance template. + This operation is marked as DONE when the group is + created even if the instances in the group have not yet + been created. You must separately verify the status of + the individual instances with thelistmanagedinstances + method. + + A managed instance group can have up to 1000 VM + instances per group. Please contact Cloud Support if you + need an increase in this limit. .. code-block:: python @@ -3129,8 +3154,9 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where you want - to create the managed instance group. + The name of the zone + where you want to create the managed + instance group. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -3227,14 +3253,16 @@ def insert( r"""Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created - using the specified instance template. This operation is - marked as DONE when the group is created even if the - instances in the group have not yet been created. You - must separately verify the status of the individual - instances with the listmanagedinstances method. A - managed instance group can have up to 1000 VM instances - per group. Please contact Cloud Support if you need an - increase in this limit. + using the specified instance template. + This operation is marked as DONE when the group is + created even if the instances in the group have not yet + been created. You must separately verify the status of + the individual instances with thelistmanagedinstances + method. + + A managed instance group can have up to 1000 VM + instances per group. Please contact Cloud Support if you + need an increase in this limit. .. code-block:: python @@ -3274,8 +3302,9 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where you want - to create the managed instance group. + The name of the zone + where you want to create the managed + instance group. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -3433,8 +3462,8 @@ def sample_list(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -3576,9 +3605,9 @@ def sample_list_errors(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone where the managed + instance group is located. + It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -3737,8 +3766,8 @@ def sample_list_managed_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -3891,9 +3920,9 @@ def sample_list_per_instance_configs(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone + where the managed instance group is + located. It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -4006,19 +4035,22 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates a managed instance group using the - information that you specify in the request. This - operation is marked as DONE when the group is patched - even if the instances in the group are still in the - process of being patched. You must separately verify the - status of the individual instances with the - listManagedInstances method. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. If you update your group to specify a - new template or instance configuration, it's possible - that your intended specification for each VM in the - group is different from the current state of that VM. To - learn how to apply an updated configuration to the VMs - in a MIG, see Updating instances in a MIG. + information that you specify in the request. + This operation is marked as DONE when the group is + patched even if the instances in the group are still in + the process of being patched. You must separately verify + the status of the individual instances with + thelistManagedInstances + method. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. + + If you update your group to specify a new template or + instance configuration, it's possible that your intended + specification for each VM in the group is different from + the current state of that VM. To learn how to apply an + updated configuration to the VMs in a MIG, seeUpdating + instances in a MIG. .. code-block:: python @@ -4059,8 +4091,9 @@ def sample_patch(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where you want - to create the managed instance group. + The name of the zone where + you want to create the managed instance + group. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -4169,19 +4202,22 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates a managed instance group using the - information that you specify in the request. This - operation is marked as DONE when the group is patched - even if the instances in the group are still in the - process of being patched. You must separately verify the - status of the individual instances with the - listManagedInstances method. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. If you update your group to specify a - new template or instance configuration, it's possible - that your intended specification for each VM in the - group is different from the current state of that VM. To - learn how to apply an updated configuration to the VMs - in a MIG, see Updating instances in a MIG. + information that you specify in the request. + This operation is marked as DONE when the group is + patched even if the instances in the group are still in + the process of being patched. You must separately verify + the status of the individual instances with + thelistManagedInstances + method. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. + + If you update your group to specify a new template or + instance configuration, it's possible that your intended + specification for each VM in the group is different from + the current state of that VM. To learn how to apply an + updated configuration to the VMs in a MIG, seeUpdating + instances in a MIG. .. code-block:: python @@ -4222,8 +4258,9 @@ def sample_patch(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where you want - to create the managed instance group. + The name of the zone where + you want to create the managed instance + group. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -4404,9 +4441,9 @@ def sample_patch_per_instance_configs(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone + where the managed instance group is + located. It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -4571,9 +4608,9 @@ def sample_patch_per_instance_configs(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone + where the managed instance group is + located. It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -4725,12 +4762,16 @@ def recreate_instances_unary( configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each - instance by checking its currentAction field; for more + instance by checking itscurrentAction field; for more information, see Checking the status of managed - instances. If the group is part of a backend service - that has enabled connection draining, it can take up to - 60 seconds after the connection draining duration has - elapsed before the VM instance is removed or deleted. + instances. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + You can specify a maximum of 1000 instances with this method per request. @@ -4773,8 +4814,8 @@ def sample_recreate_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -4894,12 +4935,16 @@ def recreate_instances( configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each - instance by checking its currentAction field; for more + instance by checking itscurrentAction field; for more information, see Checking the status of managed - instances. If the group is part of a backend service - that has enabled connection draining, it can take up to - 60 seconds after the connection draining duration has - elapsed before the VM instance is removed or deleted. + instances. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + You can specify a maximum of 1000 instances with this method per request. @@ -4942,8 +4987,8 @@ def sample_recreate_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -5083,23 +5128,32 @@ def resize_unary( r"""Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the - group deletes instances. The resize operation is marked - DONE when the resize actions are scheduled even if the - group has not yet added or deleted any instances. You - must separately verify the status of the creating or - deleting actions with the listmanagedinstances method. + group deletes instances. The resize operation is + markedDONE when the resize actions are scheduled even if + the group has not yet added or deleted any instances. + You must separately verify the status of the creating or + deleting + actions with thelistmanagedinstances + method. + When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the - selection including: + The status of the VM instance. + - The health of the VM instance. + The instance template - version the VM is based on. + For regional managed - instance groups, the location of the VM instance. This - list is subject to change. If the group is part of a - backend service that has enabled connection draining, it - can take up to 60 seconds after the connection draining - duration has elapsed before the VM instance is removed - or deleted. + selection including: + + + The status of the VM instance. + + The health of the VM instance. + + The instance template version the VM is based on. + + For regional managed instance groups, the location of + the VM instance. + + This list is subject to change. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. .. code-block:: python @@ -5141,8 +5195,8 @@ def sample_resize(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -5254,23 +5308,32 @@ def resize( r"""Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the - group deletes instances. The resize operation is marked - DONE when the resize actions are scheduled even if the - group has not yet added or deleted any instances. You - must separately verify the status of the creating or - deleting actions with the listmanagedinstances method. + group deletes instances. The resize operation is + markedDONE when the resize actions are scheduled even if + the group has not yet added or deleted any instances. + You must separately verify the status of the creating or + deleting + actions with thelistmanagedinstances + method. + When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the - selection including: + The status of the VM instance. + - The health of the VM instance. + The instance template - version the VM is based on. + For regional managed - instance groups, the location of the VM instance. This - list is subject to change. If the group is part of a - backend service that has enabled connection draining, it - can take up to 60 seconds after the connection draining - duration has elapsed before the VM instance is removed - or deleted. + selection including: + + + The status of the VM instance. + + The health of the VM instance. + + The instance template version the VM is based on. + + For regional managed instance groups, the location of + the VM instance. + + This list is subject to change. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. .. code-block:: python @@ -5312,8 +5375,8 @@ def sample_resize(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -5450,22 +5513,26 @@ def resume_instances_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Flags the specified instances in the managed instance - group to be resumed. This method increases the - targetSize and decreases the targetSuspendedSize of the - managed instance group by the number of instances that - you resume. The resumeInstances operation is marked DONE - if the resumeInstances request is successful. The + group to be resumed. This method increases thetargetSize + and decreases the targetSuspendedSize of the managed + instance group by the number of instances that you + resume. The resumeInstances operation is marked DONE if + the resumeInstances request is successful. The underlying actions take additional time. You must - separately verify the status of the RESUMING action with - the listmanagedinstances method. In this request, you - can only specify instances that are suspended. For - example, if an instance was previously suspended using - the suspendInstances method, it can be resumed using the - resumeInstances method. If a health check is attached to - the managed instance group, the specified instances will - be verified as healthy after they are resumed. You can - specify a maximum of 1000 instances with this method per - request. + separately verify the status of theRESUMING action with + thelistmanagedinstances method. + + In this request, you can only specify instances that are + suspended. For example, if an instance was previously + suspended using the suspendInstances method, it can be + resumed using the resumeInstances method. + + If a health check is attached to the managed instance + group, the specified instances will be verified as + healthy after they are resumed. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -5506,8 +5573,8 @@ def sample_resume_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -5620,22 +5687,26 @@ def resume_instances( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Flags the specified instances in the managed instance - group to be resumed. This method increases the - targetSize and decreases the targetSuspendedSize of the - managed instance group by the number of instances that - you resume. The resumeInstances operation is marked DONE - if the resumeInstances request is successful. The + group to be resumed. This method increases thetargetSize + and decreases the targetSuspendedSize of the managed + instance group by the number of instances that you + resume. The resumeInstances operation is marked DONE if + the resumeInstances request is successful. The underlying actions take additional time. You must - separately verify the status of the RESUMING action with - the listmanagedinstances method. In this request, you - can only specify instances that are suspended. For - example, if an instance was previously suspended using - the suspendInstances method, it can be resumed using the - resumeInstances method. If a health check is attached to - the managed instance group, the specified instances will - be verified as healthy after they are resumed. You can - specify a maximum of 1000 instances with this method per - request. + separately verify the status of theRESUMING action with + thelistmanagedinstances method. + + In this request, you can only specify instances that are + suspended. For example, if an instance was previously + suspended using the suspendInstances method, it can be + resumed using the resumeInstances method. + + If a health check is attached to the managed instance + group, the specified instances will be verified as + healthy after they are resumed. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -5676,8 +5747,8 @@ def sample_resume_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -5817,8 +5888,8 @@ def set_instance_template_unary( r"""Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run - recreateInstances, run applyUpdatesToInstances, or set - the group's updatePolicy.type to PROACTIVE. + recreateInstances, runapplyUpdatesToInstances, or set + the group'supdatePolicy.type to PROACTIVE. .. code-block:: python @@ -5859,8 +5930,8 @@ def sample_set_instance_template(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -5980,8 +6051,8 @@ def set_instance_template( r"""Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run - recreateInstances, run applyUpdatesToInstances, or set - the group's updatePolicy.type to PROACTIVE. + recreateInstances, runapplyUpdatesToInstances, or set + the group'supdatePolicy.type to PROACTIVE. .. code-block:: python @@ -6022,8 +6093,8 @@ def sample_set_instance_template(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -6168,7 +6239,7 @@ def set_target_pools_unary( r"""Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the - managed instance group. This operation is marked DONE + managed instance group. This operation is markedDONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the @@ -6213,8 +6284,8 @@ def sample_set_target_pools(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -6329,7 +6400,7 @@ def set_target_pools( r"""Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the - managed instance group. This operation is marked DONE + managed instance group. This operation is markedDONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the @@ -6374,8 +6445,8 @@ def sample_set_target_pools(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -6513,22 +6584,26 @@ def start_instances_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Flags the specified instances in the managed instance - group to be started. This method increases the - targetSize and decreases the targetStoppedSize of the - managed instance group by the number of instances that - you start. The startInstances operation is marked DONE - if the startInstances request is successful. The - underlying actions take additional time. You must - separately verify the status of the STARTING action with - the listmanagedinstances method. In this request, you - can only specify instances that are stopped. For - example, if an instance was previously stopped using the - stopInstances method, it can be started using the - startInstances method. If a health check is attached to - the managed instance group, the specified instances will - be verified as healthy after they are started. You can - specify a maximum of 1000 instances with this method per - request. + group to be started. This method increases thetargetSize + and decreases the targetStoppedSize of the managed + instance group by the number of instances that you + start. The startInstances operation is marked DONE if + the startInstances request is successful. The underlying + actions take additional time. You must separately verify + the status of theSTARTING action with + thelistmanagedinstances method. + + In this request, you can only specify instances that are + stopped. For example, if an instance was previously + stopped using the stopInstances method, it can be + started using the startInstances method. + + If a health check is attached to the managed instance + group, the specified instances will be verified as + healthy after they are started. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -6569,8 +6644,8 @@ def sample_start_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -6683,22 +6758,26 @@ def start_instances( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Flags the specified instances in the managed instance - group to be started. This method increases the - targetSize and decreases the targetStoppedSize of the - managed instance group by the number of instances that - you start. The startInstances operation is marked DONE - if the startInstances request is successful. The - underlying actions take additional time. You must - separately verify the status of the STARTING action with - the listmanagedinstances method. In this request, you - can only specify instances that are stopped. For - example, if an instance was previously stopped using the - stopInstances method, it can be started using the - startInstances method. If a health check is attached to - the managed instance group, the specified instances will - be verified as healthy after they are started. You can - specify a maximum of 1000 instances with this method per - request. + group to be started. This method increases thetargetSize + and decreases the targetStoppedSize of the managed + instance group by the number of instances that you + start. The startInstances operation is marked DONE if + the startInstances request is successful. The underlying + actions take additional time. You must separately verify + the status of theSTARTING action with + thelistmanagedinstances method. + + In this request, you can only specify instances that are + stopped. For example, if an instance was previously + stopped using the stopInstances method, it can be + started using the startInstances method. + + If a health check is attached to the managed instance + group, the specified instances will be verified as + healthy after they are started. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -6739,8 +6818,8 @@ def sample_start_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -6880,27 +6959,36 @@ def stop_instances_unary( r"""Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method - reduces the targetSize and increases the + reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances - operation is marked DONE if the stopInstances request is - successful. The underlying actions take additional time. - You must separately verify the status of the STOPPING - action with the listmanagedinstances method. If the - standbyPolicy.initialDelaySec field is set, the group - delays stopping the instances until initialDelaySec have - passed from instance.creationTimestamp (that is, when - the instance was created). This delay gives your - application time to set itself up and initialize on the - instance. If more than initialDelaySec seconds have - passed since instance.creationTimestamp when this method - is called, there will be zero delay. If the group is - part of a backend service that has enabled connection - draining, it can take up to 60 seconds after the - connection draining duration has elapsed before the VM - instance is stopped. Stopped instances can be started - using the startInstances method. You can specify a - maximum of 1000 instances with this method per request. + operation is marked DONE if + the stopInstances request is successful. The underlying + actions take additional time. You must separately verify + the status of theSTOPPING action with + thelistmanagedinstances method. + + If the standbyPolicy.initialDelaySec field is set, the + group delays stopping the instances until + initialDelaySec have passed from + instance.creationTimestamp (that is, when the instance + was created). This delay gives your application time to + set itself up and initialize on the instance. If more + thaninitialDelaySec seconds have passed + sinceinstance.creationTimestamp when this method is + called, there will be zero delay. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is stopped. + + Stopped instances can be started using the + startInstances method. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -6941,8 +7029,8 @@ def sample_stop_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -7057,27 +7145,36 @@ def stop_instances( r"""Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method - reduces the targetSize and increases the + reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances - operation is marked DONE if the stopInstances request is - successful. The underlying actions take additional time. - You must separately verify the status of the STOPPING - action with the listmanagedinstances method. If the - standbyPolicy.initialDelaySec field is set, the group - delays stopping the instances until initialDelaySec have - passed from instance.creationTimestamp (that is, when - the instance was created). This delay gives your - application time to set itself up and initialize on the - instance. If more than initialDelaySec seconds have - passed since instance.creationTimestamp when this method - is called, there will be zero delay. If the group is - part of a backend service that has enabled connection - draining, it can take up to 60 seconds after the - connection draining duration has elapsed before the VM - instance is stopped. Stopped instances can be started - using the startInstances method. You can specify a - maximum of 1000 instances with this method per request. + operation is marked DONE if + the stopInstances request is successful. The underlying + actions take additional time. You must separately verify + the status of theSTOPPING action with + thelistmanagedinstances method. + + If the standbyPolicy.initialDelaySec field is set, the + group delays stopping the instances until + initialDelaySec have passed from + instance.creationTimestamp (that is, when the instance + was created). This delay gives your application time to + set itself up and initialize on the instance. If more + thaninitialDelaySec seconds have passed + sinceinstance.creationTimestamp when this method is + called, there will be zero delay. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is stopped. + + Stopped instances can be started using the + startInstances method. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -7118,8 +7215,8 @@ def sample_stop_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -7259,29 +7356,36 @@ def suspend_instances_unary( r"""Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method - reduces the targetSize and increases the + reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify - the status of the SUSPENDING action with the - listmanagedinstances method. If the - standbyPolicy.initialDelaySec field is set, the group - delays suspension of the instances until initialDelaySec - have passed from instance.creationTimestamp (that is, - when the instance was created). This delay gives your - application time to set itself up and initialize on the - instance. If more than initialDelaySec seconds have - passed since instance.creationTimestamp when this method - is called, there will be zero delay. If the group is - part of a backend service that has enabled connection - draining, it can take up to 60 seconds after the - connection draining duration has elapsed before the VM - instance is suspended. Suspended instances can be - resumed using the resumeInstances method. You can - specify a maximum of 1000 instances with this method per - request. + the status of theSUSPENDING action with + thelistmanagedinstances method. + + If the standbyPolicy.initialDelaySec field is set, the + group delays suspension of the instances until + initialDelaySec have passed from + instance.creationTimestamp (that is, when the instance + was created). This delay gives your application time to + set itself up and initialize on the instance. If more + thaninitialDelaySec seconds have passed + sinceinstance.creationTimestamp when this method is + called, there will be zero delay. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is suspended. + + Suspended instances can be resumed using the + resumeInstances method. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -7322,8 +7426,8 @@ def sample_suspend_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -7438,29 +7542,36 @@ def suspend_instances( r"""Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method - reduces the targetSize and increases the + reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify - the status of the SUSPENDING action with the - listmanagedinstances method. If the - standbyPolicy.initialDelaySec field is set, the group - delays suspension of the instances until initialDelaySec - have passed from instance.creationTimestamp (that is, - when the instance was created). This delay gives your - application time to set itself up and initialize on the - instance. If more than initialDelaySec seconds have - passed since instance.creationTimestamp when this method - is called, there will be zero delay. If the group is - part of a backend service that has enabled connection - draining, it can take up to 60 seconds after the - connection draining duration has elapsed before the VM - instance is suspended. Suspended instances can be - resumed using the resumeInstances method. You can - specify a maximum of 1000 instances with this method per - request. + the status of theSUSPENDING action with + thelistmanagedinstances method. + + If the standbyPolicy.initialDelaySec field is set, the + group delays suspension of the instances until + initialDelaySec have passed from + instance.creationTimestamp (that is, when the instance + was created). This delay gives your application time to + set itself up and initialize on the instance. If more + thaninitialDelaySec seconds have passed + sinceinstance.creationTimestamp when this method is + called, there will be zero delay. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is suspended. + + Suspended instances can be resumed using the + resumeInstances method. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -7501,8 +7612,8 @@ def sample_suspend_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. + The name of thezone where the managed + instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -7683,9 +7794,9 @@ def sample_update_per_instance_configs(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone + where the managed instance group is + located. It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -7850,9 +7961,9 @@ def sample_update_per_instance_configs(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - managed instance group is located. It - should conform to RFC1035. + The name of thezone + where the managed instance group is + located. It should conform to RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py index 31faef93eb67..bede0b9e54ed 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_group_managers/transports/rest.py @@ -1580,21 +1580,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1904,21 +1915,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2076,21 +2098,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2249,21 +2282,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2414,21 +2458,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2589,21 +2644,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2760,14 +2826,17 @@ def __call__( Returns: ~.compute.InstanceGroupManager: Represents a Managed Instance Group - resource. An instance group is a - collection of VM instances that you can - manage as a single entity. For more - information, read Instance groups. For - zonal Managed Instance Group, use the - instanceGroupManagers resource. For - regional Managed Instance Group, use the - regionInstanceGroupManagers resource. + resource. + An instance group is a collection of VM + instances that you can manage as a + single entity. For more information, + readInstance groups. + + For zonal Managed Instance Group, use + the instanceGroupManagers resource. + + For regional Managed Instance Group, use + theregionInstanceGroupManagers resource. """ @@ -2916,21 +2985,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3689,21 +3769,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3860,21 +3951,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4032,21 +4134,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4205,21 +4318,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4370,21 +4494,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4544,21 +4679,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4718,21 +4864,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4890,21 +5047,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -5060,21 +5228,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -5230,21 +5409,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -5405,21 +5595,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_groups/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_groups/client.py index 99cec30bfd1c..bc2ea4182863 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_groups/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_groups/client.py @@ -723,9 +723,9 @@ def add_instances_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Adds a list of instances to the specified instance - group. All of the instances in the instance group must - be in the same network/subnetwork. Read Adding instances - for more information. + group. All of the instances in the instance group must + be in the same network/subnetwork. Read + Adding instances for more information. .. code-block:: python @@ -766,8 +766,8 @@ def sample_add_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -878,9 +878,9 @@ def add_instances( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Adds a list of instances to the specified instance - group. All of the instances in the instance group must - be in the same network/subnetwork. Read Adding instances - for more information. + group. All of the instances in the instance group must + be in the same network/subnetwork. Read + Adding instances for more information. .. code-block:: python @@ -921,8 +921,8 @@ def sample_add_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1054,8 +1054,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves the list of instance groups and sorts them by zone. To - prevent failure, Google recommends that you set the + r"""Retrieves the list of instance groups and sorts them by zone. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1180,8 +1181,8 @@ def delete_unary( ) -> compute.Operation: r"""Deletes the specified instance group. The instances in the group are not deleted. Note that instance group - must not belong to a backend service. Read Deleting an - instance group for more information. + must not belong to a backend service. Read + Deleting an instance group for more information. .. code-block:: python @@ -1222,8 +1223,8 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1318,8 +1319,8 @@ def delete( ) -> extended_operation.ExtendedOperation: r"""Deletes the specified instance group. The instances in the group are not deleted. Note that instance group - must not belong to a backend service. Read Deleting an - instance group for more information. + must not belong to a backend service. Read + Deleting an instance group for more information. .. code-block:: python @@ -1360,8 +1361,8 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1481,8 +1482,10 @@ def get( ) -> compute.InstanceGroup: r"""Returns the specified zonal instance group. Get a list of available zonal instance groups by making a - list() request. For managed instance groups, use the - instanceGroupManagers or regionInstanceGroupManagers + list() request. + + For managed instance groups, use + theinstanceGroupManagers or regionInstanceGroupManagers methods instead. .. code-block:: python @@ -1524,8 +1527,8 @@ def sample_get(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1546,19 +1549,28 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InstanceGroup: Represents an Instance Group - resource. Instance Groups can be used to - configure a target for load balancing. + resource. + Instance Groups can be used to configure + a target forload balancing. + Instance groups can either be managed or - unmanaged. To create managed instance - groups, use the instanceGroupManager or - regionInstanceGroupManager resource - instead. Use zonal unmanaged instance - groups if you need to apply load - balancing to groups of heterogeneous - instances or if you need to manage the - instances yourself. You cannot create - regional unmanaged instance groups. For - more information, read Instance groups. + unmanaged. + + To create + managed instance groups, use the + instanceGroupManager + orregionInstanceGroupManager resource + instead. + + Use zonal unmanaged instance groups if + you need to applyload balancing to + groups of heterogeneous instances or if + you need to manage the instances + yourself. You cannot create regional + unmanaged instance groups. + + For more information, readInstance + groups. """ # Create or coerce a protobuf request object. @@ -1669,8 +1681,9 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where you want - to create the instance group. + The name of the zone + where you want to create the instance + group. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1801,8 +1814,9 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where you want - to create the instance group. + The name of the zone + where you want to create the instance + group. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1917,9 +1931,11 @@ def list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListPager: r"""Retrieves the list of zonal instance group resources - contained within the specified zone. For managed - instance groups, use the instanceGroupManagers or - regionInstanceGroupManagers methods instead. + contained within the specified zone. + + For managed instance groups, use + theinstanceGroupManagers or regionInstanceGroupManagers + methods instead. .. code-block:: python @@ -1960,8 +1976,8 @@ def sample_list(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of thezone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2108,8 +2124,8 @@ def sample_list_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2235,8 +2251,10 @@ def remove_instances_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Removes one or more instances from the specified - instance group, but does not delete those instances. If - the group is part of a backend service that has enabled + instance group, but does not delete those instances. + + If the group is part of a backend + service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted. @@ -2280,8 +2298,8 @@ def sample_remove_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2394,8 +2412,10 @@ def remove_instances( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Removes one or more instances from the specified - instance group, but does not delete those instances. If - the group is part of a backend service that has enabled + instance group, but does not delete those instances. + + If the group is part of a backend + service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted. @@ -2439,8 +2459,8 @@ def sample_remove_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2619,8 +2639,8 @@ def sample_set_named_ports(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2774,8 +2794,8 @@ def sample_set_named_ports(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - instance group is located. + The name of the zone + where the instance group is located. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_groups/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_groups/transports/rest.py index 0de265cb77a9..4012f6eef8e5 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_groups/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_groups/transports/rest.py @@ -784,21 +784,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1098,21 +1109,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1264,19 +1286,28 @@ def __call__( Returns: ~.compute.InstanceGroup: Represents an Instance Group - resource. Instance Groups can be used to - configure a target for load balancing. + resource. + Instance Groups can be used to configure + a target forload balancing. + Instance groups can either be managed or - unmanaged. To create managed instance - groups, use the instanceGroupManager or - regionInstanceGroupManager resource - instead. Use zonal unmanaged instance - groups if you need to apply load - balancing to groups of heterogeneous - instances or if you need to manage the - instances yourself. You cannot create - regional unmanaged instance groups. For - more information, read Instance groups. + unmanaged. + + To create + managed instance groups, use the + instanceGroupManager + orregionInstanceGroupManager resource + instead. + + Use zonal unmanaged instance groups if + you need to applyload balancing to + groups of heterogeneous instances or if + you need to manage the instances + yourself. You cannot create regional + unmanaged instance groups. + + For more information, readInstance + groups. """ @@ -1422,21 +1453,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1895,21 +1937,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2066,21 +2119,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_settings_service/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_settings_service/transports/rest.py index d148697e403b..b2e028d307cf 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_settings_service/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_settings_service/transports/rest.py @@ -485,21 +485,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_templates/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_templates/client.py index 7d582d05e4fa..3897d644f03b 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_templates/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_templates/client.py @@ -725,8 +725,9 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all InstanceTemplates resources, regional - and global, available to the specified project. To prevent - failure, Google recommends that you set the + and global, available to the specified project. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1182,19 +1183,25 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InstanceTemplate: - Represents an Instance Template resource. Google Compute - Engine has two Instance Template resources: \* - [Global](/compute/docs/reference/rest/v1/instanceTemplates) - \* - [Regional](/compute/docs/reference/rest/v1/regionInstanceTemplates) - You can reuse a global instance template in different - regions whereas you can use a regional instance template - in a specified region only. If you want to reduce - cross-region dependency or achieve data residency, use a - regional instance template. To create VMs, managed - instance groups, and reservations, you can use either - global or regional instance templates. For more - information, read Instance Templates. + Represents an Instance Template resource. + + Google Compute Engine has two Instance Template + resources: + + - [Global](/compute/docs/reference/rest/v1/instanceTemplates) + - [Regional](/compute/docs/reference/rest/v1/regionInstanceTemplates) + + You can reuse a global instance template in different + regions whereas you can use a regional instance + template in a specified region only. If you want to + reduce cross-region dependency or achieve data + residency, use a regional instance template. + + To create VMs, managed instance groups, and + reservations, you can use either global or regional + instance templates. + + For more information, readInstance Templates. """ # Create or coerce a protobuf request object. @@ -1319,28 +1326,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1860,28 +1875,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_templates/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_templates/transports/rest.py index 5e845720cada..d38e2f2409e7 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_templates/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instance_templates/transports/rest.py @@ -820,21 +820,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -985,19 +996,25 @@ def __call__( Returns: ~.compute.InstanceTemplate: - Represents an Instance Template resource. Google Compute - Engine has two Instance Template resources: \* - `Global `__ - \* - `Regional `__ + Represents an Instance Template resource. + + Google Compute Engine has two Instance Template + resources: + + - `Global `__ + - `Regional `__ + You can reuse a global instance template in different regions whereas you can use a regional instance template in a specified region only. If you want to reduce cross-region dependency or achieve data residency, use a - regional instance template. To create VMs, managed - instance groups, and reservations, you can use either - global or regional instance templates. For more - information, read Instance Templates. + regional instance template. + + To create VMs, managed instance groups, and + reservations, you can use either global or regional + instance templates. + + For more information, readInstance Templates. """ @@ -1147,26 +1164,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1316,21 +1384,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1640,26 +1719,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instances/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instances/client.py index f9a26cdc9d99..7c0d5e20e928 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instances/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instances/client.py @@ -1708,11 +1708,14 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of all of the instances in your - project across all regions and zones. The performance of this - method degrades when a filter is specified on a project that has - a very large number of instances. To prevent failure, Google - recommends that you set the ``returnPartialSuccess`` parameter - to ``true``. + project across all regions and zones. + + The performance of this method degrades when a filter is + specified on a project that has a very large number of + instances. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1838,8 +1841,8 @@ def attach_disk_unary( r"""Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the - same time. For more information, read Adding a - persistent disk to your instance. + same time. For more information, readAdding a persistent + disk to your instance. .. code-block:: python @@ -1983,8 +1986,8 @@ def attach_disk( r"""Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the - same time. For more information, read Adding a - persistent disk to your instance. + same time. For more information, readAdding a persistent + disk to your instance. .. code-block:: python @@ -2152,8 +2155,8 @@ def bulk_insert_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Creates multiple instances. Count specifies the - number of instances to create. For more information, see - About bulk creation of VMs. + number of instances to create. For more information, + seeAbout bulk creation of VMs. .. code-block:: python @@ -2289,8 +2292,8 @@ def bulk_insert( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Creates multiple instances. Count specifies the - number of instances to create. For more information, see - About bulk creation of VMs. + number of instances to create. For more information, + seeAbout bulk creation of VMs. .. code-block:: python @@ -2449,7 +2452,7 @@ def delete_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Deletes the specified Instance resource. For more - information, see Deleting an instance. + information, seeDeleting an instance. .. code-block:: python @@ -2585,7 +2588,7 @@ def delete( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Deletes the specified Instance resource. For more - information, see Deleting an instance. + information, seeDeleting an instance. .. code-block:: python @@ -3086,10 +3089,12 @@ def delete_network_interface_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Deletes one dynamic network interface from an active instance. - InstancesDeleteNetworkInterfaceRequest indicates: - instance - from which to delete, using project+zone+resource_id fields; - - dynamic network interface to be deleted, using - network_interface_name field; + InstancesDeleteNetworkInterfaceRequest indicates: + + - instance from which to delete, using project+zone+resource_id + fields; + - dynamic network interface to be deleted, using + network_interface_name field; .. code-block:: python @@ -3240,10 +3245,12 @@ def delete_network_interface( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Deletes one dynamic network interface from an active instance. - InstancesDeleteNetworkInterfaceRequest indicates: - instance - from which to delete, using project+zone+resource_id fields; - - dynamic network interface to be deleted, using - network_interface_name field; + InstancesDeleteNetworkInterfaceRequest indicates: + + - instance from which to delete, using project+zone+resource_id + fields; + - dynamic network interface to be deleted, using + network_interface_name field; .. code-block:: python @@ -3795,10 +3802,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Instance: - Represents an Instance resource. An - instance is a virtual machine that is + Represents an Instance resource. + + An instance is a virtual machine that is hosted on Google Cloud Platform. For - more information, read Virtual Machine + more information, readVirtual Machine Instances. """ @@ -4216,28 +4224,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -5001,8 +5017,8 @@ def list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListPager: - r"""Retrieves the list of instances contained within the - specified zone. + r"""Retrieves the list of instances contained within + the specified zone. .. code-block:: python @@ -5144,8 +5160,8 @@ def list_referrers( instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. - For more information, read Viewing referrers to VM - instances. + For more information, readViewing + referrers to VM instances. .. code-block:: python @@ -6262,7 +6278,7 @@ def reset_unary( ) -> compute.Operation: r"""Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more - information, see Resetting an instance. + information, seeResetting an instance. .. code-block:: python @@ -6399,7 +6415,7 @@ def reset( ) -> extended_operation.ExtendedOperation: r"""Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more - information, see Resetting an instance. + information, seeResetting an instance. .. code-block:: python @@ -6559,8 +6575,8 @@ def resume_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Resumes an instance that was suspended using the - instances().suspend method. + r"""Resumes an instance that was suspended using + theinstances().suspend method. .. code-block:: python @@ -6695,8 +6711,8 @@ def resume( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Resumes an instance that was suspended using the - instances().suspend method. + r"""Resumes an instance that was suspended using + theinstances().suspend method. .. code-block:: python @@ -7707,28 +7723,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -7805,8 +7829,8 @@ def set_labels_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Sets labels on an instance. To learn more about - labels, read the Labeling Resources documentation. + r"""Sets labels on an instance. To learn more about + labels, read theLabeling Resources documentation. .. code-block:: python @@ -7958,8 +7982,8 @@ def set_labels( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Sets labels on an instance. To learn more about - labels, read the Labeling Resources documentation. + r"""Sets labels on an instance. To learn more about + labels, read theLabeling Resources documentation. .. code-block:: python @@ -9116,9 +9140,9 @@ def set_min_cpu_platform_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Changes the minimum CPU platform that this instance - should use. This method can only be called on a stopped - instance. For more information, read Specifying a - Minimum CPU Platform. + should use. This method can only + be called on a stopped instance. For more information, + readSpecifying a Minimum CPU Platform. .. code-block:: python @@ -9271,9 +9295,9 @@ def set_min_cpu_platform( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Changes the minimum CPU platform that this instance - should use. This method can only be called on a stopped - instance. For more information, read Specifying a - Minimum CPU Platform. + should use. This method can only + be called on a stopped instance. For more information, + readSpecifying a Minimum CPU Platform. .. code-block:: python @@ -9774,11 +9798,11 @@ def set_scheduling_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets an instance's scheduling options. You can only call this - method on a stopped instance, that is, a VM instance that is in - a ``TERMINATED`` state. See Instance Life Cycle for more + method on astopped instance, that is, a VM instance that is in a + ``TERMINATED`` state. SeeInstance Life Cycle for more information on the possible instance states. For more - information about setting scheduling options for a VM, see Set - VM host maintenance policy. + information about setting scheduling options for a VM, seeSet VM + host maintenance policy. .. code-block:: python @@ -9920,11 +9944,11 @@ def set_scheduling( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets an instance's scheduling options. You can only call this - method on a stopped instance, that is, a VM instance that is in - a ``TERMINATED`` state. See Instance Life Cycle for more + method on astopped instance, that is, a VM instance that is in a + ``TERMINATED`` state. SeeInstance Life Cycle for more information on the possible instance states. For more - information about setting scheduling options for a VM, see Set - VM host maintenance policy. + information about setting scheduling options for a VM, seeSet VM + host maintenance policy. .. code-block:: python @@ -10093,7 +10117,7 @@ def set_security_policy_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the Google Cloud Armor security policy for the - specified instance. For more information, see Google + specified instance. For more information, seeGoogle Cloud Armor Overview .. code-block:: python @@ -10248,7 +10272,7 @@ def set_security_policy( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the Google Cloud Armor security policy for the - specified instance. For more information, see Google + specified instance. For more information, seeGoogle Cloud Armor Overview .. code-block:: python @@ -10428,8 +10452,8 @@ def set_service_account_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the service account on the instance. For more - information, read Changing the service account and - access scopes for an instance. + information, readChanging + the service account and access scopes for an instance. .. code-block:: python @@ -10582,8 +10606,8 @@ def set_service_account( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the service account on the instance. For more - information, read Changing the service account and - access scopes for an instance. + information, readChanging + the service account and access scopes for an instance. .. code-block:: python @@ -11105,8 +11129,9 @@ def set_tags_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Sets network tags for the specified instance to the - data included in the request. + r"""Sets network tags + for the specified instance to the data included in the + request. .. code-block:: python @@ -11249,8 +11274,9 @@ def set_tags( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Sets network tags for the specified instance to the - data included in the request. + r"""Sets network tags + for the specified instance to the data included in the + request. .. code-block:: python @@ -11722,9 +11748,9 @@ def start_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Starts an instance that was stopped using the - instances().stop method. For more information, see - Restart an instance. + r"""Starts an instance that was stopped using + theinstances().stop method. For more information, + seeRestart an instance. .. code-block:: python @@ -11859,9 +11885,9 @@ def start( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Starts an instance that was stopped using the - instances().stop method. For more information, see - Restart an instance. + r"""Starts an instance that was stopped using + theinstances().stop method. For more information, + seeRestart an instance. .. code-block:: python @@ -12026,9 +12052,9 @@ def start_with_encryption_key_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Starts an instance that was stopped using the - instances().stop method. For more information, see - Restart an instance. + r"""Starts an instance that was stopped using + theinstances().stop method. For more information, + seeRestart an instance. .. code-block:: python @@ -12184,9 +12210,9 @@ def start_with_encryption_key( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Starts an instance that was stopped using the - instances().stop method. For more information, see - Restart an instance. + r"""Starts an instance that was stopped using + theinstances().stop method. For more information, + seeRestart an instance. .. code-block:: python @@ -12368,7 +12394,7 @@ def stop_unary( they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For - more information, see Stopping an instance. + more information, seeStopping an instance. .. code-block:: python @@ -12508,7 +12534,7 @@ def stop( they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For - more information, see Stopping an instance. + more information, seeStopping an instance. .. code-block:: python @@ -12675,7 +12701,8 @@ def suspend_unary( charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more - information, see Suspending and resuming an instance. + information, see + Suspending and resuming an instance. .. code-block:: python @@ -12818,7 +12845,8 @@ def suspend( charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more - information, see Suspending and resuming an instance. + information, see + Suspending and resuming an instance. .. code-block:: python @@ -13449,8 +13477,9 @@ def update_access_config_unary( ) -> compute.Operation: r"""Updates the specified access config from an instance's network interface with the data included in - the request. This method supports PATCH semantics and - uses the JSON merge patch format and processing rules. + the request. This method supportsPATCH semantics and + uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -13612,8 +13641,9 @@ def update_access_config( ) -> extended_operation.ExtendedOperation: r"""Updates the specified access config from an instance's network interface with the data included in - the request. This method supports PATCH semantics and - uses the JSON merge patch format and processing rules. + the request. This method supportsPATCH semantics and + uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -13799,7 +13829,7 @@ def update_display_device_unary( ) -> compute.Operation: r"""Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This - method supports PATCH semantics and uses the JSON merge + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python @@ -13947,7 +13977,7 @@ def update_display_device( ) -> extended_operation.ExtendedOperation: r"""Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This - method supports PATCH semantics and uses the JSON merge + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python @@ -14123,9 +14153,9 @@ def update_network_interface_unary( can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP - ranges. See Migrating a VM between networks for - instructions on migrating an interface. This method - follows PATCH semantics. + ranges. See Migrating + a VM between networks for instructions on migrating an + interface. This method follows PATCH semantics. .. code-block:: python @@ -14289,9 +14319,9 @@ def update_network_interface( can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP - ranges. See Migrating a VM between networks for - instructions on migrating an interface. This method - follows PATCH semantics. + ranges. See Migrating + a VM between networks for instructions on migrating an + interface. This method follows PATCH semantics. .. code-block:: python @@ -14479,7 +14509,7 @@ def update_shielded_instance_config_unary( ) -> compute.Operation: r"""Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This - method supports PATCH semantics and uses the JSON merge + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python @@ -14633,7 +14663,7 @@ def update_shielded_instance_config( ) -> extended_operation.ExtendedOperation: r"""Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This - method supports PATCH semantics and uses the JSON merge + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instances/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instances/transports/rest.py index de3c9568b01d..43a9c474af51 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instances/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instances/transports/rest.py @@ -3046,21 +3046,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3221,21 +3232,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3392,21 +3414,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3711,21 +3744,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3882,21 +3926,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4052,21 +4107,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4217,21 +4283,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4382,21 +4459,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4545,21 +4633,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4709,10 +4808,11 @@ def __call__( Returns: ~.compute.Instance: - Represents an Instance resource. An - instance is a virtual machine that is + Represents an Instance resource. + + An instance is a virtual machine that is hosted on Google Cloud Platform. For - more information, read Virtual Machine + more information, readVirtual Machine Instances. """ @@ -5157,26 +5257,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -5782,21 +5933,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -6245,21 +6407,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -6411,21 +6584,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -6582,21 +6766,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -6750,21 +6945,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -6913,21 +7119,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -7233,21 +7450,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -7398,21 +7626,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -7565,26 +7804,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -7741,21 +8031,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -7914,21 +8215,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -8085,21 +8397,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -8260,21 +8583,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -8433,21 +8767,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -8602,21 +8947,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -8773,21 +9129,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -8948,21 +9315,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -9119,21 +9497,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -9292,21 +9681,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -9467,21 +9867,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -9638,21 +10049,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -9801,21 +10223,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -9967,21 +10400,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -10134,21 +10578,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -10293,21 +10748,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -10611,21 +11077,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -10782,21 +11259,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -10953,21 +11441,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -11124,21 +11623,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -11296,21 +11806,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instant_snapshots/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instant_snapshots/client.py index 60247298e93c..20d1544b71cc 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instant_snapshots/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instant_snapshots/client.py @@ -722,8 +722,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of instantSnapshots. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of instantSnapshots. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -852,7 +853,9 @@ def delete_unary( If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding - instantSnapshot. For more information, see Deleting + instantSnapshot. + + For more information, seeDeleting instantSnapshots. .. code-block:: python @@ -994,7 +997,9 @@ def delete( If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding - instantSnapshot. For more information, see Deleting + instantSnapshot. + + For more information, seeDeleting instantSnapshots. .. code-block:: python @@ -1221,8 +1226,9 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InstantSnapshot: Represents a InstantSnapshot - resource. You can use instant snapshots - to create disk rollback points quickly.. + resource. + You can use instant snapshots to create + disk rollback points quickly.. """ # Create or coerce a protobuf request object. @@ -1359,28 +1365,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1945,28 +1959,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/instant_snapshots/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/instant_snapshots/transports/rest.py index d9a6d11d1375..ae4dafa78ca6 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/instant_snapshots/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/instant_snapshots/transports/rest.py @@ -871,21 +871,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1037,8 +1048,9 @@ def __call__( Returns: ~.compute.InstantSnapshot: Represents a InstantSnapshot - resource. You can use instant snapshots - to create disk rollback points quickly.. + resource. + You can use instant snapshots to create + disk rollback points quickly.. """ @@ -1188,26 +1200,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1357,21 +1420,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1681,26 +1755,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1855,21 +1980,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachment_groups/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachment_groups/client.py index 22b29aded7e1..f1e341722170 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachment_groups/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachment_groups/client.py @@ -1212,28 +1212,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1835,7 +1843,7 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified InterconnectAttachmentGroup resource with the data included in the request. This - method supports PATCH semantics and uses JSON merge + method supports PATCH semantics and usesJSON merge patch format and processing rules. .. code-block:: python @@ -1983,7 +1991,7 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified InterconnectAttachmentGroup resource with the data included in the request. This - method supports PATCH semantics and uses JSON merge + method supports PATCH semantics and usesJSON merge patch format and processing rules. .. code-block:: python @@ -2215,28 +2223,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachment_groups/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachment_groups/transports/rest.py index 79ee367aafc9..3c9ee15df0f4 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachment_groups/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachment_groups/transports/rest.py @@ -739,21 +739,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1055,26 +1066,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1386,21 +1448,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1705,21 +1778,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1876,26 +1960,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachments/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachments/client.py index 0b5eb19a9e73..70f04bef558f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachments/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachments/client.py @@ -728,8 +728,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of interconnect attachments. To - prevent failure, Google recommends that you set the + r"""Retrieves an aggregated list of interconnect attachments. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1212,13 +1213,13 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InterconnectAttachment: Represents an Interconnect Attachment - (VLAN) resource. You can use - Interconnect attachments (VLANS) to - connect your Virtual Private Cloud - networks to your on-premises networks - through an Interconnect. For more - information, read Creating VLAN - Attachments. + (VLAN) resource. + You can use Interconnect attachments + (VLANS) to connect your Virtual Private + Cloud networks to your on-premises + networks through an Interconnect. For + more information, read + Creating VLAN Attachments. """ # Create or coerce a protobuf request object. @@ -1644,9 +1645,11 @@ def sample_list(): google.cloud.compute_v1.services.interconnect_attachments.pagers.ListPager: Response to the list request, and contains a list of interconnect - attachments. Iterating over this object - will yield results and resolve - additional pages automatically. + attachments. + + Iterating over this object will yield + results and resolve additional pages + automatically. """ # Create or coerce a protobuf request object. @@ -1730,9 +1733,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates the specified interconnect attachment with - the data included in the request. This method supports - PATCH semantics and uses the JSON merge patch format and - processing rules. + the data included in the request. This method + supportsPATCH semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -1887,9 +1890,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates the specified interconnect attachment with - the data included in the request. This method supports - PATCH semantics and uses the JSON merge patch format and - processing rules. + the data included in the request. This method + supportsPATCH semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -2069,8 +2072,8 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on an InterconnectAttachment. To - learn more about labels, read the Labeling Resources - documentation. + learn more about labels, read the Labeling + Resources documentation. .. code-block:: python @@ -2223,8 +2226,8 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on an InterconnectAttachment. To - learn more about labels, read the Labeling Resources - documentation. + learn more about labels, read the Labeling + Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py index 4048bdb22927..0f963806e893 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_attachments/transports/rest.py @@ -771,21 +771,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -936,13 +947,13 @@ def __call__( Returns: ~.compute.InterconnectAttachment: Represents an Interconnect Attachment - (VLAN) resource. You can use - Interconnect attachments (VLANS) to - connect your Virtual Private Cloud - networks to your on-premises networks - through an Interconnect. For more - information, read Creating VLAN - Attachments. + (VLAN) resource. + You can use Interconnect attachments + (VLANS) to connect your Virtual Private + Cloud networks to your on-premises + networks through an Interconnect. For + more information, read + Creating VLAN Attachments. """ @@ -1089,21 +1100,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1409,21 +1431,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1579,21 +1612,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_groups/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_groups/client.py index 0aa62ce4e07e..398229feb932 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_groups/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_groups/client.py @@ -1487,28 +1487,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2084,8 +2092,8 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified InterconnectGroup resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -2218,8 +2226,8 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified InterconnectGroup resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -2440,28 +2448,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_groups/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_groups/transports/rest.py index 3ff512bfa142..4ca365e9fb81 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_groups/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_groups/transports/rest.py @@ -785,21 +785,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -953,21 +964,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1271,26 +1293,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1597,21 +1670,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1920,21 +2004,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2097,26 +2192,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_locations/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_locations/client.py index c42f6fae2d29..da64a0e7891f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_locations/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_locations/client.py @@ -781,12 +781,12 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InterconnectLocation: Represents an Interconnect Attachment - (VLAN) Location resource. You can use - this resource to find location details - about an Interconnect attachment (VLAN). - For more information about interconnect - attachments, read Creating VLAN - Attachments. + (VLAN) Location resource. + You can use this resource to find + location details about an Interconnect + attachment (VLAN). For more information + about interconnect attachments, read + Creating VLAN Attachments. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py index 960785b71861..e6f73a9f2ae1 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_locations/transports/rest.py @@ -339,12 +339,12 @@ def __call__( Returns: ~.compute.InterconnectLocation: Represents an Interconnect Attachment - (VLAN) Location resource. You can use - this resource to find location details - about an Interconnect attachment (VLAN). - For more information about interconnect - attachments, read Creating VLAN - Attachments. + (VLAN) Location resource. + You can use this resource to find + location details about an Interconnect + attachment (VLAN). For more information + about interconnect attachments, read + Creating VLAN Attachments. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_remote_locations/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_remote_locations/client.py index dfd002689f79..dba3ede04dae 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_remote_locations/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_remote_locations/client.py @@ -732,7 +732,7 @@ def get( ) -> compute.InterconnectRemoteLocation: r"""Returns the details for the specified interconnect remote location. Gets a list of available interconnect - remote locations by making a list() request. + remote locations by making alist() request. .. code-block:: python @@ -789,10 +789,10 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InterconnectRemoteLocation: Represents a Cross-Cloud Interconnect - Remote Location resource. You can use - this resource to find remote location - details about an Interconnect attachment - (VLAN). + Remote Location resource. + You can use this resource to find remote + location details about an Interconnect + attachment (VLAN). """ # Create or coerce a protobuf request object. @@ -914,9 +914,11 @@ def sample_list(): google.cloud.compute_v1.services.interconnect_remote_locations.pagers.ListPager: Response to the list request, and contains a list of interconnect remote - locations. Iterating over this object - will yield results and resolve - additional pages automatically. + locations. + + Iterating over this object will yield + results and resolve additional pages + automatically. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_remote_locations/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_remote_locations/transports/rest.py index c0a46f245fa0..d2e0a3141990 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_remote_locations/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnect_remote_locations/transports/rest.py @@ -345,10 +345,10 @@ def __call__( Returns: ~.compute.InterconnectRemoteLocation: Represents a Cross-Cloud Interconnect - Remote Location resource. You can use - this resource to find remote location - details about an Interconnect attachment - (VLAN). + Remote Location resource. + You can use this resource to find remote + location details about an Interconnect + attachment (VLAN). """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnects/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnects/client.py index f90d9ae621a5..9239677a8d97 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnects/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnects/client.py @@ -1038,6 +1038,7 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Interconnect: Represents an Interconnect resource. + An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. @@ -1111,12 +1112,15 @@ def get_diagnostics( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.InterconnectsGetDiagnosticsResponse: r"""Returns the interconnectDiagnostics for the specified - Interconnect. In the event of a global outage, do not - use this API to make decisions about where to redirect - your network traffic. Unlike a VLAN attachment, which is - regional, a Cloud Interconnect connection is a global - resource. A global outage can prevent this API from - functioning properly. + Interconnect. + + In the event of a + global outage, do not use this API to make decisions + about where to redirect your network traffic. + + Unlike a VLAN attachment, which is regional, a Cloud + Interconnect connection is a global resource. A global + outage can prevent this API from functioning properly. .. code-block:: python @@ -1746,9 +1750,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates the specified Interconnect with the data - included in the request. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -1878,9 +1882,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates the specified Interconnect with the data - included in the request. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -2036,7 +2040,8 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on an Interconnect. To learn more - about labels, read the Labeling Resources documentation. + about labels, read the Labeling + Resources documentation. .. code-block:: python @@ -2172,7 +2177,8 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on an Interconnect. To learn more - about labels, read the Labeling Resources documentation. + about labels, read the Labeling + Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnects/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnects/transports/rest.py index 78550ab02cce..f4505be23e02 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnects/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/interconnects/transports/rest.py @@ -663,21 +663,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -829,6 +840,7 @@ def __call__( Returns: ~.compute.Interconnect: Represents an Interconnect resource. + An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. @@ -1281,21 +1293,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1598,21 +1621,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1771,21 +1805,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/license_codes/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/license_codes/client.py index 93288f9cb4d5..53ec7f59f680 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/license_codes/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/license_codes/client.py @@ -712,7 +712,7 @@ def get( r"""Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by - third-party partners who are creating Cloud Marketplace images. + third-party partners who are creatingCloud Marketplace images. .. code-block:: python @@ -768,11 +768,12 @@ def sample_get(): Returns: google.cloud.compute_v1.types.LicenseCode: - Represents a License Code resource. A License Code is a - unique identifier used to represent a license resource. - *Caution* This resource is intended for use only by - third-party partners who are creating Cloud Marketplace - images. + Represents a License Code resource. + + A License Code is a unique identifier used to + represent alicense resource. *Caution* This resource + is intended for use only by third-party partners who + are creatingCloud Marketplace images. """ # Create or coerce a protobuf request object. @@ -845,7 +846,7 @@ def test_iam_permissions( ) -> compute.TestPermissionsResponse: r"""Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party - partners who are creating Cloud Marketplace images. + partners who are creatingCloud Marketplace images. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/license_codes/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/license_codes/transports/rest.py index bc66625f0772..e6ade2e4ad8d 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/license_codes/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/license_codes/transports/rest.py @@ -332,11 +332,12 @@ def __call__( Returns: ~.compute.LicenseCode: - Represents a License Code resource. A License Code is a - unique identifier used to represent a license resource. - *Caution* This resource is intended for use only by - third-party partners who are creating Cloud Marketplace - images. + Represents a License Code resource. + + A License Code is a unique identifier used to represent + alicense resource. *Caution* This resource is intended + for use only by third-party partners who are + creatingCloud Marketplace images. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/licenses/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/licenses/client.py index 556de6fa36cd..6a832bc1aaa0 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/licenses/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/licenses/client.py @@ -714,8 +714,8 @@ def delete_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Deletes the specified license. *Caution* This resource is - intended for use only by third-party partners who are creating - Cloud Marketplace images. + intended for use only by third-party partners who are + creatingCloud Marketplace images. .. code-block:: python @@ -839,8 +839,8 @@ def delete( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Deletes the specified license. *Caution* This resource is - intended for use only by third-party partners who are creating - Cloud Marketplace images. + intended for use only by third-party partners who are + creatingCloud Marketplace images. .. code-block:: python @@ -989,7 +989,7 @@ def get( ) -> compute.License: r"""Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are - creating Cloud Marketplace images. + creatingCloud Marketplace images. .. code-block:: python @@ -1044,11 +1044,13 @@ def sample_get(): Returns: google.cloud.compute_v1.types.License: - Represents a License resource. A License represents - billing and aggregate usage data for public and - marketplace images. *Caution* This resource is intended - for use only by third-party partners who are creating - Cloud Marketplace images. + Represents a License resource. + + A License represents billing and aggregate usage data forpublic andmarketplace images. + *Caution* This resource is intended for + + use only by third-party partners who are + creatingCloud Marketplace images. """ # Create or coerce a protobuf request object. @@ -1116,8 +1118,8 @@ def get_iam_policy( ) -> compute.Policy: r"""Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is - intended for use only by third-party partners who are creating - Cloud Marketplace images. + intended for use only by third-party partners who are + creatingCloud Marketplace images. .. code-block:: python @@ -1173,28 +1175,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1262,7 +1272,7 @@ def insert_unary( ) -> compute.Operation: r"""Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners - who are creating Cloud Marketplace images. + who are creatingCloud Marketplace images. .. code-block:: python @@ -1379,7 +1389,7 @@ def insert( ) -> extended_operation.ExtendedOperation: r"""Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners - who are creating Cloud Marketplace images. + who are creatingCloud Marketplace images. .. code-block:: python @@ -1522,9 +1532,9 @@ def list( other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a - request to the respective image project, such as debian-cloud or - windows-cloud. *Caution* This resource is intended for use only - by third-party partners who are creating Cloud Marketplace + request to the respective image project, such as debian-cloud + orwindows-cloud. *Caution* This resource is intended for use + only by third-party partners who are creatingCloud Marketplace images. .. code-block:: python @@ -1650,8 +1660,8 @@ def set_iam_policy( ) -> compute.Policy: r"""Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is - intended for use only by third-party partners who are creating - Cloud Marketplace images. + intended for use only by third-party partners who are + creatingCloud Marketplace images. .. code-block:: python @@ -1712,28 +1722,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1808,7 +1826,7 @@ def test_iam_permissions( ) -> compute.TestPermissionsResponse: r"""Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party - partners who are creating Cloud Marketplace images. + partners who are creatingCloud Marketplace images. .. code-block:: python @@ -1941,7 +1959,7 @@ def update_unary( ) -> compute.Operation: r"""Updates a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners - who are creating Cloud Marketplace images. + who are creatingCloud Marketplace images. .. code-block:: python @@ -2072,7 +2090,7 @@ def update( ) -> extended_operation.ExtendedOperation: r"""Updates a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners - who are creating Cloud Marketplace images. + who are creatingCloud Marketplace images. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/licenses/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/licenses/transports/rest.py index 6eebca4be9fa..d07233e247a2 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/licenses/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/licenses/transports/rest.py @@ -650,21 +650,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -812,11 +823,12 @@ def __call__( Returns: ~.compute.License: - Represents a License resource. A License represents - billing and aggregate usage data for public and - marketplace images. *Caution* This resource is intended - for use only by third-party partners who are creating - Cloud Marketplace images. + Represents a License resource. + + A License represents billing and aggregate usage data + forpublic andmarketplace images. *Caution* This resource + is intended for use only by third-party partners who are + creatingCloud Marketplace images. """ @@ -960,26 +972,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1131,21 +1194,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1442,26 +1516,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1772,21 +1897,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_images/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_images/client.py index a2574e2dd825..10c61f27ac2f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_images/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_images/client.py @@ -1043,13 +1043,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.MachineImage: Represents a machine image resource. + A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) - instance. For more information, see - Machine images. + instance. For more information, + seeMachine images. """ # Create or coerce a protobuf request object. @@ -1172,28 +1173,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1711,28 +1720,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1806,7 +1823,7 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on a machine image. To learn more - about labels, read the Labeling Resources documentation. + about labels, read theLabeling Resources documentation. .. code-block:: python @@ -1942,7 +1959,7 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on a machine image. To learn more - about labels, read the Labeling Resources documentation. + about labels, read theLabeling Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_images/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_images/transports/rest.py index ba1b38d7ae6f..1b796f517b3c 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_images/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_images/transports/rest.py @@ -656,21 +656,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -822,13 +833,14 @@ def __call__( Returns: ~.compute.MachineImage: Represents a machine image resource. + A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) - instance. For more information, see - Machine images. + instance. For more information, + seeMachine images. """ @@ -976,26 +988,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1143,21 +1206,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1461,26 +1535,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1635,21 +1760,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_types/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_types/client.py index 8fb4a5cc59e6..275ad02ac120 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_types/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_types/client.py @@ -711,8 +711,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of machine types. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of machine types. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -898,10 +899,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.MachineType: Represents a Machine Type resource. + You can use specific machine types for your VM instances based on performance and pricing requirements. For more - information, read Machine Types. + information, readMachine Types. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_types/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_types/transports/rest.py index d4a37c51eae4..88055953b940 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_types/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/machine_types/transports/rest.py @@ -535,10 +535,11 @@ def __call__( Returns: ~.compute.MachineType: Represents a Machine Type resource. + You can use specific machine types for your VM instances based on performance and pricing requirements. For more - information, read Machine Types. + information, readMachine Types. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_attachments/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_attachments/client.py index eb131003b5b9..cbffb9f4183a 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_attachments/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_attachments/client.py @@ -725,8 +725,9 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all NetworkAttachment resources, regional - and global, available to the specified project. To prevent - failure, Google recommends that you set the + and global, available to the specified project. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1207,8 +1208,8 @@ def sample_get(): Returns: google.cloud.compute_v1.types.NetworkAttachment: - NetworkAttachments A network - attachment resource ... + NetworkAttachments + A network attachment resource ... """ # Create or coerce a protobuf request object. @@ -1345,28 +1346,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1861,8 +1870,8 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified NetworkAttachment resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -2010,8 +2019,8 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified NetworkAttachment resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -2256,28 +2265,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_attachments/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_attachments/transports/rest.py index 4a2207ef07db..fb9d2267dc1f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_attachments/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_attachments/transports/rest.py @@ -876,21 +876,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1041,8 +1052,8 @@ def __call__( Returns: ~.compute.NetworkAttachment: - NetworkAttachments A network - attachment resource ... + NetworkAttachments + A network attachment resource ... """ @@ -1193,26 +1204,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1362,21 +1424,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1683,21 +1756,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1860,26 +1944,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_edge_security_services/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_edge_security_services/client.py index 546b3b83962c..d1d07400b505 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_edge_security_services/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_edge_security_services/client.py @@ -733,9 +733,10 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all NetworkEdgeSecurityService resources - available to the specified project. To prevent failure, Google - recommends that you set the ``returnPartialSuccess`` parameter - to ``true``. + available to the specified project. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py index b75868f2076c..5675ba26ad32 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_edge_security_services/transports/rest.py @@ -663,21 +663,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -977,21 +988,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1147,21 +1169,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_endpoint_groups/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_endpoint_groups/client.py index 81b27158f9d9..9d3f5a8b349d 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_endpoint_groups/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_endpoint_groups/client.py @@ -727,7 +727,9 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of network endpoint groups and sorts them by - zone. To prevent failure, Google recommends that you set the + zone. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -897,9 +899,9 @@ def sample_attach_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - network endpoint group is located. It - should comply with RFC1035. + The name of the zone where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1057,9 +1059,9 @@ def sample_attach_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - network endpoint group is located. It - should comply with RFC1035. + The name of the zone where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1242,9 +1244,9 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - network endpoint group is located. It - should comply with RFC1035. + The name of the zone where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1385,9 +1387,9 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - network endpoint group is located. It - should comply with RFC1035. + The name of the zone where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1553,9 +1555,9 @@ def sample_detach_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - network endpoint group is located. It - should comply with RFC1035. + The name of the zone where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1713,9 +1715,9 @@ def sample_detach_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - network endpoint group is located. It - should comply with RFC1035. + The name of the zone where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1892,9 +1894,9 @@ def sample_get(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - network endpoint group is located. It - should comply with RFC1035. + The name of the zone where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -1917,13 +1919,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.NetworkEndpointGroup: Represents a collection of network - endpoints. A network endpoint group - (NEG) defines how a set of endpoints - should be reached, whether they are - reachable, and where they are located. - For more information about using NEGs - for different use cases, see Network - endpoint groups overview. + endpoints. + A network endpoint group (NEG) defines + how a set of endpoints should be + reached, whether they are reachable, and + where they are located. For more + information about using NEGs for + different use cases, seeNetwork endpoint + groups overview. """ # Create or coerce a protobuf request object. @@ -2037,9 +2040,9 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where you want - to create the network endpoint group. It - should comply with RFC1035. + The name of the zone where + you want to create the network endpoint + group. It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2175,9 +2178,9 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where you want - to create the network endpoint group. It - should comply with RFC1035. + The name of the zone where + you want to create the network endpoint + group. It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2335,9 +2338,9 @@ def sample_list(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - network endpoint group is located. It - should comply with RFC1035. + The name of thezone + where the network endpoint group is + located. It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this @@ -2480,9 +2483,9 @@ def sample_list_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. zone (str): - The name of the zone where the - network endpoint group is located. It - should comply with RFC1035. + The name of the zone where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``zone`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py index 6eb08ab4ec00..8fc56944e810 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_endpoint_groups/transports/rest.py @@ -892,21 +892,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1063,21 +1074,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1228,21 +1250,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1399,13 +1432,14 @@ def __call__( Returns: ~.compute.NetworkEndpointGroup: Represents a collection of network - endpoints. A network endpoint group - (NEG) defines how a set of endpoints - should be reached, whether they are - reachable, and where they are located. - For more information about using NEGs - for different use cases, see Network - endpoint groups overview. + endpoints. + A network endpoint group (NEG) defines + how a set of endpoints should be + reached, whether they are reachable, and + where they are located. For more + information about using NEGs for + different use cases, seeNetwork endpoint + groups overview. """ @@ -1554,21 +1588,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_firewall_policies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_firewall_policies/client.py index f71aa61165dd..f3c4265b0d76 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_firewall_policies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_firewall_policies/client.py @@ -1632,8 +1632,9 @@ def aggregated_list( ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes - (global and regional) and grouping the results per scope. To - prevent failure, Google recommends that you set the + (global and regional) and grouping the results per scope. + + To prevent failure, it is recommended that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -2608,28 +2609,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -5134,28 +5143,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py index 7f7020f0d4f9..02bbda943eeb 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/network_firewall_policies/transports/rest.py @@ -1404,21 +1404,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1576,21 +1587,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1748,21 +1770,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2068,21 +2101,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2232,21 +2276,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2695,26 +2750,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -3169,21 +3275,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3484,21 +3601,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3655,21 +3783,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3827,21 +3966,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3996,21 +4146,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4167,21 +4328,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4333,21 +4505,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4499,26 +4682,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/networks/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/networks/client.py index 62713da8b389..feb91836b17f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/networks/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/networks/client.py @@ -1327,9 +1327,10 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Network: Represents a VPC Network resource. + Networks connect resources to each other and to the internet. For more - information, read Virtual Private Cloud + information, readVirtual Private Cloud (VPC) Network. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/networks/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/networks/transports/rest.py index d67d39a9b5b2..af1cd5f29ead 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/networks/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/networks/transports/rest.py @@ -877,21 +877,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1047,21 +1058,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1210,9 +1232,10 @@ def __call__( Returns: ~.compute.Network: Represents a VPC Network resource. + Networks connect resources to each other and to the internet. For more - information, read Virtual Private Cloud + information, readVirtual Private Cloud (VPC) Network. """ @@ -1507,21 +1530,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1966,21 +2000,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2135,21 +2180,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2308,21 +2364,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2478,21 +2545,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2644,21 +2722,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_groups/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_groups/client.py index 72190b19de25..c06470f3e7d8 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_groups/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_groups/client.py @@ -1038,8 +1038,9 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves an aggregated list of node groups. Note: use - nodeGroups.listNodes for more details about each group. To - prevent failure, Google recommends that you set the + nodeGroups.listNodes for more details about each group. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1851,16 +1852,16 @@ def sample_get(): Returns: google.cloud.compute_v1.types.NodeGroup: Represents a sole-tenant Node Group - resource. A sole-tenant node is a - physical server that is dedicated to - hosting VM instances only for your - specific project. Use sole-tenant nodes - to keep your instances physically - separated from instances in other - projects, or to group your instances - together on the same host hardware. For - more information, read Sole-tenant - nodes. + resource. + A sole-tenant node is a physical server + that is dedicated to hosting VM + instances only for your specific + project. Use sole-tenant nodes to keep + your instances physically separated from + instances in other projects, or to group + your instances together on the same host + hardware. For more information, + readSole-tenant nodes. """ # Create or coerce a protobuf request object. @@ -1995,28 +1996,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -3402,28 +3411,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_groups/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_groups/transports/rest.py index fea2ad550426..c680f42daf61 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_groups/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_groups/transports/rest.py @@ -1039,21 +1039,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1357,21 +1368,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1523,21 +1545,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1693,16 +1726,16 @@ def __call__( Returns: ~.compute.NodeGroup: Represents a sole-tenant Node Group - resource. A sole-tenant node is a - physical server that is dedicated to - hosting VM instances only for your - specific project. Use sole-tenant nodes - to keep your instances physically - separated from instances in other - projects, or to group your instances - together on the same host hardware. For - more information, read Sole-tenant - nodes. + resource. + A sole-tenant node is a physical server + that is dedicated to hosting VM + instances only for your specific + project. Use sole-tenant nodes to keep + your instances physically separated from + instances in other projects, or to group + your instances together on the same host + hardware. For more information, + readSole-tenant nodes. """ @@ -1848,26 +1881,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2019,21 +2103,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2480,21 +2575,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2651,21 +2757,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2823,26 +2940,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -3003,21 +3171,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3175,21 +3354,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_templates/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_templates/client.py index b03c17052777..b8f0c98093b3 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_templates/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_templates/client.py @@ -717,8 +717,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of node templates. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of node templates. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1199,10 +1200,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.NodeTemplate: Represent a sole-tenant Node Template - resource. You can use a template to - define properties for nodes in a node - group. For more information, read - Creating node groups and instances. + resource. + You can use a template to define + properties for nodes in a node group. + For more information, readCreating node + groups and instances. """ # Create or coerce a protobuf request object. @@ -1337,28 +1339,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1929,28 +1939,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_templates/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_templates/transports/rest.py index 4053f0da87aa..6913e42acc21 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_templates/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_templates/transports/rest.py @@ -809,21 +809,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -975,10 +986,11 @@ def __call__( Returns: ~.compute.NodeTemplate: Represent a sole-tenant Node Template - resource. You can use a template to - define properties for nodes in a node - group. For more information, read - Creating node groups and instances. + resource. + You can use a template to define + properties for nodes in a node group. + For more information, readCreating node + groups and instances. """ @@ -1126,26 +1138,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1293,21 +1356,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1611,26 +1685,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_types/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_types/client.py index 4eca7413b9f8..86903c9e28e6 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_types/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_types/client.py @@ -709,9 +709,10 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of node types. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + r"""Retrieves an aggregated list of node types. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -895,15 +896,15 @@ def sample_get(): Returns: google.cloud.compute_v1.types.NodeType: Represent a sole-tenant Node Type - resource. Each node within a node group - must have a node type. A node type - specifies the total amount of cores and - memory for that node. Currently, the - only available node type is - n1-node-96-624 node type that has 96 - vCPUs and 624 GB of memory, available in - multiple zones. For more information - read Node types. + resource. + Each node within a node group must have + a node type. A node type specifies the + total amount of cores and memory for + that node. Currently, the only available + node type is n1-node-96-624 node type + that has 96 vCPUs and 624 GB of memory, + available in multiple zones. For more + information readNode types. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_types/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_types/transports/rest.py index 85c8e6e888e9..19d659aff24f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/node_types/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/node_types/transports/rest.py @@ -531,15 +531,15 @@ def __call__( Returns: ~.compute.NodeType: Represent a sole-tenant Node Type - resource. Each node within a node group - must have a node type. A node type - specifies the total amount of cores and - memory for that node. Currently, the - only available node type is - n1-node-96-624 node type that has 96 - vCPUs and 624 GB of memory, available in - multiple zones. For more information - read Node types. + resource. + Each node within a node group must have + a node type. A node type specifies the + total amount of cores and memory for + that node. Currently, the only available + node type is n1-node-96-624 node type + that has 96 vCPUs and 624 GB of memory, + available in multiple zones. For more + information readNode types. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/organization_security_policies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/organization_security_policies/client.py index 8ef32971a60c..a11f5e5c7b4b 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/organization_security_policies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/organization_security_policies/client.py @@ -742,12 +742,17 @@ def add_association_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Inserts an association for the specified security - policy. This has billing implications. Projects in the + policy. + This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor - Enterprise if not already enrolled. Use of this API to - modify firewall policies is deprecated. Use - firewallPolicies.addAssociation instead if possible. + Enterprise if not already enrolled. + + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.addAssociation + instead. .. code-block:: python @@ -875,12 +880,17 @@ def add_association( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Inserts an association for the specified security - policy. This has billing implications. Projects in the + policy. + This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor - Enterprise if not already enrolled. Use of this API to - modify firewall policies is deprecated. Use - firewallPolicies.addAssociation instead if possible. + Enterprise if not already enrolled. + + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.addAssociation + instead. .. code-block:: python @@ -1030,6 +1040,11 @@ def add_rule_unary( ) -> compute.Operation: r"""Inserts a rule into a security policy. + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.addRule instead. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -1151,6 +1166,11 @@ def add_rule( ) -> extended_operation.ExtendedOperation: r"""Inserts a rule into a security policy. + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.addRule instead. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -1292,9 +1312,12 @@ def copy_rules_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Copies rules to the specified security policy. Use of - this API to modify firewall policies is deprecated. Use - firewallPolicies.copyRules instead. + r"""Copies rules to the specified security policy. + + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.cloneRules instead. .. code-block:: python @@ -1407,9 +1430,12 @@ def copy_rules( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Copies rules to the specified security policy. Use of - this API to modify firewall policies is deprecated. Use - firewallPolicies.copyRules instead. + r"""Copies rules to the specified security policy. + + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.cloneRules instead. .. code-block:: python @@ -1545,9 +1571,12 @@ def delete_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Deletes the specified policy. Use of this API to - remove firewall policies is deprecated. Use - firewallPolicies.delete instead. + r"""Deletes the specified policy. + + Use this API to remove Cloud Armor policies. Previously, + alpha and beta versions of this API were used to remove + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.delete instead. .. code-block:: python @@ -1660,9 +1689,12 @@ def delete( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Deletes the specified policy. Use of this API to - remove firewall policies is deprecated. Use - firewallPolicies.delete instead. + r"""Deletes the specified policy. + + Use this API to remove Cloud Armor policies. Previously, + alpha and beta versions of this API were used to remove + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.delete instead. .. code-block:: python @@ -1799,9 +1831,11 @@ def get( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.SecurityPolicy: r"""List all of the ordered rules present in a single - specified policy. Use of this API to read firewall - policies is deprecated. Use firewallPolicies.get - instead. + specified policy. + Use this API to read Cloud Armor policies. Previously, + alpha and beta versions of this API were used to read + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.get instead. .. code-block:: python @@ -1850,11 +1884,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.SecurityPolicy: Represents a Google Cloud Armor - security policy resource. Only external - backend services that use load balancers - can reference a security policy. For - more information, see Google Cloud Armor - security policy overview. + security policy resource. + Only external backend services that use + load balancers can reference a security + policy. For more information, see Google + Cloud Armor security policy overview. """ # Create or coerce a protobuf request object. @@ -1916,9 +1950,13 @@ def get_association( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.SecurityPolicyAssociation: - r"""Gets an association with the specified name. Use of - this API to read firewall policies is deprecated. Use - firewallPolicies.getAssociation instead if possible. + r"""Gets an association with the specified name. + + Use this API to read Cloud Armor policies. Previously, + alpha and beta versions of this API were used to read + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.getAssociation + instead. .. code-block:: python @@ -2031,9 +2069,12 @@ def get_rule( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.SecurityPolicyRule: - r"""Gets a rule at the specified priority. Use of this - API to read firewall policies is deprecated. Use - firewallPolicies.getRule instead. + r"""Gets a rule at the specified priority. + + Use this API to read Cloud Armor policies. Previously, + alpha and beta versions of this API were used to read + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.getRule instead. .. code-block:: python @@ -2148,10 +2189,13 @@ def insert_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Creates a new policy in the specified project using - the data included in the request. Use of this API to - insert firewall policies is deprecated. Use - firewallPolicies.insert instead. + r"""Creates a new policy in the specified organization + using the data included in the request. + + Use this API to add Cloud Armor policies. Previously, + alpha and beta versions of this API were used to add + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.insert instead. .. code-block:: python @@ -2253,10 +2297,13 @@ def insert( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Creates a new policy in the specified project using - the data included in the request. Use of this API to - insert firewall policies is deprecated. Use - firewallPolicies.insert instead. + r"""Creates a new policy in the specified organization + using the data included in the request. + + Use this API to add Cloud Armor policies. Previously, + alpha and beta versions of this API were used to add + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.insert instead. .. code-block:: python @@ -2382,9 +2429,12 @@ def list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListPager: r"""List all the policies that have been configured for - the specified project. Use of this API to read firewall - policies is deprecated. Use firewallPolicies.list - instead. + the specified organization. + + Use this API to read Cloud Armor policies. Previously, + alpha and beta versions of this API were used to read + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.list instead. .. code-block:: python @@ -2478,9 +2528,12 @@ def list_associations( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.OrganizationSecurityPoliciesListAssociationsResponse: r"""Lists associations of a specified target, i.e., - organization or folder. Use of this API to read firewall - policies is deprecated. Use - firewallPolicies.listAssociations instead if possible. + organization or folder. + Use this API to read Cloud Armor policies. Previously, + alpha and beta versions of this API were used to read + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.listAssociations + instead. .. code-block:: python @@ -2650,9 +2703,12 @@ def move_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Moves the specified security policy. Use of this API - to modify firewall policies is deprecated. Use - firewallPolicies.move instead. + r"""Moves the specified security policy. + + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.move instead. .. code-block:: python @@ -2765,9 +2821,12 @@ def move( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Moves the specified security policy. Use of this API - to modify firewall policies is deprecated. Use - firewallPolicies.move instead. + r"""Moves the specified security policy. + + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.move instead. .. code-block:: python @@ -2906,9 +2965,11 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Patches the specified policy with the data included - in the request. Use of this API to modify firewall - policies is deprecated. Use firewallPolicies.patch - instead. + in the request. + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.patch instead. .. code-block:: python @@ -3030,9 +3091,11 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Patches the specified policy with the data included - in the request. Use of this API to modify firewall - policies is deprecated. Use firewallPolicies.patch - instead. + in the request. + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.patch instead. .. code-block:: python @@ -3176,9 +3239,12 @@ def patch_rule_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Patches a rule at the specified priority. Use of this - API to modify firewall policies is deprecated. Use - firewallPolicies.patchRule instead. + r"""Patches a rule at the specified priority. + + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.patchRule instead. .. code-block:: python @@ -3299,9 +3365,12 @@ def patch_rule( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Patches a rule at the specified priority. Use of this - API to modify firewall policies is deprecated. Use - firewallPolicies.patchRule instead. + r"""Patches a rule at the specified priority. + + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.patchRule instead. .. code-block:: python @@ -3445,9 +3514,12 @@ def remove_association_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Removes an association for the specified security - policy. Use of this API to modify firewall policies is - deprecated. Use firewallPolicies.removeAssociation - instead if possible. + policy. + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.removeAssociation + instead. .. code-block:: python @@ -3565,9 +3637,12 @@ def remove_association( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Removes an association for the specified security - policy. Use of this API to modify firewall policies is - deprecated. Use firewallPolicies.removeAssociation - instead if possible. + policy. + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.removeAssociation + instead. .. code-block:: python @@ -3709,6 +3784,11 @@ def remove_rule_unary( ) -> compute.Operation: r"""Deletes a rule at the specified priority. + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.removeRule instead. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a @@ -3822,6 +3902,11 @@ def remove_rule( ) -> extended_operation.ExtendedOperation: r"""Deletes a rule at the specified priority. + Use this API to modify Cloud Armor policies. Previously, + alpha and beta versions of this API were used to modify + firewall policies. This usage is now disabled for most + organizations. Use firewallPolicies.removeRule instead. + .. code-block:: python # This snippet has been automatically generated and should be regarded as a diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/organization_security_policies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/organization_security_policies/transports/rest.py index f579091bcca2..308d207f4083 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/organization_security_policies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/organization_security_policies/transports/rest.py @@ -1125,21 +1125,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1297,21 +1308,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1466,21 +1488,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1632,21 +1665,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1797,11 +1841,11 @@ def __call__( Returns: ~.compute.SecurityPolicy: Represents a Google Cloud Armor - security policy resource. Only external - backend services that use load balancers - can reference a security policy. For - more information, see Google Cloud Armor - security policy overview. + security policy resource. + Only external backend services that use + load balancers can reference a security + policy. For more information, see Google + Cloud Armor security policy overview. """ @@ -2250,21 +2294,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2879,21 +2934,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3042,21 +3108,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3212,21 +3289,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3383,21 +3471,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3549,21 +3648,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/packet_mirrorings/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/packet_mirrorings/client.py index 5640179116fd..0c566e21be00 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/packet_mirrorings/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/packet_mirrorings/client.py @@ -722,8 +722,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of packetMirrorings. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of packetMirrorings. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1202,15 +1203,17 @@ def sample_get(): Returns: google.cloud.compute_v1.types.PacketMirroring: Represents a Packet Mirroring - resource. Packet Mirroring clones the - traffic of specified instances in your - Virtual Private Cloud (VPC) network and - forwards it to a collector destination, - such as an instance group of an internal - TCP/UDP load balancer, for analysis or - examination. For more information about - setting up Packet Mirroring, see Using - Packet Mirroring. + resource. + Packet Mirroring clones the traffic of + specified instances in your Virtual + Private Cloud (VPC) network and forwards + it to a collector destination, such as + an instance group of an internal TCP/UDP + load balancer, for analysis or + examination. + For more information about setting up + Packet Mirroring, seeUsing Packet + Mirroring. """ # Create or coerce a protobuf request object. @@ -1706,9 +1709,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Patches the specified PacketMirroring resource with - the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + the data included in the request. This method + supportsPATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -1855,9 +1858,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Patches the specified PacketMirroring resource with - the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + the data included in the request. This method + supportsPATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py index 5275994ed035..c268b01bd91b 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/packet_mirrorings/transports/rest.py @@ -761,21 +761,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -927,15 +938,17 @@ def __call__( Returns: ~.compute.PacketMirroring: Represents a Packet Mirroring - resource. Packet Mirroring clones the - traffic of specified instances in your - Virtual Private Cloud (VPC) network and - forwards it to a collector destination, - such as an instance group of an internal - TCP/UDP load balancer, for analysis or - examination. For more information about - setting up Packet Mirroring, see Using - Packet Mirroring. + resource. + Packet Mirroring clones the traffic of + specified instances in your Virtual + Private Cloud (VPC) network and forwards + it to a collector destination, such as + an instance group of an internal TCP/UDP + load balancer, for analysis or + examination. + For more information about setting up + Packet Mirroring, seeUsing Packet + Mirroring. """ @@ -1085,21 +1098,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1408,21 +1432,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/preview_features/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/preview_features/transports/rest.py index fdc036cb38e1..8d0359f5550c 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/preview_features/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/preview_features/transports/rest.py @@ -682,21 +682,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/client.py index ca78172b523b..0a7d31098aee 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/client.py @@ -1718,14 +1718,15 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Project: - r"""Returns the specified Project resource. To decrease latency for - this method, you can optionally omit any unneeded information - from the response by using a field mask. This practice is - especially recommended for unused quota information (the - ``quotas`` field). To exclude one or more fields, set your - request's ``fields`` query parameter to only include the fields - you need. For example, to only include the ``id`` and - ``selfLink`` fields, add the query parameter + r"""Returns the specified Project resource. + + To decrease latency for this method, you can optionally omit any + unneeded information from the response by using a field mask. + This practice is especially recommended for unused quota + information (the ``quotas`` field). To exclude one or more + fields, set your request's ``fields`` query parameter to only + include the fields you need. For example, to only include the + ``id`` and ``selfLink`` fields, add the query parameter ``?fields=id,selfLink`` to your request. .. code-block:: python @@ -1773,10 +1774,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Project: - Represents a Project resource. A - project is used to organize resources in - a Google Cloud Platform environment. For - more information, read about the + Represents a Project resource. + + A project is used to organize resources + in a Google Cloud Platform environment. + For more information, read about the Resource Hierarchy. """ @@ -1884,10 +1886,11 @@ def sample_get_xpn_host(): Returns: google.cloud.compute_v1.types.Project: - Represents a Project resource. A - project is used to organize resources in - a Google Cloud Platform environment. For - more information, read about the + Represents a Project resource. + + A project is used to organize resources + in a Google Cloud Platform environment. + For more information, read about the Resource Hierarchy. """ @@ -2201,15 +2204,21 @@ def move_disk_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Starting September 29, 2025, you can't use the moveDisk API on + r"""Moves a persistent disk from one zone to another. *Note*: The + moveDisk API will be deprecated on September 29, 2026. + + Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a different region or zone, follow the steps in `Change the location of a - disk `__. + disk `__. + Projects that already use the moveDisk API can continue usage - until September 29, 2026. Starting November 1, 2025, API - responses will include a warning message in the response body - about the upcoming deprecation. You can skip the message to - continue using the service without interruption. + until September 29, 2026. + + Starting November 1, 2025, API responses will include a warning + message in the response body about the upcoming deprecation. You + can skip the message to continue using the service without + interruption. .. code-block:: python @@ -2324,15 +2333,21 @@ def move_disk( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Starting September 29, 2025, you can't use the moveDisk API on + r"""Moves a persistent disk from one zone to another. *Note*: The + moveDisk API will be deprecated on September 29, 2026. + + Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a different region or zone, follow the steps in `Change the location of a - disk `__. + disk `__. + Projects that already use the moveDisk API can continue usage - until September 29, 2026. Starting November 1, 2025, API - responses will include a warning message in the response body - about the upcoming deprecation. You can skip the message to - continue using the service without interruption. + until September 29, 2026. + + Starting November 1, 2025, API responses will include a warning + message in the response body about the upcoming deprecation. You + can skip the message to continue using the service without + interruption. .. code-block:: python @@ -2746,8 +2761,8 @@ def set_cloud_armor_tier_unary( r"""Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See - Subscribing to Cloud Armor Enterprise for more - information. + Subscribing + to Cloud Armor Enterprise for more information. .. code-block:: python @@ -2869,8 +2884,8 @@ def set_cloud_armor_tier( r"""Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See - Subscribing to Cloud Armor Enterprise for more - information. + Subscribing + to Cloud Armor Enterprise for more information. .. code-block:: python @@ -3551,7 +3566,7 @@ def set_usage_export_bucket_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Enables the usage export feature and sets the usage + r"""Enables the usage export feature and sets theusage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled. @@ -3671,7 +3686,7 @@ def set_usage_export_bucket( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Enables the usage export feature and sets the usage + r"""Enables the usage export feature and sets theusage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/transports/rest.py index c61b0ac5aa2f..60809737b138 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/projects/transports/rest.py @@ -995,21 +995,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1165,21 +1176,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1335,21 +1357,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1503,21 +1536,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1670,10 +1714,11 @@ def __call__( Returns: ~.compute.Project: - Represents a Project resource. A - project is used to organize resources in - a Google Cloud Platform environment. For - more information, read about the + Represents a Project resource. + + A project is used to organize resources + in a Google Cloud Platform environment. + For more information, read about the Resource Hierarchy. """ @@ -1817,10 +1862,11 @@ def __call__( Returns: ~.compute.Project: - Represents a Project resource. A - project is used to organize resources in - a Google Cloud Platform environment. For - more information, read about the + Represents a Project resource. + + A project is used to organize resources + in a Google Cloud Platform environment. + For more information, read about the Resource Hierarchy. """ @@ -2277,21 +2323,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2446,21 +2503,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2619,21 +2687,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2791,21 +2870,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2962,21 +3052,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3133,21 +3234,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/public_advertised_prefixes/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/public_advertised_prefixes/client.py index 7dd8d1c1a92b..a04e0ad48c8a 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/public_advertised_prefixes/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/public_advertised_prefixes/client.py @@ -1803,9 +1803,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Patches the specified Router resource with the data - included in the request. This method supports PATCH - semantics and uses JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -1947,9 +1947,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Patches the specified Router resource with the data - included in the request. This method supports PATCH - semantics and uses JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and usesJSON merge + patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py index 861e7e27036c..c1a9f6c7002a 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/public_advertised_prefixes/transports/rest.py @@ -615,21 +615,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -779,21 +790,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1095,21 +1117,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1412,21 +1445,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1581,21 +1625,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/public_delegated_prefixes/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/public_delegated_prefixes/client.py index 0375364a6743..aea5034a70a3 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/public_delegated_prefixes/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/public_delegated_prefixes/client.py @@ -729,8 +729,10 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Lists all PublicDelegatedPrefix resources owned by the specific - project across all scopes. To prevent failure, Google recommends - that you set the ``returnPartialSuccess`` parameter to ``true``. + project across all scopes. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -900,9 +902,9 @@ def sample_announce(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - public delegated prefix is located. It - should comply with RFC1035. + The name of theregion where + the public delegated prefix is located. + It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -1039,9 +1041,9 @@ def sample_announce(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - public delegated prefix is located. It - should comply with RFC1035. + The name of theregion where + the public delegated prefix is located. + It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -2040,8 +2042,8 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method - supports PATCH semantics and uses JSON merge patch - format and processing rules. + supportsPATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -2195,8 +2197,8 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method - supports PATCH semantics and uses JSON merge patch - format and processing rules. + supportsPATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -2412,9 +2414,9 @@ def sample_withdraw(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - public delegated prefix is located. It - should comply with RFC1035. + The name of theregion where + the public delegated prefix is located. + It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -2551,9 +2553,9 @@ def sample_withdraw(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - public delegated prefix is located. It - should comply with RFC1035. + The name of theregion where + the public delegated prefix is located. + It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py index 82ff0b0cd42d..ee12638a5112 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/public_delegated_prefixes/transports/rest.py @@ -826,21 +826,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -990,21 +1001,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1309,21 +1331,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1626,21 +1659,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1795,21 +1839,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_autoscalers/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_autoscalers/client.py index 475d93ae2c9d..2764931de865 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_autoscalers/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_autoscalers/client.py @@ -1077,17 +1077,23 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Autoscaler: - Represents an Autoscaler resource. Google Compute Engine - has two Autoscaler resources: \* - [Zonal](/compute/docs/reference/rest/v1/autoscalers) \* - [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) - Use autoscalers to automatically add or delete instances - from a managed instance group according to your defined - autoscaling policy. For more information, read - Autoscaling Groups of Instances. For zonal managed - instance groups resource, use the autoscaler resource. - For regional managed instance groups, use the - regionAutoscalers resource. + Represents an Autoscaler resource. + + Google Compute Engine has two Autoscaler resources: + + - [Zonal](/compute/docs/reference/rest/v1/autoscalers) + - [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) + + Use autoscalers to automatically add or delete + instances from a managed instance group according to + your defined autoscaling policy. For more + information, read Autoscaling Groups of Instances. + + For zonal managed instance groups resource, use the + autoscaler resource. + + For regional managed instance groups, use + theregionAutoscalers resource. """ # Create or coerce a protobuf request object. @@ -1445,8 +1451,8 @@ def list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListPager: - r"""Retrieves a list of autoscalers contained within the - specified region. + r"""Retrieves a list of autoscalers contained within + the specified region. .. code-block:: python @@ -1586,9 +1592,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates an autoscaler in the specified project using - the data included in the request. This method supports - PATCH semantics and uses the JSON merge patch format and - processing rules. + the data included in the request. This method + supportsPATCH semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -1720,9 +1726,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates an autoscaler in the specified project using - the data included in the request. This method supports - PATCH semantics and uses the JSON merge patch format and - processing rules. + the data included in the request. This method + supportsPATCH semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py index 319d35df9e23..1354d6d052ed 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_autoscalers/transports/rest.py @@ -549,21 +549,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -714,18 +725,23 @@ def __call__( Returns: ~.compute.Autoscaler: - Represents an Autoscaler resource. Google Compute Engine - has two Autoscaler resources: \* - `Zonal `__ - \* - `Regional `__ + Represents an Autoscaler resource. + + Google Compute Engine has two Autoscaler resources: + + - `Zonal `__ + - `Regional `__ + Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read - Autoscaling Groups of Instances. For zonal managed - instance groups resource, use the autoscaler resource. - For regional managed instance groups, use the - regionAutoscalers resource. + Autoscaling Groups of Instances. + + For zonal managed instance groups resource, use the + autoscaler resource. + + For regional managed instance groups, use + theregionAutoscalers resource. """ @@ -875,21 +891,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1198,21 +1225,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1373,21 +1411,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_backend_services/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_backend_services/client.py index 7011b841e23d..0b3ff037c726 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_backend_services/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_backend_services/client.py @@ -1092,21 +1092,25 @@ def sample_get(): Returns: google.cloud.compute_v1.types.BackendService: - Represents a Backend Service resource. A backend service - defines how Google Cloud load balancers distribute - traffic. The backend service configuration contains a - set of values, such as the protocol used to connect to - backends, various distribution and session settings, - health checks, and timeouts. These settings provide - fine-grained control over how your load balancer - behaves. Most of the settings have default values that - allow for easy configuration if you need to get started - quickly. Backend services in Google Compute Engine can - be either regionally or globally scoped. \* - [Global](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) - \* - [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices) - For more information, see Backend Services. + Represents a Backend Service resource. + + A backend service defines how Google Cloud load + balancers distribute traffic. The backend service + configuration contains a set of values, such as the + protocol used to connect to backends, various + distribution and session settings, health checks, and + timeouts. These settings provide fine-grained control + over how your load balancer behaves. Most of the + settings have default values that allow for easy + configuration if you need to get started quickly. + + Backend services in Google Compute Engine can be + either regionally or globally scoped. + + - [Global](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) + - [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/regionBackendServices) + + For more information, seeBackend Services. """ # Create or coerce a protobuf request object. @@ -1396,28 +1400,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2070,8 +2082,9 @@ def patch_unary( r"""Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This - method supports PATCH semantics and uses the JSON merge - patch format and processing rules. + method + supports PATCH semantics and uses the JSON merge patch + format and processing rules. .. code-block:: python @@ -2217,8 +2230,9 @@ def patch( r"""Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This - method supports PATCH semantics and uses the JSON merge - patch format and processing rules. + method + supports PATCH semantics and uses the JSON merge patch + format and processing rules. .. code-block:: python @@ -2460,28 +2474,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2566,8 +2588,8 @@ def set_security_policy_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the Google Cloud Armor security policy for the - specified backend service. For more information, see - Google Cloud Armor Overview + specified backend service. For more information, + seeGoogle Cloud Armor Overview .. code-block:: python @@ -2725,8 +2747,8 @@ def set_security_policy( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the Google Cloud Armor security policy for the - specified backend service. For more information, see - Google Cloud Armor Overview + specified backend service. For more information, + seeGoogle Cloud Armor Overview .. code-block:: python @@ -3063,7 +3085,8 @@ def update_unary( ) -> compute.Operation: r"""Updates the specified regional BackendService resource with the data included in the request. For more - information, see Backend services overview . + information, see + Backend services overview. .. code-block:: python @@ -3210,7 +3233,8 @@ def update( ) -> extended_operation.ExtendedOperation: r"""Updates the specified regional BackendService resource with the data included in the request. For more - information, see Backend services overview . + information, see + Backend services overview. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_backend_services/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_backend_services/transports/rest.py index 06a72fb9916e..054ea2ca25b9 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_backend_services/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_backend_services/transports/rest.py @@ -899,21 +899,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1062,21 +1073,25 @@ def __call__( Returns: ~.compute.BackendService: - Represents a Backend Service resource. A backend service - defines how Google Cloud load balancers distribute - traffic. The backend service configuration contains a - set of values, such as the protocol used to connect to - backends, various distribution and session settings, - health checks, and timeouts. These settings provide - fine-grained control over how your load balancer - behaves. Most of the settings have default values that - allow for easy configuration if you need to get started - quickly. Backend services in Google Compute Engine can - be either regionally or globally scoped. \* - `Global `__ - \* - `Regional `__ - For more information, see Backend Services. + Represents a Backend Service resource. + + A backend service defines how Google Cloud load + balancers distribute traffic. The backend service + configuration contains a set of values, such as the + protocol used to connect to backends, various + distribution and session settings, health checks, and + timeouts. These settings provide fine-grained control + over how your load balancer behaves. Most of the + settings have default values that allow for easy + configuration if you need to get started quickly. + + Backend services in Google Compute Engine can be either + regionally or globally scoped. + + - `Global `__ + - `Regional `__ + + For more information, seeBackend Services. """ @@ -1380,26 +1395,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1550,21 +1616,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2017,21 +2094,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2188,26 +2276,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2363,21 +2502,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2694,21 +2844,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_commitments/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_commitments/client.py index fad91b11ea70..06deb3390765 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_commitments/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_commitments/client.py @@ -724,8 +724,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of commitments by region. To - prevent failure, Google recommends that you set the + r"""Retrieves an aggregated list of commitments by region. + + To prevent failure, it is recommended that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -909,15 +910,15 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Commitment: Represents a regional resource-based - commitment resource. Creating this - commitment resource means that you are - purchasing a resource-based committed - use contract, with an explicit start and - end time. You can purchase + commitment resource. + Creating this commitment resource means + that you are purchasing a resource-based + committed use contract, with an explicit + start and end time. You can purchase resource-based commitments for both hardware and software resources. For - more information, read Resource-based - committed use discounts + more information, read + Resource-based committed use discounts """ # Create or coerce a protobuf request object. @@ -1271,8 +1272,8 @@ def list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListPager: - r"""Retrieves a list of commitments contained within the - specified region. + r"""Retrieves a list of commitments contained within + the specified region. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_commitments/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_commitments/transports/rest.py index 814ed89c7ff4..e445668e0479 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_commitments/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_commitments/transports/rest.py @@ -646,15 +646,15 @@ def __call__( Returns: ~.compute.Commitment: Represents a regional resource-based - commitment resource. Creating this - commitment resource means that you are - purchasing a resource-based committed - use contract, with an explicit start and - end time. You can purchase + commitment resource. + Creating this commitment resource means + that you are purchasing a resource-based + committed use contract, with an explicit + start and end time. You can purchase resource-based commitments for both hardware and software resources. For - more information, read Resource-based - committed use discounts + more information, read + Resource-based committed use discounts """ @@ -804,21 +804,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1129,21 +1140,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disk_types/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disk_types/client.py index 3699fff7d6ac..55e9e52c57fa 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disk_types/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disk_types/client.py @@ -780,17 +780,24 @@ def sample_get(): Returns: google.cloud.compute_v1.types.DiskType: - Represents a Disk Type resource. Google Compute Engine - has two Disk Type resources: \* - [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) - \* [Zonal](/compute/docs/reference/rest/v1/diskTypes) - You can choose from a variety of disk types based on - your needs. For more information, read Storage options. - The diskTypes resource represents disk types for a zonal - persistent disk. For more information, read Zonal - persistent disks. The regionDiskTypes resource - represents disk types for a regional persistent disk. - For more information, read Regional persistent disks. + Represents a Disk Type resource. + + Google Compute Engine has two Disk Type resources: + + - [Regional](/compute/docs/reference/rest/v1/regionDiskTypes) + - [Zonal](/compute/docs/reference/rest/v1/diskTypes) + + You can choose from a variety of disk types based on + your needs. For more information, readStorage + options. + + The diskTypes resource represents disk types for a + zonal persistent disk. For more information, + readZonal persistent disks. + + The regionDiskTypes resource represents disk types + for a regional persistent disk. For more information, + read Regional persistent disks. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disk_types/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disk_types/transports/rest.py index f3b9d3d896cc..c3daf654d79e 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disk_types/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disk_types/transports/rest.py @@ -331,17 +331,23 @@ def __call__( Returns: ~.compute.DiskType: - Represents a Disk Type resource. Google Compute Engine - has two Disk Type resources: \* - `Regional `__ - \* `Zonal `__ + Represents a Disk Type resource. + + Google Compute Engine has two Disk Type resources: + + - `Regional `__ + - `Zonal `__ + You can choose from a variety of disk types based on - your needs. For more information, read Storage options. + your needs. For more information, readStorage options. + The diskTypes resource represents disk types for a zonal - persistent disk. For more information, read Zonal - persistent disks. The regionDiskTypes resource - represents disk types for a regional persistent disk. - For more information, read Regional persistent disks. + persistent disk. For more information, readZonal + persistent disks. + + The regionDiskTypes resource represents disk types for a + regional persistent disk. For more information, read + Regional persistent disks. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disks/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disks/client.py index b696f5146abd..59f895720493 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disks/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disks/client.py @@ -1660,8 +1660,8 @@ def delete_unary( r"""Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting - a disk does not delete any snapshots previously made - from the disk. You must separately delete snapshots. + a disk does not delete anysnapshots previously made from + the disk. You must separatelydelete snapshots. .. code-block:: python @@ -1797,8 +1797,8 @@ def delete( r"""Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting - a disk does not delete any snapshots previously made - from the disk. You must separately delete snapshots. + a disk does not delete anysnapshots previously made from + the disk. You must separatelydelete snapshots. .. code-block:: python @@ -2018,18 +2018,26 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Disk: - Represents a Persistent Disk resource. Google Compute - Engine has two Disk resources: \* - [Zonal](/compute/docs/reference/rest/v1/disks) \* - [Regional](/compute/docs/reference/rest/v1/regionDisks) - Persistent disks are required for running your VM - instances. Create both boot and non-boot (data) - persistent disks. For more information, read Persistent - Disks. For more storage options, read Storage options. - The disks resource represents a zonal persistent disk. - For more information, read Zonal persistent disks. The - regionDisks resource represents a regional persistent - disk. For more information, read Regional resources. + Represents a Persistent Disk resource. + + Google Compute Engine has two Disk resources: + + - [Zonal](/compute/docs/reference/rest/v1/disks) + - [Regional](/compute/docs/reference/rest/v1/regionDisks) + + Persistent disks are required for running your VM + instances. Create both boot and non-boot (data) + persistent disks. For more information, read + Persistent Disks. For more storage options, read + Storage options. + + The disks resource represents a zonal persistent + disk. For more information, readZonal persistent + disks. + + The regionDisks resource represents a regional + persistent disk. For more information, read Regional + resources. """ # Create or coerce a protobuf request object. @@ -2164,28 +2172,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -3390,28 +3406,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -3820,8 +3844,8 @@ def start_async_replication_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Starts asynchronous replication. Must be invoked on - the primary disk. + r"""Starts asynchronous replication. + Must be invoked on the primary disk. .. code-block:: python @@ -3973,8 +3997,8 @@ def start_async_replication( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Starts asynchronous replication. Must be invoked on - the primary disk. + r"""Starts asynchronous replication. + Must be invoked on the primary disk. .. code-block:: python @@ -4148,8 +4172,9 @@ def stop_async_replication_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Stops asynchronous replication. Can be invoked either - on the primary or on the secondary disk. + r"""Stops asynchronous replication. + Can be invoked either on the primary or on the secondary + disk. .. code-block:: python @@ -4284,8 +4309,9 @@ def stop_async_replication( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Stops asynchronous replication. Can be invoked either - on the primary or on the secondary disk. + r"""Stops asynchronous replication. + Can be invoked either on the primary or on the secondary + disk. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disks/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disks/transports/rest.py index c5ff0a262de8..768d80c1916f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disks/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_disks/transports/rest.py @@ -1156,21 +1156,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1327,21 +1338,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1500,21 +1522,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1666,21 +1699,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1829,18 +1873,24 @@ def __call__( Returns: ~.compute.Disk: - Represents a Persistent Disk resource. Google Compute - Engine has two Disk resources: \* - `Zonal `__ \* - `Regional `__ + Represents a Persistent Disk resource. + + Google Compute Engine has two Disk resources: + + - `Zonal `__ + - `Regional `__ + Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read Storage options. + The disks resource represents a zonal persistent disk. - For more information, read Zonal persistent disks. The - regionDisks resource represents a regional persistent - disk. For more information, read Regional resources. + For more information, readZonal persistent disks. + + The regionDisks resource represents a regional + persistent disk. For more information, read Regional + resources. """ @@ -1988,26 +2038,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2159,21 +2260,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2474,21 +2586,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2643,21 +2766,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2815,26 +2949,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2993,21 +3178,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3166,21 +3362,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3336,21 +3543,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3504,21 +3722,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3829,21 +4058,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_check_services/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_check_services/client.py index 854f79f39ec7..9517b53f33c4 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_check_services/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_check_services/client.py @@ -1607,8 +1607,8 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates the specified regional HealthCheckService - resource with the data included in the request. This - method supports PATCH semantics and uses the JSON merge + resource with the data included in the request. This + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python @@ -1761,8 +1761,8 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates the specified regional HealthCheckService - resource with the data included in the request. This - method supports PATCH semantics and uses the JSON merge + resource with the data included in the request. This + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py index 58aa0caff99f..adeb2a30c0f5 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_check_services/transports/rest.py @@ -507,21 +507,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -819,21 +830,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1134,21 +1156,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_checks/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_checks/client.py index ac2b60719a5b..111b030a7083 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_checks/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_checks/client.py @@ -1083,23 +1083,33 @@ def sample_get(): Returns: google.cloud.compute_v1.types.HealthCheck: - Represents a health check resource. Google Compute - Engine has two health check resources: \* - [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) - \* - [Global](/compute/docs/reference/rest/v1/healthChecks) - These health check resources can be used for load - balancing and for autohealing VMs in a managed instance - group (MIG). **Load balancing** Health check - requirements vary depending on the type of load - balancer. For details about the type of health check - supported for each load balancer and corresponding - backend type, see Health checks overview: Load balancer - guide. **Autohealing in MIGs** The health checks that - you use for autohealing VMs in a MIG can be either - regional or global. For more information, see Set up an - application health check and autohealing. For more - information, see Health checks overview. + Represents a health check resource. + + Google Compute Engine has two health check resources: + + - [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) + - [Global](/compute/docs/reference/rest/v1/healthChecks) + + These health check resources can be used for load + balancing and for autohealing VMs in a managed + instance group (MIG). + + **Load balancing** + + Health check requirements vary depending on the type + of load balancer. For details about the type of + health check supported for each load balancer and + corresponding backend type, see Health checks + overview: Load balancer guide. + + **Autohealing in MIGs** + + The health checks that you use for autohealing VMs in + a MIG can be either regional or global. For more + information, see Set up an application health check + and autohealing. + + For more information, seeHealth checks overview. """ # Create or coerce a protobuf request object. @@ -1600,7 +1610,7 @@ def patch_unary( ) -> compute.Operation: r"""Updates a HealthCheck resource in the specified project using the data included in the request. This - method supports PATCH semantics and uses the JSON merge + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python @@ -1746,7 +1756,7 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Updates a HealthCheck resource in the specified project using the data included in the request. This - method supports PATCH semantics and uses the JSON merge + method supportsPATCH semantics and uses theJSON merge patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_checks/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_checks/transports/rest.py index b0d34f5857bd..33967cbfd643 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_checks/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_health_checks/transports/rest.py @@ -547,21 +547,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -712,23 +723,33 @@ def __call__( Returns: ~.compute.HealthCheck: - Represents a health check resource. Google Compute - Engine has two health check resources: \* - `Regional `__ - \* - `Global `__ + Represents a health check resource. + + Google Compute Engine has two health check resources: + + - `Regional `__ + - `Global `__ + These health check resources can be used for load balancing and for autohealing VMs in a managed instance - group (MIG). **Load balancing** Health check - requirements vary depending on the type of load - balancer. For details about the type of health check - supported for each load balancer and corresponding + group (MIG). + + **Load balancing** + + Health check requirements vary depending on the type of + load balancer. For details about the type of health + check supported for each load balancer and corresponding backend type, see Health checks overview: Load balancer - guide. **Autohealing in MIGs** The health checks that - you use for autohealing VMs in a MIG can be either - regional or global. For more information, see Set up an - application health check and autohealing. For more - information, see Health checks overview. + guide. + + **Autohealing in MIGs** + + The health checks that you use for autohealing VMs in a + MIG can be either regional or global. For more + information, see Set up an application health check and + autohealing. + + For more information, seeHealth checks overview. """ @@ -878,21 +899,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1201,21 +1233,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1376,21 +1419,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_group_managers/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_group_managers/client.py index 98bdaff15794..11257ebc809b 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_group_managers/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_group_managers/client.py @@ -742,17 +742,21 @@ def abandon_instances_unary( instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method - reduces the targetSize of the managed instance group by + reduces thetargetSize of the managed instance group by the number of instances that you abandon. This operation - is marked as DONE when the action is scheduled even if + is marked asDONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning - action with the listmanagedinstances method. If the - group is part of a backend service that has enabled + action with thelistmanagedinstances method. + + If the group is part of a backend + service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the - VM instance is removed or deleted. You can specify a - maximum of 1000 instances with this method per request. + VM instance is removed or deleted. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -914,17 +918,21 @@ def abandon_instances( instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method - reduces the targetSize of the managed instance group by + reduces thetargetSize of the managed instance group by the number of instances that you abandon. This operation - is marked as DONE when the action is scheduled even if + is marked asDONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning - action with the listmanagedinstances method. If the - group is part of a backend service that has enabled + action with thelistmanagedinstances method. + + If the group is part of a backend + service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the - VM instance is removed or deleted. You can specify a - maximum of 1000 instances with this method per request. + VM instance is removed or deleted. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -1469,7 +1477,7 @@ def create_instances_unary( instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify - the status of the creating or actions with the + the status of thecreating or actions with the listmanagedinstances method. .. code-block:: python @@ -1511,9 +1519,9 @@ def sample_create_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - managed instance group is located. It - should conform to RFC1035. + The name of theregion + where the managed instance group is + located. It should conform to RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -1636,7 +1644,7 @@ def create_instances( instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify - the status of the creating or actions with the + the status of thecreating or actions with the listmanagedinstances method. .. code-block:: python @@ -1678,9 +1686,9 @@ def sample_create_instances(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - managed instance group is located. It - should conform to RFC1035. + The name of theregion + where the managed instance group is + located. It should conform to RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -2126,18 +2134,23 @@ def delete_instances_unary( r"""Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a - member. This method reduces the targetSize of the - managed instance group by the number of instances that - you delete. The deleteInstances operation is marked DONE - if the deleteInstances request is successful. The + member. This method reduces thetargetSize of the managed + instance group by the number of instances that you + delete. + The deleteInstances operation is marked DONE if + the deleteInstances request is successful. The underlying actions take additional time. You must - separately verify the status of the deleting action with - the listmanagedinstances method. If the group is part of - a backend service that has enabled connection draining, - it can take up to 60 seconds after the connection - draining duration has elapsed before the VM instance is - removed or deleted. You can specify a maximum of 1000 - instances with this method per request. + separately verify the status of thedeleting action with + thelistmanagedinstances method. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -2297,18 +2310,23 @@ def delete_instances( r"""Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a - member. This method reduces the targetSize of the - managed instance group by the number of instances that - you delete. The deleteInstances operation is marked DONE - if the deleteInstances request is successful. The + member. This method reduces thetargetSize of the managed + instance group by the number of instances that you + delete. + The deleteInstances operation is marked DONE if + the deleteInstances request is successful. The underlying actions take additional time. You must - separately verify the status of the deleting action with - the listmanagedinstances method. If the group is part of - a backend service that has enabled connection draining, - it can take up to 60 seconds after the connection - draining duration has elapsed before the VM instance is - removed or deleted. You can specify a maximum of 1000 - instances with this method per request. + separately verify the status of thedeleting action with + thelistmanagedinstances method. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -2910,14 +2928,17 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InstanceGroupManager: Represents a Managed Instance Group - resource. An instance group is a - collection of VM instances that you can - manage as a single entity. For more - information, read Instance groups. For - zonal Managed Instance Group, use the - instanceGroupManagers resource. For - regional Managed Instance Group, use the - regionInstanceGroupManagers resource. + resource. + An instance group is a collection of VM + instances that you can manage as a + single entity. For more information, + readInstance groups. + + For zonal Managed Instance Group, use + the instanceGroupManagers resource. + + For regional Managed Instance Group, use + theregionInstanceGroupManagers resource. """ # Create or coerce a protobuf request object. @@ -2992,12 +3013,14 @@ def insert_unary( r"""Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created - using the specified instance template. This operation is - marked as DONE when the group is created even if the - instances in the group have not yet been created. You - must separately verify the status of the individual - instances with the listmanagedinstances method. A - regional managed instance group can contain up to 2000 + using the specified instance template. + This operation is marked as DONE when the group is + created even if the instances in the group have not yet + been created. You must separately verify the status of + the individual instances with thelistmanagedinstances + method. + + A regional managed instance group can contain up to 2000 instances. .. code-block:: python @@ -3136,12 +3159,14 @@ def insert( r"""Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created - using the specified instance template. This operation is - marked as DONE when the group is created even if the - instances in the group have not yet been created. You - must separately verify the status of the individual - instances with the listmanagedinstances method. A - regional managed instance group can contain up to 2000 + using the specified instance template. + This operation is marked as DONE when the group is + created even if the instances in the group have not yet + been created. You must separately verify the status of + the individual instances with thelistmanagedinstances + method. + + A regional managed instance group can contain up to 2000 instances. .. code-block:: python @@ -3444,8 +3469,8 @@ def list_errors( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListErrorsPager: r"""Lists all errors thrown by actions on instances for a - given regional managed instance group. The filter and - orderBy query parameters are not supported. + given regional managed instance group. The filter + andorderBy query parameters are not supported. .. code-block:: python @@ -3920,19 +3945,22 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates a managed instance group using the - information that you specify in the request. This - operation is marked as DONE when the group is patched - even if the instances in the group are still in the - process of being patched. You must separately verify the - status of the individual instances with the - listmanagedinstances method. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. If you update your group to specify a - new template or instance configuration, it's possible - that your intended specification for each VM in the - group is different from the current state of that VM. To - learn how to apply an updated configuration to the VMs - in a MIG, see Updating instances in a MIG. + information that you specify in the request. + This operation is marked as DONE when the group is + patched even if the instances in the group are still in + the process of being patched. You must separately verify + the status of the individual instances with the + listmanagedinstances + method. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. + + If you update your group to specify a new template or + instance configuration, it's possible that your intended + specification for each VM in the group is different from + the current state of that VM. To learn how to apply an + updated configuration to the VMs in a MIG, seeUpdating + instances in a MIG. .. code-block:: python @@ -4085,19 +4113,22 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates a managed instance group using the - information that you specify in the request. This - operation is marked as DONE when the group is patched - even if the instances in the group are still in the - process of being patched. You must separately verify the - status of the individual instances with the - listmanagedinstances method. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. If you update your group to specify a - new template or instance configuration, it's possible - that your intended specification for each VM in the - group is different from the current state of that VM. To - learn how to apply an updated configuration to the VMs - in a MIG, see Updating instances in a MIG. + information that you specify in the request. + This operation is marked as DONE when the group is + patched even if the instances in the group are still in + the process of being patched. You must separately verify + the status of the individual instances with the + listmanagedinstances + method. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. + + If you update your group to specify a new template or + instance configuration, it's possible that your intended + specification for each VM in the group is different from + the current state of that VM. To learn how to apply an + updated configuration to the VMs in a MIG, seeUpdating + instances in a MIG. .. code-block:: python @@ -4643,12 +4674,16 @@ def recreate_instances_unary( configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each - instance by checking its currentAction field; for more + instance by checking itscurrentAction field; for more information, see Checking the status of managed - instances. If the group is part of a backend service - that has enabled connection draining, it can take up to - 60 seconds after the connection draining duration has - elapsed before the VM instance is removed or deleted. + instances. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + You can specify a maximum of 1000 instances with this method per request. @@ -4812,12 +4847,16 @@ def recreate_instances( configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each - instance by checking its currentAction field; for more + instance by checking itscurrentAction field; for more information, see Checking the status of managed - instances. If the group is part of a backend service - that has enabled connection draining, it can take up to - 60 seconds after the connection draining duration has - elapsed before the VM instance is removed or deleted. + instances. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. + You can specify a maximum of 1000 instances with this method per request. @@ -5002,15 +5041,19 @@ def resize_unary( group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more - instances. The resize operation is marked DONE if the - resize request is successful. The underlying actions - take additional time. You must separately verify the - status of the creating or deleting actions with the - listmanagedinstances method. If the group is part of a - backend service that has enabled connection draining, it - can take up to 60 seconds after the connection draining - duration has elapsed before the VM instance is removed - or deleted. + instances. + + The resize operation is marked DONE if theresize request + is successful. The underlying actions take additional + time. You must separately verify the status of + thecreating or deleting actions with + thelistmanagedinstances method. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. .. code-block:: python @@ -5160,15 +5203,19 @@ def resize( group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more - instances. The resize operation is marked DONE if the - resize request is successful. The underlying actions - take additional time. You must separately verify the - status of the creating or deleting actions with the - listmanagedinstances method. If the group is part of a - backend service that has enabled connection draining, it - can take up to 60 seconds after the connection draining - duration has elapsed before the VM instance is removed - or deleted. + instances. + + The resize operation is marked DONE if theresize request + is successful. The underlying actions take additional + time. You must separately verify the status of + thecreating or deleting actions with + thelistmanagedinstances method. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is removed or deleted. .. code-block:: python @@ -5342,22 +5389,26 @@ def resume_instances_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Flags the specified instances in the managed instance - group to be resumed. This method increases the - targetSize and decreases the targetSuspendedSize of the - managed instance group by the number of instances that - you resume. The resumeInstances operation is marked DONE - if the resumeInstances request is successful. The + group to be resumed. This method increases thetargetSize + and decreases the targetSuspendedSize of the managed + instance group by the number of instances that you + resume. The resumeInstances operation is marked DONE if + the resumeInstances request is successful. The underlying actions take additional time. You must - separately verify the status of the RESUMING action with - the listmanagedinstances method. In this request, you - can only specify instances that are suspended. For - example, if an instance was previously suspended using - the suspendInstances method, it can be resumed using the - resumeInstances method. If a health check is attached to - the managed instance group, the specified instances will - be verified as healthy after they are resumed. You can - specify a maximum of 1000 instances with this method per - request. + separately verify the status of theRESUMING action with + thelistmanagedinstances method. + + In this request, you can only specify instances that are + suspended. For example, if an instance was previously + suspended using the suspendInstances method, it can be + resumed using the resumeInstances method. + + If a health check is attached to the managed instance + group, the specified instances will be verified as + healthy after they are resumed. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -5515,22 +5566,26 @@ def resume_instances( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Flags the specified instances in the managed instance - group to be resumed. This method increases the - targetSize and decreases the targetSuspendedSize of the - managed instance group by the number of instances that - you resume. The resumeInstances operation is marked DONE - if the resumeInstances request is successful. The + group to be resumed. This method increases thetargetSize + and decreases the targetSuspendedSize of the managed + instance group by the number of instances that you + resume. The resumeInstances operation is marked DONE if + the resumeInstances request is successful. The underlying actions take additional time. You must - separately verify the status of the RESUMING action with - the listmanagedinstances method. In this request, you - can only specify instances that are suspended. For - example, if an instance was previously suspended using - the suspendInstances method, it can be resumed using the - resumeInstances method. If a health check is attached to - the managed instance group, the specified instances will - be verified as healthy after they are resumed. You can - specify a maximum of 1000 instances with this method per - request. + separately verify the status of theRESUMING action with + thelistmanagedinstances method. + + In this request, you can only specify instances that are + suspended. For example, if an instance was previously + suspended using the suspendInstances method, it can be + resumed using the resumeInstances method. + + If a health check is attached to the managed instance + group, the specified instances will be verified as + healthy after they are resumed. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -6401,22 +6456,26 @@ def start_instances_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Flags the specified instances in the managed instance - group to be started. This method increases the - targetSize and decreases the targetStoppedSize of the - managed instance group by the number of instances that - you start. The startInstances operation is marked DONE - if the startInstances request is successful. The - underlying actions take additional time. You must - separately verify the status of the STARTING action with - the listmanagedinstances method. In this request, you - can only specify instances that are stopped. For - example, if an instance was previously stopped using the - stopInstances method, it can be started using the - startInstances method. If a health check is attached to - the managed instance group, the specified instances will - be verified as healthy after they are started. You can - specify a maximum of 1000 instances with this method per - request. + group to be started. This method increases thetargetSize + and decreases the targetStoppedSize of the managed + instance group by the number of instances that you + start. The startInstances operation is marked DONE if + the startInstances request is successful. The underlying + actions take additional time. You must separately verify + the status of theSTARTING action with + thelistmanagedinstances method. + + In this request, you can only specify instances that are + stopped. For example, if an instance was previously + stopped using the stopInstances method, it can be + started using the startInstances method. + + If a health check is attached to the managed instance + group, the specified instances will be verified as + healthy after they are started. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -6574,22 +6633,26 @@ def start_instances( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Flags the specified instances in the managed instance - group to be started. This method increases the - targetSize and decreases the targetStoppedSize of the - managed instance group by the number of instances that - you start. The startInstances operation is marked DONE - if the startInstances request is successful. The - underlying actions take additional time. You must - separately verify the status of the STARTING action with - the listmanagedinstances method. In this request, you - can only specify instances that are stopped. For - example, if an instance was previously stopped using the - stopInstances method, it can be started using the - startInstances method. If a health check is attached to - the managed instance group, the specified instances will - be verified as healthy after they are started. You can - specify a maximum of 1000 instances with this method per - request. + group to be started. This method increases thetargetSize + and decreases the targetStoppedSize of the managed + instance group by the number of instances that you + start. The startInstances operation is marked DONE if + the startInstances request is successful. The underlying + actions take additional time. You must separately verify + the status of theSTARTING action with + thelistmanagedinstances method. + + In this request, you can only specify instances that are + stopped. For example, if an instance was previously + stopped using the stopInstances method, it can be + started using the startInstances method. + + If a health check is attached to the managed instance + group, the specified instances will be verified as + healthy after they are started. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -6774,27 +6837,36 @@ def stop_instances_unary( r"""Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method - reduces the targetSize and increases the + reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances - operation is marked DONE if the stopInstances request is - successful. The underlying actions take additional time. - You must separately verify the status of the STOPPING - action with the listmanagedinstances method. If the - standbyPolicy.initialDelaySec field is set, the group - delays stopping the instances until initialDelaySec have - passed from instance.creationTimestamp (that is, when - the instance was created). This delay gives your - application time to set itself up and initialize on the - instance. If more than initialDelaySec seconds have - passed since instance.creationTimestamp when this method - is called, there will be zero delay. If the group is - part of a backend service that has enabled connection - draining, it can take up to 60 seconds after the - connection draining duration has elapsed before the VM - instance is stopped. Stopped instances can be started - using the startInstances method. You can specify a - maximum of 1000 instances with this method per request. + operation is marked DONE if + the stopInstances request is successful. The underlying + actions take additional time. You must separately verify + the status of theSTOPPING action with + thelistmanagedinstances method. + + If the standbyPolicy.initialDelaySec field is set, the + group delays stopping the instances until + initialDelaySec have passed from + instance.creationTimestamp (that is, when the instance + was created). This delay gives your application time to + set itself up and initialize on the instance. If more + thaninitialDelaySec seconds have passed + sinceinstance.creationTimestamp when this method is + called, there will be zero delay. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is stopped. + + Stopped instances can be started using the + startInstances method. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -6956,27 +7028,36 @@ def stop_instances( r"""Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method - reduces the targetSize and increases the + reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances - operation is marked DONE if the stopInstances request is - successful. The underlying actions take additional time. - You must separately verify the status of the STOPPING - action with the listmanagedinstances method. If the - standbyPolicy.initialDelaySec field is set, the group - delays stopping the instances until initialDelaySec have - passed from instance.creationTimestamp (that is, when - the instance was created). This delay gives your - application time to set itself up and initialize on the - instance. If more than initialDelaySec seconds have - passed since instance.creationTimestamp when this method - is called, there will be zero delay. If the group is - part of a backend service that has enabled connection - draining, it can take up to 60 seconds after the - connection draining duration has elapsed before the VM - instance is stopped. Stopped instances can be started - using the startInstances method. You can specify a - maximum of 1000 instances with this method per request. + operation is marked DONE if + the stopInstances request is successful. The underlying + actions take additional time. You must separately verify + the status of theSTOPPING action with + thelistmanagedinstances method. + + If the standbyPolicy.initialDelaySec field is set, the + group delays stopping the instances until + initialDelaySec have passed from + instance.creationTimestamp (that is, when the instance + was created). This delay gives your application time to + set itself up and initialize on the instance. If more + thaninitialDelaySec seconds have passed + sinceinstance.creationTimestamp when this method is + called, there will be zero delay. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is stopped. + + Stopped instances can be started using the + startInstances method. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -7163,29 +7244,36 @@ def suspend_instances_unary( r"""Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method - reduces the targetSize and increases the + reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify - the status of the SUSPENDING action with the - listmanagedinstances method. If the - standbyPolicy.initialDelaySec field is set, the group - delays suspension of the instances until initialDelaySec - have passed from instance.creationTimestamp (that is, - when the instance was created). This delay gives your - application time to set itself up and initialize on the - instance. If more than initialDelaySec seconds have - passed since instance.creationTimestamp when this method - is called, there will be zero delay. If the group is - part of a backend service that has enabled connection - draining, it can take up to 60 seconds after the - connection draining duration has elapsed before the VM - instance is suspended. Suspended instances can be - resumed using the resumeInstances method. You can - specify a maximum of 1000 instances with this method per - request. + the status of theSUSPENDING action with + thelistmanagedinstances method. + + If the standbyPolicy.initialDelaySec field is set, the + group delays suspension of the instances until + initialDelaySec have passed from + instance.creationTimestamp (that is, when the instance + was created). This delay gives your application time to + set itself up and initialize on the instance. If more + thaninitialDelaySec seconds have passed + sinceinstance.creationTimestamp when this method is + called, there will be zero delay. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is suspended. + + Suspended instances can be resumed using the + resumeInstances method. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python @@ -7345,29 +7433,36 @@ def suspend_instances( r"""Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method - reduces the targetSize and increases the + reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify - the status of the SUSPENDING action with the - listmanagedinstances method. If the - standbyPolicy.initialDelaySec field is set, the group - delays suspension of the instances until initialDelaySec - have passed from instance.creationTimestamp (that is, - when the instance was created). This delay gives your - application time to set itself up and initialize on the - instance. If more than initialDelaySec seconds have - passed since instance.creationTimestamp when this method - is called, there will be zero delay. If the group is - part of a backend service that has enabled connection - draining, it can take up to 60 seconds after the - connection draining duration has elapsed before the VM - instance is suspended. Suspended instances can be - resumed using the resumeInstances method. You can - specify a maximum of 1000 instances with this method per - request. + the status of theSUSPENDING action with + thelistmanagedinstances method. + + If the standbyPolicy.initialDelaySec field is set, the + group delays suspension of the instances until + initialDelaySec have passed from + instance.creationTimestamp (that is, when the instance + was created). This delay gives your application time to + set itself up and initialize on the instance. If more + thaninitialDelaySec seconds have passed + sinceinstance.creationTimestamp when this method is + called, there will be zero delay. + + If the group is part of a backend + service that has enabled + connection draining, it can take up to 60 seconds after + the connection draining duration has elapsed before the + VM instance is suspended. + + Suspended instances can be resumed using the + resumeInstances method. + + You can specify a maximum of 1000 instances with this + method per request. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py index 7d35c1ff6e9c..9962ca11e50e 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_group_managers/transports/rest.py @@ -1523,21 +1523,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1698,21 +1709,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1870,21 +1892,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2043,21 +2076,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2208,21 +2252,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2385,21 +2440,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2557,14 +2623,17 @@ def __call__( Returns: ~.compute.InstanceGroupManager: Represents a Managed Instance Group - resource. An instance group is a - collection of VM instances that you can - manage as a single entity. For more - information, read Instance groups. For - zonal Managed Instance Group, use the - instanceGroupManagers resource. For - regional Managed Instance Group, use the - regionInstanceGroupManagers resource. + resource. + An instance group is a collection of VM + instances that you can manage as a + single entity. For more information, + readInstance groups. + + For zonal Managed Instance Group, use + the instanceGroupManagers resource. + + For regional Managed Instance Group, use + theregionInstanceGroupManagers resource. """ @@ -2711,21 +2780,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3489,21 +3569,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3662,21 +3753,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3834,21 +3936,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4005,21 +4118,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4170,21 +4294,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4344,21 +4479,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4516,21 +4662,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4690,21 +4847,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -4862,21 +5030,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -5034,21 +5213,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -5209,21 +5399,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_groups/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_groups/client.py index 175f4b151ff2..5f40d8281a4b 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_groups/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_groups/client.py @@ -789,19 +789,28 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InstanceGroup: Represents an Instance Group - resource. Instance Groups can be used to - configure a target for load balancing. + resource. + Instance Groups can be used to configure + a target forload balancing. + Instance groups can either be managed or - unmanaged. To create managed instance - groups, use the instanceGroupManager or - regionInstanceGroupManager resource - instead. Use zonal unmanaged instance - groups if you need to apply load - balancing to groups of heterogeneous - instances or if you need to manage the - instances yourself. You cannot create - regional unmanaged instance groups. For - more information, read Instance groups. + unmanaged. + + To create + managed instance groups, use the + instanceGroupManager + orregionInstanceGroupManager resource + instead. + + Use zonal unmanaged instance groups if + you need to applyload balancing to + groups of heterogeneous instances or if + you need to manage the instances + yourself. You cannot create regional + unmanaged instance groups. + + For more information, readInstance + groups. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py index a2a1550e996b..056228578d63 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_groups/transports/rest.py @@ -510,19 +510,28 @@ def __call__( Returns: ~.compute.InstanceGroup: Represents an Instance Group - resource. Instance Groups can be used to - configure a target for load balancing. + resource. + Instance Groups can be used to configure + a target forload balancing. + Instance groups can either be managed or - unmanaged. To create managed instance - groups, use the instanceGroupManager or - regionInstanceGroupManager resource - instead. Use zonal unmanaged instance - groups if you need to apply load - balancing to groups of heterogeneous - instances or if you need to manage the - instances yourself. You cannot create - regional unmanaged instance groups. For - more information, read Instance groups. + unmanaged. + + To create + managed instance groups, use the + instanceGroupManager + orregionInstanceGroupManager resource + instead. + + Use zonal unmanaged instance groups if + you need to applyload balancing to + groups of heterogeneous instances or if + you need to manage the instances + yourself. You cannot create regional + unmanaged instance groups. + + For more information, readInstance + groups. """ @@ -976,21 +985,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_templates/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_templates/client.py index 66128cbc913d..0da04b62f8c0 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_templates/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_templates/client.py @@ -1091,19 +1091,25 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InstanceTemplate: - Represents an Instance Template resource. Google Compute - Engine has two Instance Template resources: \* - [Global](/compute/docs/reference/rest/v1/instanceTemplates) - \* - [Regional](/compute/docs/reference/rest/v1/regionInstanceTemplates) - You can reuse a global instance template in different - regions whereas you can use a regional instance template - in a specified region only. If you want to reduce - cross-region dependency or achieve data residency, use a - regional instance template. To create VMs, managed - instance groups, and reservations, you can use either - global or regional instance templates. For more - information, read Instance Templates. + Represents an Instance Template resource. + + Google Compute Engine has two Instance Template + resources: + + - [Global](/compute/docs/reference/rest/v1/instanceTemplates) + - [Regional](/compute/docs/reference/rest/v1/regionInstanceTemplates) + + You can reuse a global instance template in different + regions whereas you can use a regional instance + template in a specified region only. If you want to + reduce cross-region dependency or achieve data + residency, use a regional instance template. + + To create VMs, managed instance groups, and + reservations, you can use either global or regional + instance templates. + + For more information, readInstance Templates. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py index 281580977cd6..11332026425d 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instance_templates/transports/rest.py @@ -446,21 +446,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -610,19 +621,25 @@ def __call__( Returns: ~.compute.InstanceTemplate: - Represents an Instance Template resource. Google Compute - Engine has two Instance Template resources: \* - `Global `__ - \* - `Regional `__ + Represents an Instance Template resource. + + Google Compute Engine has two Instance Template + resources: + + - `Global `__ + - `Regional `__ + You can reuse a global instance template in different regions whereas you can use a regional instance template in a specified region only. If you want to reduce cross-region dependency or achieve data residency, use a - regional instance template. To create VMs, managed - instance groups, and reservations, you can use either - global or regional instance templates. For more - information, read Instance Templates. + regional instance template. + + To create VMs, managed instance groups, and + reservations, you can use either global or regional + instance templates. + + For more information, readInstance Templates. """ @@ -769,21 +786,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instances/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instances/transports/rest.py index 9c5309b581e2..60e22f78b88e 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instances/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instances/transports/rest.py @@ -278,21 +278,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instant_snapshots/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instant_snapshots/client.py index 9f020074cd96..4a64b9f72707 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instant_snapshots/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instant_snapshots/client.py @@ -734,7 +734,9 @@ def delete_unary( If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding - instantSnapshot. For more information, see Deleting + instantSnapshot. + + For more information, seeDeleting instantSnapshots. .. code-block:: python @@ -878,7 +880,9 @@ def delete( If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding - instantSnapshot. For more information, see Deleting + instantSnapshot. + + For more information, seeDeleting instantSnapshots. .. code-block:: python @@ -1105,8 +1109,9 @@ def sample_get(): Returns: google.cloud.compute_v1.types.InstantSnapshot: Represents a InstantSnapshot - resource. You can use instant snapshots - to create disk rollback points quickly.. + resource. + You can use instant snapshots to create + disk rollback points quickly.. """ # Create or coerce a protobuf request object. @@ -1243,28 +1248,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1837,28 +1850,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instant_snapshots/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instant_snapshots/transports/rest.py index 1bfa0782b68e..98615420c4f9 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instant_snapshots/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_instant_snapshots/transports/rest.py @@ -669,21 +669,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -834,8 +845,9 @@ def __call__( Returns: ~.compute.InstantSnapshot: Represents a InstantSnapshot - resource. You can use instant snapshots - to create disk rollback points quickly.. + resource. + You can use instant snapshots to create + disk rollback points quickly.. """ @@ -982,26 +994,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1152,21 +1215,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1470,26 +1544,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1645,21 +1770,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py index 9fe544619426..7511cdd0780f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_endpoint_groups/client.py @@ -779,9 +779,9 @@ def sample_attach_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where you want - to create the network endpoint group. It - should comply with RFC1035. + The name of the region where + you want to create the network endpoint + group. It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -944,9 +944,9 @@ def sample_attach_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where you want - to create the network endpoint group. It - should comply with RFC1035. + The name of the region where + you want to create the network endpoint + group. It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -1132,9 +1132,9 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - network endpoint group is located. It - should comply with RFC1035. + The name of the region where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -1273,9 +1273,9 @@ def sample_delete(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - network endpoint group is located. It - should comply with RFC1035. + The name of the region where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -1441,9 +1441,9 @@ def sample_detach_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - network endpoint group is located. It - should comply with RFC1035. + The name of the region where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -1606,9 +1606,9 @@ def sample_detach_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - network endpoint group is located. It - should comply with RFC1035. + The name of the region where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -1792,9 +1792,9 @@ def sample_get(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - network endpoint group is located. It - should comply with RFC1035. + The name of the region where + the network endpoint group is located. + It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -1817,13 +1817,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.NetworkEndpointGroup: Represents a collection of network - endpoints. A network endpoint group - (NEG) defines how a set of endpoints - should be reached, whether they are - reachable, and where they are located. - For more information about using NEGs - for different use cases, see Network - endpoint groups overview. + endpoints. + A network endpoint group (NEG) defines + how a set of endpoints should be + reached, whether they are reachable, and + where they are located. For more + information about using NEGs for + different use cases, seeNetwork endpoint + groups overview. """ # Create or coerce a protobuf request object. @@ -1937,9 +1938,9 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where you want - to create the network endpoint group. It - should comply with RFC1035. + The name of the region where + you want to create the network endpoint + group. It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -2075,9 +2076,9 @@ def sample_insert(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where you want - to create the network endpoint group. It - should comply with RFC1035. + The name of the region where + you want to create the network endpoint + group. It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -2238,9 +2239,9 @@ def sample_list(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - network endpoint group is located. It - should comply with RFC1035. + The name of theregion + where the network endpoint group is + located. It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this @@ -2380,9 +2381,9 @@ def sample_list_network_endpoints(): on the ``request`` instance; if ``request`` is provided, this should not be set. region (str): - The name of the region where the - network endpoint group is located. It - should comply with RFC1035. + The name of theregion + where the network endpoint group is + located. It should comply with RFC1035. This corresponds to the ``region`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py index deae1519bd3e..5212cc1fa7fa 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_endpoint_groups/transports/rest.py @@ -629,21 +629,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -800,21 +811,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -967,21 +989,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1139,13 +1172,14 @@ def __call__( Returns: ~.compute.NetworkEndpointGroup: Represents a collection of network - endpoints. A network endpoint group - (NEG) defines how a set of endpoints - should be reached, whether they are - reachable, and where they are located. - For more information about using NEGs - for different use cases, see Network - endpoint groups overview. + endpoints. + A network endpoint group (NEG) defines + how a set of endpoints should be + reached, whether they are reachable, and + where they are located. For more + information about using NEGs for + different use cases, seeNetwork endpoint + groups overview. """ @@ -1292,21 +1326,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_firewall_policies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_firewall_policies/client.py index c0ef974c3736..f1a938a763a4 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_firewall_policies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_firewall_policies/client.py @@ -2483,28 +2483,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -4475,28 +4483,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py index ec1755e7b070..6ffbaadb69e6 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_network_firewall_policies/transports/rest.py @@ -1182,21 +1182,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1352,21 +1363,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1523,21 +1545,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1689,21 +1722,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2307,26 +2351,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2632,21 +2727,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2947,21 +3053,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3117,21 +3234,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3288,21 +3416,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3454,21 +3593,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3622,26 +3772,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_notification_endpoints/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_notification_endpoints/client.py index d61b211fa9c0..e63291024893 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_notification_endpoints/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_notification_endpoints/client.py @@ -1100,13 +1100,15 @@ def sample_get(): Returns: google.cloud.compute_v1.types.NotificationEndpoint: - Represents a notification endpoint. A - notification endpoint resource defines + Represents a notification endpoint. + + A notification endpoint resource defines an endpoint to receive notifications when there are status changes detected by the associated health check service. - For more information, see Health checks - overview. + + For more information, see + Health checks overview. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py index c3704424b218..7efaf8b15271 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_notification_endpoints/transports/rest.py @@ -452,21 +452,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -616,13 +627,15 @@ def __call__( Returns: ~.compute.NotificationEndpoint: - Represents a notification endpoint. A - notification endpoint resource defines + Represents a notification endpoint. + + A notification endpoint resource defines an endpoint to receive notifications when there are status changes detected by the associated health check service. - For more information, see Health checks - overview. + + For more information, see + Health checks overview. """ @@ -769,21 +782,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_operations/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_operations/client.py index fae3ee234f50..d94ebeb4ac50 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_operations/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_operations/client.py @@ -919,23 +919,30 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - [Global](/compute/docs/reference/rest/v1/globalOperations) - \* - [Regional](/compute/docs/reference/rest/v1/regionOperations) - \* - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) - You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the globalOperations - resource. - For regional operations, use the - regionOperations resource. - For zonal operations, use - the zoneOperations resource. For more information, read - Global, Regional, and Zonal Resources. Note that - completed Operation resources have a limited retention - period. + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - [Global](/compute/docs/reference/rest/v1/globalOperations) + - [Regional](/compute/docs/reference/rest/v1/regionOperations) + - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) + + You can use an operation resource to manage + asynchronous API requests. For more information, + readHandling API responses. + + Operations can be global, regional or zonal. + + - For global operations, use the globalOperations + resource. - For regional operations, use the + regionOperations resource. - For zonal operations, + use the zoneOperations resource. + + For more information, read Global, Regional, and + Zonal Resources. + + Note that completed Operation resources have a + limited retention period. """ # Create or coerce a protobuf request object. @@ -1148,13 +1155,17 @@ def wait( from the ``GET`` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be ``DONE`` or still in progress. - This method is called on a best-effort basis. Specifically: - In - uncommon cases, when the server is overloaded, the request might - return before the default deadline is reached, or might return - after zero seconds. - If the default deadline is reached, there - is no guarantee that the operation is actually done when the - method returns. Be prepared to retry if the operation is not - ``DONE``. + + This method is called on a best-effort basis. Specifically: + + :: + + - In uncommon cases, when the server is overloaded, the request might + return before the default deadline is reached, or might return after zero + seconds. + - If the default deadline is reached, there is no guarantee that the + operation is actually done when the method returns. Be prepared to retry + if the operation is not `DONE`. .. code-block:: python @@ -1217,23 +1228,30 @@ def sample_wait(): Returns: google.cloud.compute_v1.types.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - [Global](/compute/docs/reference/rest/v1/globalOperations) - \* - [Regional](/compute/docs/reference/rest/v1/regionOperations) - \* - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) - You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the globalOperations - resource. - For regional operations, use the - regionOperations resource. - For zonal operations, use - the zoneOperations resource. For more information, read - Global, Regional, and Zonal Resources. Note that - completed Operation resources have a limited retention - period. + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - [Global](/compute/docs/reference/rest/v1/globalOperations) + - [Regional](/compute/docs/reference/rest/v1/regionOperations) + - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) + + You can use an operation resource to manage + asynchronous API requests. For more information, + readHandling API responses. + + Operations can be global, regional or zonal. + + - For global operations, use the globalOperations + resource. - For regional operations, use the + regionOperations resource. - For zonal operations, + use the zoneOperations resource. + + For more information, read Global, Regional, and + Zonal Resources. + + Note that completed Operation resources have a + limited retention period. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_operations/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_operations/transports/rest.py index d3c478608ae7..2016d5f77b32 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_operations/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_operations/transports/rest.py @@ -596,21 +596,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -907,21 +918,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_security_policies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_security_policies/client.py index cb835a7c4653..19ea7db4dcd0 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_security_policies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_security_policies/client.py @@ -1414,11 +1414,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.SecurityPolicy: Represents a Google Cloud Armor - security policy resource. Only external - backend services that use load balancers - can reference a security policy. For - more information, see Google Cloud Armor - security policy overview. + security policy resource. + Only external backend services that use + load balancers can reference a security + policy. For more information, see Google + Cloud Armor security policy overview. """ # Create or coerce a protobuf request object. @@ -3014,7 +3014,8 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on a security policy. To learn more - about labels, read the Labeling Resources documentation. + about labels, read the Labeling Resources + documentation. .. code-block:: python @@ -3167,7 +3168,8 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on a security policy. To learn more - about labels, read the Labeling Resources documentation. + about labels, read the Labeling Resources + documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_security_policies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_security_policies/transports/rest.py index ab761e67a333..b514c44042e7 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_security_policies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_security_policies/transports/rest.py @@ -778,21 +778,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -947,21 +958,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1112,11 +1134,11 @@ def __call__( Returns: ~.compute.SecurityPolicy: Represents a Google Cloud Armor - security policy resource. Only external - backend services that use load balancers - can reference a security policy. For - more information, see Google Cloud Armor - security policy overview. + security policy resource. + Only external backend services that use + load balancers can reference a security + policy. For more information, see Google + Cloud Armor security policy overview. """ @@ -1414,21 +1436,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1729,21 +1762,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1899,21 +1943,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2068,21 +2123,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2233,21 +2299,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_certificates/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_certificates/client.py index 3b43cc501a41..095cde2b29f9 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_certificates/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_certificates/client.py @@ -1093,26 +1093,36 @@ def sample_get(): Returns: google.cloud.compute_v1.types.SslCertificate: - Represents an SSL certificate resource. Google Compute - Engine has two SSL certificate resources: \* - [Global](/compute/docs/reference/rest/v1/sslCertificates) - \* - [Regional](/compute/docs/reference/rest/v1/regionSslCertificates) - The global SSL certificates (sslCertificates) are used - by: - Global external Application Load Balancers - - Classic Application Load Balancers - Proxy Network Load - Balancers (with target SSL proxies) The regional SSL - certificates (regionSslCertificates) are used by: - - Regional external Application Load Balancers - Regional - internal Application Load Balancers Optionally, - certificate file contents that you upload can contain a - set of up to five PEM-encoded certificates. The API call - creates an object (sslCertificate) that holds this data. - You can use SSL keys and certificates to secure - connections to a load balancer. For more information, - read Creating and using SSL certificates, SSL - certificates quotas and limits, and Troubleshooting SSL - certificates. + Represents an SSL certificate resource. + + Google Compute Engine has two SSL certificate + resources: + + - [Global](/compute/docs/reference/rest/v1/sslCertificates) + - [Regional](/compute/docs/reference/rest/v1/regionSslCertificates) + + The global SSL certificates (sslCertificates) are + used by: + + - Global external Application Load Balancers + - Classic Application Load Balancers + - Proxy Network Load Balancers (with target SSL + proxies) + + The regional SSL certificates (regionSslCertificates) + are used by: + + - Regional external Application Load Balancers + - Regional internal Application Load Balancers + + Optionally, certificate file contents that you upload + can contain a set of up to five PEM-encoded + certificates. The API call creates an object + (sslCertificate) that holds this data. You can use + SSL keys and certificates to secure connections to a + load balancer. For more information, read Creating + and using SSL certificates,SSL certificates quotas + and limits, and Troubleshooting SSL certificates. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py index 451c52f84a09..9209691cceaa 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_certificates/transports/rest.py @@ -445,21 +445,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -608,26 +619,38 @@ def __call__( Returns: ~.compute.SslCertificate: - Represents an SSL certificate resource. Google Compute - Engine has two SSL certificate resources: \* - `Global `__ - \* - `Regional `__ + Represents an SSL certificate resource. + + Google Compute Engine has two SSL certificate resources: + + - `Global `__ + - `Regional `__ + The global SSL certificates (sslCertificates) are used - by: - Global external Application Load Balancers - - Classic Application Load Balancers - Proxy Network Load - Balancers (with target SSL proxies) The regional SSL - certificates (regionSslCertificates) are used by: - - Regional external Application Load Balancers - Regional - internal Application Load Balancers Optionally, - certificate file contents that you upload can contain a - set of up to five PEM-encoded certificates. The API call - creates an object (sslCertificate) that holds this data. - You can use SSL keys and certificates to secure - connections to a load balancer. For more information, - read Creating and using SSL certificates, SSL - certificates quotas and limits, and Troubleshooting SSL - certificates. + by: + + :: + + - Global external Application Load Balancers + - Classic Application Load Balancers + - Proxy Network Load Balancers (with target SSL proxies) + + The regional SSL certificates (regionSslCertificates) + are used by: + + :: + + - Regional external Application Load Balancers + - Regional internal Application Load Balancers + + Optionally, certificate file contents that you upload + can contain a set of up to five PEM-encoded + certificates. The API call creates an object + (sslCertificate) that holds this data. You can use SSL + keys and certificates to secure connections to a load + balancer. For more information, read Creating and using + SSL certificates,SSL certificates quotas and limits, and + Troubleshooting SSL certificates. """ @@ -776,21 +799,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_policies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_policies/client.py index 3c4996bb68aa..95ae8d08a402 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_policies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_policies/client.py @@ -1092,6 +1092,7 @@ def sample_get(): Returns: google.cloud.compute_v1.types.SslPolicy: Represents an SSL Policy resource. + Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py index c6c8fdd92c51..8619877489dd 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_ssl_policies/transports/rest.py @@ -553,21 +553,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -719,6 +730,7 @@ def __call__( Returns: ~.compute.SslPolicy: Represents an SSL Policy resource. + Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application @@ -874,21 +886,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1352,21 +1375,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_http_proxies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_http_proxies/client.py index dcf2f71647db..2056f218531b 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_http_proxies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_http_proxies/client.py @@ -1092,22 +1092,29 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetHttpProxy: - Represents a Target HTTP Proxy resource. Google Compute - Engine has two Target HTTP Proxy resources: \* - [Global](/compute/docs/reference/rest/v1/targetHttpProxies) - \* - [Regional](/compute/docs/reference/rest/v1/regionTargetHttpProxies) - A target HTTP proxy is a component of Google Cloud HTTP - load balancers. \* targetHttpProxies are used by global - external Application Load Balancers, classic Application - Load Balancers, cross-region internal Application Load - Balancers, and Traffic Director. \* - regionTargetHttpProxies are used by regional internal - Application Load Balancers and regional external - Application Load Balancers. Forwarding rules reference a - target HTTP proxy, and the target proxy then references - a URL map. For more information, read Using Target - Proxies and Forwarding rule concepts. + Represents a Target HTTP Proxy resource. + + Google Compute Engine has two Target HTTP Proxy + resources: + + - [Global](/compute/docs/reference/rest/v1/targetHttpProxies) + - [Regional](/compute/docs/reference/rest/v1/regionTargetHttpProxies) + + A target HTTP proxy is a component of Google Cloud + HTTP load balancers. + + - targetHttpProxies are used by global external + Application Load Balancers, classic Application + Load Balancers, cross-region internal Application + Load Balancers, and Traffic Director. + - regionTargetHttpProxies are used by regional + internal Application Load Balancers and regional + external Application Load Balancers. + + Forwarding rules reference a target HTTP proxy, and + the target proxy then references a URL map. For more + information, readUsing Target Proxies and Forwarding + rule concepts. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py index 076d6f33d25e..61d66bdf46fe 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_http_proxies/transports/rest.py @@ -500,21 +500,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -664,22 +675,29 @@ def __call__( Returns: ~.compute.TargetHttpProxy: - Represents a Target HTTP Proxy resource. Google Compute - Engine has two Target HTTP Proxy resources: \* - `Global `__ - \* - `Regional `__ + Represents a Target HTTP Proxy resource. + + Google Compute Engine has two Target HTTP Proxy + resources: + + - `Global `__ + - `Regional `__ + A target HTTP proxy is a component of Google Cloud HTTP - load balancers. \* targetHttpProxies are used by global - external Application Load Balancers, classic Application - Load Balancers, cross-region internal Application Load - Balancers, and Traffic Director. \* - regionTargetHttpProxies are used by regional internal - Application Load Balancers and regional external - Application Load Balancers. Forwarding rules reference a - target HTTP proxy, and the target proxy then references - a URL map. For more information, read Using Target - Proxies and Forwarding rule concepts. + load balancers. + + - targetHttpProxies are used by global external + Application Load Balancers, classic Application Load + Balancers, cross-region internal Application Load + Balancers, and Traffic Director. + - regionTargetHttpProxies are used by regional internal + Application Load Balancers and regional external + Application Load Balancers. + + Forwarding rules reference a target HTTP proxy, and the + target proxy then references a URL map. For more + information, readUsing Target Proxies and Forwarding + rule concepts. """ @@ -826,21 +844,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1141,21 +1170,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_https_proxies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_https_proxies/client.py index 6c33646b75ac..3369a48f8ac5 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_https_proxies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_https_proxies/client.py @@ -1092,22 +1092,29 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetHttpsProxy: - Represents a Target HTTPS Proxy resource. Google Compute - Engine has two Target HTTPS Proxy resources: \* - [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) - \* - [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) - A target HTTPS proxy is a component of Google Cloud - HTTPS load balancers. \* targetHttpsProxies are used by - global external Application Load Balancers, classic - Application Load Balancers, cross-region internal - Application Load Balancers, and Traffic Director. \* - regionTargetHttpsProxies are used by regional internal - Application Load Balancers and regional external - Application Load Balancers. Forwarding rules reference a - target HTTPS proxy, and the target proxy then references - a URL map. For more information, read Using Target - Proxies and Forwarding rule concepts. + Represents a Target HTTPS Proxy resource. + + Google Compute Engine has two Target HTTPS Proxy + resources: + + - [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) + - [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) + + A target HTTPS proxy is a component of Google Cloud + HTTPS load balancers. + + - targetHttpsProxies are used by global external + Application Load Balancers, classic Application + Load Balancers, cross-region internal Application + Load Balancers, and Traffic Director. + - regionTargetHttpsProxies are used by regional + internal Application Load Balancers and regional + external Application Load Balancers. + + Forwarding rules reference a target HTTPS proxy, and + the target proxy then references a URL map. For more + information, readUsing Target Proxies and Forwarding + rule concepts. """ # Create or coerce a protobuf request object. @@ -1619,7 +1626,7 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified regional TargetHttpsProxy resource with the data included in the request. This - method supports PATCH semantics and uses JSON merge + method supports PATCH semantics and usesJSON merge patch format and processing rules. .. code-block:: python @@ -1770,7 +1777,7 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified regional TargetHttpsProxy resource with the data included in the request. This - method supports PATCH semantics and uses JSON merge + method supports PATCH semantics and usesJSON merge patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py index 539fbf31b7c2..7605c9f1e804 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_https_proxies/transports/rest.py @@ -613,21 +613,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -777,22 +788,29 @@ def __call__( Returns: ~.compute.TargetHttpsProxy: - Represents a Target HTTPS Proxy resource. Google Compute - Engine has two Target HTTPS Proxy resources: \* - `Global `__ - \* - `Regional `__ + Represents a Target HTTPS Proxy resource. + + Google Compute Engine has two Target HTTPS Proxy + resources: + + - `Global `__ + - `Regional `__ + A target HTTPS proxy is a component of Google Cloud - HTTPS load balancers. \* targetHttpsProxies are used by - global external Application Load Balancers, classic - Application Load Balancers, cross-region internal - Application Load Balancers, and Traffic Director. \* - regionTargetHttpsProxies are used by regional internal - Application Load Balancers and regional external - Application Load Balancers. Forwarding rules reference a - target HTTPS proxy, and the target proxy then references - a URL map. For more information, read Using Target - Proxies and Forwarding rule concepts. + HTTPS load balancers. + + - targetHttpsProxies are used by global external + Application Load Balancers, classic Application Load + Balancers, cross-region internal Application Load + Balancers, and Traffic Director. + - regionTargetHttpsProxies are used by regional internal + Application Load Balancers and regional external + Application Load Balancers. + + Forwarding rules reference a target HTTPS proxy, and the + target proxy then references a URL map. For more + information, readUsing Target Proxies and Forwarding + rule concepts. """ @@ -939,21 +957,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1256,21 +1285,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1426,21 +1466,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1600,21 +1651,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py index 281a3d75f318..b141221efdae 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_tcp_proxies/client.py @@ -1090,13 +1090,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetTcpProxy: Represents a Target TCP Proxy - resource. A target TCP proxy is a - component of a Proxy Network Load - Balancer. The forwarding rule references - the target TCP proxy, and the target - proxy then references a backend service. - For more information, read Proxy Network - Load Balancer overview. + resource. + A target TCP proxy is a component of a + Proxy Network Load Balancer. The + forwarding rule references the target + TCP proxy, and the target proxy then + references a backend service. For more + information, readProxy Network Load + Balancer overview. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py index 1176da952206..a18c1089f502 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_target_tcp_proxies/transports/rest.py @@ -445,21 +445,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -610,13 +621,14 @@ def __call__( Returns: ~.compute.TargetTcpProxy: Represents a Target TCP Proxy - resource. A target TCP proxy is a - component of a Proxy Network Load - Balancer. The forwarding rule references - the target TCP proxy, and the target - proxy then references a backend service. - For more information, read Proxy Network - Load Balancer overview. + resource. + A target TCP proxy is a component of a + Proxy Network Load Balancer. The + forwarding rule references the target + TCP proxy, and the target proxy then + references a backend service. For more + information, readProxy Network Load + Balancer overview. """ @@ -763,21 +775,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_url_maps/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_url_maps/client.py index b4bbf3d67ae1..423d6e03c6ae 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_url_maps/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_url_maps/client.py @@ -1076,31 +1076,43 @@ def sample_get(): Returns: google.cloud.compute_v1.types.UrlMap: - Represents a URL Map resource. Compute Engine has two - URL Map resources: \* - [Global](/compute/docs/reference/rest/v1/urlMaps) \* - [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) - A URL map resource is a component of certain types of - cloud load balancers and Traffic Director: \* urlMaps - are used by global external Application Load Balancers, - classic Application Load Balancers, and cross-region - internal Application Load Balancers. \* regionUrlMaps - are used by internal Application Load Balancers, - regional external Application Load Balancers and - regional internal Application Load Balancers. For a list - of supported URL map features by the load balancer type, - see the Load balancing features: Routing and traffic - management table. For a list of supported URL map - features for Traffic Director, see the Traffic Director - features: Routing and traffic management table. This - resource defines mappings from hostnames and URL paths - to either a backend service or a backend bucket. To use - the global urlMaps resource, the backend service must - have a loadBalancingScheme of either EXTERNAL, - EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use the - regionUrlMaps resource, the backend service must have a - loadBalancingScheme of INTERNAL_MANAGED. For more - information, read URL Map Concepts. + Represents a URL Map resource. + + Compute Engine has two URL Map resources: + + - [Global](/compute/docs/reference/rest/v1/urlMaps) + - [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) + + A URL map resource is a component of certain types of + cloud load balancers and Traffic Director: + + \* urlMaps are used by global external Application + Load Balancers, classic Application Load Balancers, + and cross-region internal Application Load Balancers. + \* regionUrlMaps are used by internal Application + Load Balancers, regional external Application Load + Balancers and regional internal Application Load + Balancers. + + For a list of supported URL map features by the load + balancer type, see the Load balancing features: + Routing and traffic management table. + + For a list of supported URL map features for Traffic + Director, see the Traffic Director features: Routing + and traffic management table. + + This resource defines mappings from hostnames and URL + paths to either a backend service or a backend + bucket. + + To use the global urlMaps resource, the backend + service must have a loadBalancingScheme of either + EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. + To use the regionUrlMaps resource, the backend + service must have aloadBalancingScheme of + INTERNAL_MANAGED. For more information, read URL Map + Concepts. """ # Create or coerce a protobuf request object. @@ -1600,9 +1612,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Patches the specified UrlMap resource with the data - included in the request. This method supports PATCH - semantics and uses JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -1744,9 +1756,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Patches the specified UrlMap resource with the data - included in the request. This method supports PATCH - semantics and uses JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and usesJSON merge + patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_url_maps/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_url_maps/transports/rest.py index 2d62282f12b5..b58510f0b1c9 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/region_url_maps/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/region_url_maps/transports/rest.py @@ -601,21 +601,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -766,30 +777,40 @@ def __call__( Returns: ~.compute.UrlMap: - Represents a URL Map resource. Compute Engine has two - URL Map resources: \* - `Global `__ \* - `Regional `__ + Represents a URL Map resource. + + Compute Engine has two URL Map resources: + + - `Global `__ + - `Regional `__ + A URL map resource is a component of certain types of - cloud load balancers and Traffic Director: \* urlMaps - are used by global external Application Load Balancers, - classic Application Load Balancers, and cross-region - internal Application Load Balancers. \* regionUrlMaps - are used by internal Application Load Balancers, - regional external Application Load Balancers and - regional internal Application Load Balancers. For a list - of supported URL map features by the load balancer type, - see the Load balancing features: Routing and traffic - management table. For a list of supported URL map - features for Traffic Director, see the Traffic Director - features: Routing and traffic management table. This - resource defines mappings from hostnames and URL paths - to either a backend service or a backend bucket. To use - the global urlMaps resource, the backend service must - have a loadBalancingScheme of either EXTERNAL, - EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use the - regionUrlMaps resource, the backend service must have a - loadBalancingScheme of INTERNAL_MANAGED. For more + cloud load balancers and Traffic Director: + + - urlMaps are used by global external Application Load + Balancers, classic Application Load Balancers, and + cross-region internal Application Load Balancers. + - regionUrlMaps are used by internal Application Load + Balancers, regional external Application Load + Balancers and regional internal Application Load + Balancers. + + For a list of supported URL map features by the load + balancer type, see the Load balancing features: Routing + and traffic management table. + + For a list of supported URL map features for Traffic + Director, see the Traffic Director features: Routing and + traffic management table. + + This resource defines mappings from hostnames and URL + paths to either a backend service or a backend bucket. + + To use the global urlMaps resource, the backend service + must have a loadBalancingScheme of either + EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To + use the regionUrlMaps resource, the backend service must + have aloadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts. """ @@ -936,21 +957,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1251,21 +1283,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1422,21 +1465,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/regions/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/regions/client.py index 85ebf7ffca54..9556a35522b1 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/regions/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/regions/client.py @@ -710,17 +710,19 @@ def get( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Region: - r"""Returns the specified Region resource. To decrease latency for - this method, you can optionally omit any unneeded information - from the response by using a field mask. This practice is - especially recommended for unused quota information (the - ``quotas`` field). To exclude one or more fields, set your - request's ``fields`` query parameter to only include the fields - you need. For example, to only include the ``id`` and - ``selfLink`` fields, add the query parameter - ``?fields=id,selfLink`` to your request. This method fails if - the quota information is unavailable for the region and if the - organization policy constraint + r"""Returns the specified Region resource. + + To decrease latency for this method, you can optionally omit any + unneeded information from the response by using a field mask. + This practice is especially recommended for unused quota + information (the ``quotas`` field). To exclude one or more + fields, set your request's ``fields`` query parameter to only + include the fields you need. For example, to only include the + ``id`` and ``selfLink`` fields, add the query parameter + ``?fields=id,selfLink`` to your request. + + This method fails if the quota information is unavailable for + the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the ``items.quotas`` field) is unavailable @@ -781,10 +783,12 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Region: - Represents a Region resource. A - region is a geographical area where a + Represents a Region resource. + + A region is a geographical area where a resource is located. For more - information, read Regions and Zones. + information, readRegions + and Zones. """ # Create or coerce a protobuf request object. @@ -850,16 +854,19 @@ def list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.ListPager: r"""Retrieves the list of region resources available to the - specified project. To decrease latency for this method, you can - optionally omit any unneeded information from the response by - using a field mask. This practice is especially recommended for - unused quota information (the ``items.quotas`` field). To - exclude one or more fields, set your request's ``fields`` query - parameter to only include the fields you need. For example, to - only include the ``id`` and ``selfLink`` fields, add the query - parameter ``?fields=id,selfLink`` to your request. This method - fails if the quota information is unavailable for the region and - if the organization policy constraint + specified project. + + To decrease latency for this method, you can optionally omit any + unneeded information from the response by using a field mask. + This practice is especially recommended for unused quota + information (the ``items.quotas`` field). To exclude one or more + fields, set your request's ``fields`` query parameter to only + include the fields you need. For example, to only include the + ``id`` and ``selfLink`` fields, add the query parameter + ``?fields=id,selfLink`` to your request. + + This method fails if the quota information is unavailable for + the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the ``items.quotas`` field) is unavailable diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/regions/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/regions/transports/rest.py index 32c9a022539a..8e486e75f569 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/regions/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/regions/transports/rest.py @@ -324,10 +324,12 @@ def __call__( Returns: ~.compute.Region: - Represents a Region resource. A - region is a geographical area where a + Represents a Region resource. + + A region is a geographical area where a resource is located. For more - information, read Regions and Zones. + information, readRegions + and Zones. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/client.py index d07754211272..fcf404d5bdef 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/client.py @@ -775,8 +775,8 @@ def sample_get(): on the ``request`` instance; if ``request`` is provided, this should not be set. reservation (str): - The name of the reservation. Name - should conform to RFC1035 or be a + The name of the reservation. + Name should conform to RFC1035 or be a resource ID. This corresponds to the ``reservation`` field @@ -861,6 +861,184 @@ def sample_get(): # Done; return the response. return response + def get_iam_policy( + self, + request: Optional[ + Union[compute.GetIamPolicyReservationBlockRequest, dict] + ] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + parent_resource: Optional[str] = None, + resource: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.Policy: + r"""Gets the access control policy for a resource. May be + empty if no such policy or resource exists. + + .. code-block:: python + + # 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 compute_v1 + + def sample_get_iam_policy(): + # Create a client + client = compute_v1.ReservationBlocksClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyReservationBlockRequest( + parent_resource="parent_resource_value", + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.compute_v1.types.GetIamPolicyReservationBlockRequest, dict]): + The request object. A request message for + ReservationBlocks.GetIamPolicy. See the + method description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + parent_resource (str): + Name or id of parent resource of the + resource for this request. + + This corresponds to the ``parent_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + resource (str): + Name or id of the resource for this + request. + + This corresponds to the ``resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + google.cloud.compute_v1.types.Policy: + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). + + """ + # Create or coerce a protobuf request object. + # - Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + flattened_params = [project, zone, parent_resource, resource] + has_flattened_params = ( + len([param for param in flattened_params if param is not None]) > 0 + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # - Use the request object if provided (there's no risk of modifying the input as + # there are no flattened fields), or create one. + if not isinstance(request, compute.GetIamPolicyReservationBlockRequest): + request = compute.GetIamPolicyReservationBlockRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if parent_resource is not None: + request.parent_resource = parent_resource + if resource is not None: + request.resource = resource + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.get_iam_policy] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("parent_resource", request.parent_resource), + ("resource", request.resource), + ) + ), + ) + + # Validate the universe domain. + self._validate_universe_domain() + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + def list( self, request: Optional[Union[compute.ListReservationBlocksRequest, dict]] = None, @@ -922,8 +1100,8 @@ def sample_list(): on the ``request`` instance; if ``request`` is provided, this should not be set. reservation (str): - The name of the reservation. Name - should conform to RFC1035 or be a + The name of the reservation. + Name should conform to RFC1035 or be a resource ID. This corresponds to the ``reservation`` field @@ -1080,8 +1258,8 @@ def sample_perform_maintenance(): on the ``request`` instance; if ``request`` is provided, this should not be set. reservation (str): - The name of the reservation. Name - should conform to RFC1035 or be a + The name of the reservation. + Name should conform to RFC1035 or be a resource ID. This corresponds to the ``reservation`` field @@ -1250,8 +1428,8 @@ def sample_perform_maintenance(): on the ``request`` instance; if ``request`` is provided, this should not be set. reservation (str): - The name of the reservation. Name - should conform to RFC1035 or be a + The name of the reservation. + Name should conform to RFC1035 or be a resource ID. This corresponds to the ``reservation`` field @@ -1378,6 +1556,368 @@ def error_code(self): # Done; return the response. return response + def set_iam_policy( + self, + request: Optional[ + Union[compute.SetIamPolicyReservationBlockRequest, dict] + ] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + parent_resource: Optional[str] = None, + resource: Optional[str] = None, + zone_set_nested_policy_request_resource: Optional[ + compute.ZoneSetNestedPolicyRequest + ] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.Policy: + r"""Sets the access control policy on the specified + resource. Replaces any existing policy. + + .. code-block:: python + + # 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 compute_v1 + + def sample_set_iam_policy(): + # Create a client + client = compute_v1.ReservationBlocksClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyReservationBlockRequest( + parent_resource="parent_resource_value", + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.compute_v1.types.SetIamPolicyReservationBlockRequest, dict]): + The request object. A request message for + ReservationBlocks.SetIamPolicy. See the + method description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + parent_resource (str): + Name or id of parent resource of the + resource for this request. + + This corresponds to the ``parent_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + resource (str): + Name or id of the resource for this + request. + + This corresponds to the ``resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone_set_nested_policy_request_resource (google.cloud.compute_v1.types.ZoneSetNestedPolicyRequest): + The body resource for this request + This corresponds to the ``zone_set_nested_policy_request_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + google.cloud.compute_v1.types.Policy: + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). + + """ + # Create or coerce a protobuf request object. + # - Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + flattened_params = [ + project, + zone, + parent_resource, + resource, + zone_set_nested_policy_request_resource, + ] + has_flattened_params = ( + len([param for param in flattened_params if param is not None]) > 0 + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # - Use the request object if provided (there's no risk of modifying the input as + # there are no flattened fields), or create one. + if not isinstance(request, compute.SetIamPolicyReservationBlockRequest): + request = compute.SetIamPolicyReservationBlockRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if parent_resource is not None: + request.parent_resource = parent_resource + if resource is not None: + request.resource = resource + if zone_set_nested_policy_request_resource is not None: + request.zone_set_nested_policy_request_resource = ( + zone_set_nested_policy_request_resource + ) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.set_iam_policy] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("parent_resource", request.parent_resource), + ("resource", request.resource), + ) + ), + ) + + # Validate the universe domain. + self._validate_universe_domain() + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def test_iam_permissions( + self, + request: Optional[ + Union[compute.TestIamPermissionsReservationBlockRequest, dict] + ] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + parent_resource: Optional[str] = None, + resource: Optional[str] = None, + test_permissions_request_resource: Optional[ + compute.TestPermissionsRequest + ] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.TestPermissionsResponse: + r"""Returns permissions that a caller has on the + specified resource. + + .. code-block:: python + + # 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 compute_v1 + + def sample_test_iam_permissions(): + # Create a client + client = compute_v1.ReservationBlocksClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsReservationBlockRequest( + parent_resource="parent_resource_value", + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.compute_v1.types.TestIamPermissionsReservationBlockRequest, dict]): + The request object. A request message for + ReservationBlocks.TestIamPermissions. + See the method description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + parent_resource (str): + Name or id of parent resource of the + resource for this request. + + This corresponds to the ``parent_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + resource (str): + Name or id of the resource for this + request. + + This corresponds to the ``resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + test_permissions_request_resource (google.cloud.compute_v1.types.TestPermissionsRequest): + The body resource for this request + This corresponds to the ``test_permissions_request_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + google.cloud.compute_v1.types.TestPermissionsResponse: + + """ + # Create or coerce a protobuf request object. + # - Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + flattened_params = [ + project, + zone, + parent_resource, + resource, + test_permissions_request_resource, + ] + has_flattened_params = ( + len([param for param in flattened_params if param is not None]) > 0 + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # - Use the request object if provided (there's no risk of modifying the input as + # there are no flattened fields), or create one. + if not isinstance(request, compute.TestIamPermissionsReservationBlockRequest): + request = compute.TestIamPermissionsReservationBlockRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if parent_resource is not None: + request.parent_resource = parent_resource + if resource is not None: + request.resource = resource + if test_permissions_request_resource is not None: + request.test_permissions_request_resource = ( + test_permissions_request_resource + ) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.test_iam_permissions] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("parent_resource", request.parent_resource), + ("resource", request.resource), + ) + ), + ) + + # Validate the universe domain. + self._validate_universe_domain() + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + def __enter__(self) -> "ReservationBlocksClient": return self diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/base.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/base.py index 84f314d2b6f9..eef0921ff7e6 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/base.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/base.py @@ -143,6 +143,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.get_iam_policy: gapic_v1.method.wrap_method( + self.get_iam_policy, + default_timeout=None, + client_info=client_info, + ), self.list: gapic_v1.method.wrap_method( self.list, default_timeout=None, @@ -153,6 +158,16 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.set_iam_policy: gapic_v1.method.wrap_method( + self.set_iam_policy, + default_timeout=None, + client_info=client_info, + ), + self.test_iam_permissions: gapic_v1.method.wrap_method( + self.test_iam_permissions, + default_timeout=None, + client_info=client_info, + ), } def close(self): @@ -176,6 +191,15 @@ def get( ]: raise NotImplementedError() + @property + def get_iam_policy( + self, + ) -> Callable[ + [compute.GetIamPolicyReservationBlockRequest], + Union[compute.Policy, Awaitable[compute.Policy]], + ]: + raise NotImplementedError() + @property def list( self, @@ -197,6 +221,26 @@ def perform_maintenance( ]: raise NotImplementedError() + @property + def set_iam_policy( + self, + ) -> Callable[ + [compute.SetIamPolicyReservationBlockRequest], + Union[compute.Policy, Awaitable[compute.Policy]], + ]: + raise NotImplementedError() + + @property + def test_iam_permissions( + self, + ) -> Callable[ + [compute.TestIamPermissionsReservationBlockRequest], + Union[ + compute.TestPermissionsResponse, Awaitable[compute.TestPermissionsResponse] + ], + ]: + raise NotImplementedError() + @property def kind(self) -> str: raise NotImplementedError() diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/rest.py index b4da1888a21f..9926f6f94017 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/rest.py @@ -80,6 +80,14 @@ def post_get(self, response): logging.log(f"Received response: {response}") return response + def pre_get_iam_policy(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_get_iam_policy(self, response): + logging.log(f"Received response: {response}") + return response + def pre_list(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata @@ -96,6 +104,22 @@ def post_perform_maintenance(self, response): logging.log(f"Received response: {response}") return response + def pre_set_iam_policy(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_set_iam_policy(self, response): + logging.log(f"Received response: {response}") + return response + + def pre_test_iam_permissions(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_test_iam_permissions(self, response): + logging.log(f"Received response: {response}") + return response + transport = ReservationBlocksRestTransport(interceptor=MyCustomReservationBlocksInterceptor()) client = ReservationBlocksClient(transport=transport) @@ -152,6 +176,53 @@ def post_get_with_metadata( """ return response, metadata + def pre_get_iam_policy( + self, + request: compute.GetIamPolicyReservationBlockRequest, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.GetIamPolicyReservationBlockRequest, + Sequence[Tuple[str, Union[str, bytes]]], + ]: + """Pre-rpc interceptor for get_iam_policy + + Override in a subclass to manipulate the request or metadata + before they are sent to the ReservationBlocks server. + """ + return request, metadata + + def post_get_iam_policy(self, response: compute.Policy) -> compute.Policy: + """Post-rpc interceptor for get_iam_policy + + DEPRECATED. Please use the `post_get_iam_policy_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response + after it is returned by the ReservationBlocks server but before + it is returned to user code. This `post_get_iam_policy` interceptor runs + before the `post_get_iam_policy_with_metadata` interceptor. + """ + return response + + def post_get_iam_policy_with_metadata( + self, + response: compute.Policy, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[compute.Policy, Sequence[Tuple[str, Union[str, bytes]]]]: + """Post-rpc interceptor for get_iam_policy + + Override in a subclass to read or manipulate the response or metadata after it + is returned by the ReservationBlocks server but before it is returned to user code. + + We recommend only using this `post_get_iam_policy_with_metadata` + interceptor in new development instead of the `post_get_iam_policy` interceptor. + When both interceptors are used, this `post_get_iam_policy_with_metadata` interceptor runs after the + `post_get_iam_policy` interceptor. The (possibly modified) response returned by + `post_get_iam_policy` will be passed to + `post_get_iam_policy_with_metadata`. + """ + return response, metadata + def pre_list( self, request: compute.ListReservationBlocksRequest, @@ -251,6 +322,104 @@ def post_perform_maintenance_with_metadata( """ return response, metadata + def pre_set_iam_policy( + self, + request: compute.SetIamPolicyReservationBlockRequest, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.SetIamPolicyReservationBlockRequest, + Sequence[Tuple[str, Union[str, bytes]]], + ]: + """Pre-rpc interceptor for set_iam_policy + + Override in a subclass to manipulate the request or metadata + before they are sent to the ReservationBlocks server. + """ + return request, metadata + + def post_set_iam_policy(self, response: compute.Policy) -> compute.Policy: + """Post-rpc interceptor for set_iam_policy + + DEPRECATED. Please use the `post_set_iam_policy_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response + after it is returned by the ReservationBlocks server but before + it is returned to user code. This `post_set_iam_policy` interceptor runs + before the `post_set_iam_policy_with_metadata` interceptor. + """ + return response + + def post_set_iam_policy_with_metadata( + self, + response: compute.Policy, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[compute.Policy, Sequence[Tuple[str, Union[str, bytes]]]]: + """Post-rpc interceptor for set_iam_policy + + Override in a subclass to read or manipulate the response or metadata after it + is returned by the ReservationBlocks server but before it is returned to user code. + + We recommend only using this `post_set_iam_policy_with_metadata` + interceptor in new development instead of the `post_set_iam_policy` interceptor. + When both interceptors are used, this `post_set_iam_policy_with_metadata` interceptor runs after the + `post_set_iam_policy` interceptor. The (possibly modified) response returned by + `post_set_iam_policy` will be passed to + `post_set_iam_policy_with_metadata`. + """ + return response, metadata + + def pre_test_iam_permissions( + self, + request: compute.TestIamPermissionsReservationBlockRequest, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.TestIamPermissionsReservationBlockRequest, + Sequence[Tuple[str, Union[str, bytes]]], + ]: + """Pre-rpc interceptor for test_iam_permissions + + Override in a subclass to manipulate the request or metadata + before they are sent to the ReservationBlocks server. + """ + return request, metadata + + def post_test_iam_permissions( + self, response: compute.TestPermissionsResponse + ) -> compute.TestPermissionsResponse: + """Post-rpc interceptor for test_iam_permissions + + DEPRECATED. Please use the `post_test_iam_permissions_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response + after it is returned by the ReservationBlocks server but before + it is returned to user code. This `post_test_iam_permissions` interceptor runs + before the `post_test_iam_permissions_with_metadata` interceptor. + """ + return response + + def post_test_iam_permissions_with_metadata( + self, + response: compute.TestPermissionsResponse, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.TestPermissionsResponse, Sequence[Tuple[str, Union[str, bytes]]] + ]: + """Post-rpc interceptor for test_iam_permissions + + Override in a subclass to read or manipulate the response or metadata after it + is returned by the ReservationBlocks server but before it is returned to user code. + + We recommend only using this `post_test_iam_permissions_with_metadata` + interceptor in new development instead of the `post_test_iam_permissions` interceptor. + When both interceptors are used, this `post_test_iam_permissions_with_metadata` interceptor runs after the + `post_test_iam_permissions` interceptor. The (possibly modified) response returned by + `post_test_iam_permissions` will be passed to + `post_test_iam_permissions_with_metadata`. + """ + return response, metadata + @dataclasses.dataclass class ReservationBlocksRestStub: @@ -491,6 +660,226 @@ def __call__( ) return resp + class _GetIamPolicy( + _BaseReservationBlocksRestTransport._BaseGetIamPolicy, ReservationBlocksRestStub + ): + def __hash__(self): + return hash("ReservationBlocksRestTransport.GetIamPolicy") + + @staticmethod + def _get_response( + host, + metadata, + query_params, + session, + timeout, + transcoded_request, + body=None, + ): + uri = transcoded_request["uri"] + method = transcoded_request["method"] + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(session, method)( + "{host}{uri}".format(host=host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + ) + return response + + def __call__( + self, + request: compute.GetIamPolicyReservationBlockRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.Policy: + r"""Call the get iam policy method over HTTP. + + Args: + request (~.compute.GetIamPolicyReservationBlockRequest): + The request object. A request message for + ReservationBlocks.GetIamPolicy. See the + method description for details. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + ~.compute.Policy: + An Identity and Access Management (IAM) policy, which + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A + ``binding`` binds one or more ``members``, or + principals, to a single ``role``. Principals can be user + accounts, service accounts, Google groups, and domains + (such as G Suite). A ``role`` is a named list of + permissions; each ``role`` can be an IAM predefined role + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM + documentation `__. + + **JSON example:** + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + + **YAML example:** + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + + For a description of IAM and its features, see the `IAM + documentation `__. + + """ + + http_options = ( + _BaseReservationBlocksRestTransport._BaseGetIamPolicy._get_http_options() + ) + + request, metadata = self._interceptor.pre_get_iam_policy(request, metadata) + transcoded_request = _BaseReservationBlocksRestTransport._BaseGetIamPolicy._get_transcoded_request( + http_options, request + ) + + # Jsonify the query params + query_params = _BaseReservationBlocksRestTransport._BaseGetIamPolicy._get_query_params_json( + transcoded_request + ) + + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + request_url = "{host}{uri}".format( + host=self._host, uri=transcoded_request["uri"] + ) + method = transcoded_request["method"] + try: + request_payload = type(request).to_json(request) + except: + request_payload = None + http_request = { + "payload": request_payload, + "requestMethod": method, + "requestUrl": request_url, + "headers": dict(metadata), + } + _LOGGER.debug( + f"Sending request for google.cloud.compute_v1.ReservationBlocksClient.GetIamPolicy", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationBlocks", + "rpcName": "GetIamPolicy", + "httpRequest": http_request, + "metadata": http_request["headers"], + }, + ) + + # Send the request + response = ReservationBlocksRestTransport._GetIamPolicy._get_response( + self._host, + metadata, + query_params, + self._session, + timeout, + transcoded_request, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Policy() + pb_resp = compute.Policy.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + + resp = self._interceptor.post_get_iam_policy(resp) + response_metadata = [(k, str(v)) for k, v in response.headers.items()] + resp, _ = self._interceptor.post_get_iam_policy_with_metadata( + resp, response_metadata + ) + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + try: + response_payload = compute.Policy.to_json(response) + except: + response_payload = None + http_response = { + "payload": response_payload, + "headers": dict(response.headers), + "status": response.status_code, + } + _LOGGER.debug( + "Received response for google.cloud.compute_v1.ReservationBlocksClient.get_iam_policy", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationBlocks", + "rpcName": "GetIamPolicy", + "metadata": http_response["headers"], + "httpResponse": http_response, + }, + ) + return resp + class _List( _BaseReservationBlocksRestTransport._BaseList, ReservationBlocksRestStub ): @@ -698,21 +1087,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -815,6 +1215,387 @@ def __call__( ) return resp + class _SetIamPolicy( + _BaseReservationBlocksRestTransport._BaseSetIamPolicy, ReservationBlocksRestStub + ): + def __hash__(self): + return hash("ReservationBlocksRestTransport.SetIamPolicy") + + @staticmethod + def _get_response( + host, + metadata, + query_params, + session, + timeout, + transcoded_request, + body=None, + ): + uri = transcoded_request["uri"] + method = transcoded_request["method"] + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(session, method)( + "{host}{uri}".format(host=host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + return response + + def __call__( + self, + request: compute.SetIamPolicyReservationBlockRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.Policy: + r"""Call the set iam policy method over HTTP. + + Args: + request (~.compute.SetIamPolicyReservationBlockRequest): + The request object. A request message for + ReservationBlocks.SetIamPolicy. See the + method description for details. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + ~.compute.Policy: + An Identity and Access Management (IAM) policy, which + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A + ``binding`` binds one or more ``members``, or + principals, to a single ``role``. Principals can be user + accounts, service accounts, Google groups, and domains + (such as G Suite). A ``role`` is a named list of + permissions; each ``role`` can be an IAM predefined role + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM + documentation `__. + + **JSON example:** + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + + **YAML example:** + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + + For a description of IAM and its features, see the `IAM + documentation `__. + + """ + + http_options = ( + _BaseReservationBlocksRestTransport._BaseSetIamPolicy._get_http_options() + ) + + request, metadata = self._interceptor.pre_set_iam_policy(request, metadata) + transcoded_request = _BaseReservationBlocksRestTransport._BaseSetIamPolicy._get_transcoded_request( + http_options, request + ) + + body = _BaseReservationBlocksRestTransport._BaseSetIamPolicy._get_request_body_json( + transcoded_request + ) + + # Jsonify the query params + query_params = _BaseReservationBlocksRestTransport._BaseSetIamPolicy._get_query_params_json( + transcoded_request + ) + + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + request_url = "{host}{uri}".format( + host=self._host, uri=transcoded_request["uri"] + ) + method = transcoded_request["method"] + try: + request_payload = type(request).to_json(request) + except: + request_payload = None + http_request = { + "payload": request_payload, + "requestMethod": method, + "requestUrl": request_url, + "headers": dict(metadata), + } + _LOGGER.debug( + f"Sending request for google.cloud.compute_v1.ReservationBlocksClient.SetIamPolicy", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationBlocks", + "rpcName": "SetIamPolicy", + "httpRequest": http_request, + "metadata": http_request["headers"], + }, + ) + + # Send the request + response = ReservationBlocksRestTransport._SetIamPolicy._get_response( + self._host, + metadata, + query_params, + self._session, + timeout, + transcoded_request, + body, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Policy() + pb_resp = compute.Policy.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + + resp = self._interceptor.post_set_iam_policy(resp) + response_metadata = [(k, str(v)) for k, v in response.headers.items()] + resp, _ = self._interceptor.post_set_iam_policy_with_metadata( + resp, response_metadata + ) + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + try: + response_payload = compute.Policy.to_json(response) + except: + response_payload = None + http_response = { + "payload": response_payload, + "headers": dict(response.headers), + "status": response.status_code, + } + _LOGGER.debug( + "Received response for google.cloud.compute_v1.ReservationBlocksClient.set_iam_policy", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationBlocks", + "rpcName": "SetIamPolicy", + "metadata": http_response["headers"], + "httpResponse": http_response, + }, + ) + return resp + + class _TestIamPermissions( + _BaseReservationBlocksRestTransport._BaseTestIamPermissions, + ReservationBlocksRestStub, + ): + def __hash__(self): + return hash("ReservationBlocksRestTransport.TestIamPermissions") + + @staticmethod + def _get_response( + host, + metadata, + query_params, + session, + timeout, + transcoded_request, + body=None, + ): + uri = transcoded_request["uri"] + method = transcoded_request["method"] + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(session, method)( + "{host}{uri}".format(host=host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + return response + + def __call__( + self, + request: compute.TestIamPermissionsReservationBlockRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.TestPermissionsResponse: + r"""Call the test iam permissions method over HTTP. + + Args: + request (~.compute.TestIamPermissionsReservationBlockRequest): + The request object. A request message for + ReservationBlocks.TestIamPermissions. + See the method description for details. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + ~.compute.TestPermissionsResponse: + + """ + + http_options = ( + _BaseReservationBlocksRestTransport._BaseTestIamPermissions._get_http_options() + ) + + request, metadata = self._interceptor.pre_test_iam_permissions( + request, metadata + ) + transcoded_request = _BaseReservationBlocksRestTransport._BaseTestIamPermissions._get_transcoded_request( + http_options, request + ) + + body = _BaseReservationBlocksRestTransport._BaseTestIamPermissions._get_request_body_json( + transcoded_request + ) + + # Jsonify the query params + query_params = _BaseReservationBlocksRestTransport._BaseTestIamPermissions._get_query_params_json( + transcoded_request + ) + + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + request_url = "{host}{uri}".format( + host=self._host, uri=transcoded_request["uri"] + ) + method = transcoded_request["method"] + try: + request_payload = type(request).to_json(request) + except: + request_payload = None + http_request = { + "payload": request_payload, + "requestMethod": method, + "requestUrl": request_url, + "headers": dict(metadata), + } + _LOGGER.debug( + f"Sending request for google.cloud.compute_v1.ReservationBlocksClient.TestIamPermissions", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationBlocks", + "rpcName": "TestIamPermissions", + "httpRequest": http_request, + "metadata": http_request["headers"], + }, + ) + + # Send the request + response = ReservationBlocksRestTransport._TestIamPermissions._get_response( + self._host, + metadata, + query_params, + self._session, + timeout, + transcoded_request, + body, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.TestPermissionsResponse() + pb_resp = compute.TestPermissionsResponse.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + + resp = self._interceptor.post_test_iam_permissions(resp) + response_metadata = [(k, str(v)) for k, v in response.headers.items()] + resp, _ = self._interceptor.post_test_iam_permissions_with_metadata( + resp, response_metadata + ) + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + try: + response_payload = compute.TestPermissionsResponse.to_json(response) + except: + response_payload = None + http_response = { + "payload": response_payload, + "headers": dict(response.headers), + "status": response.status_code, + } + _LOGGER.debug( + "Received response for google.cloud.compute_v1.ReservationBlocksClient.test_iam_permissions", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationBlocks", + "rpcName": "TestIamPermissions", + "metadata": http_response["headers"], + "httpResponse": http_response, + }, + ) + return resp + @property def get( self, @@ -825,6 +1606,14 @@ def get( # In C++ this would require a dynamic_cast return self._Get(self._session, self._host, self._interceptor) # type: ignore + @property + def get_iam_policy( + self, + ) -> Callable[[compute.GetIamPolicyReservationBlockRequest], compute.Policy]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._GetIamPolicy(self._session, self._host, self._interceptor) # type: ignore + @property def list( self, @@ -845,6 +1634,25 @@ def perform_maintenance( # In C++ this would require a dynamic_cast return self._PerformMaintenance(self._session, self._host, self._interceptor) # type: ignore + @property + def set_iam_policy( + self, + ) -> Callable[[compute.SetIamPolicyReservationBlockRequest], compute.Policy]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._SetIamPolicy(self._session, self._host, self._interceptor) # type: ignore + + @property + def test_iam_permissions( + self, + ) -> Callable[ + [compute.TestIamPermissionsReservationBlockRequest], + compute.TestPermissionsResponse, + ]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._TestIamPermissions(self._session, self._host, self._interceptor) # type: ignore + @property def kind(self) -> str: return "rest" diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/rest_base.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/rest_base.py index 55f15c26f066..837eda8a1da3 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/rest_base.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_blocks/transports/rest_base.py @@ -133,6 +133,52 @@ def _get_query_params_json(transcoded_request): return query_params + class _BaseGetIamPolicy: + def __hash__(self): # pragma: NO COVER + return NotImplementedError("__hash__ must be implemented.") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + @staticmethod + def _get_http_options(): + http_options: List[Dict[str, str]] = [ + { + "method": "get", + "uri": "/compute/v1/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/getIamPolicy", + }, + ] + return http_options + + @staticmethod + def _get_transcoded_request(http_options, request): + pb_request = compute.GetIamPolicyReservationBlockRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + return transcoded_request + + @staticmethod + def _get_query_params_json(transcoded_request): + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + use_integers_for_enums=False, + ) + ) + query_params.update( + _BaseReservationBlocksRestTransport._BaseGetIamPolicy._get_unset_required_fields( + query_params + ) + ) + + return query_params + class _BaseList: def __hash__(self): # pragma: NO COVER return NotImplementedError("__hash__ must be implemented.") @@ -235,5 +281,117 @@ def _get_query_params_json(transcoded_request): return query_params + class _BaseSetIamPolicy: + def __hash__(self): # pragma: NO COVER + return NotImplementedError("__hash__ must be implemented.") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + @staticmethod + def _get_http_options(): + http_options: List[Dict[str, str]] = [ + { + "method": "post", + "uri": "/compute/v1/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/setIamPolicy", + "body": "zone_set_nested_policy_request_resource", + }, + ] + return http_options + + @staticmethod + def _get_transcoded_request(http_options, request): + pb_request = compute.SetIamPolicyReservationBlockRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + return transcoded_request + + @staticmethod + def _get_request_body_json(transcoded_request): + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], use_integers_for_enums=False + ) + return body + + @staticmethod + def _get_query_params_json(transcoded_request): + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + use_integers_for_enums=False, + ) + ) + query_params.update( + _BaseReservationBlocksRestTransport._BaseSetIamPolicy._get_unset_required_fields( + query_params + ) + ) + + return query_params + + class _BaseTestIamPermissions: + def __hash__(self): # pragma: NO COVER + return NotImplementedError("__hash__ must be implemented.") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + @staticmethod + def _get_http_options(): + http_options: List[Dict[str, str]] = [ + { + "method": "post", + "uri": "/compute/v1/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/testIamPermissions", + "body": "test_permissions_request_resource", + }, + ] + return http_options + + @staticmethod + def _get_transcoded_request(http_options, request): + pb_request = compute.TestIamPermissionsReservationBlockRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + return transcoded_request + + @staticmethod + def _get_request_body_json(transcoded_request): + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], use_integers_for_enums=False + ) + return body + + @staticmethod + def _get_query_params_json(transcoded_request): + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + use_integers_for_enums=False, + ) + ) + query_params.update( + _BaseReservationBlocksRestTransport._BaseTestIamPermissions._get_unset_required_fields( + query_params + ) + ) + + return query_params + __all__ = ("_BaseReservationBlocksRestTransport",) diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/client.py index 67f824c3254a..397a6bb6be17 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/client.py @@ -861,6 +861,184 @@ def sample_get(): # Done; return the response. return response + def get_iam_policy( + self, + request: Optional[ + Union[compute.GetIamPolicyReservationSubBlockRequest, dict] + ] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + parent_resource: Optional[str] = None, + resource: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.Policy: + r"""Gets the access control policy for a resource. May be + empty if no such policy or resource exists. + + .. code-block:: python + + # 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 compute_v1 + + def sample_get_iam_policy(): + # Create a client + client = compute_v1.ReservationSubBlocksClient() + + # Initialize request argument(s) + request = compute_v1.GetIamPolicyReservationSubBlockRequest( + parent_resource="parent_resource_value", + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.get_iam_policy(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.compute_v1.types.GetIamPolicyReservationSubBlockRequest, dict]): + The request object. A request message for + ReservationSubBlocks.GetIamPolicy. See + the method description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + parent_resource (str): + Name or id of parent resource of the + resource for this request. + + This corresponds to the ``parent_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + resource (str): + Name or id of the resource for this + request. + + This corresponds to the ``resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + google.cloud.compute_v1.types.Policy: + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). + + """ + # Create or coerce a protobuf request object. + # - Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + flattened_params = [project, zone, parent_resource, resource] + has_flattened_params = ( + len([param for param in flattened_params if param is not None]) > 0 + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # - Use the request object if provided (there's no risk of modifying the input as + # there are no flattened fields), or create one. + if not isinstance(request, compute.GetIamPolicyReservationSubBlockRequest): + request = compute.GetIamPolicyReservationSubBlockRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if parent_resource is not None: + request.parent_resource = parent_resource + if resource is not None: + request.resource = resource + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.get_iam_policy] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("parent_resource", request.parent_resource), + ("resource", request.resource), + ) + ), + ) + + # Validate the universe domain. + self._validate_universe_domain() + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + def list( self, request: Optional[Union[compute.ListReservationSubBlocksRequest, dict]] = None, @@ -1709,6 +1887,370 @@ def error_code(self): # Done; return the response. return response + def set_iam_policy( + self, + request: Optional[ + Union[compute.SetIamPolicyReservationSubBlockRequest, dict] + ] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + parent_resource: Optional[str] = None, + resource: Optional[str] = None, + zone_set_nested_policy_request_resource: Optional[ + compute.ZoneSetNestedPolicyRequest + ] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.Policy: + r"""Sets the access control policy on the specified + resource. Replaces any existing policy. + + .. code-block:: python + + # 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 compute_v1 + + def sample_set_iam_policy(): + # Create a client + client = compute_v1.ReservationSubBlocksClient() + + # Initialize request argument(s) + request = compute_v1.SetIamPolicyReservationSubBlockRequest( + parent_resource="parent_resource_value", + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.set_iam_policy(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.compute_v1.types.SetIamPolicyReservationSubBlockRequest, dict]): + The request object. A request message for + ReservationSubBlocks.SetIamPolicy. See + the method description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + parent_resource (str): + Name or id of parent resource of the + resource for this request. + + This corresponds to the ``parent_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + resource (str): + Name or id of the resource for this + request. + + This corresponds to the ``resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone_set_nested_policy_request_resource (google.cloud.compute_v1.types.ZoneSetNestedPolicyRequest): + The body resource for this request + This corresponds to the ``zone_set_nested_policy_request_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + google.cloud.compute_v1.types.Policy: + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). + + """ + # Create or coerce a protobuf request object. + # - Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + flattened_params = [ + project, + zone, + parent_resource, + resource, + zone_set_nested_policy_request_resource, + ] + has_flattened_params = ( + len([param for param in flattened_params if param is not None]) > 0 + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # - Use the request object if provided (there's no risk of modifying the input as + # there are no flattened fields), or create one. + if not isinstance(request, compute.SetIamPolicyReservationSubBlockRequest): + request = compute.SetIamPolicyReservationSubBlockRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if parent_resource is not None: + request.parent_resource = parent_resource + if resource is not None: + request.resource = resource + if zone_set_nested_policy_request_resource is not None: + request.zone_set_nested_policy_request_resource = ( + zone_set_nested_policy_request_resource + ) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.set_iam_policy] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("parent_resource", request.parent_resource), + ("resource", request.resource), + ) + ), + ) + + # Validate the universe domain. + self._validate_universe_domain() + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def test_iam_permissions( + self, + request: Optional[ + Union[compute.TestIamPermissionsReservationSubBlockRequest, dict] + ] = None, + *, + project: Optional[str] = None, + zone: Optional[str] = None, + parent_resource: Optional[str] = None, + resource: Optional[str] = None, + test_permissions_request_resource: Optional[ + compute.TestPermissionsRequest + ] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.TestPermissionsResponse: + r"""Returns permissions that a caller has on the + specified resource. + + .. code-block:: python + + # 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 compute_v1 + + def sample_test_iam_permissions(): + # Create a client + client = compute_v1.ReservationSubBlocksClient() + + # Initialize request argument(s) + request = compute_v1.TestIamPermissionsReservationSubBlockRequest( + parent_resource="parent_resource_value", + project="project_value", + resource="resource_value", + zone="zone_value", + ) + + # Make the request + response = client.test_iam_permissions(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.compute_v1.types.TestIamPermissionsReservationSubBlockRequest, dict]): + The request object. A request message for + ReservationSubBlocks.TestIamPermissions. + See the method description for details. + project (str): + Project ID for this request. + This corresponds to the ``project`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + zone (str): + The name of the zone for this + request. + + This corresponds to the ``zone`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + parent_resource (str): + Name or id of parent resource of the + resource for this request. + + This corresponds to the ``parent_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + resource (str): + Name or id of the resource for this + request. + + This corresponds to the ``resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + test_permissions_request_resource (google.cloud.compute_v1.types.TestPermissionsRequest): + The body resource for this request + This corresponds to the ``test_permissions_request_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + google.cloud.compute_v1.types.TestPermissionsResponse: + + """ + # Create or coerce a protobuf request object. + # - Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + flattened_params = [ + project, + zone, + parent_resource, + resource, + test_permissions_request_resource, + ] + has_flattened_params = ( + len([param for param in flattened_params if param is not None]) > 0 + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # - Use the request object if provided (there's no risk of modifying the input as + # there are no flattened fields), or create one. + if not isinstance( + request, compute.TestIamPermissionsReservationSubBlockRequest + ): + request = compute.TestIamPermissionsReservationSubBlockRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if project is not None: + request.project = project + if zone is not None: + request.zone = zone + if parent_resource is not None: + request.parent_resource = parent_resource + if resource is not None: + request.resource = resource + if test_permissions_request_resource is not None: + request.test_permissions_request_resource = ( + test_permissions_request_resource + ) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.test_iam_permissions] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + ( + ("project", request.project), + ("zone", request.zone), + ("parent_resource", request.parent_resource), + ("resource", request.resource), + ) + ), + ) + + # Validate the universe domain. + self._validate_universe_domain() + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + def __enter__(self) -> "ReservationSubBlocksClient": return self diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/base.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/base.py index 485ab0fe8d3e..680d361cd714 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/base.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/base.py @@ -143,6 +143,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.get_iam_policy: gapic_v1.method.wrap_method( + self.get_iam_policy, + default_timeout=None, + client_info=client_info, + ), self.list: gapic_v1.method.wrap_method( self.list, default_timeout=None, @@ -158,6 +163,16 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.set_iam_policy: gapic_v1.method.wrap_method( + self.set_iam_policy, + default_timeout=None, + client_info=client_info, + ), + self.test_iam_permissions: gapic_v1.method.wrap_method( + self.test_iam_permissions, + default_timeout=None, + client_info=client_info, + ), } def close(self): @@ -181,6 +196,15 @@ def get( ]: raise NotImplementedError() + @property + def get_iam_policy( + self, + ) -> Callable[ + [compute.GetIamPolicyReservationSubBlockRequest], + Union[compute.Policy, Awaitable[compute.Policy]], + ]: + raise NotImplementedError() + @property def list( self, @@ -211,6 +235,26 @@ def report_faulty( ]: raise NotImplementedError() + @property + def set_iam_policy( + self, + ) -> Callable[ + [compute.SetIamPolicyReservationSubBlockRequest], + Union[compute.Policy, Awaitable[compute.Policy]], + ]: + raise NotImplementedError() + + @property + def test_iam_permissions( + self, + ) -> Callable[ + [compute.TestIamPermissionsReservationSubBlockRequest], + Union[ + compute.TestPermissionsResponse, Awaitable[compute.TestPermissionsResponse] + ], + ]: + raise NotImplementedError() + @property def kind(self) -> str: raise NotImplementedError() diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/rest.py index 4d5c7f483178..93fa3ce61150 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/rest.py @@ -80,6 +80,14 @@ def post_get(self, response): logging.log(f"Received response: {response}") return response + def pre_get_iam_policy(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_get_iam_policy(self, response): + logging.log(f"Received response: {response}") + return response + def pre_list(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata @@ -104,6 +112,22 @@ def post_report_faulty(self, response): logging.log(f"Received response: {response}") return response + def pre_set_iam_policy(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_set_iam_policy(self, response): + logging.log(f"Received response: {response}") + return response + + def pre_test_iam_permissions(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + + def post_test_iam_permissions(self, response): + logging.log(f"Received response: {response}") + return response + transport = ReservationSubBlocksRestTransport(interceptor=MyCustomReservationSubBlocksInterceptor()) client = ReservationSubBlocksClient(transport=transport) @@ -160,6 +184,53 @@ def post_get_with_metadata( """ return response, metadata + def pre_get_iam_policy( + self, + request: compute.GetIamPolicyReservationSubBlockRequest, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.GetIamPolicyReservationSubBlockRequest, + Sequence[Tuple[str, Union[str, bytes]]], + ]: + """Pre-rpc interceptor for get_iam_policy + + Override in a subclass to manipulate the request or metadata + before they are sent to the ReservationSubBlocks server. + """ + return request, metadata + + def post_get_iam_policy(self, response: compute.Policy) -> compute.Policy: + """Post-rpc interceptor for get_iam_policy + + DEPRECATED. Please use the `post_get_iam_policy_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response + after it is returned by the ReservationSubBlocks server but before + it is returned to user code. This `post_get_iam_policy` interceptor runs + before the `post_get_iam_policy_with_metadata` interceptor. + """ + return response + + def post_get_iam_policy_with_metadata( + self, + response: compute.Policy, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[compute.Policy, Sequence[Tuple[str, Union[str, bytes]]]]: + """Post-rpc interceptor for get_iam_policy + + Override in a subclass to read or manipulate the response or metadata after it + is returned by the ReservationSubBlocks server but before it is returned to user code. + + We recommend only using this `post_get_iam_policy_with_metadata` + interceptor in new development instead of the `post_get_iam_policy` interceptor. + When both interceptors are used, this `post_get_iam_policy_with_metadata` interceptor runs after the + `post_get_iam_policy` interceptor. The (possibly modified) response returned by + `post_get_iam_policy` will be passed to + `post_get_iam_policy_with_metadata`. + """ + return response, metadata + def pre_list( self, request: compute.ListReservationSubBlocksRequest, @@ -307,6 +378,104 @@ def post_report_faulty_with_metadata( """ return response, metadata + def pre_set_iam_policy( + self, + request: compute.SetIamPolicyReservationSubBlockRequest, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.SetIamPolicyReservationSubBlockRequest, + Sequence[Tuple[str, Union[str, bytes]]], + ]: + """Pre-rpc interceptor for set_iam_policy + + Override in a subclass to manipulate the request or metadata + before they are sent to the ReservationSubBlocks server. + """ + return request, metadata + + def post_set_iam_policy(self, response: compute.Policy) -> compute.Policy: + """Post-rpc interceptor for set_iam_policy + + DEPRECATED. Please use the `post_set_iam_policy_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response + after it is returned by the ReservationSubBlocks server but before + it is returned to user code. This `post_set_iam_policy` interceptor runs + before the `post_set_iam_policy_with_metadata` interceptor. + """ + return response + + def post_set_iam_policy_with_metadata( + self, + response: compute.Policy, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[compute.Policy, Sequence[Tuple[str, Union[str, bytes]]]]: + """Post-rpc interceptor for set_iam_policy + + Override in a subclass to read or manipulate the response or metadata after it + is returned by the ReservationSubBlocks server but before it is returned to user code. + + We recommend only using this `post_set_iam_policy_with_metadata` + interceptor in new development instead of the `post_set_iam_policy` interceptor. + When both interceptors are used, this `post_set_iam_policy_with_metadata` interceptor runs after the + `post_set_iam_policy` interceptor. The (possibly modified) response returned by + `post_set_iam_policy` will be passed to + `post_set_iam_policy_with_metadata`. + """ + return response, metadata + + def pre_test_iam_permissions( + self, + request: compute.TestIamPermissionsReservationSubBlockRequest, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.TestIamPermissionsReservationSubBlockRequest, + Sequence[Tuple[str, Union[str, bytes]]], + ]: + """Pre-rpc interceptor for test_iam_permissions + + Override in a subclass to manipulate the request or metadata + before they are sent to the ReservationSubBlocks server. + """ + return request, metadata + + def post_test_iam_permissions( + self, response: compute.TestPermissionsResponse + ) -> compute.TestPermissionsResponse: + """Post-rpc interceptor for test_iam_permissions + + DEPRECATED. Please use the `post_test_iam_permissions_with_metadata` + interceptor instead. + + Override in a subclass to read or manipulate the response + after it is returned by the ReservationSubBlocks server but before + it is returned to user code. This `post_test_iam_permissions` interceptor runs + before the `post_test_iam_permissions_with_metadata` interceptor. + """ + return response + + def post_test_iam_permissions_with_metadata( + self, + response: compute.TestPermissionsResponse, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + compute.TestPermissionsResponse, Sequence[Tuple[str, Union[str, bytes]]] + ]: + """Post-rpc interceptor for test_iam_permissions + + Override in a subclass to read or manipulate the response or metadata after it + is returned by the ReservationSubBlocks server but before it is returned to user code. + + We recommend only using this `post_test_iam_permissions_with_metadata` + interceptor in new development instead of the `post_test_iam_permissions` interceptor. + When both interceptors are used, this `post_test_iam_permissions_with_metadata` interceptor runs after the + `post_test_iam_permissions` interceptor. The (possibly modified) response returned by + `post_test_iam_permissions` will be passed to + `post_test_iam_permissions_with_metadata`. + """ + return response, metadata + @dataclasses.dataclass class ReservationSubBlocksRestStub: @@ -549,6 +718,227 @@ def __call__( ) return resp + class _GetIamPolicy( + _BaseReservationSubBlocksRestTransport._BaseGetIamPolicy, + ReservationSubBlocksRestStub, + ): + def __hash__(self): + return hash("ReservationSubBlocksRestTransport.GetIamPolicy") + + @staticmethod + def _get_response( + host, + metadata, + query_params, + session, + timeout, + transcoded_request, + body=None, + ): + uri = transcoded_request["uri"] + method = transcoded_request["method"] + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(session, method)( + "{host}{uri}".format(host=host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + ) + return response + + def __call__( + self, + request: compute.GetIamPolicyReservationSubBlockRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.Policy: + r"""Call the get iam policy method over HTTP. + + Args: + request (~.compute.GetIamPolicyReservationSubBlockRequest): + The request object. A request message for + ReservationSubBlocks.GetIamPolicy. See + the method description for details. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + ~.compute.Policy: + An Identity and Access Management (IAM) policy, which + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A + ``binding`` binds one or more ``members``, or + principals, to a single ``role``. Principals can be user + accounts, service accounts, Google groups, and domains + (such as G Suite). A ``role`` is a named list of + permissions; each ``role`` can be an IAM predefined role + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM + documentation `__. + + **JSON example:** + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + + **YAML example:** + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + + For a description of IAM and its features, see the `IAM + documentation `__. + + """ + + http_options = ( + _BaseReservationSubBlocksRestTransport._BaseGetIamPolicy._get_http_options() + ) + + request, metadata = self._interceptor.pre_get_iam_policy(request, metadata) + transcoded_request = _BaseReservationSubBlocksRestTransport._BaseGetIamPolicy._get_transcoded_request( + http_options, request + ) + + # Jsonify the query params + query_params = _BaseReservationSubBlocksRestTransport._BaseGetIamPolicy._get_query_params_json( + transcoded_request + ) + + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + request_url = "{host}{uri}".format( + host=self._host, uri=transcoded_request["uri"] + ) + method = transcoded_request["method"] + try: + request_payload = type(request).to_json(request) + except: + request_payload = None + http_request = { + "payload": request_payload, + "requestMethod": method, + "requestUrl": request_url, + "headers": dict(metadata), + } + _LOGGER.debug( + f"Sending request for google.cloud.compute_v1.ReservationSubBlocksClient.GetIamPolicy", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationSubBlocks", + "rpcName": "GetIamPolicy", + "httpRequest": http_request, + "metadata": http_request["headers"], + }, + ) + + # Send the request + response = ReservationSubBlocksRestTransport._GetIamPolicy._get_response( + self._host, + metadata, + query_params, + self._session, + timeout, + transcoded_request, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Policy() + pb_resp = compute.Policy.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + + resp = self._interceptor.post_get_iam_policy(resp) + response_metadata = [(k, str(v)) for k, v in response.headers.items()] + resp, _ = self._interceptor.post_get_iam_policy_with_metadata( + resp, response_metadata + ) + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + try: + response_payload = compute.Policy.to_json(response) + except: + response_payload = None + http_response = { + "payload": response_payload, + "headers": dict(response.headers), + "status": response.status_code, + } + _LOGGER.debug( + "Received response for google.cloud.compute_v1.ReservationSubBlocksClient.get_iam_policy", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationSubBlocks", + "rpcName": "GetIamPolicy", + "metadata": http_response["headers"], + "httpResponse": http_response, + }, + ) + return resp + class _List( _BaseReservationSubBlocksRestTransport._BaseList, ReservationSubBlocksRestStub ): @@ -753,21 +1143,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -922,21 +1323,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1037,15 +1449,407 @@ def __call__( ) return resp - @property - def get( - self, - ) -> Callable[ - [compute.GetReservationSubBlockRequest], compute.ReservationSubBlocksGetResponse - ]: - # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. - # In C++ this would require a dynamic_cast - return self._Get(self._session, self._host, self._interceptor) # type: ignore + class _SetIamPolicy( + _BaseReservationSubBlocksRestTransport._BaseSetIamPolicy, + ReservationSubBlocksRestStub, + ): + def __hash__(self): + return hash("ReservationSubBlocksRestTransport.SetIamPolicy") + + @staticmethod + def _get_response( + host, + metadata, + query_params, + session, + timeout, + transcoded_request, + body=None, + ): + uri = transcoded_request["uri"] + method = transcoded_request["method"] + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(session, method)( + "{host}{uri}".format(host=host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + return response + + def __call__( + self, + request: compute.SetIamPolicyReservationSubBlockRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.Policy: + r"""Call the set iam policy method over HTTP. + + Args: + request (~.compute.SetIamPolicyReservationSubBlockRequest): + The request object. A request message for + ReservationSubBlocks.SetIamPolicy. See + the method description for details. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + ~.compute.Policy: + An Identity and Access Management (IAM) policy, which + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A + ``binding`` binds one or more ``members``, or + principals, to a single ``role``. Principals can be user + accounts, service accounts, Google groups, and domains + (such as G Suite). A ``role`` is a named list of + permissions; each ``role`` can be an IAM predefined role + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM + documentation `__. + + **JSON example:** + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + + **YAML example:** + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + + For a description of IAM and its features, see the `IAM + documentation `__. + + """ + + http_options = ( + _BaseReservationSubBlocksRestTransport._BaseSetIamPolicy._get_http_options() + ) + + request, metadata = self._interceptor.pre_set_iam_policy(request, metadata) + transcoded_request = _BaseReservationSubBlocksRestTransport._BaseSetIamPolicy._get_transcoded_request( + http_options, request + ) + + body = _BaseReservationSubBlocksRestTransport._BaseSetIamPolicy._get_request_body_json( + transcoded_request + ) + + # Jsonify the query params + query_params = _BaseReservationSubBlocksRestTransport._BaseSetIamPolicy._get_query_params_json( + transcoded_request + ) + + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + request_url = "{host}{uri}".format( + host=self._host, uri=transcoded_request["uri"] + ) + method = transcoded_request["method"] + try: + request_payload = type(request).to_json(request) + except: + request_payload = None + http_request = { + "payload": request_payload, + "requestMethod": method, + "requestUrl": request_url, + "headers": dict(metadata), + } + _LOGGER.debug( + f"Sending request for google.cloud.compute_v1.ReservationSubBlocksClient.SetIamPolicy", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationSubBlocks", + "rpcName": "SetIamPolicy", + "httpRequest": http_request, + "metadata": http_request["headers"], + }, + ) + + # Send the request + response = ReservationSubBlocksRestTransport._SetIamPolicy._get_response( + self._host, + metadata, + query_params, + self._session, + timeout, + transcoded_request, + body, + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.Policy() + pb_resp = compute.Policy.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + + resp = self._interceptor.post_set_iam_policy(resp) + response_metadata = [(k, str(v)) for k, v in response.headers.items()] + resp, _ = self._interceptor.post_set_iam_policy_with_metadata( + resp, response_metadata + ) + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + try: + response_payload = compute.Policy.to_json(response) + except: + response_payload = None + http_response = { + "payload": response_payload, + "headers": dict(response.headers), + "status": response.status_code, + } + _LOGGER.debug( + "Received response for google.cloud.compute_v1.ReservationSubBlocksClient.set_iam_policy", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationSubBlocks", + "rpcName": "SetIamPolicy", + "metadata": http_response["headers"], + "httpResponse": http_response, + }, + ) + return resp + + class _TestIamPermissions( + _BaseReservationSubBlocksRestTransport._BaseTestIamPermissions, + ReservationSubBlocksRestStub, + ): + def __hash__(self): + return hash("ReservationSubBlocksRestTransport.TestIamPermissions") + + @staticmethod + def _get_response( + host, + metadata, + query_params, + session, + timeout, + transcoded_request, + body=None, + ): + uri = transcoded_request["uri"] + method = transcoded_request["method"] + headers = dict(metadata) + headers["Content-Type"] = "application/json" + response = getattr(session, method)( + "{host}{uri}".format(host=host, uri=uri), + timeout=timeout, + headers=headers, + params=rest_helpers.flatten_query_params(query_params, strict=True), + data=body, + ) + return response + + def __call__( + self, + request: compute.TestIamPermissionsReservationSubBlockRequest, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Optional[float] = None, + metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), + ) -> compute.TestPermissionsResponse: + r"""Call the test iam permissions method over HTTP. + + Args: + request (~.compute.TestIamPermissionsReservationSubBlockRequest): + The request object. A request message for + ReservationSubBlocks.TestIamPermissions. + See the method description for details. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be + sent along with the request as metadata. Normally, each value must be of type `str`, + but for metadata keys ending with the suffix `-bin`, the corresponding values must + be of type `bytes`. + + Returns: + ~.compute.TestPermissionsResponse: + + """ + + http_options = ( + _BaseReservationSubBlocksRestTransport._BaseTestIamPermissions._get_http_options() + ) + + request, metadata = self._interceptor.pre_test_iam_permissions( + request, metadata + ) + transcoded_request = _BaseReservationSubBlocksRestTransport._BaseTestIamPermissions._get_transcoded_request( + http_options, request + ) + + body = _BaseReservationSubBlocksRestTransport._BaseTestIamPermissions._get_request_body_json( + transcoded_request + ) + + # Jsonify the query params + query_params = _BaseReservationSubBlocksRestTransport._BaseTestIamPermissions._get_query_params_json( + transcoded_request + ) + + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + request_url = "{host}{uri}".format( + host=self._host, uri=transcoded_request["uri"] + ) + method = transcoded_request["method"] + try: + request_payload = type(request).to_json(request) + except: + request_payload = None + http_request = { + "payload": request_payload, + "requestMethod": method, + "requestUrl": request_url, + "headers": dict(metadata), + } + _LOGGER.debug( + f"Sending request for google.cloud.compute_v1.ReservationSubBlocksClient.TestIamPermissions", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationSubBlocks", + "rpcName": "TestIamPermissions", + "httpRequest": http_request, + "metadata": http_request["headers"], + }, + ) + + # Send the request + response = ( + ReservationSubBlocksRestTransport._TestIamPermissions._get_response( + self._host, + metadata, + query_params, + self._session, + timeout, + transcoded_request, + body, + ) + ) + + # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception + # subclass. + if response.status_code >= 400: + raise core_exceptions.from_http_response(response) + + # Return the response + resp = compute.TestPermissionsResponse() + pb_resp = compute.TestPermissionsResponse.pb(resp) + + json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) + + resp = self._interceptor.post_test_iam_permissions(resp) + response_metadata = [(k, str(v)) for k, v in response.headers.items()] + resp, _ = self._interceptor.post_test_iam_permissions_with_metadata( + resp, response_metadata + ) + if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( + logging.DEBUG + ): # pragma: NO COVER + try: + response_payload = compute.TestPermissionsResponse.to_json(response) + except: + response_payload = None + http_response = { + "payload": response_payload, + "headers": dict(response.headers), + "status": response.status_code, + } + _LOGGER.debug( + "Received response for google.cloud.compute_v1.ReservationSubBlocksClient.test_iam_permissions", + extra={ + "serviceName": "google.cloud.compute.v1.ReservationSubBlocks", + "rpcName": "TestIamPermissions", + "metadata": http_response["headers"], + "httpResponse": http_response, + }, + ) + return resp + + @property + def get( + self, + ) -> Callable[ + [compute.GetReservationSubBlockRequest], compute.ReservationSubBlocksGetResponse + ]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._Get(self._session, self._host, self._interceptor) # type: ignore + + @property + def get_iam_policy( + self, + ) -> Callable[[compute.GetIamPolicyReservationSubBlockRequest], compute.Policy]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._GetIamPolicy(self._session, self._host, self._interceptor) # type: ignore @property def list( @@ -1076,6 +1880,25 @@ def report_faulty( # In C++ this would require a dynamic_cast return self._ReportFaulty(self._session, self._host, self._interceptor) # type: ignore + @property + def set_iam_policy( + self, + ) -> Callable[[compute.SetIamPolicyReservationSubBlockRequest], compute.Policy]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._SetIamPolicy(self._session, self._host, self._interceptor) # type: ignore + + @property + def test_iam_permissions( + self, + ) -> Callable[ + [compute.TestIamPermissionsReservationSubBlockRequest], + compute.TestPermissionsResponse, + ]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._TestIamPermissions(self._session, self._host, self._interceptor) # type: ignore + @property def kind(self) -> str: return "rest" diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/rest_base.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/rest_base.py index a33d3e593a79..980cf6eef247 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/rest_base.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservation_sub_blocks/transports/rest_base.py @@ -133,6 +133,52 @@ def _get_query_params_json(transcoded_request): return query_params + class _BaseGetIamPolicy: + def __hash__(self): # pragma: NO COVER + return NotImplementedError("__hash__ must be implemented.") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + @staticmethod + def _get_http_options(): + http_options: List[Dict[str, str]] = [ + { + "method": "get", + "uri": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy", + }, + ] + return http_options + + @staticmethod + def _get_transcoded_request(http_options, request): + pb_request = compute.GetIamPolicyReservationSubBlockRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + return transcoded_request + + @staticmethod + def _get_query_params_json(transcoded_request): + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + use_integers_for_enums=False, + ) + ) + query_params.update( + _BaseReservationSubBlocksRestTransport._BaseGetIamPolicy._get_unset_required_fields( + query_params + ) + ) + + return query_params + class _BaseList: def __hash__(self): # pragma: NO COVER return NotImplementedError("__hash__ must be implemented.") @@ -283,5 +329,119 @@ def _get_query_params_json(transcoded_request): return query_params + class _BaseSetIamPolicy: + def __hash__(self): # pragma: NO COVER + return NotImplementedError("__hash__ must be implemented.") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + @staticmethod + def _get_http_options(): + http_options: List[Dict[str, str]] = [ + { + "method": "post", + "uri": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy", + "body": "zone_set_nested_policy_request_resource", + }, + ] + return http_options + + @staticmethod + def _get_transcoded_request(http_options, request): + pb_request = compute.SetIamPolicyReservationSubBlockRequest.pb(request) + transcoded_request = path_template.transcode(http_options, pb_request) + return transcoded_request + + @staticmethod + def _get_request_body_json(transcoded_request): + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], use_integers_for_enums=False + ) + return body + + @staticmethod + def _get_query_params_json(transcoded_request): + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + use_integers_for_enums=False, + ) + ) + query_params.update( + _BaseReservationSubBlocksRestTransport._BaseSetIamPolicy._get_unset_required_fields( + query_params + ) + ) + + return query_params + + class _BaseTestIamPermissions: + def __hash__(self): # pragma: NO COVER + return NotImplementedError("__hash__ must be implemented.") + + __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {} + + @classmethod + def _get_unset_required_fields(cls, message_dict): + return { + k: v + for k, v in cls.__REQUIRED_FIELDS_DEFAULT_VALUES.items() + if k not in message_dict + } + + @staticmethod + def _get_http_options(): + http_options: List[Dict[str, str]] = [ + { + "method": "post", + "uri": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions", + "body": "test_permissions_request_resource", + }, + ] + return http_options + + @staticmethod + def _get_transcoded_request(http_options, request): + pb_request = compute.TestIamPermissionsReservationSubBlockRequest.pb( + request + ) + transcoded_request = path_template.transcode(http_options, pb_request) + return transcoded_request + + @staticmethod + def _get_request_body_json(transcoded_request): + # Jsonify the request body + + body = json_format.MessageToJson( + transcoded_request["body"], use_integers_for_enums=False + ) + return body + + @staticmethod + def _get_query_params_json(transcoded_request): + query_params = json.loads( + json_format.MessageToJson( + transcoded_request["query_params"], + use_integers_for_enums=False, + ) + ) + query_params.update( + _BaseReservationSubBlocksRestTransport._BaseTestIamPermissions._get_unset_required_fields( + query_params + ) + ) + + return query_params + __all__ = ("_BaseReservationSubBlocksRestTransport",) diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservations/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservations/client.py index ee78e0efd69c..17736806a22a 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservations/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservations/client.py @@ -714,8 +714,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of reservations. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of reservations. + + To prevent failure, it is recommended that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1188,11 +1189,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Reservation: - Represents a reservation resource. A + Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more - information, read Reserving zonal + information, read Reserving zonal resources. """ @@ -1328,28 +1329,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1419,8 +1428,8 @@ def insert_unary( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: - r"""Creates a new reservation. For more information, read - Reserving zonal resources. + r"""Creates a new reservation. For more information, + readReserving zonal resources. .. code-block:: python @@ -1549,8 +1558,8 @@ def insert( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: - r"""Creates a new reservation. For more information, read - Reserving zonal resources. + r"""Creates a new reservation. For more information, + readReserving zonal resources. .. code-block:: python @@ -1892,8 +1901,8 @@ def sample_perform_maintenance(): on the ``request`` instance; if ``request`` is provided, this should not be set. reservation (str): - The name of the reservation. Name - should conform to RFC1035 or be a + The name of the reservation. + Name should conform to RFC1035 or be a resource ID. This corresponds to the ``reservation`` field @@ -2047,8 +2056,8 @@ def sample_perform_maintenance(): on the ``request`` instance; if ``request`` is provided, this should not be set. reservation (str): - The name of the reservation. Name - should conform to RFC1035 or be a + The name of the reservation. + Name should conform to RFC1035 or be a resource ID. This corresponds to the ``reservation`` field @@ -2178,7 +2187,7 @@ def resize_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Resizes the reservation (applicable to standalone - reservations only). For more information, read Modifying + reservations only). For more information, readModifying reservations. .. code-block:: python @@ -2328,7 +2337,7 @@ def resize( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Resizes the reservation (applicable to standalone - reservations only). For more information, read Modifying + reservations only). For more information, readModifying reservations. .. code-block:: python @@ -2570,28 +2579,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservations/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservations/transports/rest.py index d0eae9153ddd..9893c2b128a2 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/reservations/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/reservations/transports/rest.py @@ -974,21 +974,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1139,11 +1150,11 @@ def __call__( Returns: ~.compute.Reservation: - Represents a reservation resource. A + Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more - information, read Reserving zonal + information, read Reserving zonal resources. """ @@ -1292,26 +1303,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1461,21 +1523,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1778,21 +1851,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1947,21 +2031,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2121,26 +2216,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2451,21 +2597,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/resource_policies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/resource_policies/client.py index a256006a4eb1..6235563fef9e 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/resource_policies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/resource_policies/client.py @@ -722,8 +722,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of resource policies. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of resource policies. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1206,7 +1207,7 @@ def sample_get(): resource. You can use resource policies to schedule actions for some Compute Engine resources. For example, you can - use them to schedule persistent disk + use them toschedule persistent disk snapshots. """ @@ -1344,28 +1345,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2232,28 +2241,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/resource_policies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/resource_policies/transports/rest.py index 68af0e8a23fa..bf616cd66dda 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/resource_policies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/resource_policies/transports/rest.py @@ -871,21 +871,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1040,7 +1051,7 @@ def __call__( resource. You can use resource policies to schedule actions for some Compute Engine resources. For example, you can - use them to schedule persistent disk + use them toschedule persistent disk snapshots. """ @@ -1191,26 +1202,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1360,21 +1422,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1681,21 +1754,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1855,26 +1939,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/routers/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/routers/client.py index 9ca83e1bf276..83df11124516 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/routers/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/routers/client.py @@ -712,9 +712,10 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of routers. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + r"""Retrieves an aggregated list of routers. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1480,8 +1481,9 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Router: Represents a Cloud Router resource. + For more information about Cloud Router, - read the Cloud Router overview. + read theCloud Router overview. """ # Create or coerce a protobuf request object. @@ -2810,9 +2812,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Patches the specified Router resource with the data - included in the request. This method supports PATCH - semantics and uses JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -2951,9 +2953,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Patches the specified Router resource with the data - included in the request. This method supports PATCH - semantics and uses JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -3424,7 +3426,7 @@ def preview( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.RoutersPreviewResponse: r"""Preview fields auto-generated during router create - and update operations. Calling this method does NOT + andupdate operations. Calling this method does NOT create or update the router. .. code-block:: python @@ -3563,7 +3565,7 @@ def update_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Updates the specified Router resource with the data - included in the request. This method conforms to PUT + included in the request. This method conforms toPUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message @@ -3708,7 +3710,7 @@ def update( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Updates the specified Router resource with the data - included in the request. This method conforms to PUT + included in the request. This method conforms toPUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/routers/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/routers/transports/rest.py index 1c6d510a8dc2..04225e37df70 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/routers/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/routers/transports/rest.py @@ -1300,21 +1300,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1463,21 +1474,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1628,8 +1650,9 @@ def __call__( Returns: ~.compute.Router: Represents a Cloud Router resource. + For more information about Cloud Router, - read the Cloud Router overview. + read theCloud Router overview. """ @@ -2380,21 +2403,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2987,21 +3021,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3156,21 +3201,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3482,21 +3538,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -3651,21 +3718,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/routes/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/routes/client.py index 7531fa568355..f29023a00f0a 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/routes/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/routes/client.py @@ -1030,12 +1030,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Route: - Represents a Route resource. A route - defines a path from VM instances in the - VPC network to a specific destination. - This destination can be inside or - outside the VPC network. For more - information, read the Routes overview. + Represents a Route resource. + + A route defines a path from VM instances + in the VPC network to a specific + destination. This destination can be + inside or outside the VPC network. For + more information, read theRoutes + overview. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/routes/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/routes/transports/rest.py index b2e4000e9ab7..5f733a1bf55a 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/routes/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/routes/transports/rest.py @@ -426,21 +426,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -586,12 +597,14 @@ def __call__( Returns: ~.compute.Route: - Represents a Route resource. A route - defines a path from VM instances in the - VPC network to a specific destination. - This destination can be inside or - outside the VPC network. For more - information, read the Routes overview. + Represents a Route resource. + + A route defines a path from VM instances + in the VPC network to a specific + destination. This destination can be + inside or outside the VPC network. For + more information, read theRoutes + overview. """ @@ -734,21 +747,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/security_policies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/security_policies/client.py index 87a034fadf6f..dc0aa861d7b1 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/security_policies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/security_policies/client.py @@ -1009,9 +1009,10 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all SecurityPolicy resources, regional and - global, available to the specified project. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + global, available to the specified project. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1460,11 +1461,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.SecurityPolicy: Represents a Google Cloud Armor - security policy resource. Only external - backend services that use load balancers - can reference a security policy. For - more information, see Google Cloud Armor - security policy overview. + security policy resource. + Only external backend services that use + load balancers can reference a security + policy. For more information, see Google + Cloud Armor security policy overview. """ # Create or coerce a protobuf request object. @@ -3006,7 +3007,8 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on a security policy. To learn more - about labels, read the Labeling Resources documentation. + about labels, read the Labeling Resources + documentation. .. code-block:: python @@ -3142,7 +3144,8 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on a security policy. To learn more - about labels, read the Labeling Resources documentation. + about labels, read the Labeling Resources + documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/security_policies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/security_policies/transports/rest.py index 5f7110f008bb..b8453c719529 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/security_policies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/security_policies/transports/rest.py @@ -887,21 +887,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1209,21 +1220,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1375,11 +1397,11 @@ def __call__( Returns: ~.compute.SecurityPolicy: Represents a Google Cloud Armor - security policy resource. Only external - backend services that use load balancers - can reference a security policy. For - more information, see Google Cloud Armor - security policy overview. + security policy resource. + Only external backend services that use + load balancers can reference a security + policy. For more information, see Google + Cloud Armor security policy overview. """ @@ -1683,21 +1705,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2164,21 +2197,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2337,21 +2381,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2505,21 +2560,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2669,21 +2735,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/service_attachments/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/service_attachments/client.py index 4f6d0686abb1..6bb9dd08bfe7 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/service_attachments/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/service_attachments/client.py @@ -725,8 +725,9 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all ServiceAttachment resources, regional - and global, available to the specified project. To prevent - failure, Google recommends that you set the + and global, available to the specified project. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1210,13 +1211,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.ServiceAttachment: Represents a ServiceAttachment - resource. A service attachment - represents a service that a producer has - exposed. It encapsulates the load - balancer which fronts the service runs - and a list of NAT IP ranges that the - producers uses to represent the - consumers connecting to the service. + resource. + A service attachment represents a + service that a producer has exposed. It + encapsulates the load balancer which + fronts the service runs and a list of + NAT IP ranges that the producers uses to + represent the consumers connecting to + the service. """ # Create or coerce a protobuf request object. @@ -1353,28 +1355,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1869,8 +1879,8 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified ServiceAttachment resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -2022,8 +2032,8 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified ServiceAttachment resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -2272,28 +2282,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/service_attachments/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/service_attachments/transports/rest.py index 5b499dc27c61..6896ad801898 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/service_attachments/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/service_attachments/transports/rest.py @@ -876,21 +876,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1042,13 +1053,14 @@ def __call__( Returns: ~.compute.ServiceAttachment: Represents a ServiceAttachment - resource. A service attachment - represents a service that a producer has - exposed. It encapsulates the load - balancer which fronts the service runs - and a list of NAT IP ranges that the - producers uses to represent the - consumers connecting to the service. + resource. + A service attachment represents a + service that a producer has exposed. It + encapsulates the load balancer which + fronts the service runs and a list of + NAT IP ranges that the producers uses to + represent the consumers connecting to + the service. """ @@ -1199,26 +1211,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1368,21 +1431,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1689,21 +1763,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1866,26 +1951,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshot_settings_service/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshot_settings_service/transports/rest.py index cac17626b643..2124043b9a85 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshot_settings_service/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshot_settings_service/transports/rest.py @@ -478,21 +478,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshots/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshots/client.py index 3b93ca4cf7c9..aeff9f1b0f7e 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshots/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshots/client.py @@ -718,8 +718,10 @@ def delete_unary( delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next - corresponding snapshot. For more information, see - Deleting snapshots. + corresponding snapshot. + + For more information, seeDeleting + snapshots. .. code-block:: python @@ -847,8 +849,10 @@ def delete( delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next - corresponding snapshot. For more information, see - Deleting snapshots. + corresponding snapshot. + + For more information, seeDeleting + snapshots. .. code-block:: python @@ -1051,10 +1055,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Snapshot: Represents a Persistent Disk Snapshot - resource. You can use snapshots to back - up data on a regular interval. For more - information, read Creating persistent - disk snapshots. + resource. + You can use snapshots to back up data on + a regular interval. For more + information, read Creating + persistent disk snapshots. """ # Create or coerce a protobuf request object. @@ -1177,28 +1182,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1267,9 +1280,10 @@ def insert_unary( r"""Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of - disks.createSnapshot, as this method supports more - features, such as creating snapshots in a project - different from the source disk project. + disks.createSnapshot, + as this method supports more features, such as creating + snapshots in a project different from the source disk + project. .. code-block:: python @@ -1387,9 +1401,10 @@ def insert( r"""Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of - disks.createSnapshot, as this method supports more - features, such as creating snapshots in a project - different from the source disk project. + disks.createSnapshot, + as this method supports more features, such as creating + snapshots in a project different from the source disk + project. .. code-block:: python @@ -1715,28 +1730,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -1810,7 +1833,7 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on a snapshot. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python @@ -1946,7 +1969,7 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on a snapshot. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshots/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshots/transports/rest.py index 1274c3191b2b..728b02c445ec 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshots/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/snapshots/transports/rest.py @@ -650,21 +650,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -813,10 +824,11 @@ def __call__( Returns: ~.compute.Snapshot: Represents a Persistent Disk Snapshot - resource. You can use snapshots to back - up data on a regular interval. For more - information, read Creating persistent - disk snapshots. + resource. + You can use snapshots to back up data on + a regular interval. For more + information, read Creating + persistent disk snapshots. """ @@ -962,26 +974,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1133,21 +1196,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1448,26 +1522,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1624,21 +1749,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_certificates/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_certificates/client.py index 39a128392b28..5449bfc634b7 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_certificates/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_certificates/client.py @@ -722,9 +722,10 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all SslCertificate resources, regional and - global, available to the specified project. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + global, available to the specified project. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1173,26 +1174,36 @@ def sample_get(): Returns: google.cloud.compute_v1.types.SslCertificate: - Represents an SSL certificate resource. Google Compute - Engine has two SSL certificate resources: \* - [Global](/compute/docs/reference/rest/v1/sslCertificates) - \* - [Regional](/compute/docs/reference/rest/v1/regionSslCertificates) - The global SSL certificates (sslCertificates) are used - by: - Global external Application Load Balancers - - Classic Application Load Balancers - Proxy Network Load - Balancers (with target SSL proxies) The regional SSL - certificates (regionSslCertificates) are used by: - - Regional external Application Load Balancers - Regional - internal Application Load Balancers Optionally, - certificate file contents that you upload can contain a - set of up to five PEM-encoded certificates. The API call - creates an object (sslCertificate) that holds this data. - You can use SSL keys and certificates to secure - connections to a load balancer. For more information, - read Creating and using SSL certificates, SSL - certificates quotas and limits, and Troubleshooting SSL - certificates. + Represents an SSL certificate resource. + + Google Compute Engine has two SSL certificate + resources: + + - [Global](/compute/docs/reference/rest/v1/sslCertificates) + - [Regional](/compute/docs/reference/rest/v1/regionSslCertificates) + + The global SSL certificates (sslCertificates) are + used by: + + - Global external Application Load Balancers + - Classic Application Load Balancers + - Proxy Network Load Balancers (with target SSL + proxies) + + The regional SSL certificates (regionSslCertificates) + are used by: + + - Regional external Application Load Balancers + - Regional internal Application Load Balancers + + Optionally, certificate file contents that you upload + can contain a set of up to five PEM-encoded + certificates. The API call creates an object + (sslCertificate) that holds this data. You can use + SSL keys and certificates to secure connections to a + load balancer. For more information, read Creating + and using SSL certificates,SSL certificates quotas + and limits, and Troubleshooting SSL certificates. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py index a122ef2967b7..fde3fa92eabe 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_certificates/transports/rest.py @@ -648,21 +648,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -813,26 +824,38 @@ def __call__( Returns: ~.compute.SslCertificate: - Represents an SSL certificate resource. Google Compute - Engine has two SSL certificate resources: \* - `Global `__ - \* - `Regional `__ + Represents an SSL certificate resource. + + Google Compute Engine has two SSL certificate resources: + + - `Global `__ + - `Regional `__ + The global SSL certificates (sslCertificates) are used - by: - Global external Application Load Balancers - - Classic Application Load Balancers - Proxy Network Load - Balancers (with target SSL proxies) The regional SSL - certificates (regionSslCertificates) are used by: - - Regional external Application Load Balancers - Regional - internal Application Load Balancers Optionally, - certificate file contents that you upload can contain a - set of up to five PEM-encoded certificates. The API call - creates an object (sslCertificate) that holds this data. - You can use SSL keys and certificates to secure - connections to a load balancer. For more information, - read Creating and using SSL certificates, SSL - certificates quotas and limits, and Troubleshooting SSL - certificates. + by: + + :: + + - Global external Application Load Balancers + - Classic Application Load Balancers + - Proxy Network Load Balancers (with target SSL proxies) + + The regional SSL certificates (regionSslCertificates) + are used by: + + :: + + - Regional external Application Load Balancers + - Regional internal Application Load Balancers + + Optionally, certificate file contents that you upload + can contain a set of up to five PEM-encoded + certificates. The API call creates an object + (sslCertificate) that holds this data. You can use SSL + keys and certificates to secure connections to a load + balancer. For more information, read Creating and using + SSL certificates,SSL certificates quotas and limits, and + Troubleshooting SSL certificates. """ @@ -982,21 +1005,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_policies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_policies/client.py index 2e3d0bf118b1..05ef09eebb11 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_policies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_policies/client.py @@ -713,9 +713,10 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all SslPolicy resources, regional and - global, available to the specified project. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + global, available to the specified project. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1173,6 +1174,7 @@ def sample_get(): Returns: google.cloud.compute_v1.types.SslPolicy: Represents an SSL Policy resource. + Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_policies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_policies/transports/rest.py index 615b6f6ccd2c..c03e022bef21 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_policies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/ssl_policies/transports/rest.py @@ -748,21 +748,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -912,6 +923,7 @@ def __call__( Returns: ~.compute.SslPolicy: Represents an SSL Policy resource. + Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application @@ -1063,21 +1075,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1528,21 +1551,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pool_types/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pool_types/client.py index d2a0bd7c09fc..7eb714abe5ec 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pool_types/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pool_types/client.py @@ -719,8 +719,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of storage pool types. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of storage pool types. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pools/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pools/client.py index 9bd277ec0d16..2d8a7b26b9c6 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pools/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pools/client.py @@ -714,8 +714,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of storage pools. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of storage pools. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1336,28 +1337,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2074,28 +2083,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pools/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pools/transports/rest.py index 82ecc1b44a79..c7c1cbb6f2a5 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pools/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/storage_pools/transports/rest.py @@ -919,21 +919,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1233,26 +1244,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1402,21 +1464,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1870,26 +1943,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2200,21 +2324,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/subnetworks/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/subnetworks/client.py index bfe5969de9e1..d75a800f5080 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/subnetworks/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/subnetworks/client.py @@ -712,9 +712,10 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of subnetworks. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + r"""Retrieves an aggregated list of subnetworks. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1530,13 +1531,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Subnetwork: - Represents a Subnetwork resource. A - subnetwork (also known as a subnet) is a - logical partition of a Virtual Private + Represents a Subnetwork resource. + + A subnetwork (also known as a subnet) is + a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. - For more information, read Virtual - Private Cloud (VPC) Network. + For more information, read + Virtual Private Cloud (VPC) Network. """ # Create or coerce a protobuf request object. @@ -1671,28 +1673,36 @@ def sample_get_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. @@ -2315,8 +2325,9 @@ def patch_unary( r"""Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field - descriptions. You must specify the current fingerprint - of the subnetwork resource being patched. + descriptions. + You must specify the current fingerprint of the + subnetwork resource being patched. .. code-block:: python @@ -2462,8 +2473,9 @@ def patch( r"""Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field - descriptions. You must specify the current fingerprint - of the subnetwork resource being patched. + descriptions. + You must specify the current fingerprint of the + subnetwork resource being patched. .. code-block:: python @@ -2703,28 +2715,36 @@ def sample_set_iam_policy(): Returns: google.cloud.compute_v1.types.Policy: - An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - Policy is a collection of bindings. A binding binds one - or more members, or principals, to a single role. - Principals can be user accounts, service accounts, - Google groups, and domains (such as G Suite). A role is - a named list of permissions; each role can be an IAM - predefined role or a user-created custom role. For some - types of Google Cloud resources, a binding can also - specify a condition, which is a logical expression that - allows access to a resource only if the expression - evaluates to true. A condition can add constraints based - on attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - **JSON example:** - :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ - \**YAML example:\*\* - \ ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3``\ \` - For a description of IAM and its features, see the [IAM - documentation](https://cloud.google.com/iam/docs/). + An Identity and Access Management (IAM) policy, which specifies access + controls for Google Cloud resources. + + A Policy is a collection of bindings. A binding binds + one or more members, or principals, to a single role. + Principals can be user accounts, service accounts, + Google groups, and domains (such as G Suite). A role + is a named list of permissions; each role can be an + IAM predefined role or a user-created custom role. + + For some types of Google Cloud resources, a binding + can also specify a condition, which is a logical + expression that allows access to a resource only if + the expression evaluates to true. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + + **JSON example:** + + :literal:`` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \` + + **YAML example:** + + :literal:`` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \` + + For a description of IAM and its features, see the + [IAM + documentation](https://cloud.google.com/iam/docs/). """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/subnetworks/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/subnetworks/transports/rest.py index 0de9cab6cd7b..e646703c6987 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/subnetworks/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/subnetworks/transports/rest.py @@ -1031,21 +1031,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1197,21 +1208,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1365,13 +1387,14 @@ def __call__( Returns: ~.compute.Subnetwork: - Represents a Subnetwork resource. A - subnetwork (also known as a subnet) is a - logical partition of a Virtual Private + Represents a Subnetwork resource. + + A subnetwork (also known as a subnet) is + a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. - For more information, read Virtual - Private Cloud (VPC) Network. + For more information, read + Virtual Private Cloud (VPC) Network. """ @@ -1519,26 +1542,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -1690,21 +1764,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2157,21 +2242,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2329,26 +2425,77 @@ def __call__( Returns: ~.compute.Policy: An Identity and Access Management (IAM) policy, which - specifies access controls for Google Cloud resources. A - ``Policy`` is a collection of ``bindings``. A + specifies access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds one or more ``members``, or principals, to a single ``role``. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A ``role`` is a named list of permissions; each ``role`` can be an IAM predefined role - or a user-created custom role. For some types of Google - Cloud resources, a ``binding`` can also specify a - ``condition``, which is a logical expression that allows - access to a resource only if the expression evaluates to - ``true``. A condition can add constraints based on - attributes of the request, the resource, or both. To - learn which resources support conditions in their IAM - policies, see the `IAM + or a user-created custom role. + + For some types of Google Cloud resources, a ``binding`` + can also specify a ``condition``, which is a logical + expression that allows access to a resource only if the + expression evaluates to ``true``. A condition can add + constraints based on attributes of the request, the + resource, or both. To learn which resources support + conditions in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -2510,21 +2657,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_grpc_proxies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_grpc_proxies/client.py index f21e1f8552b9..3cb5e9379321 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_grpc_proxies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_grpc_proxies/client.py @@ -1052,13 +1052,15 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetGrpcProxy: - Represents a Target gRPC Proxy resource. A target gRPC - proxy is a component of load balancers intended for load - balancing gRPC traffic. Only global forwarding rules - with load balancing scheme INTERNAL_SELF_MANAGED can - reference a target gRPC proxy. The target gRPC Proxy - references a URL map that specifies how traffic is - routed to gRPC backend services. + Represents a Target gRPC Proxy resource. + + A target gRPC proxy is a component of load balancers + intended for load balancing gRPC traffic. Only global + forwarding rules with load balancing scheme + INTERNAL_SELF_MANAGED can reference a target gRPC + proxy. The target gRPC Proxy references a URL map + that specifies how traffic is routed to gRPC backend + services. """ # Create or coerce a protobuf request object. @@ -1506,8 +1508,8 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -1640,8 +1642,8 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py index c3408816e44c..5b3568838ea1 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_grpc_proxies/transports/rest.py @@ -495,21 +495,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -660,13 +671,15 @@ def __call__( Returns: ~.compute.TargetGrpcProxy: - Represents a Target gRPC Proxy resource. A target gRPC - proxy is a component of load balancers intended for load - balancing gRPC traffic. Only global forwarding rules - with load balancing scheme INTERNAL_SELF_MANAGED can - reference a target gRPC proxy. The target gRPC Proxy - references a URL map that specifies how traffic is - routed to gRPC backend services. + Represents a Target gRPC Proxy resource. + + A target gRPC proxy is a component of load balancers + intended for load balancing gRPC traffic. Only global + forwarding rules with load balancing scheme + INTERNAL_SELF_MANAGED can reference a target gRPC proxy. + The target gRPC Proxy references a URL map that + specifies how traffic is routed to gRPC backend + services. """ @@ -816,21 +829,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1139,21 +1163,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_http_proxies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_http_proxies/client.py index 0252a68831b1..b2b1f5b5fce9 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_http_proxies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_http_proxies/client.py @@ -725,8 +725,9 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all TargetHttpProxy resources, regional - and global, available to the specified project. To prevent - failure, Google recommends that you set the + and global, available to the specified project. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1176,22 +1177,29 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetHttpProxy: - Represents a Target HTTP Proxy resource. Google Compute - Engine has two Target HTTP Proxy resources: \* - [Global](/compute/docs/reference/rest/v1/targetHttpProxies) - \* - [Regional](/compute/docs/reference/rest/v1/regionTargetHttpProxies) - A target HTTP proxy is a component of Google Cloud HTTP - load balancers. \* targetHttpProxies are used by global - external Application Load Balancers, classic Application - Load Balancers, cross-region internal Application Load - Balancers, and Traffic Director. \* - regionTargetHttpProxies are used by regional internal - Application Load Balancers and regional external - Application Load Balancers. Forwarding rules reference a - target HTTP proxy, and the target proxy then references - a URL map. For more information, read Using Target - Proxies and Forwarding rule concepts. + Represents a Target HTTP Proxy resource. + + Google Compute Engine has two Target HTTP Proxy + resources: + + - [Global](/compute/docs/reference/rest/v1/targetHttpProxies) + - [Regional](/compute/docs/reference/rest/v1/regionTargetHttpProxies) + + A target HTTP proxy is a component of Google Cloud + HTTP load balancers. + + - targetHttpProxies are used by global external + Application Load Balancers, classic Application + Load Balancers, cross-region internal Application + Load Balancers, and Traffic Director. + - regionTargetHttpProxies are used by regional + internal Application Load Balancers and regional + external Application Load Balancers. + + Forwarding rules reference a target HTTP proxy, and + the target proxy then references a URL map. For more + information, readUsing Target Proxies and Forwarding + rule concepts. """ # Create or coerce a protobuf request object. @@ -1639,8 +1647,8 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified TargetHttpProxy resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -1773,8 +1781,8 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified TargetHttpProxy resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py index 96c3651bb2b7..eeec1766acb4 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_http_proxies/transports/rest.py @@ -757,21 +757,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -922,22 +933,29 @@ def __call__( Returns: ~.compute.TargetHttpProxy: - Represents a Target HTTP Proxy resource. Google Compute - Engine has two Target HTTP Proxy resources: \* - `Global `__ - \* - `Regional `__ + Represents a Target HTTP Proxy resource. + + Google Compute Engine has two Target HTTP Proxy + resources: + + - `Global `__ + - `Regional `__ + A target HTTP proxy is a component of Google Cloud HTTP - load balancers. \* targetHttpProxies are used by global - external Application Load Balancers, classic Application - Load Balancers, cross-region internal Application Load - Balancers, and Traffic Director. \* - regionTargetHttpProxies are used by regional internal - Application Load Balancers and regional external - Application Load Balancers. Forwarding rules reference a - target HTTP proxy, and the target proxy then references - a URL map. For more information, read Using Target - Proxies and Forwarding rule concepts. + load balancers. + + - targetHttpProxies are used by global external + Application Load Balancers, classic Application Load + Balancers, cross-region internal Application Load + Balancers, and Traffic Director. + - regionTargetHttpProxies are used by regional internal + Application Load Balancers and regional external + Application Load Balancers. + + Forwarding rules reference a target HTTP proxy, and the + target proxy then references a URL map. For more + information, readUsing Target Proxies and Forwarding + rule concepts. """ @@ -1087,21 +1105,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1410,21 +1439,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1585,21 +1625,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_https_proxies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_https_proxies/client.py index 536fe34e8aed..f1048d8a65dc 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_https_proxies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_https_proxies/client.py @@ -725,8 +725,9 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all TargetHttpsProxy resources, regional - and global, available to the specified project. To prevent - failure, Google recommends that you set the + and global, available to the specified project. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1176,22 +1177,29 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetHttpsProxy: - Represents a Target HTTPS Proxy resource. Google Compute - Engine has two Target HTTPS Proxy resources: \* - [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) - \* - [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) - A target HTTPS proxy is a component of Google Cloud - HTTPS load balancers. \* targetHttpsProxies are used by - global external Application Load Balancers, classic - Application Load Balancers, cross-region internal - Application Load Balancers, and Traffic Director. \* - regionTargetHttpsProxies are used by regional internal - Application Load Balancers and regional external - Application Load Balancers. Forwarding rules reference a - target HTTPS proxy, and the target proxy then references - a URL map. For more information, read Using Target - Proxies and Forwarding rule concepts. + Represents a Target HTTPS Proxy resource. + + Google Compute Engine has two Target HTTPS Proxy + resources: + + - [Global](/compute/docs/reference/rest/v1/targetHttpsProxies) + - [Regional](/compute/docs/reference/rest/v1/regionTargetHttpsProxies) + + A target HTTPS proxy is a component of Google Cloud + HTTPS load balancers. + + - targetHttpsProxies are used by global external + Application Load Balancers, classic Application + Load Balancers, cross-region internal Application + Load Balancers, and Traffic Director. + - regionTargetHttpsProxies are used by regional + internal Application Load Balancers and regional + external Application Load Balancers. + + Forwarding rules reference a target HTTPS proxy, and + the target proxy then references a URL map. For more + information, readUsing Target Proxies and Forwarding + rule concepts. """ # Create or coerce a protobuf request object. @@ -1639,8 +1647,8 @@ def patch_unary( ) -> compute.Operation: r"""Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python @@ -1773,8 +1781,8 @@ def patch( ) -> extended_operation.ExtendedOperation: r"""Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports - PATCH semantics and uses JSON merge patch format and - processing rules. + PATCH semantics and usesJSON merge + patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py index cbb739ed3a8e..0044bf9203be 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_https_proxies/transports/rest.py @@ -982,21 +982,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1147,22 +1158,29 @@ def __call__( Returns: ~.compute.TargetHttpsProxy: - Represents a Target HTTPS Proxy resource. Google Compute - Engine has two Target HTTPS Proxy resources: \* - `Global `__ - \* - `Regional `__ + Represents a Target HTTPS Proxy resource. + + Google Compute Engine has two Target HTTPS Proxy + resources: + + - `Global `__ + - `Regional `__ + A target HTTPS proxy is a component of Google Cloud - HTTPS load balancers. \* targetHttpsProxies are used by - global external Application Load Balancers, classic - Application Load Balancers, cross-region internal - Application Load Balancers, and Traffic Director. \* - regionTargetHttpsProxies are used by regional internal - Application Load Balancers and regional external - Application Load Balancers. Forwarding rules reference a - target HTTPS proxy, and the target proxy then references - a URL map. For more information, read Using Target - Proxies and Forwarding rule concepts. + HTTPS load balancers. + + - targetHttpsProxies are used by global external + Application Load Balancers, classic Application Load + Balancers, cross-region internal Application Load + Balancers, and Traffic Director. + - regionTargetHttpsProxies are used by regional internal + Application Load Balancers and regional external + Application Load Balancers. + + Forwarding rules reference a target HTTPS proxy, and the + target proxy then references a URL map. For more + information, readUsing Target Proxies and Forwarding + rule concepts. """ @@ -1312,21 +1330,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1635,21 +1664,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1811,21 +1851,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1983,21 +2034,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2155,21 +2217,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2329,21 +2402,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2498,21 +2582,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_instances/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_instances/client.py index 74c3b0b19f92..da57babf49c5 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_instances/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_instances/client.py @@ -721,8 +721,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of target instances. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of target instances. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1205,13 +1206,15 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetInstance: Represents a Target Instance - resource. You can use a target instance - to handle traffic for one or more - forwarding rules, which is ideal for - forwarding protocol traffic that is - managed by a single source. For example, - ESP, AH, TCP, or UDP. For more - information, read Target instances. + resource. + You can use a target instance to handle + traffic for one or more forwarding + rules, which is ideal for forwarding + protocol traffic that is managed by a + single source. For example, ESP, AH, + TCP, or UDP. For more information, + readTarget + instances. """ # Create or coerce a protobuf request object. @@ -1715,8 +1718,8 @@ def set_security_policy_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the Google Cloud Armor security policy for the - specified target instance. For more information, see - Google Cloud Armor Overview + specified target instance. For more information, + seeGoogle Cloud Armor Overview .. code-block:: python @@ -1872,8 +1875,8 @@ def set_security_policy( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the Google Cloud Armor security policy for the - specified target instance. For more information, see - Google Cloud Armor Overview + specified target instance. For more information, + seeGoogle Cloud Armor Overview .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_instances/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_instances/transports/rest.py index 76e78e4694f5..1ab1884569ce 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_instances/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_instances/transports/rest.py @@ -764,21 +764,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -930,13 +941,15 @@ def __call__( Returns: ~.compute.TargetInstance: Represents a Target Instance - resource. You can use a target instance - to handle traffic for one or more - forwarding rules, which is ideal for - forwarding protocol traffic that is - managed by a single source. For example, - ESP, AH, TCP, or UDP. For more - information, read Target instances. + resource. + You can use a target instance to handle + traffic for one or more forwarding + rules, which is ideal for forwarding + protocol traffic that is managed by a + single source. For example, ESP, AH, + TCP, or UDP. For more information, + readTarget + instances. """ @@ -1086,21 +1099,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1408,21 +1432,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_pools/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_pools/client.py index e2666e0da309..616b77a3654f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_pools/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_pools/client.py @@ -1370,8 +1370,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of target pools. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of target pools. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1854,13 +1855,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetPool: Represents a Target Pool resource. + Target pools are used with external passthrough Network Load Balancers. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup - target pool. For more information, read - Using target pools. + target pool. For more information, + readUsing target pools. """ # Create or coerce a protobuf request object. @@ -3476,7 +3478,7 @@ def set_security_policy_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the Google Cloud Armor security policy for the - specified target pool. For more information, see Google + specified target pool. For more information, seeGoogle Cloud Armor Overview .. code-block:: python @@ -3633,7 +3635,7 @@ def set_security_policy( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the Google Cloud Armor security policy for the - specified target pool. For more information, see Google + specified target pool. For more information, seeGoogle Cloud Armor Overview .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_pools/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_pools/transports/rest.py index 33220955dfa6..e330e6705aba 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_pools/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_pools/transports/rest.py @@ -942,21 +942,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1113,21 +1124,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1433,21 +1455,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1597,13 +1630,14 @@ def __call__( Returns: ~.compute.TargetPool: Represents a Target Pool resource. + Target pools are used with external passthrough Network Load Balancers. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup - target pool. For more information, read - Using target pools. + target pool. For more information, + readUsing target pools. """ @@ -1905,21 +1939,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2222,21 +2267,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2393,21 +2449,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2560,21 +2627,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2733,21 +2811,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_ssl_proxies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_ssl_proxies/client.py index 20592e7c0b05..bd8f92266c91 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_ssl_proxies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_ssl_proxies/client.py @@ -1048,13 +1048,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetSslProxy: Represents a Target SSL Proxy - resource. A target SSL proxy is a - component of a Proxy Network Load - Balancer. The forwarding rule references - the target SSL proxy, and the target - proxy then references a backend service. - For more information, read Proxy Network - Load Balancer overview. + resource. + A target SSL proxy is a component of a + Proxy Network Load Balancer. The + forwarding rule references the target + SSL proxy, and the target proxy then + references a backend service. For more + information, readProxy Network Load + Balancer overview. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py index a6ee5dc3793f..53ee6ed7fe9b 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_ssl_proxies/transports/rest.py @@ -722,21 +722,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -888,13 +899,14 @@ def __call__( Returns: ~.compute.TargetSslProxy: Represents a Target SSL Proxy - resource. A target SSL proxy is a - component of a Proxy Network Load - Balancer. The forwarding rule references - the target SSL proxy, and the target - proxy then references a backend service. - For more information, read Proxy Network - Load Balancer overview. + resource. + A target SSL proxy is a component of a + Proxy Network Load Balancer. The + forwarding rule references the target + SSL proxy, and the target proxy then + references a backend service. For more + information, readProxy Network Load + Balancer overview. """ @@ -1044,21 +1056,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1368,21 +1391,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1540,21 +1574,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1711,21 +1756,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1883,21 +1939,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -2054,21 +2121,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_tcp_proxies/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_tcp_proxies/client.py index 0aa2a0f43a7c..0f170f1bc9d1 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_tcp_proxies/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_tcp_proxies/client.py @@ -723,9 +723,10 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all TargetTcpProxy resources, regional and - global, available to the specified project. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + global, available to the specified project. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1175,13 +1176,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetTcpProxy: Represents a Target TCP Proxy - resource. A target TCP proxy is a - component of a Proxy Network Load - Balancer. The forwarding rule references - the target TCP proxy, and the target - proxy then references a backend service. - For more information, read Proxy Network - Load Balancer overview. + resource. + A target TCP proxy is a component of a + Proxy Network Load Balancer. The + forwarding rule references the target + TCP proxy, and the target proxy then + references a backend service. For more + information, readProxy Network Load + Balancer overview. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py index a401f0ca3f46..44194b9ca1ec 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_tcp_proxies/transports/rest.py @@ -760,21 +760,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -926,13 +937,14 @@ def __call__( Returns: ~.compute.TargetTcpProxy: Represents a Target TCP Proxy - resource. A target TCP proxy is a - component of a Proxy Network Load - Balancer. The forwarding rule references - the target TCP proxy, and the target - proxy then references a backend service. - For more information, read Proxy Network - Load Balancer overview. + resource. + A target TCP proxy is a component of a + Proxy Network Load Balancer. The + forwarding rule references the target + TCP proxy, and the target proxy then + references a backend service. For more + information, readProxy Network Load + Balancer overview. """ @@ -1082,21 +1094,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1406,21 +1429,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1577,21 +1611,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_vpn_gateways/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_vpn_gateways/client.py index 0de3e4ea7939..3a885185004f 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_vpn_gateways/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_vpn_gateways/client.py @@ -724,8 +724,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of target VPN gateways. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of target VPN gateways. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1202,10 +1203,11 @@ def sample_get(): Returns: google.cloud.compute_v1.types.TargetVpnGateway: Represents a Target VPN Gateway - resource. The target VPN gateway - resource represents a Classic Cloud VPN - gateway. For more information, read the - the Cloud VPN Overview. + resource. + The target VPN gateway resource + represents a Classic Cloud VPN gateway. + For more information, read thethe + Cloud VPN Overview. """ # Create or coerce a protobuf request object. @@ -1701,7 +1703,7 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on a TargetVpnGateway. To learn more - about labels, read the Labeling Resources documentation. + about labels, read theLabeling Resources documentation. .. code-block:: python @@ -1852,7 +1854,7 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on a TargetVpnGateway. To learn more - about labels, read the Labeling Resources documentation. + about labels, read theLabeling Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py index 944887431540..08d2f3974305 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/target_vpn_gateways/transports/rest.py @@ -704,21 +704,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -870,10 +881,11 @@ def __call__( Returns: ~.compute.TargetVpnGateway: Represents a Target VPN Gateway - resource. The target VPN gateway - resource represents a Classic Cloud VPN - gateway. For more information, read the - the Cloud VPN Overview. + resource. + The target VPN gateway resource + represents a Classic Cloud VPN gateway. + For more information, read thethe + Cloud VPN Overview. """ @@ -1023,21 +1035,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1348,21 +1371,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/url_maps/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/url_maps/client.py index 23a7433d2fa2..bfb22d9acd76 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/url_maps/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/url_maps/client.py @@ -713,9 +713,10 @@ def aggregated_list( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: r"""Retrieves the list of all UrlMap resources, regional and global, - available to the specified project. To prevent failure, Google - recommends that you set the ``returnPartialSuccess`` parameter - to ``true``. + available to the specified project. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1161,31 +1162,43 @@ def sample_get(): Returns: google.cloud.compute_v1.types.UrlMap: - Represents a URL Map resource. Compute Engine has two - URL Map resources: \* - [Global](/compute/docs/reference/rest/v1/urlMaps) \* - [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) - A URL map resource is a component of certain types of - cloud load balancers and Traffic Director: \* urlMaps - are used by global external Application Load Balancers, - classic Application Load Balancers, and cross-region - internal Application Load Balancers. \* regionUrlMaps - are used by internal Application Load Balancers, - regional external Application Load Balancers and - regional internal Application Load Balancers. For a list - of supported URL map features by the load balancer type, - see the Load balancing features: Routing and traffic - management table. For a list of supported URL map - features for Traffic Director, see the Traffic Director - features: Routing and traffic management table. This - resource defines mappings from hostnames and URL paths - to either a backend service or a backend bucket. To use - the global urlMaps resource, the backend service must - have a loadBalancingScheme of either EXTERNAL, - EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use the - regionUrlMaps resource, the backend service must have a - loadBalancingScheme of INTERNAL_MANAGED. For more - information, read URL Map Concepts. + Represents a URL Map resource. + + Compute Engine has two URL Map resources: + + - [Global](/compute/docs/reference/rest/v1/urlMaps) + - [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) + + A URL map resource is a component of certain types of + cloud load balancers and Traffic Director: + + \* urlMaps are used by global external Application + Load Balancers, classic Application Load Balancers, + and cross-region internal Application Load Balancers. + \* regionUrlMaps are used by internal Application + Load Balancers, regional external Application Load + Balancers and regional internal Application Load + Balancers. + + For a list of supported URL map features by the load + balancer type, see the Load balancing features: + Routing and traffic management table. + + For a list of supported URL map features for Traffic + Director, see the Traffic Director features: Routing + and traffic management table. + + This resource defines mappings from hostnames and URL + paths to either a backend service or a backend + bucket. + + To use the global urlMaps resource, the backend + service must have a loadBalancingScheme of either + EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. + To use the regionUrlMaps resource, the backend + service must have aloadBalancingScheme of + INTERNAL_MANAGED. For more information, read URL Map + Concepts. """ # Create or coerce a protobuf request object. @@ -1509,8 +1522,9 @@ def invalidate_cache_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Initiates a cache invalidation operation, invalidating the - specified path, scoped to the specified UrlMap. For more - information, see `Invalidating cached + specified path, scoped to the specified UrlMap. + + For more information, see `Invalidating cached content `__. .. code-block:: python @@ -1647,8 +1661,9 @@ def invalidate_cache( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Initiates a cache invalidation operation, invalidating the - specified path, scoped to the specified UrlMap. For more - information, see `Invalidating cached + specified path, scoped to the specified UrlMap. + + For more information, see `Invalidating cached content `__. .. code-block:: python @@ -1929,9 +1944,9 @@ def patch_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Patches the specified UrlMap resource with the data - included in the request. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python @@ -2060,9 +2075,9 @@ def patch( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Patches the specified UrlMap resource with the data - included in the request. This method supports PATCH - semantics and uses the JSON merge patch format and - processing rules. + included in the request. This method supportsPATCH + semantics and uses theJSON merge + patch format and processing rules. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/url_maps/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/url_maps/transports/rest.py index 3ae04b1d76c5..4d40e23ed192 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/url_maps/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/url_maps/transports/rest.py @@ -848,21 +848,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1008,30 +1019,40 @@ def __call__( Returns: ~.compute.UrlMap: - Represents a URL Map resource. Compute Engine has two - URL Map resources: \* - `Global `__ \* - `Regional `__ + Represents a URL Map resource. + + Compute Engine has two URL Map resources: + + - `Global `__ + - `Regional `__ + A URL map resource is a component of certain types of - cloud load balancers and Traffic Director: \* urlMaps - are used by global external Application Load Balancers, - classic Application Load Balancers, and cross-region - internal Application Load Balancers. \* regionUrlMaps - are used by internal Application Load Balancers, - regional external Application Load Balancers and - regional internal Application Load Balancers. For a list - of supported URL map features by the load balancer type, - see the Load balancing features: Routing and traffic - management table. For a list of supported URL map - features for Traffic Director, see the Traffic Director - features: Routing and traffic management table. This - resource defines mappings from hostnames and URL paths - to either a backend service or a backend bucket. To use - the global urlMaps resource, the backend service must - have a loadBalancingScheme of either EXTERNAL, - EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use the - regionUrlMaps resource, the backend service must have a - loadBalancingScheme of INTERNAL_MANAGED. For more + cloud load balancers and Traffic Director: + + - urlMaps are used by global external Application Load + Balancers, classic Application Load Balancers, and + cross-region internal Application Load Balancers. + - regionUrlMaps are used by internal Application Load + Balancers, regional external Application Load + Balancers and regional internal Application Load + Balancers. + + For a list of supported URL map features by the load + balancer type, see the Load balancing features: Routing + and traffic management table. + + For a list of supported URL map features for Traffic + Director, see the Traffic Director features: Routing and + traffic management table. + + This resource defines mappings from hostnames and URL + paths to either a backend service or a backend bucket. + + To use the global urlMaps resource, the backend service + must have a loadBalancingScheme of either + EXTERNAL,EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To + use the regionUrlMaps resource, the backend service must + have aloadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts. """ @@ -1175,21 +1196,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1344,21 +1376,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1659,21 +1702,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1825,21 +1879,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_gateways/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_gateways/client.py index cde48843174d..3d3811288cb3 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_gateways/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_gateways/client.py @@ -712,8 +712,9 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of VPN gateways. To prevent - failure, Google recommends that you set the + r"""Retrieves an aggregated list of VPN gateways. + + To prevent failure, Google recommends that you set the ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1183,13 +1184,14 @@ def sample_get(): Returns: google.cloud.compute_v1.types.VpnGateway: - Represents a HA VPN gateway. HA VPN - is a high-availability (HA) Cloud VPN - solution that lets you securely connect - your on-premises network to your Google - Cloud Virtual Private Cloud network - through an IPsec VPN connection in a - single region. For more information + Represents a HA VPN gateway. + + HA VPN is a high-availability (HA) Cloud + VPN solution that lets you securely + connect your on-premises network to your + Google Cloud Virtual Private Cloud + network through an IPsec VPN connection + in a single region. For more information about Cloud HA VPN solutions, see Cloud VPN topologies . @@ -1816,7 +1818,7 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on a VpnGateway. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python @@ -1967,7 +1969,7 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on a VpnGateway. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py index 45bae60fcb82..fac4feec5c22 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_gateways/transports/rest.py @@ -811,21 +811,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -974,13 +985,14 @@ def __call__( Returns: ~.compute.VpnGateway: - Represents a HA VPN gateway. HA VPN - is a high-availability (HA) Cloud VPN - solution that lets you securely connect - your on-premises network to your Google - Cloud Virtual Private Cloud network - through an IPsec VPN connection in a - single region. For more information + Represents a HA VPN gateway. + + HA VPN is a high-availability (HA) Cloud + VPN solution that lets you securely + connect your on-premises network to your + Google Cloud Virtual Private Cloud + network through an IPsec VPN connection + in a single region. For more information about Cloud HA VPN solutions, see Cloud VPN topologies . @@ -1278,21 +1290,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1593,21 +1616,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_tunnels/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_tunnels/client.py index 2340c049fbde..976cad30c6c8 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_tunnels/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_tunnels/client.py @@ -712,9 +712,10 @@ def aggregated_list( timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> pagers.AggregatedListPager: - r"""Retrieves an aggregated list of VPN tunnels. To prevent failure, - Google recommends that you set the ``returnPartialSuccess`` - parameter to ``true``. + r"""Retrieves an aggregated list of VPN tunnels. + + To prevent failure, Google recommends that you set the + ``returnPartialSuccess`` parameter to ``true``. .. code-block:: python @@ -1189,8 +1190,9 @@ def sample_get(): Returns: google.cloud.compute_v1.types.VpnTunnel: Represents a Cloud VPN Tunnel - resource. For more information about - VPN, read the the Cloud VPN Overview. + resource. + For more information about VPN, read the + the Cloud VPN Overview. """ # Create or coerce a protobuf request object. @@ -1686,7 +1688,7 @@ def set_labels_unary( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> compute.Operation: r"""Sets the labels on a VpnTunnel. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python @@ -1837,7 +1839,7 @@ def set_labels( metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), ) -> extended_operation.ExtendedOperation: r"""Sets the labels on a VpnTunnel. To learn more about - labels, read the Labeling Resources documentation. + labels, read theLabeling Resources documentation. .. code-block:: python diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py index 8334c4866b7e..23208dc74866 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/vpn_tunnels/transports/rest.py @@ -689,21 +689,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -852,8 +863,9 @@ def __call__( Returns: ~.compute.VpnTunnel: Represents a Cloud VPN Tunnel - resource. For more information about - VPN, read the the Cloud VPN Overview. + resource. + For more information about VPN, read the + the Cloud VPN Overview. """ @@ -997,21 +1009,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -1312,21 +1335,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/zone_operations/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/zone_operations/client.py index 590b8e509f87..990a64d94a18 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/zone_operations/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/zone_operations/client.py @@ -916,23 +916,30 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - [Global](/compute/docs/reference/rest/v1/globalOperations) - \* - [Regional](/compute/docs/reference/rest/v1/regionOperations) - \* - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) - You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the globalOperations - resource. - For regional operations, use the - regionOperations resource. - For zonal operations, use - the zoneOperations resource. For more information, read - Global, Regional, and Zonal Resources. Note that - completed Operation resources have a limited retention - period. + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - [Global](/compute/docs/reference/rest/v1/globalOperations) + - [Regional](/compute/docs/reference/rest/v1/regionOperations) + - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) + + You can use an operation resource to manage + asynchronous API requests. For more information, + readHandling API responses. + + Operations can be global, regional or zonal. + + - For global operations, use the globalOperations + resource. - For regional operations, use the + regionOperations resource. - For zonal operations, + use the zoneOperations resource. + + For more information, read Global, Regional, and + Zonal Resources. + + Note that completed Operation resources have a + limited retention period. """ # Create or coerce a protobuf request object. @@ -1144,13 +1151,18 @@ def wait( retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be ``DONE`` or still in - progress. This method is called on a best-effort basis. - Specifically: - In uncommon cases, when the server is - overloaded, the request might return before the default deadline - is reached, or might return after zero seconds. - If the default - deadline is reached, there is no guarantee that the operation is - actually done when the method returns. Be prepared to retry if - the operation is not ``DONE``. + progress. + + This method is called on a best-effort basis. Specifically: + + :: + + - In uncommon cases, when the server is overloaded, the request might + return before the default deadline is reached, or might return after zero + seconds. + - If the default deadline is reached, there is no guarantee that the + operation is actually done when the method returns. Be prepared to retry + if the operation is not `DONE`. .. code-block:: python @@ -1213,23 +1225,30 @@ def sample_wait(): Returns: google.cloud.compute_v1.types.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - [Global](/compute/docs/reference/rest/v1/globalOperations) - \* - [Regional](/compute/docs/reference/rest/v1/regionOperations) - \* - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) - You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the globalOperations - resource. - For regional operations, use the - regionOperations resource. - For zonal operations, use - the zoneOperations resource. For more information, read - Global, Regional, and Zonal Resources. Note that - completed Operation resources have a limited retention - period. + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - [Global](/compute/docs/reference/rest/v1/globalOperations) + - [Regional](/compute/docs/reference/rest/v1/regionOperations) + - [Zonal](/compute/docs/reference/rest/v1/zoneOperations) + + You can use an operation resource to manage + asynchronous API requests. For more information, + readHandling API responses. + + Operations can be global, regional or zonal. + + - For global operations, use the globalOperations + resource. - For regional operations, use the + regionOperations resource. - For zonal operations, + use the zoneOperations resource. + + For more information, read Global, Regional, and + Zonal Resources. + + Note that completed Operation resources have a + limited retention period. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/zone_operations/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/zone_operations/transports/rest.py index 443bd26f0109..a98b11036cbf 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/zone_operations/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/zone_operations/transports/rest.py @@ -594,21 +594,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. @@ -903,21 +914,32 @@ def __call__( Returns: ~.compute.Operation: - Represents an Operation resource. Google Compute Engine - has three Operation resources: \* - `Global `__ - \* - `Regional `__ - \* - `Zonal `__ + Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + You can use an operation resource to manage asynchronous - API requests. For more information, read Handling API - responses. Operations can be global, regional or zonal. - - For global operations, use the ``globalOperations`` - resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, - use the ``zoneOperations`` resource. For more - information, read Global, Regional, and Zonal Resources. + API requests. For more information, readHandling API + responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal + Resources. + Note that completed Operation resources have a limited retention period. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/zones/client.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/zones/client.py index 0ccb4f3ce31f..7284ce0f3003 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/zones/client.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/zones/client.py @@ -763,12 +763,13 @@ def sample_get(): Returns: google.cloud.compute_v1.types.Zone: - Represents a Zone resource. A zone is - a deployment area. These deployment - areas are subsets of a region. For - example the zone us-east1-b is located - in the us-east1 region. For more - information, read Regions and Zones. + Represents a Zone resource. + + A zone is a deployment area. These + deployment areas are subsets of a + region. For example the zone us-east1-b + is located in theus-east1 region. For + more information, readRegions and Zones. """ # Create or coerce a protobuf request object. diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/services/zones/transports/rest.py b/packages/google-cloud-compute/google/cloud/compute_v1/services/zones/transports/rest.py index 04ed7a90d30f..200bbef99bfc 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/services/zones/transports/rest.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/services/zones/transports/rest.py @@ -322,12 +322,13 @@ def __call__( Returns: ~.compute.Zone: - Represents a Zone resource. A zone is - a deployment area. These deployment - areas are subsets of a region. For - example the zone us-east1-b is located - in the us-east1 region. For more - information, read Regions and Zones. + Represents a Zone resource. + + A zone is a deployment area. These + deployment areas are subsets of a + region. For example the zone us-east1-b + is located in theus-east1 region. For + more information, readRegions and Zones. """ diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py b/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py index 4797d7d23523..c74760ee2c0a 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/types/__init__.py @@ -18,6 +18,9 @@ AbandonInstancesRegionInstanceGroupManagerRequest, AcceleratorConfig, Accelerators, + AcceleratorTopologiesInfo, + AcceleratorTopologiesInfoAcceleratorTopologyInfo, + AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState, AcceleratorType, AcceleratorTypeAggregatedList, AcceleratorTypeList, @@ -58,6 +61,7 @@ AggregatedListDisksRequest, AggregatedListDiskTypesRequest, AggregatedListForwardingRulesRequest, + AggregatedListFutureReservationsRequest, AggregatedListGlobalOperationsRequest, AggregatedListHealthChecksRequest, AggregatedListInstanceGroupManagersRequest, @@ -188,6 +192,11 @@ BulkZoneSetLabelsRequest, CacheInvalidationRule, CacheKeyPolicy, + CalendarModeAdviceRequest, + CalendarModeAdviceResponse, + CalendarModeAdviceRpcRequest, + CalendarModeRecommendation, + CancelFutureReservationRequest, CancelInstanceGroupManagerResizeRequestRequest, CircuitBreakers, CloneRulesFirewallPolicyRequest, @@ -209,6 +218,8 @@ CreateMembersInterconnectGroupRequest, CreateSnapshotDiskRequest, CreateSnapshotRegionDiskRequest, + CrossSiteNetwork, + CrossSiteNetworkList, CustomerEncryptionKey, CustomerEncryptionKeyProtectedDisk, CustomErrorResponsePolicy, @@ -220,11 +231,13 @@ DeleteAutoscalerRequest, DeleteBackendBucketRequest, DeleteBackendServiceRequest, + DeleteCrossSiteNetworkRequest, DeleteDiskRequest, DeleteExternalVpnGatewayRequest, DeleteFirewallPolicyRequest, DeleteFirewallRequest, DeleteForwardingRuleRequest, + DeleteFutureReservationRequest, DeleteGlobalAddressRequest, DeleteGlobalForwardingRuleRequest, DeleteGlobalNetworkEndpointGroupRequest, @@ -309,6 +322,7 @@ DeleteUrlMapRequest, DeleteVpnGatewayRequest, DeleteVpnTunnelRequest, + DeleteWireGroupRequest, DeleteZoneOperationRequest, DeleteZoneOperationResponse, Denied, @@ -372,12 +386,34 @@ FirewallPolicyRuleMatcherLayer4Config, FirewallPolicyRuleSecureTag, FixedOrPercent, + FlexibleTimeRange, ForwardingRule, ForwardingRuleAggregatedList, ForwardingRuleList, ForwardingRuleReference, ForwardingRuleServiceDirectoryRegistration, ForwardingRulesScopedList, + FutureReservation, + FutureReservationCommitmentInfo, + FutureReservationsAggregatedListResponse, + FutureReservationsListResponse, + FutureReservationSpecificSKUProperties, + FutureReservationsScopedList, + FutureReservationStatus, + FutureReservationStatusExistingMatchingUsageInfo, + FutureReservationStatusLastKnownGoodState, + FutureReservationStatusLastKnownGoodStateFutureReservationSpecs, + FutureReservationStatusSpecificSKUProperties, + FutureReservationTimeWindow, + FutureResourcesRecommendation, + FutureResourcesRecommendationOtherLocation, + FutureResourcesSpec, + FutureResourcesSpecAggregateResources, + FutureResourcesSpecLocalSsdPartition, + FutureResourcesSpecLocationPolicy, + FutureResourcesSpecLocationPolicyLocation, + FutureResourcesSpecSpecificSKUResources, + FutureResourcesSpecTargetResources, GetAcceleratorTypeRequest, GetAddressRequest, GetAssociationFirewallPolicyRequest, @@ -387,6 +423,7 @@ GetAutoscalerRequest, GetBackendBucketRequest, GetBackendServiceRequest, + GetCrossSiteNetworkRequest, GetDiagnosticsInterconnectRequest, GetDiskRequest, GetDiskTypeRequest, @@ -400,6 +437,7 @@ GetFirewallRequest, GetForwardingRuleRequest, GetFromFamilyImageRequest, + GetFutureReservationRequest, GetGlobalAddressRequest, GetGlobalForwardingRuleRequest, GetGlobalNetworkEndpointGroupRequest, @@ -431,7 +469,9 @@ GetIamPolicyRegionDiskRequest, GetIamPolicyRegionInstantSnapshotRequest, GetIamPolicyRegionNetworkFirewallPolicyRequest, + GetIamPolicyReservationBlockRequest, GetIamPolicyReservationRequest, + GetIamPolicyReservationSubBlockRequest, GetIamPolicyResourcePolicyRequest, GetIamPolicyServiceAttachmentRequest, GetIamPolicySnapshotRequest, @@ -538,6 +578,7 @@ GetUrlMapRequest, GetVpnGatewayRequest, GetVpnTunnelRequest, + GetWireGroupRequest, GetXpnHostProjectRequest, GetXpnResourcesProjectsRequest, GetZoneOperationRequest, @@ -550,6 +591,7 @@ GlobalSetPolicyRequest, GroupMaintenanceInfo, GRPCHealthCheck, + GRPCTLSHealthCheck, GuestAttributes, GuestAttributesEntry, GuestAttributesValue, @@ -592,11 +634,13 @@ InsertAutoscalerRequest, InsertBackendBucketRequest, InsertBackendServiceRequest, + InsertCrossSiteNetworkRequest, InsertDiskRequest, InsertExternalVpnGatewayRequest, InsertFirewallPolicyRequest, InsertFirewallRequest, InsertForwardingRuleRequest, + InsertFutureReservationRequest, InsertGlobalAddressRequest, InsertGlobalForwardingRuleRequest, InsertGlobalNetworkEndpointGroupRequest, @@ -667,6 +711,7 @@ InsertUrlMapRequest, InsertVpnGatewayRequest, InsertVpnTunnelRequest, + InsertWireGroupRequest, Instance, InstanceAggregatedList, InstanceConsumptionData, @@ -783,7 +828,12 @@ InterconnectAttachmentGroupsListResponse, InterconnectAttachmentGroupsOperationalStatus, InterconnectAttachmentGroupsOperationalStatusAttachmentStatus, + InterconnectAttachmentL2Forwarding, + InterconnectAttachmentL2ForwardingApplianceMapping, + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping, + InterconnectAttachmentL2ForwardingGeneveHeader, InterconnectAttachmentList, + InterconnectAttachmentParams, InterconnectAttachmentPartnerMetadata, InterconnectAttachmentPrivateInfo, InterconnectAttachmentsScopedList, @@ -813,6 +863,7 @@ InterconnectGroupsOperationalStatusInterconnectStatus, InterconnectList, InterconnectLocation, + InterconnectLocationCrossSiteInterconnectInfo, InterconnectLocationList, InterconnectLocationRegionInfo, InterconnectMacsec, @@ -820,6 +871,7 @@ InterconnectMacsecConfigPreSharedKey, InterconnectMacsecPreSharedKey, InterconnectOutageNotification, + InterconnectParams, InterconnectRemoteLocation, InterconnectRemoteLocationConstraints, InterconnectRemoteLocationConstraintsSubnetLengthRange, @@ -845,6 +897,7 @@ ListBackendBucketsRequest, ListBackendServicesRequest, ListBgpRoutesRoutersRequest, + ListCrossSiteNetworksRequest, ListDisksRequest, ListDisksStoragePoolsRequest, ListDiskTypesRequest, @@ -854,6 +907,7 @@ ListFirewallPoliciesRequest, ListFirewallsRequest, ListForwardingRulesRequest, + ListFutureReservationsRequest, ListGlobalAddressesRequest, ListGlobalForwardingRulesRequest, ListGlobalNetworkEndpointGroupsRequest, @@ -957,6 +1011,7 @@ ListUsableSubnetworksRequest, ListVpnGatewaysRequest, ListVpnTunnelsRequest, + ListWireGroupsRequest, ListXpnHostsProjectsRequest, ListZoneOperationsRequest, ListZonesRequest, @@ -1079,6 +1134,7 @@ PatchAutoscalerRequest, PatchBackendBucketRequest, PatchBackendServiceRequest, + PatchCrossSiteNetworkRequest, PatchFirewallPolicyRequest, PatchFirewallRequest, PatchForwardingRuleRequest, @@ -1132,6 +1188,7 @@ PatchTargetHttpProxyRequest, PatchTargetHttpsProxyRequest, PatchUrlMapRequest, + PatchWireGroupRequest, PathMatcher, PathRule, PerformMaintenanceInstanceRequest, @@ -1289,6 +1346,7 @@ ResourceStatus, ResourceStatusEffectiveInstanceMetadata, ResourceStatusPhysicalHostTopology, + ResourceStatusReservationConsumptionInfo, ResourceStatusScheduling, ResumeInstanceRequest, ResumeInstancesInstanceGroupManagerRequest, @@ -1412,7 +1470,9 @@ SetIamPolicyRegionDiskRequest, SetIamPolicyRegionInstantSnapshotRequest, SetIamPolicyRegionNetworkFirewallPolicyRequest, + SetIamPolicyReservationBlockRequest, SetIamPolicyReservationRequest, + SetIamPolicyReservationSubBlockRequest, SetIamPolicyResourcePolicyRequest, SetIamPolicyServiceAttachmentRequest, SetIamPolicySnapshotRequest, @@ -1527,6 +1587,7 @@ StoragePool, StoragePoolAggregatedList, StoragePoolDisk, + StoragePoolExapoolProvisionedCapacityGb, StoragePoolList, StoragePoolListDisks, StoragePoolResourceStatus, @@ -1605,6 +1666,7 @@ TestIamPermissionsDiskRequest, TestIamPermissionsExternalVpnGatewayRequest, TestIamPermissionsFirewallPolicyRequest, + TestIamPermissionsFirewallRequest, TestIamPermissionsGlobalAddressRequest, TestIamPermissionsImageRequest, TestIamPermissionsInstanceGroupRequest, @@ -1627,7 +1689,9 @@ TestIamPermissionsRegionInstanceGroupRequest, TestIamPermissionsRegionInstantSnapshotRequest, TestIamPermissionsRegionNetworkFirewallPolicyRequest, + TestIamPermissionsReservationBlockRequest, TestIamPermissionsReservationRequest, + TestIamPermissionsReservationSubBlockRequest, TestIamPermissionsResourcePolicyRequest, TestIamPermissionsServiceAttachmentRequest, TestIamPermissionsSnapshotRequest, @@ -1647,6 +1711,7 @@ UpdateDiskRequest, UpdateDisplayDeviceInstanceRequest, UpdateFirewallRequest, + UpdateFutureReservationRequest, UpdateHealthCheckRequest, UpdateInstanceRequest, UpdateLicenseRequest, @@ -1713,6 +1778,15 @@ Warning, Warnings, WeightedBackendService, + Wire, + WireEndpoint, + WireGroup, + WireGroupEndpoint, + WireGroupEndpointInterconnect, + WireGroupList, + WireGroupTopology, + WireGroupTopologyEndpoint, + WireProperties, WithdrawPublicAdvertisedPrefixeRequest, WithdrawPublicDelegatedPrefixeRequest, XpnHostList, @@ -1720,6 +1794,7 @@ Zone, ZoneList, ZoneSetLabelsRequest, + ZoneSetNestedPolicyRequest, ZoneSetPolicyRequest, ) @@ -1728,6 +1803,9 @@ "AbandonInstancesRegionInstanceGroupManagerRequest", "AcceleratorConfig", "Accelerators", + "AcceleratorTopologiesInfo", + "AcceleratorTopologiesInfoAcceleratorTopologyInfo", + "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState", "AcceleratorType", "AcceleratorTypeAggregatedList", "AcceleratorTypeList", @@ -1768,6 +1846,7 @@ "AggregatedListDisksRequest", "AggregatedListDiskTypesRequest", "AggregatedListForwardingRulesRequest", + "AggregatedListFutureReservationsRequest", "AggregatedListGlobalOperationsRequest", "AggregatedListHealthChecksRequest", "AggregatedListInstanceGroupManagersRequest", @@ -1898,6 +1977,11 @@ "BulkZoneSetLabelsRequest", "CacheInvalidationRule", "CacheKeyPolicy", + "CalendarModeAdviceRequest", + "CalendarModeAdviceResponse", + "CalendarModeAdviceRpcRequest", + "CalendarModeRecommendation", + "CancelFutureReservationRequest", "CancelInstanceGroupManagerResizeRequestRequest", "CircuitBreakers", "CloneRulesFirewallPolicyRequest", @@ -1919,6 +2003,8 @@ "CreateMembersInterconnectGroupRequest", "CreateSnapshotDiskRequest", "CreateSnapshotRegionDiskRequest", + "CrossSiteNetwork", + "CrossSiteNetworkList", "CustomerEncryptionKey", "CustomerEncryptionKeyProtectedDisk", "CustomErrorResponsePolicy", @@ -1930,11 +2016,13 @@ "DeleteAutoscalerRequest", "DeleteBackendBucketRequest", "DeleteBackendServiceRequest", + "DeleteCrossSiteNetworkRequest", "DeleteDiskRequest", "DeleteExternalVpnGatewayRequest", "DeleteFirewallPolicyRequest", "DeleteFirewallRequest", "DeleteForwardingRuleRequest", + "DeleteFutureReservationRequest", "DeleteGlobalAddressRequest", "DeleteGlobalForwardingRuleRequest", "DeleteGlobalNetworkEndpointGroupRequest", @@ -2019,6 +2107,7 @@ "DeleteUrlMapRequest", "DeleteVpnGatewayRequest", "DeleteVpnTunnelRequest", + "DeleteWireGroupRequest", "DeleteZoneOperationRequest", "DeleteZoneOperationResponse", "Denied", @@ -2082,12 +2171,34 @@ "FirewallPolicyRuleMatcherLayer4Config", "FirewallPolicyRuleSecureTag", "FixedOrPercent", + "FlexibleTimeRange", "ForwardingRule", "ForwardingRuleAggregatedList", "ForwardingRuleList", "ForwardingRuleReference", "ForwardingRuleServiceDirectoryRegistration", "ForwardingRulesScopedList", + "FutureReservation", + "FutureReservationCommitmentInfo", + "FutureReservationsAggregatedListResponse", + "FutureReservationsListResponse", + "FutureReservationSpecificSKUProperties", + "FutureReservationsScopedList", + "FutureReservationStatus", + "FutureReservationStatusExistingMatchingUsageInfo", + "FutureReservationStatusLastKnownGoodState", + "FutureReservationStatusLastKnownGoodStateFutureReservationSpecs", + "FutureReservationStatusSpecificSKUProperties", + "FutureReservationTimeWindow", + "FutureResourcesRecommendation", + "FutureResourcesRecommendationOtherLocation", + "FutureResourcesSpec", + "FutureResourcesSpecAggregateResources", + "FutureResourcesSpecLocalSsdPartition", + "FutureResourcesSpecLocationPolicy", + "FutureResourcesSpecLocationPolicyLocation", + "FutureResourcesSpecSpecificSKUResources", + "FutureResourcesSpecTargetResources", "GetAcceleratorTypeRequest", "GetAddressRequest", "GetAssociationFirewallPolicyRequest", @@ -2097,6 +2208,7 @@ "GetAutoscalerRequest", "GetBackendBucketRequest", "GetBackendServiceRequest", + "GetCrossSiteNetworkRequest", "GetDiagnosticsInterconnectRequest", "GetDiskRequest", "GetDiskTypeRequest", @@ -2110,6 +2222,7 @@ "GetFirewallRequest", "GetForwardingRuleRequest", "GetFromFamilyImageRequest", + "GetFutureReservationRequest", "GetGlobalAddressRequest", "GetGlobalForwardingRuleRequest", "GetGlobalNetworkEndpointGroupRequest", @@ -2141,7 +2254,9 @@ "GetIamPolicyRegionDiskRequest", "GetIamPolicyRegionInstantSnapshotRequest", "GetIamPolicyRegionNetworkFirewallPolicyRequest", + "GetIamPolicyReservationBlockRequest", "GetIamPolicyReservationRequest", + "GetIamPolicyReservationSubBlockRequest", "GetIamPolicyResourcePolicyRequest", "GetIamPolicyServiceAttachmentRequest", "GetIamPolicySnapshotRequest", @@ -2248,6 +2363,7 @@ "GetUrlMapRequest", "GetVpnGatewayRequest", "GetVpnTunnelRequest", + "GetWireGroupRequest", "GetXpnHostProjectRequest", "GetXpnResourcesProjectsRequest", "GetZoneOperationRequest", @@ -2260,6 +2376,7 @@ "GlobalSetPolicyRequest", "GroupMaintenanceInfo", "GRPCHealthCheck", + "GRPCTLSHealthCheck", "GuestAttributes", "GuestAttributesEntry", "GuestAttributesValue", @@ -2302,11 +2419,13 @@ "InsertAutoscalerRequest", "InsertBackendBucketRequest", "InsertBackendServiceRequest", + "InsertCrossSiteNetworkRequest", "InsertDiskRequest", "InsertExternalVpnGatewayRequest", "InsertFirewallPolicyRequest", "InsertFirewallRequest", "InsertForwardingRuleRequest", + "InsertFutureReservationRequest", "InsertGlobalAddressRequest", "InsertGlobalForwardingRuleRequest", "InsertGlobalNetworkEndpointGroupRequest", @@ -2377,6 +2496,7 @@ "InsertUrlMapRequest", "InsertVpnGatewayRequest", "InsertVpnTunnelRequest", + "InsertWireGroupRequest", "Instance", "InstanceAggregatedList", "InstanceConsumptionData", @@ -2493,7 +2613,12 @@ "InterconnectAttachmentGroupsListResponse", "InterconnectAttachmentGroupsOperationalStatus", "InterconnectAttachmentGroupsOperationalStatusAttachmentStatus", + "InterconnectAttachmentL2Forwarding", + "InterconnectAttachmentL2ForwardingApplianceMapping", + "InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping", + "InterconnectAttachmentL2ForwardingGeneveHeader", "InterconnectAttachmentList", + "InterconnectAttachmentParams", "InterconnectAttachmentPartnerMetadata", "InterconnectAttachmentPrivateInfo", "InterconnectAttachmentsScopedList", @@ -2523,6 +2648,7 @@ "InterconnectGroupsOperationalStatusInterconnectStatus", "InterconnectList", "InterconnectLocation", + "InterconnectLocationCrossSiteInterconnectInfo", "InterconnectLocationList", "InterconnectLocationRegionInfo", "InterconnectMacsec", @@ -2530,6 +2656,7 @@ "InterconnectMacsecConfigPreSharedKey", "InterconnectMacsecPreSharedKey", "InterconnectOutageNotification", + "InterconnectParams", "InterconnectRemoteLocation", "InterconnectRemoteLocationConstraints", "InterconnectRemoteLocationConstraintsSubnetLengthRange", @@ -2555,6 +2682,7 @@ "ListBackendBucketsRequest", "ListBackendServicesRequest", "ListBgpRoutesRoutersRequest", + "ListCrossSiteNetworksRequest", "ListDisksRequest", "ListDisksStoragePoolsRequest", "ListDiskTypesRequest", @@ -2564,6 +2692,7 @@ "ListFirewallPoliciesRequest", "ListFirewallsRequest", "ListForwardingRulesRequest", + "ListFutureReservationsRequest", "ListGlobalAddressesRequest", "ListGlobalForwardingRulesRequest", "ListGlobalNetworkEndpointGroupsRequest", @@ -2667,6 +2796,7 @@ "ListUsableSubnetworksRequest", "ListVpnGatewaysRequest", "ListVpnTunnelsRequest", + "ListWireGroupsRequest", "ListXpnHostsProjectsRequest", "ListZoneOperationsRequest", "ListZonesRequest", @@ -2789,6 +2919,7 @@ "PatchAutoscalerRequest", "PatchBackendBucketRequest", "PatchBackendServiceRequest", + "PatchCrossSiteNetworkRequest", "PatchFirewallPolicyRequest", "PatchFirewallRequest", "PatchForwardingRuleRequest", @@ -2842,6 +2973,7 @@ "PatchTargetHttpProxyRequest", "PatchTargetHttpsProxyRequest", "PatchUrlMapRequest", + "PatchWireGroupRequest", "PathMatcher", "PathRule", "PerformMaintenanceInstanceRequest", @@ -2999,6 +3131,7 @@ "ResourceStatus", "ResourceStatusEffectiveInstanceMetadata", "ResourceStatusPhysicalHostTopology", + "ResourceStatusReservationConsumptionInfo", "ResourceStatusScheduling", "ResumeInstanceRequest", "ResumeInstancesInstanceGroupManagerRequest", @@ -3122,7 +3255,9 @@ "SetIamPolicyRegionDiskRequest", "SetIamPolicyRegionInstantSnapshotRequest", "SetIamPolicyRegionNetworkFirewallPolicyRequest", + "SetIamPolicyReservationBlockRequest", "SetIamPolicyReservationRequest", + "SetIamPolicyReservationSubBlockRequest", "SetIamPolicyResourcePolicyRequest", "SetIamPolicyServiceAttachmentRequest", "SetIamPolicySnapshotRequest", @@ -3237,6 +3372,7 @@ "StoragePool", "StoragePoolAggregatedList", "StoragePoolDisk", + "StoragePoolExapoolProvisionedCapacityGb", "StoragePoolList", "StoragePoolListDisks", "StoragePoolResourceStatus", @@ -3315,6 +3451,7 @@ "TestIamPermissionsDiskRequest", "TestIamPermissionsExternalVpnGatewayRequest", "TestIamPermissionsFirewallPolicyRequest", + "TestIamPermissionsFirewallRequest", "TestIamPermissionsGlobalAddressRequest", "TestIamPermissionsImageRequest", "TestIamPermissionsInstanceGroupRequest", @@ -3337,7 +3474,9 @@ "TestIamPermissionsRegionInstanceGroupRequest", "TestIamPermissionsRegionInstantSnapshotRequest", "TestIamPermissionsRegionNetworkFirewallPolicyRequest", + "TestIamPermissionsReservationBlockRequest", "TestIamPermissionsReservationRequest", + "TestIamPermissionsReservationSubBlockRequest", "TestIamPermissionsResourcePolicyRequest", "TestIamPermissionsServiceAttachmentRequest", "TestIamPermissionsSnapshotRequest", @@ -3357,6 +3496,7 @@ "UpdateDiskRequest", "UpdateDisplayDeviceInstanceRequest", "UpdateFirewallRequest", + "UpdateFutureReservationRequest", "UpdateHealthCheckRequest", "UpdateInstanceRequest", "UpdateLicenseRequest", @@ -3423,6 +3563,15 @@ "Warning", "Warnings", "WeightedBackendService", + "Wire", + "WireEndpoint", + "WireGroup", + "WireGroupEndpoint", + "WireGroupEndpointInterconnect", + "WireGroupList", + "WireGroupTopology", + "WireGroupTopologyEndpoint", + "WireProperties", "WithdrawPublicAdvertisedPrefixeRequest", "WithdrawPublicDelegatedPrefixeRequest", "XpnHostList", @@ -3430,5 +3579,6 @@ "Zone", "ZoneList", "ZoneSetLabelsRequest", + "ZoneSetNestedPolicyRequest", "ZoneSetPolicyRequest", ) diff --git a/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py b/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py index ce747a392c77..260f5c286418 100644 --- a/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py +++ b/packages/google-cloud-compute/google/cloud/compute_v1/types/compute.py @@ -27,6 +27,9 @@ "AbandonInstancesInstanceGroupManagerRequest", "AbandonInstancesRegionInstanceGroupManagerRequest", "AcceleratorConfig", + "AcceleratorTopologiesInfo", + "AcceleratorTopologiesInfoAcceleratorTopologyInfo", + "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState", "AcceleratorType", "AcceleratorTypeAggregatedList", "AcceleratorTypeList", @@ -68,6 +71,7 @@ "AggregatedListDiskTypesRequest", "AggregatedListDisksRequest", "AggregatedListForwardingRulesRequest", + "AggregatedListFutureReservationsRequest", "AggregatedListGlobalOperationsRequest", "AggregatedListHealthChecksRequest", "AggregatedListInstanceGroupManagersRequest", @@ -197,6 +201,11 @@ "BulkZoneSetLabelsRequest", "CacheInvalidationRule", "CacheKeyPolicy", + "CalendarModeAdviceRequest", + "CalendarModeAdviceResponse", + "CalendarModeAdviceRpcRequest", + "CalendarModeRecommendation", + "CancelFutureReservationRequest", "CancelInstanceGroupManagerResizeRequestRequest", "CircuitBreakers", "CloneRulesFirewallPolicyRequest", @@ -218,6 +227,8 @@ "CreateMembersInterconnectGroupRequest", "CreateSnapshotDiskRequest", "CreateSnapshotRegionDiskRequest", + "CrossSiteNetwork", + "CrossSiteNetworkList", "CustomErrorResponsePolicy", "CustomErrorResponsePolicyCustomErrorResponseRule", "CustomerEncryptionKey", @@ -229,11 +240,13 @@ "DeleteAutoscalerRequest", "DeleteBackendBucketRequest", "DeleteBackendServiceRequest", + "DeleteCrossSiteNetworkRequest", "DeleteDiskRequest", "DeleteExternalVpnGatewayRequest", "DeleteFirewallPolicyRequest", "DeleteFirewallRequest", "DeleteForwardingRuleRequest", + "DeleteFutureReservationRequest", "DeleteGlobalAddressRequest", "DeleteGlobalForwardingRuleRequest", "DeleteGlobalNetworkEndpointGroupRequest", @@ -318,6 +331,7 @@ "DeleteUrlMapRequest", "DeleteVpnGatewayRequest", "DeleteVpnTunnelRequest", + "DeleteWireGroupRequest", "DeleteZoneOperationRequest", "DeleteZoneOperationResponse", "Denied", @@ -381,13 +395,36 @@ "FirewallPolicyRuleMatcherLayer4Config", "FirewallPolicyRuleSecureTag", "FixedOrPercent", + "FlexibleTimeRange", "ForwardingRule", "ForwardingRuleAggregatedList", "ForwardingRuleList", "ForwardingRuleReference", "ForwardingRuleServiceDirectoryRegistration", "ForwardingRulesScopedList", + "FutureReservation", + "FutureReservationCommitmentInfo", + "FutureReservationSpecificSKUProperties", + "FutureReservationStatus", + "FutureReservationStatusExistingMatchingUsageInfo", + "FutureReservationStatusLastKnownGoodState", + "FutureReservationStatusLastKnownGoodStateFutureReservationSpecs", + "FutureReservationStatusSpecificSKUProperties", + "FutureReservationTimeWindow", + "FutureReservationsAggregatedListResponse", + "FutureReservationsListResponse", + "FutureReservationsScopedList", + "FutureResourcesRecommendation", + "FutureResourcesRecommendationOtherLocation", + "FutureResourcesSpec", + "FutureResourcesSpecAggregateResources", + "FutureResourcesSpecLocalSsdPartition", + "FutureResourcesSpecLocationPolicy", + "FutureResourcesSpecLocationPolicyLocation", + "FutureResourcesSpecSpecificSKUResources", + "FutureResourcesSpecTargetResources", "GRPCHealthCheck", + "GRPCTLSHealthCheck", "GetAcceleratorTypeRequest", "GetAddressRequest", "GetAssociationFirewallPolicyRequest", @@ -397,6 +434,7 @@ "GetAutoscalerRequest", "GetBackendBucketRequest", "GetBackendServiceRequest", + "GetCrossSiteNetworkRequest", "GetDiagnosticsInterconnectRequest", "GetDiskRequest", "GetDiskTypeRequest", @@ -410,6 +448,7 @@ "GetFirewallRequest", "GetForwardingRuleRequest", "GetFromFamilyImageRequest", + "GetFutureReservationRequest", "GetGlobalAddressRequest", "GetGlobalForwardingRuleRequest", "GetGlobalNetworkEndpointGroupRequest", @@ -441,7 +480,9 @@ "GetIamPolicyRegionDiskRequest", "GetIamPolicyRegionInstantSnapshotRequest", "GetIamPolicyRegionNetworkFirewallPolicyRequest", + "GetIamPolicyReservationBlockRequest", "GetIamPolicyReservationRequest", + "GetIamPolicyReservationSubBlockRequest", "GetIamPolicyResourcePolicyRequest", "GetIamPolicyServiceAttachmentRequest", "GetIamPolicySnapshotRequest", @@ -548,6 +589,7 @@ "GetUrlMapRequest", "GetVpnGatewayRequest", "GetVpnTunnelRequest", + "GetWireGroupRequest", "GetXpnHostProjectRequest", "GetXpnResourcesProjectsRequest", "GetZoneOperationRequest", @@ -601,11 +643,13 @@ "InsertAutoscalerRequest", "InsertBackendBucketRequest", "InsertBackendServiceRequest", + "InsertCrossSiteNetworkRequest", "InsertDiskRequest", "InsertExternalVpnGatewayRequest", "InsertFirewallPolicyRequest", "InsertFirewallRequest", "InsertForwardingRuleRequest", + "InsertFutureReservationRequest", "InsertGlobalAddressRequest", "InsertGlobalForwardingRuleRequest", "InsertGlobalNetworkEndpointGroupRequest", @@ -676,6 +720,7 @@ "InsertUrlMapRequest", "InsertVpnGatewayRequest", "InsertVpnTunnelRequest", + "InsertWireGroupRequest", "Instance", "InstanceAggregatedList", "InstanceConsumptionData", @@ -792,7 +837,12 @@ "InterconnectAttachmentGroupsListResponse", "InterconnectAttachmentGroupsOperationalStatus", "InterconnectAttachmentGroupsOperationalStatusAttachmentStatus", + "InterconnectAttachmentL2Forwarding", + "InterconnectAttachmentL2ForwardingApplianceMapping", + "InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping", + "InterconnectAttachmentL2ForwardingGeneveHeader", "InterconnectAttachmentList", + "InterconnectAttachmentParams", "InterconnectAttachmentPartnerMetadata", "InterconnectAttachmentPrivateInfo", "InterconnectAttachmentsScopedList", @@ -822,6 +872,7 @@ "InterconnectGroupsOperationalStatusInterconnectStatus", "InterconnectList", "InterconnectLocation", + "InterconnectLocationCrossSiteInterconnectInfo", "InterconnectLocationList", "InterconnectLocationRegionInfo", "InterconnectMacsec", @@ -829,6 +880,7 @@ "InterconnectMacsecConfigPreSharedKey", "InterconnectMacsecPreSharedKey", "InterconnectOutageNotification", + "InterconnectParams", "InterconnectRemoteLocation", "InterconnectRemoteLocationConstraints", "InterconnectRemoteLocationConstraintsSubnetLengthRange", @@ -854,6 +906,7 @@ "ListBackendBucketsRequest", "ListBackendServicesRequest", "ListBgpRoutesRoutersRequest", + "ListCrossSiteNetworksRequest", "ListDiskTypesRequest", "ListDisksRequest", "ListDisksStoragePoolsRequest", @@ -863,6 +916,7 @@ "ListFirewallPoliciesRequest", "ListFirewallsRequest", "ListForwardingRulesRequest", + "ListFutureReservationsRequest", "ListGlobalAddressesRequest", "ListGlobalForwardingRulesRequest", "ListGlobalNetworkEndpointGroupsRequest", @@ -966,6 +1020,7 @@ "ListUsableSubnetworksRequest", "ListVpnGatewaysRequest", "ListVpnTunnelsRequest", + "ListWireGroupsRequest", "ListXpnHostsProjectsRequest", "ListZoneOperationsRequest", "ListZonesRequest", @@ -1088,6 +1143,7 @@ "PatchAutoscalerRequest", "PatchBackendBucketRequest", "PatchBackendServiceRequest", + "PatchCrossSiteNetworkRequest", "PatchFirewallPolicyRequest", "PatchFirewallRequest", "PatchForwardingRuleRequest", @@ -1141,6 +1197,7 @@ "PatchTargetHttpProxyRequest", "PatchTargetHttpsProxyRequest", "PatchUrlMapRequest", + "PatchWireGroupRequest", "PathMatcher", "PathRule", "PerInstanceConfig", @@ -1298,6 +1355,7 @@ "ResourceStatus", "ResourceStatusEffectiveInstanceMetadata", "ResourceStatusPhysicalHostTopology", + "ResourceStatusReservationConsumptionInfo", "ResourceStatusScheduling", "ResumeInstanceRequest", "ResumeInstancesInstanceGroupManagerRequest", @@ -1422,7 +1480,9 @@ "SetIamPolicyRegionDiskRequest", "SetIamPolicyRegionInstantSnapshotRequest", "SetIamPolicyRegionNetworkFirewallPolicyRequest", + "SetIamPolicyReservationBlockRequest", "SetIamPolicyReservationRequest", + "SetIamPolicyReservationSubBlockRequest", "SetIamPolicyResourcePolicyRequest", "SetIamPolicyServiceAttachmentRequest", "SetIamPolicySnapshotRequest", @@ -1536,6 +1596,7 @@ "StoragePool", "StoragePoolAggregatedList", "StoragePoolDisk", + "StoragePoolExapoolProvisionedCapacityGb", "StoragePoolList", "StoragePoolListDisks", "StoragePoolResourceStatus", @@ -1614,6 +1675,7 @@ "TestIamPermissionsDiskRequest", "TestIamPermissionsExternalVpnGatewayRequest", "TestIamPermissionsFirewallPolicyRequest", + "TestIamPermissionsFirewallRequest", "TestIamPermissionsGlobalAddressRequest", "TestIamPermissionsImageRequest", "TestIamPermissionsInstanceGroupRequest", @@ -1636,7 +1698,9 @@ "TestIamPermissionsRegionInstanceGroupRequest", "TestIamPermissionsRegionInstantSnapshotRequest", "TestIamPermissionsRegionNetworkFirewallPolicyRequest", + "TestIamPermissionsReservationBlockRequest", "TestIamPermissionsReservationRequest", + "TestIamPermissionsReservationSubBlockRequest", "TestIamPermissionsResourcePolicyRequest", "TestIamPermissionsServiceAttachmentRequest", "TestIamPermissionsSnapshotRequest", @@ -1656,6 +1720,7 @@ "UpdateDiskRequest", "UpdateDisplayDeviceInstanceRequest", "UpdateFirewallRequest", + "UpdateFutureReservationRequest", "UpdateHealthCheckRequest", "UpdateInstanceRequest", "UpdateLicenseRequest", @@ -1722,6 +1787,15 @@ "Warning", "Warnings", "WeightedBackendService", + "Wire", + "WireEndpoint", + "WireGroup", + "WireGroupEndpoint", + "WireGroupEndpointInterconnect", + "WireGroupList", + "WireGroupTopology", + "WireGroupTopologyEndpoint", + "WireProperties", "WithdrawPublicAdvertisedPrefixeRequest", "WithdrawPublicDelegatedPrefixeRequest", "XpnHostList", @@ -1729,6 +1803,7 @@ "Zone", "ZoneList", "ZoneSetLabelsRequest", + "ZoneSetNestedPolicyRequest", "ZoneSetPolicyRequest", }, ) @@ -1752,7 +1827,9 @@ class AWSV4Signature(proto.Message): creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST - API GET request. @InputOnly + API GET request. + + @InputOnly This field is a member of `oneof`_ ``_access_key``. access_key_id (str): @@ -1769,7 +1846,7 @@ class AWSV4Signature(proto.Message): origin_region (str): The name of the cloud region of your origin. This is a free-form field with the name of the - region your cloud uses to host your origin. For + region your cloud uses to host your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for OCI. @@ -1817,21 +1894,25 @@ class AbandonInstancesInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -1881,17 +1962,21 @@ class AbandonInstancesRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -1936,12 +2021,11 @@ class AcceleratorConfig(proto.Message): accelerator_type (str): Full or partial URL of the accelerator type resource to attach to this instance. For - example: - projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 + example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, - specify only the accelerator name. See GPUs on - Compute Engine for a full list of accelerator - types. + specify only the accelerator name. + See GPUs on Compute Engine + for a full list of accelerator types. This field is a member of `oneof`_ ``_accelerator_type``. """ @@ -1958,19 +2042,129 @@ class AcceleratorConfig(proto.Message): ) +class AcceleratorTopologiesInfo(proto.Message): + r"""Info for accelerator topologies within a densely packed + reservation. + + Attributes: + accelerator_topology_infos (MutableSequence[google.cloud.compute_v1.types.AcceleratorTopologiesInfoAcceleratorTopologyInfo]): + Info for each accelerator topology. + """ + + accelerator_topology_infos: MutableSequence[ + "AcceleratorTopologiesInfoAcceleratorTopologyInfo" + ] = proto.RepeatedField( + proto.MESSAGE, + number=219451401, + message="AcceleratorTopologiesInfoAcceleratorTopologyInfo", + ) + + +class AcceleratorTopologiesInfoAcceleratorTopologyInfo(proto.Message): + r"""Info for a slice of a given topology. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + accelerator_topology (str): + The accelerator topology. + + This field is a member of `oneof`_ ``_accelerator_topology``. + info_per_topology_states (MutableSequence[google.cloud.compute_v1.types.AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState]): + Info for each topology state. + """ + + accelerator_topology: str = proto.Field( + proto.STRING, + number=389323203, + optional=True, + ) + info_per_topology_states: MutableSequence[ + "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState" + ] = proto.RepeatedField( + proto.MESSAGE, + number=183777695, + message="AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState", + ) + + +class AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState( + proto.Message +): + r"""Info for each topology state. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + count (int): + The number of accelerator topologies in this + state. + + This field is a member of `oneof`_ ``_count``. + state (str): + The state of the accelerator topology. + Check the State enum for the list of possible + values. + + This field is a member of `oneof`_ ``_state``. + """ + + class State(proto.Enum): + r"""The state of the accelerator topology. + + Values: + UNDEFINED_STATE (0): + A value indicating that the enum field is not + set. + AVAILABLE (442079913): + The accelerator topology is available. + DEGRADED (396890926): + The accelerator topology is degraded. The + underlying capacity is not in a healthy state + and is not available. + RUNNING (121282975): + The accelerator topology is running. If there + are both running and degraded hosts within a + topology, DEGRADED state will be returned. + TOPOLOGY_STATE_UNSPECIFIED (188327545): + The state of the topology is unspecified. + UNHEALTHY (462118084): + This value has been deprecated and is no + longer used. + """ + UNDEFINED_STATE = 0 + AVAILABLE = 442079913 + DEGRADED = 396890926 + RUNNING = 121282975 + TOPOLOGY_STATE_UNSPECIFIED = 188327545 + UNHEALTHY = 462118084 + + count: int = proto.Field( + proto.INT32, + number=94851343, + optional=True, + ) + state: str = proto.Field( + proto.STRING, + number=109757585, + optional=True, + ) + + class AcceleratorType(proto.Message): - r"""Represents an Accelerator Type resource. Google Cloud - Platform provides graphics processing units (accelerators) that - you can add to VM instances to improve or accelerate performance - when working with intensive workloads. For more information, - read GPUs on Compute Engine. + r"""Represents an Accelerator Type resource. + + Google Cloud Platform provides graphics processing units + (accelerators) that you can add to VM instances to improve or + accelerate performance when working with intensive workloads. + For more information, readGPUs on Compute Engine. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + [Output Only] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. deprecated (google.cloud.compute_v1.types.DeprecationStatus): @@ -1989,8 +2183,8 @@ class AcceleratorType(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] The type of the resource. Always - compute#acceleratorType for accelerator types. + Output only. [Output Only] The type of the resource. + Alwayscompute#acceleratorType for accelerator types. This field is a member of `oneof`_ ``_kind``. maximum_cards_per_instance (int): @@ -2003,8 +2197,8 @@ class AcceleratorType(proto.Message): This field is a member of `oneof`_ ``_name``. self_link (str): - [Output Only] Server-defined, fully qualified URL for this - resource. + Output only. [Output Only] Server-defined, fully qualified + URL for this resource. This field is a member of `oneof`_ ``_self_link``. zone (str): @@ -2079,26 +2273,27 @@ class AcceleratorTypeAggregatedList(proto.Message): A list of AcceleratorTypesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#acceleratorTypeAggregatedList for aggregated lists - of accelerator types. + Output only. [Output Only] Type of resource. + Alwayscompute#acceleratorTypeAggregatedList for aggregated + lists of accelerator types. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -2161,21 +2356,23 @@ class AcceleratorTypeList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.AcceleratorType]): A list of AcceleratorType resources. kind (str): - [Output Only] Type of resource. Always - compute#acceleratorTypeList for lists of accelerator types. + Output only. [Output Only] Type of resource. + Alwayscompute#acceleratorTypeList for lists of accelerator + types. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -2263,7 +2460,7 @@ class Accelerators(proto.Message): This field is a member of `oneof`_ ``_guest_accelerator_count``. guest_accelerator_type (str): The accelerator type resource name, not a - full URL, e.g. nvidia-tesla-t4. + full URL, e.g.nvidia-tesla-t4. This field is a member of `oneof`_ ``_guest_accelerator_type``. """ @@ -2289,10 +2486,10 @@ class AccessConfig(proto.Message): Attributes: external_ipv6 (str): - Applies to ipv6AccessConfigs only. The first - IPv6 address of the external IPv6 range - associated with this instance, prefix length is - stored in externalIpv6PrefixLength in + Applies to ipv6AccessConfigs only. + The first IPv6 address of the external IPv6 + range associated with this instance, prefix + length is stored inexternalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, @@ -2307,8 +2504,8 @@ class AccessConfig(proto.Message): This field is a member of `oneof`_ ``_external_ipv6_prefix_length``. kind (str): - [Output Only] Type of the resource. Always - compute#accessConfig for access configs. + Output only. [Output Only] Type of the resource. + Alwayscompute#accessConfig for access configs. This field is a member of `oneof`_ ``_kind``. name (str): @@ -2316,13 +2513,13 @@ class AccessConfig(proto.Message): accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP - or Network Access. In ipv6AccessConfigs, the + orNetwork Access. In ipv6AccessConfigs, the recommend name is External IPv6. This field is a member of `oneof`_ ``_name``. nat_i_p (str): - Applies to accessConfigs (IPv4) only. An - external IP address associated with this + Applies to accessConfigs (IPv4) only. + Anexternal IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared @@ -2334,23 +2531,27 @@ class AccessConfig(proto.Message): network_tier (str): This signifies the networking tier used for configuring this access configuration and can - only take the following values: PREMIUM, - STANDARD. If an AccessConfig is specified - without a valid external IP address, an - ephemeral IP will be created with this - networkTier. If an AccessConfig with a valid - external IP address is specified, it must match - that of the networkTier associated with the - Address resource owning that IP. Check the - NetworkTier enum for the list of possible - values. + only take the following values: + PREMIUM,STANDARD. + + If an AccessConfig is specified without a valid + external IP address, an ephemeral IP will be + created with this networkTier. + + If an AccessConfig with a valid external IP + address is specified, it must match that of the + networkTier associated with the Address resource + owning that IP. + Check the NetworkTier enum for the list of + possible values. This field is a member of `oneof`_ ``_network_tier``. public_ptr_domain_name (str): - The DNS domain name for the public PTR record. You can set - this field only if the ``setPublicPtr`` field is enabled in - accessConfig. If this field is unspecified in - ipv6AccessConfig, a default PTR record will be created for + The DNS domain name for the public PTR record. + + You can set this field only if the ``setPublicPtr`` field is + enabled inaccessConfig. If this field is unspecified + inipv6AccessConfig, a default PTR record will be created for first IP in associated external IPv6 range. This field is a member of `oneof`_ ``_public_ptr_domain_name``. @@ -2362,17 +2563,18 @@ class AccessConfig(proto.Message): set_public_ptr (bool): Specifies whether a public DNS 'PTR' record should be created to map the external IP address - of the instance to a DNS domain name. This field - is not used in ipv6AccessConfig. A default PTR - record will be created if the VM has external - IPv6 range associated. + of the instance to a DNS domain name. + + This field is not used in ipv6AccessConfig. A + default PTR record will be created if the VM has + external IPv6 range associated. This field is a member of `oneof`_ ``_set_public_ptr``. type_ (str): The type of configuration. In accessConfigs (IPv4), the - default and only option is ONE_TO_ONE_NAT. In - ipv6AccessConfigs, the default and only option is - DIRECT_IPV6. Check the Type enum for the list of possible + default and only option is ONE_TO_ONE_NAT. + Inipv6AccessConfigs, the default and only option + isDIRECT_IPV6. Check the Type enum for the list of possible values. This field is a member of `oneof`_ ``_type``. @@ -2381,11 +2583,14 @@ class AccessConfig(proto.Message): class NetworkTier(proto.Enum): r"""This signifies the networking tier used for configuring this access configuration and can only take the following values: - PREMIUM, STANDARD. If an AccessConfig is specified without a - valid external IP address, an ephemeral IP will be created with - this networkTier. If an AccessConfig with a valid external IP - address is specified, it must match that of the networkTier - associated with the Address resource owning that IP. + PREMIUM,STANDARD. + + If an AccessConfig is specified without a valid external IP + address, an ephemeral IP will be created with this networkTier. + + If an AccessConfig with a valid external IP address is + specified, it must match that of the networkTier associated with + the Address resource owning that IP. Values: UNDEFINED_NETWORK_TIER (0): @@ -2411,8 +2616,8 @@ class NetworkTier(proto.Enum): class Type(proto.Enum): r"""The type of configuration. In accessConfigs (IPv4), the default and - only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and - only option is DIRECT_IPV6. + only option is ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and + only option isDIRECT_IPV6. Values: UNDEFINED_TYPE (0): @@ -2501,17 +2706,21 @@ class AddAccessConfigInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -2571,17 +2780,21 @@ class AddAssociationFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -2634,17 +2847,21 @@ class AddAssociationNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -2696,17 +2913,21 @@ class AddAssociationOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -2765,17 +2986,21 @@ class AddAssociationRegionNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -2826,17 +3051,21 @@ class AddHealthCheckTargetPoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_pool (str): @@ -2887,17 +3116,21 @@ class AddInstanceTargetPoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_pool (str): @@ -2953,22 +3186,26 @@ class AddInstancesInstanceGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the instance group - is located. + The name of the zone + where the instance group is located. """ instance_group: str = proto.Field( @@ -3016,17 +3253,21 @@ class AddNetworkInterfaceInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -3076,17 +3317,21 @@ class AddNodesNodeGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -3132,14 +3377,14 @@ class AddPacketMirroringRuleNetworkFirewallPolicyRequest(proto.Message): The body resource for this request max_priority (int): When rule.priority is not specified, auto - choose a unused priority between minPriority and + choose a unused priority betweenminPriority and maxPriority>. This field is exclusive with rule.priority. This field is a member of `oneof`_ ``_max_priority``. min_priority (int): When rule.priority is not specified, auto - choose a unused priority between minPriority and + choose a unused priority betweenminPriority and maxPriority>. This field is exclusive with rule.priority. @@ -3151,17 +3396,21 @@ class AddPacketMirroringRuleNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -3216,17 +3465,21 @@ class AddPeeringNetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -3270,17 +3523,21 @@ class AddResourcePoliciesDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -3332,17 +3589,21 @@ class AddResourcePoliciesInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -3394,17 +3655,21 @@ class AddResourcePoliciesRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -3450,17 +3715,21 @@ class AddRuleFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -3495,14 +3764,14 @@ class AddRuleNetworkFirewallPolicyRequest(proto.Message): The body resource for this request max_priority (int): When rule.priority is not specified, auto - choose a unused priority between minPriority and + choose a unused priority betweenminPriority and maxPriority>. This field is exclusive with rule.priority. This field is a member of `oneof`_ ``_max_priority``. min_priority (int): When rule.priority is not specified, auto - choose a unused priority between minPriority and + choose a unused priority betweenminPriority and maxPriority>. This field is exclusive with rule.priority. @@ -3514,17 +3783,21 @@ class AddRuleNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -3572,17 +3845,21 @@ class AddRuleOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -3621,14 +3898,14 @@ class AddRuleRegionNetworkFirewallPolicyRequest(proto.Message): The body resource for this request max_priority (int): When rule.priority is not specified, auto - choose a unused priority between minPriority and + choose a unused priority betweenminPriority and maxPriority>. This field is exclusive with rule.priority. This field is a member of `oneof`_ ``_max_priority``. min_priority (int): When rule.priority is not specified, auto - choose a unused priority between minPriority and + choose a unused priority betweenminPriority and maxPriority>. This field is exclusive with rule.priority. @@ -3642,17 +3919,21 @@ class AddRuleRegionNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -3796,17 +4077,21 @@ class AddSignedUrlKeyBackendBucketRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. signed_url_key_resource (google.cloud.compute_v1.types.SignedUrlKey): @@ -3852,17 +4137,21 @@ class AddSignedUrlKeyBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. signed_url_key_resource (google.cloud.compute_v1.types.SignedUrlKey): @@ -3890,11 +4179,15 @@ class AddSignedUrlKeyBackendServiceRequest(proto.Message): class Address(proto.Message): - r"""Represents an IP Address resource. Google Compute Engine has two IP - Address resources: \* `Global (external and - internal) `__ - \* `Regional (external and - internal) `__ + r"""Represents an IP Address resource. + + Google Compute Engine has two IP Address resources: + + - `Global (external and + internal) `__ + - `Regional (external and + internal) `__ + For more information, see Reserving a static external IP address. @@ -3908,13 +4201,14 @@ class Address(proto.Message): This field is a member of `oneof`_ ``_address``. address_type (str): The type of address to reserve, either - INTERNAL or EXTERNAL. If unspecified, defaults - to EXTERNAL. Check the AddressType enum for the + INTERNAL orEXTERNAL. If unspecified, defaults to + EXTERNAL. Check the AddressType enum for the list of possible values. This field is a member of `oneof`_ ``_address_type``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -3923,13 +4217,36 @@ class Address(proto.Message): This field is a member of `oneof`_ ``_description``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. + ip_collection (str): + Reference to the source of external IPv4 + addresses, like a PublicDelegatedPrefix (PDP) + for BYOIP. The PDP must support enhanced IPv4 + allocations. + + Use one of the following formats to specify a + PDP when reserving an external IPv4 address + using BYOIP. + + - + Full resource URL, as + inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name + - + Partial URL, as in + + + - + projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name + - + regions/region/publicDelegatedPrefixes/pdp-name + + This field is a member of `oneof`_ ``_ip_collection``. ip_version (str): The IP version that will be used by this - address. Valid options are IPV4 or IPV6. Check + address. Valid options areIPV4 or IPV6. Check the IpVersion enum for the list of possible values. @@ -3944,8 +4261,8 @@ class Address(proto.Message): This field is a member of `oneof`_ ``_ipv6_endpoint_type``. kind (str): - [Output Only] Type of the resource. Always compute#address - for addresses. + Output only. [Output Only] Type of the resource. Always + compute#address for addresses. This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -3957,20 +4274,21 @@ class Address(proto.Message): or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make a get() request to - retrieve an Address. + fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve an Address. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): Labels for this resource. These can only be - added or modified by the setLabels method. Each - label key/value pair must comply with RFC1035. + added or modified by thesetLabels method. Each + label key/value pair must comply withRFC1035. Label values may be empty. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?``. The first character must be a lowercase letter, and all following characters (except for @@ -3981,21 +4299,22 @@ class Address(proto.Message): This field is a member of `oneof`_ ``_name``. network (str): The URL of the network in which to reserve the address. This - field can only be used with INTERNAL type with the - VPC_PEERING purpose. + field can only be used with INTERNAL type with + theVPC_PEERING purpose. This field is a member of `oneof`_ ``_network``. network_tier (str): This signifies the networking tier used for configuring this address and can only take the - following values: PREMIUM or STANDARD. Internal + following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier; global external IP addresses are always Premium Tier; regional external IP addresses can be either - Standard or Premium Tier. If this field is not - specified, it is assumed to be PREMIUM. Check - the NetworkTier enum for the list of possible - values. + Standard or Premium Tier. + + If this field is not specified, it is assumed to + be PREMIUM. Check the NetworkTier enum for the + list of possible values. This field is a member of `oneof`_ ``_network_tier``. prefix_length (int): @@ -4005,32 +4324,41 @@ class Address(proto.Message): This field is a member of `oneof`_ ``_prefix_length``. purpose (str): The purpose of this resource, which can be one of the - following values: - GCE_ENDPOINT for addresses that are used - by VM instances, alias IP ranges, load balancers, and - similar resources. - DNS_RESOLVER for a DNS resolver address - in a subnetwork for a Cloud DNS inbound forwarder IP - addresses (regional internal IP address in a subnet of a VPC - network) - VPC_PEERING for global internal IP addresses used - for private services access allocated ranges. - NAT_AUTO for - the regional external IP addresses used by Cloud NAT when - allocating addresses using automatic NAT IP address - allocation. - IPSEC_INTERCONNECT for addresses created from - a private IP range that are reserved for a VLAN attachment - in an *HA VPN over Cloud Interconnect* configuration. These - addresses are regional resources. - - ``SHARED_LOADBALANCER_VIP`` for an internal IP address that - is assigned to multiple internal forwarding rules. - - ``PRIVATE_SERVICE_CONNECT`` for a private network address - that is used to configure Private Service Connect. Only - global internal addresses can use this purpose. Check the - Purpose enum for the list of possible values. + following values: + + :: + + - GCE_ENDPOINT for addresses that are used by VM + instances, alias IP ranges, load balancers, and similar resources. + - DNS_RESOLVER for a DNS resolver address in a subnetwork + for a Cloud DNS inbound + forwarder IP addresses (regional internal IP address in a subnet of + a VPC network) + - VPC_PEERING for global internal IP addresses used for + + private services access allocated ranges. + - NAT_AUTO for the regional external IP addresses used by + Cloud NAT when allocating addresses using + + automatic NAT IP address allocation. + - IPSEC_INTERCONNECT for addresses created from a private + IP range that are reserved for a VLAN attachment in an + *HA VPN over Cloud Interconnect* configuration. These addresses + are regional resources. + - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned + to multiple internal forwarding rules. + - `PRIVATE_SERVICE_CONNECT` for a private network address that is + used to configure Private Service Connect. Only global internal addresses + can use this purpose. + + Check the Purpose enum for the list of possible values. This field is a member of `oneof`_ ``_purpose``. region (str): - [Output Only] The URL of the region where a regional address - resides. For regional addresses, you must specify the region - as a path parameter in the HTTP request URL. *This field is - not applicable to global addresses.* + Output only. [Output Only] The URL of the region where a + regional address resides. For regional addresses, you must + specify the region as a path parameter in the HTTP request + URL. *This field is not applicable to global addresses.* This field is a member of `oneof`_ ``_region``. self_link (str): @@ -4038,20 +4366,20 @@ class Address(proto.Message): This field is a member of `oneof`_ ``_self_link``. status (str): - [Output Only] The status of the address, which can be one of - RESERVING, RESERVED, or IN_USE. An address that is RESERVING - is currently in the process of being reserved. A RESERVED - address is currently reserved and available to use. An - IN_USE address is currently being used by another resource - and is not available. Check the Status enum for the list of - possible values. + Output only. [Output Only] The status of the address, which + can be one ofRESERVING, RESERVED, or IN_USE. An address that + is RESERVING is currently in the process of being reserved. + A RESERVED address is currently reserved and available to + use. An IN_USE address is currently being used by another + resource and is not available. Check the Status enum for the + list of possible values. This field is a member of `oneof`_ ``_status``. subnetwork (str): The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with - INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose. + INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose. This field is a member of `oneof`_ ``_subnetwork``. users (MutableSequence[str]): @@ -4060,7 +4388,7 @@ class Address(proto.Message): """ class AddressType(proto.Enum): - r"""The type of address to reserve, either INTERNAL or EXTERNAL. + r"""The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL. Values: @@ -4083,7 +4411,7 @@ class AddressType(proto.Enum): class IpVersion(proto.Enum): r"""The IP version that will be used by this address. Valid - options are IPV4 or IPV6. + options areIPV4 or IPV6. Values: UNDEFINED_IP_VERSION (0): @@ -4102,8 +4430,8 @@ class IpVersion(proto.Enum): UNSPECIFIED_VERSION = 21850000 class Ipv6EndpointType(proto.Enum): - r"""The endpoint type of this address, which should be VM or - NETLB. This is used for deciding which type of endpoint this + r"""The endpoint type of this address, which should be VM + or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. Values: @@ -4122,11 +4450,12 @@ class Ipv6EndpointType(proto.Enum): class NetworkTier(proto.Enum): r"""This signifies the networking tier used for configuring this - address and can only take the following values: PREMIUM or - STANDARD. Internal IP addresses are always Premium Tier; global - external IP addresses are always Premium Tier; regional external - IP addresses can be either Standard or Premium Tier. If this - field is not specified, it is assumed to be PREMIUM. + address and can only take the following values: PREMIUM + orSTANDARD. Internal IP addresses are always Premium Tier; + global external IP addresses are always Premium Tier; regional + external IP addresses can be either Standard or Premium Tier. + + If this field is not specified, it is assumed to be PREMIUM. Values: UNDEFINED_NETWORK_TIER (0): @@ -4152,22 +4481,32 @@ class NetworkTier(proto.Enum): class Purpose(proto.Enum): r"""The purpose of this resource, which can be one of the following - values: - GCE_ENDPOINT for addresses that are used by VM instances, - alias IP ranges, load balancers, and similar resources. - - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud - DNS inbound forwarder IP addresses (regional internal IP address in - a subnet of a VPC network) - VPC_PEERING for global internal IP - addresses used for private services access allocated ranges. - - NAT_AUTO for the regional external IP addresses used by Cloud NAT - when allocating addresses using automatic NAT IP address allocation. - - IPSEC_INTERCONNECT for addresses created from a private IP range - that are reserved for a VLAN attachment in an *HA VPN over Cloud - Interconnect* configuration. These addresses are regional resources. - - ``SHARED_LOADBALANCER_VIP`` for an internal IP address that is - assigned to multiple internal forwarding rules. - - ``PRIVATE_SERVICE_CONNECT`` for a private network address that is - used to configure Private Service Connect. Only global internal - addresses can use this purpose. + values: + + :: + + - GCE_ENDPOINT for addresses that are used by VM + instances, alias IP ranges, load balancers, and similar resources. + - DNS_RESOLVER for a DNS resolver address in a subnetwork + for a Cloud DNS inbound + forwarder IP addresses (regional internal IP address in a subnet of + a VPC network) + - VPC_PEERING for global internal IP addresses used for + + private services access allocated ranges. + - NAT_AUTO for the regional external IP addresses used by + Cloud NAT when allocating addresses using + + automatic NAT IP address allocation. + - IPSEC_INTERCONNECT for addresses created from a private + IP range that are reserved for a VLAN attachment in an + *HA VPN over Cloud Interconnect* configuration. These addresses + are regional resources. + - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned + to multiple internal forwarding rules. + - `PRIVATE_SERVICE_CONNECT` for a private network address that is + used to configure Private Service Connect. Only global internal addresses + can use this purpose. Values: UNDEFINED_PURPOSE (0): @@ -4195,7 +4534,7 @@ class Purpose(proto.Enum): PRIVATE_SERVICE_CONNECT (48134724): A private network IP address that can be used to configure Private Service Connect. This - purpose can be specified only for GLOBAL + purpose can be specified only forGLOBAL addresses of Type INTERNAL SERVERLESS (270492508): A regional internal IP address range reserved @@ -4218,9 +4557,9 @@ class Purpose(proto.Enum): VPC_PEERING = 400800170 class Status(proto.Enum): - r"""[Output Only] The status of the address, which can be one of - RESERVING, RESERVED, or IN_USE. An address that is RESERVING is - currently in the process of being reserved. A RESERVED address is + r"""Output only. [Output Only] The status of the address, which can be + one ofRESERVING, RESERVED, or IN_USE. An address that is RESERVING + is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. @@ -4266,6 +4605,11 @@ class Status(proto.Enum): number=3355, optional=True, ) + ip_collection: str = proto.Field( + proto.STRING, + number=176818358, + optional=True, + ) ip_version: str = proto.Field( proto.STRING, number=294959552, @@ -4356,26 +4700,27 @@ class AddressAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.AddressesScopedList]): A list of AddressesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#addressAggregatedList for aggregated lists of + Output only. [Output Only] Type of resource. + Alwayscompute#addressAggregatedList for aggregated lists of addresses. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -4438,21 +4783,22 @@ class AddressList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Address]): A list of Address resources. kind (str): - [Output Only] Type of resource. Always compute#addressList - for lists of addresses. + Output only. [Output Only] Type of resource. Always + compute#addressList for lists of addresses. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -4530,9 +4876,9 @@ class AdvancedMachineFeatures(proto.Message): r"""Specifies options for controlling advanced machine features. Options that would traditionally be configured in a BIOS belong here. Features that require operating system support may have - corresponding entries in the GuestOsFeatures of an Image (e.g., - whether or not the OS in the Image supports nested - virtualization being enabled or disabled). + corresponding entries in the GuestOsFeatures of anImage (e.g., + whether or not the OS in theImage supports nested virtualization + being enabled or disabled). .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -4564,9 +4910,12 @@ class AdvancedMachineFeatures(proto.Message): This field is a member of `oneof`_ ``_threads_per_core``. turbo_mode (str): Turbo frequency mode to use for the instance. Supported - modes include: \* ALL_CORE_MAX Using empty string or not - setting this field will use the platform-specific default - turbo mode. + modes include: + + - ALL_CORE_MAX + + Using empty string or not setting this field will use the + platform-specific default turbo mode. This field is a member of `oneof`_ ``_turbo_mode``. visible_core_count (int): @@ -4649,42 +4998,69 @@ class AggregatedListAcceleratorTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -4712,13 +5088,17 @@ class AggregatedListAcceleratorTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -4733,10 +5113,11 @@ class AggregatedListAcceleratorTypesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -4803,42 +5184,69 @@ class AggregatedListAddressesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -4866,13 +5274,17 @@ class AggregatedListAddressesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -4887,10 +5299,11 @@ class AggregatedListAddressesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -4957,42 +5370,69 @@ class AggregatedListAutoscalersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -5020,13 +5460,17 @@ class AggregatedListAutoscalersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -5041,10 +5485,11 @@ class AggregatedListAutoscalersRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -5111,42 +5556,69 @@ class AggregatedListBackendServicesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -5174,13 +5646,17 @@ class AggregatedListBackendServicesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -5195,10 +5671,11 @@ class AggregatedListBackendServicesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -5265,42 +5742,69 @@ class AggregatedListDiskTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -5328,13 +5832,17 @@ class AggregatedListDiskTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -5349,10 +5857,11 @@ class AggregatedListDiskTypesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -5419,42 +5928,69 @@ class AggregatedListDisksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -5482,13 +6018,17 @@ class AggregatedListDisksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -5503,10 +6043,11 @@ class AggregatedListDisksRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -5573,42 +6114,69 @@ class AggregatedListForwardingRulesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -5636,13 +6204,17 @@ class AggregatedListForwardingRulesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -5657,10 +6229,11 @@ class AggregatedListForwardingRulesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -5713,8 +6286,8 @@ class AggregatedListForwardingRulesRequest(proto.Message): ) -class AggregatedListGlobalOperationsRequest(proto.Message): - r"""A request message for GlobalOperations.AggregatedList. See +class AggregatedListFutureReservationsRequest(proto.Message): + r"""A request message for FutureReservations.AggregatedList. See the method description for details. @@ -5727,42 +6300,69 @@ class AggregatedListGlobalOperationsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -5790,13 +6390,17 @@ class AggregatedListGlobalOperationsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -5811,10 +6415,11 @@ class AggregatedListGlobalOperationsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -5867,9 +6472,9 @@ class AggregatedListGlobalOperationsRequest(proto.Message): ) -class AggregatedListHealthChecksRequest(proto.Message): - r"""A request message for HealthChecks.AggregatedList. See the - method description for details. +class AggregatedListGlobalOperationsRequest(proto.Message): + r"""A request message for GlobalOperations.AggregatedList. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -5881,196 +6486,69 @@ class AggregatedListHealthChecksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` - By default, each expression is an ``AND`` expression. - However, you can include ``AND`` and ``OR`` expressions - explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` - If you want to use a regular expression, use the ``eq`` - (equal) or ``ne`` (not equal) operator against a single - un-parenthesized expression with or without quotes or - against multiple parenthesized expressions. Examples: - ``fieldname eq unquoted literal`` - ``fieldname eq 'single quoted literal'`` - ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_filter``. - include_all_scopes (bool): - Indicates whether every visible scope for - each scope type (zone, region, global) should be - included in the response. For new resource types - added after this field, the flag has no effect - as new resource types will always include every - visible scope for each scope type in response. - For resource types which predate this field, if - this flag is omitted or false, only scopes of - the scope types where the resource type is - expected to be found will be included. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_include_all_scopes``. - max_results (int): - The maximum number of results per page that should be - returned. If the number of available results is larger than - ``maxResults``, Compute Engine returns a ``nextPageToken`` - that can be used to get the next page of results in - subsequent list requests. Acceptable values are ``0`` to - ``500``, inclusive. (Default: ``500``) + :: - This field is a member of `oneof`_ ``_max_results``. - order_by (str): - Sorts list results by a certain order. By default, results - are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using - ``orderBy="creationTimestamp desc"``. This sorts results - based on the ``creationTimestamp`` field in reverse - chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or - ``creationTimestamp desc`` is supported. + labels.owner:* - This field is a member of `oneof`_ ``_order_by``. - page_token (str): - Specifies a page token to use. Set ``pageToken`` to the - ``nextPageToken`` returned by a previous list request to get - the next page of results. + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. - This field is a member of `oneof`_ ``_page_token``. - project (str): - Name of the project scoping this request. - return_partial_success (bool): - Opt-in for partial success behavior which - provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no - resources, with an error code. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: - This field is a member of `oneof`_ ``_return_partial_success``. - service_project_number (int): - The Shared VPC service project id or service - project number for which aggregated list request - is invoked for subnetworks list-usable api. + :: - This field is a member of `oneof`_ ``_service_project_number``. - """ + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - filter: str = proto.Field( - proto.STRING, - number=336120696, - optional=True, - ) - include_all_scopes: bool = proto.Field( - proto.BOOL, - number=391327988, - optional=True, - ) - max_results: int = proto.Field( - proto.UINT32, - number=54715419, - optional=True, - ) - order_by: str = proto.Field( - proto.STRING, - number=160562920, - optional=True, - ) - page_token: str = proto.Field( - proto.STRING, - number=19994697, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - return_partial_success: bool = proto.Field( - proto.BOOL, - number=517198390, - optional=True, - ) - service_project_number: int = proto.Field( - proto.INT64, - number=316757497, - optional=True, - ) - - -class AggregatedListInstanceGroupManagersRequest(proto.Message): - r"""A request message for InstanceGroupManagers.AggregatedList. - See the method description for details. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - filter (str): - A filter expression that filters resources listed in the - response. Most Compute resources support two types of filter - expressions: expressions that support regular expressions - and expressions that follow API improvement proposal - AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -6098,13 +6576,17 @@ class AggregatedListInstanceGroupManagersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -6119,10 +6601,11 @@ class AggregatedListInstanceGroupManagersRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -6175,8 +6658,8 @@ class AggregatedListInstanceGroupManagersRequest(proto.Message): ) -class AggregatedListInstanceGroupsRequest(proto.Message): - r"""A request message for InstanceGroups.AggregatedList. See the +class AggregatedListHealthChecksRequest(proto.Message): + r"""A request message for HealthChecks.AggregatedList. See the method description for details. @@ -6189,42 +6672,69 @@ class AggregatedListInstanceGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -6252,13 +6762,17 @@ class AggregatedListInstanceGroupsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -6269,14 +6783,15 @@ class AggregatedListInstanceGroupsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Project ID for this request. + Name of the project scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -6329,9 +6844,9 @@ class AggregatedListInstanceGroupsRequest(proto.Message): ) -class AggregatedListInstanceTemplatesRequest(proto.Message): - r"""A request message for InstanceTemplates.AggregatedList. See - the method description for details. +class AggregatedListInstanceGroupManagersRequest(proto.Message): + r"""A request message for InstanceGroupManagers.AggregatedList. + See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -6343,42 +6858,69 @@ class AggregatedListInstanceTemplatesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -6406,13 +6948,17 @@ class AggregatedListInstanceTemplatesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -6423,14 +6969,15 @@ class AggregatedListInstanceTemplatesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Name of the project scoping this request. + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -6483,8 +7030,8 @@ class AggregatedListInstanceTemplatesRequest(proto.Message): ) -class AggregatedListInstancesRequest(proto.Message): - r"""A request message for Instances.AggregatedList. See the +class AggregatedListInstanceGroupsRequest(proto.Message): + r"""A request message for InstanceGroups.AggregatedList. See the method description for details. @@ -6497,42 +7044,69 @@ class AggregatedListInstancesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -6560,13 +7134,17 @@ class AggregatedListInstancesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -6581,10 +7159,11 @@ class AggregatedListInstancesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -6637,8 +7216,8 @@ class AggregatedListInstancesRequest(proto.Message): ) -class AggregatedListInstantSnapshotsRequest(proto.Message): - r"""A request message for InstantSnapshots.AggregatedList. See +class AggregatedListInstanceTemplatesRequest(proto.Message): + r"""A request message for InstanceTemplates.AggregatedList. See the method description for details. @@ -6651,42 +7230,69 @@ class AggregatedListInstantSnapshotsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -6714,13 +7320,17 @@ class AggregatedListInstantSnapshotsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -6731,14 +7341,15 @@ class AggregatedListInstantSnapshotsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Project ID for this request. + Name of the project scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -6791,9 +7402,9 @@ class AggregatedListInstantSnapshotsRequest(proto.Message): ) -class AggregatedListInterconnectAttachmentsRequest(proto.Message): - r"""A request message for InterconnectAttachments.AggregatedList. - See the method description for details. +class AggregatedListInstancesRequest(proto.Message): + r"""A request message for Instances.AggregatedList. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -6805,42 +7416,69 @@ class AggregatedListInterconnectAttachmentsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -6868,13 +7506,17 @@ class AggregatedListInterconnectAttachmentsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -6889,10 +7531,11 @@ class AggregatedListInterconnectAttachmentsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -6945,9 +7588,9 @@ class AggregatedListInterconnectAttachmentsRequest(proto.Message): ) -class AggregatedListMachineTypesRequest(proto.Message): - r"""A request message for MachineTypes.AggregatedList. See the - method description for details. +class AggregatedListInstantSnapshotsRequest(proto.Message): + r"""A request message for InstantSnapshots.AggregatedList. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -6959,42 +7602,69 @@ class AggregatedListMachineTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -7022,13 +7692,17 @@ class AggregatedListMachineTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -7043,10 +7717,11 @@ class AggregatedListMachineTypesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -7099,9 +7774,9 @@ class AggregatedListMachineTypesRequest(proto.Message): ) -class AggregatedListNetworkAttachmentsRequest(proto.Message): - r"""A request message for NetworkAttachments.AggregatedList. See - the method description for details. +class AggregatedListInterconnectAttachmentsRequest(proto.Message): + r"""A request message for InterconnectAttachments.AggregatedList. + See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -7113,42 +7788,69 @@ class AggregatedListNetworkAttachmentsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -7176,13 +7878,17 @@ class AggregatedListNetworkAttachmentsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -7197,10 +7903,11 @@ class AggregatedListNetworkAttachmentsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -7253,10 +7960,9 @@ class AggregatedListNetworkAttachmentsRequest(proto.Message): ) -class AggregatedListNetworkEdgeSecurityServicesRequest(proto.Message): - r"""A request message for - NetworkEdgeSecurityServices.AggregatedList. See the method - description for details. +class AggregatedListMachineTypesRequest(proto.Message): + r"""A request message for MachineTypes.AggregatedList. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -7268,42 +7974,69 @@ class AggregatedListNetworkEdgeSecurityServicesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -7331,13 +8064,17 @@ class AggregatedListNetworkEdgeSecurityServicesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -7348,14 +8085,15 @@ class AggregatedListNetworkEdgeSecurityServicesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Name of the project scoping this request. + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -7408,9 +8146,9 @@ class AggregatedListNetworkEdgeSecurityServicesRequest(proto.Message): ) -class AggregatedListNetworkEndpointGroupsRequest(proto.Message): - r"""A request message for NetworkEndpointGroups.AggregatedList. - See the method description for details. +class AggregatedListNetworkAttachmentsRequest(proto.Message): + r"""A request message for NetworkAttachments.AggregatedList. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -7422,42 +8160,69 @@ class AggregatedListNetworkEndpointGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -7485,13 +8250,17 @@ class AggregatedListNetworkEndpointGroupsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -7506,10 +8275,11 @@ class AggregatedListNetworkEndpointGroupsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -7562,9 +8332,10 @@ class AggregatedListNetworkEndpointGroupsRequest(proto.Message): ) -class AggregatedListNetworkFirewallPoliciesRequest(proto.Message): - r"""A request message for NetworkFirewallPolicies.AggregatedList. - See the method description for details. +class AggregatedListNetworkEdgeSecurityServicesRequest(proto.Message): + r"""A request message for + NetworkEdgeSecurityServices.AggregatedList. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -7576,42 +8347,69 @@ class AggregatedListNetworkFirewallPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -7639,13 +8437,17 @@ class AggregatedListNetworkFirewallPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -7656,14 +8458,15 @@ class AggregatedListNetworkFirewallPoliciesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Project ID for this request. + Name of the project scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -7716,9 +8519,9 @@ class AggregatedListNetworkFirewallPoliciesRequest(proto.Message): ) -class AggregatedListNodeGroupsRequest(proto.Message): - r"""A request message for NodeGroups.AggregatedList. See the - method description for details. +class AggregatedListNetworkEndpointGroupsRequest(proto.Message): + r"""A request message for NetworkEndpointGroups.AggregatedList. + See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -7730,42 +8533,69 @@ class AggregatedListNodeGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -7793,13 +8623,17 @@ class AggregatedListNodeGroupsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -7814,10 +8648,11 @@ class AggregatedListNodeGroupsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -7870,9 +8705,9 @@ class AggregatedListNodeGroupsRequest(proto.Message): ) -class AggregatedListNodeTemplatesRequest(proto.Message): - r"""A request message for NodeTemplates.AggregatedList. See the - method description for details. +class AggregatedListNetworkFirewallPoliciesRequest(proto.Message): + r"""A request message for NetworkFirewallPolicies.AggregatedList. + See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -7884,42 +8719,69 @@ class AggregatedListNodeTemplatesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -7947,13 +8809,17 @@ class AggregatedListNodeTemplatesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -7968,10 +8834,11 @@ class AggregatedListNodeTemplatesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -8024,8 +8891,8 @@ class AggregatedListNodeTemplatesRequest(proto.Message): ) -class AggregatedListNodeTypesRequest(proto.Message): - r"""A request message for NodeTypes.AggregatedList. See the +class AggregatedListNodeGroupsRequest(proto.Message): + r"""A request message for NodeGroups.AggregatedList. See the method description for details. @@ -8038,42 +8905,69 @@ class AggregatedListNodeTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -8101,13 +8995,17 @@ class AggregatedListNodeTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -8122,10 +9020,11 @@ class AggregatedListNodeTypesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -8178,9 +9077,9 @@ class AggregatedListNodeTypesRequest(proto.Message): ) -class AggregatedListPacketMirroringsRequest(proto.Message): - r"""A request message for PacketMirrorings.AggregatedList. See - the method description for details. +class AggregatedListNodeTemplatesRequest(proto.Message): + r"""A request message for NodeTemplates.AggregatedList. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -8192,42 +9091,69 @@ class AggregatedListPacketMirroringsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -8255,13 +9181,17 @@ class AggregatedListPacketMirroringsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -8276,10 +9206,11 @@ class AggregatedListPacketMirroringsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -8332,9 +9263,9 @@ class AggregatedListPacketMirroringsRequest(proto.Message): ) -class AggregatedListPublicDelegatedPrefixesRequest(proto.Message): - r"""A request message for PublicDelegatedPrefixes.AggregatedList. - See the method description for details. +class AggregatedListNodeTypesRequest(proto.Message): + r"""A request message for NodeTypes.AggregatedList. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -8346,42 +9277,69 @@ class AggregatedListPublicDelegatedPrefixesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -8409,13 +9367,17 @@ class AggregatedListPublicDelegatedPrefixesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -8426,14 +9388,15 @@ class AggregatedListPublicDelegatedPrefixesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Name of the project scoping this request. + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -8486,8 +9449,8 @@ class AggregatedListPublicDelegatedPrefixesRequest(proto.Message): ) -class AggregatedListRegionCommitmentsRequest(proto.Message): - r"""A request message for RegionCommitments.AggregatedList. See +class AggregatedListPacketMirroringsRequest(proto.Message): + r"""A request message for PacketMirrorings.AggregatedList. See the method description for details. @@ -8500,42 +9463,69 @@ class AggregatedListRegionCommitmentsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -8563,13 +9553,17 @@ class AggregatedListRegionCommitmentsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -8584,10 +9578,11 @@ class AggregatedListRegionCommitmentsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -8640,9 +9635,9 @@ class AggregatedListRegionCommitmentsRequest(proto.Message): ) -class AggregatedListReservationsRequest(proto.Message): - r"""A request message for Reservations.AggregatedList. See the - method description for details. +class AggregatedListPublicDelegatedPrefixesRequest(proto.Message): + r"""A request message for PublicDelegatedPrefixes.AggregatedList. + See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -8654,42 +9649,69 @@ class AggregatedListReservationsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -8717,13 +9739,17 @@ class AggregatedListReservationsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -8734,14 +9760,15 @@ class AggregatedListReservationsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Project ID for this request. + Name of the project scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -8794,8 +9821,8 @@ class AggregatedListReservationsRequest(proto.Message): ) -class AggregatedListResourcePoliciesRequest(proto.Message): - r"""A request message for ResourcePolicies.AggregatedList. See +class AggregatedListRegionCommitmentsRequest(proto.Message): + r"""A request message for RegionCommitments.AggregatedList. See the method description for details. @@ -8808,42 +9835,69 @@ class AggregatedListResourcePoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -8871,13 +9925,17 @@ class AggregatedListResourcePoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -8892,10 +9950,11 @@ class AggregatedListResourcePoliciesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -8948,9 +10007,9 @@ class AggregatedListResourcePoliciesRequest(proto.Message): ) -class AggregatedListRoutersRequest(proto.Message): - r"""A request message for Routers.AggregatedList. See the method - description for details. +class AggregatedListReservationsRequest(proto.Message): + r"""A request message for Reservations.AggregatedList. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -8962,42 +10021,69 @@ class AggregatedListRoutersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -9025,13 +10111,17 @@ class AggregatedListRoutersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -9046,10 +10136,11 @@ class AggregatedListRoutersRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -9102,8 +10193,8 @@ class AggregatedListRoutersRequest(proto.Message): ) -class AggregatedListSecurityPoliciesRequest(proto.Message): - r"""A request message for SecurityPolicies.AggregatedList. See +class AggregatedListResourcePoliciesRequest(proto.Message): + r"""A request message for ResourcePolicies.AggregatedList. See the method description for details. @@ -9116,196 +10207,69 @@ class AggregatedListSecurityPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` - By default, each expression is an ``AND`` expression. - However, you can include ``AND`` and ``OR`` expressions - explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` - If you want to use a regular expression, use the ``eq`` - (equal) or ``ne`` (not equal) operator against a single - un-parenthesized expression with or without quotes or - against multiple parenthesized expressions. Examples: - ``fieldname eq unquoted literal`` - ``fieldname eq 'single quoted literal'`` - ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + mixed in one request. - This field is a member of `oneof`_ ``_filter``. - include_all_scopes (bool): - Indicates whether every visible scope for - each scope type (zone, region, global) should be - included in the response. For new resource types - added after this field, the flag has no effect - as new resource types will always include every - visible scope for each scope type in response. - For resource types which predate this field, if - this flag is omitted or false, only scopes of - the scope types where the resource type is - expected to be found will be included. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_include_all_scopes``. - max_results (int): - The maximum number of results per page that should be - returned. If the number of available results is larger than - ``maxResults``, Compute Engine returns a ``nextPageToken`` - that can be used to get the next page of results in - subsequent list requests. Acceptable values are ``0`` to - ``500``, inclusive. (Default: ``500``) - - This field is a member of `oneof`_ ``_max_results``. - order_by (str): - Sorts list results by a certain order. By default, results - are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using - ``orderBy="creationTimestamp desc"``. This sorts results - based on the ``creationTimestamp`` field in reverse - chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or - ``creationTimestamp desc`` is supported. - - This field is a member of `oneof`_ ``_order_by``. - page_token (str): - Specifies a page token to use. Set ``pageToken`` to the - ``nextPageToken`` returned by a previous list request to get - the next page of results. - - This field is a member of `oneof`_ ``_page_token``. - project (str): - Name of the project scoping this request. - return_partial_success (bool): - Opt-in for partial success behavior which - provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no - resources, with an error code. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_return_partial_success``. - service_project_number (int): - The Shared VPC service project id or service - project number for which aggregated list request - is invoked for subnetworks list-usable api. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_service_project_number``. - """ + :: - filter: str = proto.Field( - proto.STRING, - number=336120696, - optional=True, - ) - include_all_scopes: bool = proto.Field( - proto.BOOL, - number=391327988, - optional=True, - ) - max_results: int = proto.Field( - proto.UINT32, - number=54715419, - optional=True, - ) - order_by: str = proto.Field( - proto.STRING, - number=160562920, - optional=True, - ) - page_token: str = proto.Field( - proto.STRING, - number=19994697, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - return_partial_success: bool = proto.Field( - proto.BOOL, - number=517198390, - optional=True, - ) - service_project_number: int = proto.Field( - proto.INT64, - number=316757497, - optional=True, - ) + labels.owner:* + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. -class AggregatedListServiceAttachmentsRequest(proto.Message): - r"""A request message for ServiceAttachments.AggregatedList. See - the method description for details. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - Attributes: - filter (str): - A filter expression that filters resources listed in the - response. Most Compute resources support two types of filter - expressions: expressions that support regular expressions - and expressions that follow API improvement proposal - AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -9333,13 +10297,17 @@ class AggregatedListServiceAttachmentsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -9350,14 +10318,15 @@ class AggregatedListServiceAttachmentsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Name of the project scoping this request. + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -9410,9 +10379,9 @@ class AggregatedListServiceAttachmentsRequest(proto.Message): ) -class AggregatedListSslCertificatesRequest(proto.Message): - r"""A request message for SslCertificates.AggregatedList. See the - method description for details. +class AggregatedListRoutersRequest(proto.Message): + r"""A request message for Routers.AggregatedList. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -9424,42 +10393,69 @@ class AggregatedListSslCertificatesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -9487,13 +10483,17 @@ class AggregatedListSslCertificatesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -9504,14 +10504,15 @@ class AggregatedListSslCertificatesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Name of the project scoping this request. + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -9564,9 +10565,9 @@ class AggregatedListSslCertificatesRequest(proto.Message): ) -class AggregatedListSslPoliciesRequest(proto.Message): - r"""A request message for SslPolicies.AggregatedList. See the - method description for details. +class AggregatedListSecurityPoliciesRequest(proto.Message): + r"""A request message for SecurityPolicies.AggregatedList. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -9578,42 +10579,69 @@ class AggregatedListSslPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -9641,13 +10669,17 @@ class AggregatedListSslPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -9662,10 +10694,11 @@ class AggregatedListSslPoliciesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -9718,8 +10751,8 @@ class AggregatedListSslPoliciesRequest(proto.Message): ) -class AggregatedListStoragePoolTypesRequest(proto.Message): - r"""A request message for StoragePoolTypes.AggregatedList. See +class AggregatedListServiceAttachmentsRequest(proto.Message): + r"""A request message for ServiceAttachments.AggregatedList. See the method description for details. @@ -9732,42 +10765,69 @@ class AggregatedListStoragePoolTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -9795,13 +10855,17 @@ class AggregatedListStoragePoolTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -9812,14 +10876,15 @@ class AggregatedListStoragePoolTypesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Project ID for this request. + Name of the project scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -9872,8 +10937,8 @@ class AggregatedListStoragePoolTypesRequest(proto.Message): ) -class AggregatedListStoragePoolsRequest(proto.Message): - r"""A request message for StoragePools.AggregatedList. See the +class AggregatedListSslCertificatesRequest(proto.Message): + r"""A request message for SslCertificates.AggregatedList. See the method description for details. @@ -9886,42 +10951,69 @@ class AggregatedListStoragePoolsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -9949,13 +11041,17 @@ class AggregatedListStoragePoolsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -9966,14 +11062,15 @@ class AggregatedListStoragePoolsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Project ID for this request. + Name of the project scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -10026,8 +11123,8 @@ class AggregatedListStoragePoolsRequest(proto.Message): ) -class AggregatedListSubnetworksRequest(proto.Message): - r"""A request message for Subnetworks.AggregatedList. See the +class AggregatedListSslPoliciesRequest(proto.Message): + r"""A request message for SslPolicies.AggregatedList. See the method description for details. @@ -10040,196 +11137,69 @@ class AggregatedListSubnetworksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` - By default, each expression is an ``AND`` expression. - However, you can include ``AND`` and ``OR`` expressions - explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` - If you want to use a regular expression, use the ``eq`` - (equal) or ``ne`` (not equal) operator against a single - un-parenthesized expression with or without quotes or - against multiple parenthesized expressions. Examples: - ``fieldname eq unquoted literal`` - ``fieldname eq 'single quoted literal'`` - ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + mixed in one request. - This field is a member of `oneof`_ ``_filter``. - include_all_scopes (bool): - Indicates whether every visible scope for - each scope type (zone, region, global) should be - included in the response. For new resource types - added after this field, the flag has no effect - as new resource types will always include every - visible scope for each scope type in response. - For resource types which predate this field, if - this flag is omitted or false, only scopes of - the scope types where the resource type is - expected to be found will be included. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_include_all_scopes``. - max_results (int): - The maximum number of results per page that should be - returned. If the number of available results is larger than - ``maxResults``, Compute Engine returns a ``nextPageToken`` - that can be used to get the next page of results in - subsequent list requests. Acceptable values are ``0`` to - ``500``, inclusive. (Default: ``500``) + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_max_results``. - order_by (str): - Sorts list results by a certain order. By default, results - are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using - ``orderBy="creationTimestamp desc"``. This sorts results - based on the ``creationTimestamp`` field in reverse - chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or - ``creationTimestamp desc`` is supported. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_order_by``. - page_token (str): - Specifies a page token to use. Set ``pageToken`` to the - ``nextPageToken`` returned by a previous list request to get - the next page of results. + :: - This field is a member of `oneof`_ ``_page_token``. - project (str): - Project ID for this request. - return_partial_success (bool): - Opt-in for partial success behavior which - provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no - resources, with an error code. + labels.owner:* - This field is a member of `oneof`_ ``_return_partial_success``. - service_project_number (int): - The Shared VPC service project id or service - project number for which aggregated list request - is invoked for subnetworks list-usable api. + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. - This field is a member of `oneof`_ ``_service_project_number``. - """ + To filter on multiple expressions, provide each separate + expression within parentheses. For example: - filter: str = proto.Field( - proto.STRING, - number=336120696, - optional=True, - ) - include_all_scopes: bool = proto.Field( - proto.BOOL, - number=391327988, - optional=True, - ) - max_results: int = proto.Field( - proto.UINT32, - number=54715419, - optional=True, - ) - order_by: str = proto.Field( - proto.STRING, - number=160562920, - optional=True, - ) - page_token: str = proto.Field( - proto.STRING, - number=19994697, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - return_partial_success: bool = proto.Field( - proto.BOOL, - number=517198390, - optional=True, - ) - service_project_number: int = proto.Field( - proto.INT64, - number=316757497, - optional=True, - ) - - -class AggregatedListTargetHttpProxiesRequest(proto.Message): - r"""A request message for TargetHttpProxies.AggregatedList. See - the method description for details. + :: + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - filter (str): - A filter expression that filters resources listed in the - response. Most Compute resources support two types of filter - expressions: expressions that support regular expressions - and expressions that follow API improvement proposal - AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -10257,13 +11227,17 @@ class AggregatedListTargetHttpProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -10278,10 +11252,11 @@ class AggregatedListTargetHttpProxiesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -10334,8 +11309,8 @@ class AggregatedListTargetHttpProxiesRequest(proto.Message): ) -class AggregatedListTargetHttpsProxiesRequest(proto.Message): - r"""A request message for TargetHttpsProxies.AggregatedList. See +class AggregatedListStoragePoolTypesRequest(proto.Message): + r"""A request message for StoragePoolTypes.AggregatedList. See the method description for details. @@ -10348,42 +11323,69 @@ class AggregatedListTargetHttpsProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -10411,13 +11413,17 @@ class AggregatedListTargetHttpsProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -10428,14 +11434,15 @@ class AggregatedListTargetHttpsProxiesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): - Name of the project scoping this request. + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -10488,8 +11495,8 @@ class AggregatedListTargetHttpsProxiesRequest(proto.Message): ) -class AggregatedListTargetInstancesRequest(proto.Message): - r"""A request message for TargetInstances.AggregatedList. See the +class AggregatedListStoragePoolsRequest(proto.Message): + r"""A request message for StoragePools.AggregatedList. See the method description for details. @@ -10502,42 +11509,69 @@ class AggregatedListTargetInstancesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -10565,13 +11599,17 @@ class AggregatedListTargetInstancesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -10586,10 +11624,11 @@ class AggregatedListTargetInstancesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -10642,8 +11681,8 @@ class AggregatedListTargetInstancesRequest(proto.Message): ) -class AggregatedListTargetPoolsRequest(proto.Message): - r"""A request message for TargetPools.AggregatedList. See the +class AggregatedListSubnetworksRequest(proto.Message): + r"""A request message for Subnetworks.AggregatedList. See the method description for details. @@ -10656,42 +11695,69 @@ class AggregatedListTargetPoolsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -10719,13 +11785,17 @@ class AggregatedListTargetPoolsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -10740,10 +11810,11 @@ class AggregatedListTargetPoolsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -10753,8 +11824,42 @@ class AggregatedListTargetPoolsRequest(proto.Message): is invoked for subnetworks list-usable api. This field is a member of `oneof`_ ``_service_project_number``. + views (str): + Defines the extra views returned back in the subnetwork + resource. Supported values: + + :: + + - WITH_UTILIZATION: Utilization data is included in the + response. + + Check the Views enum for the list of possible values. + + This field is a member of `oneof`_ ``_views``. """ + class Views(proto.Enum): + r"""Defines the extra views returned back in the subnetwork resource. + Supported values: + + :: + + - WITH_UTILIZATION: Utilization data is included in the + response. + + Values: + UNDEFINED_VIEWS (0): + A value indicating that the enum field is not + set. + DEFAULT (115302945): + No description available. + WITH_UTILIZATION (504090633): + Utilization data is included in the response. + """ + UNDEFINED_VIEWS = 0 + DEFAULT = 115302945 + WITH_UTILIZATION = 504090633 + filter: str = proto.Field( proto.STRING, number=336120696, @@ -10794,10 +11899,15 @@ class AggregatedListTargetPoolsRequest(proto.Message): number=316757497, optional=True, ) + views: str = proto.Field( + proto.STRING, + number=112204398, + optional=True, + ) -class AggregatedListTargetTcpProxiesRequest(proto.Message): - r"""A request message for TargetTcpProxies.AggregatedList. See +class AggregatedListTargetHttpProxiesRequest(proto.Message): + r"""A request message for TargetHttpProxies.AggregatedList. See the method description for details. @@ -10810,42 +11920,69 @@ class AggregatedListTargetTcpProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -10873,13 +12010,17 @@ class AggregatedListTargetTcpProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -10894,10 +12035,11 @@ class AggregatedListTargetTcpProxiesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -10950,8 +12092,8 @@ class AggregatedListTargetTcpProxiesRequest(proto.Message): ) -class AggregatedListTargetVpnGatewaysRequest(proto.Message): - r"""A request message for TargetVpnGateways.AggregatedList. See +class AggregatedListTargetHttpsProxiesRequest(proto.Message): + r"""A request message for TargetHttpsProxies.AggregatedList. See the method description for details. @@ -10964,196 +12106,69 @@ class AggregatedListTargetVpnGatewaysRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` - By default, each expression is an ``AND`` expression. - However, you can include ``AND`` and ``OR`` expressions - explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` - If you want to use a regular expression, use the ``eq`` - (equal) or ``ne`` (not equal) operator against a single - un-parenthesized expression with or without quotes or - against multiple parenthesized expressions. Examples: - ``fieldname eq unquoted literal`` - ``fieldname eq 'single quoted literal'`` - ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + mixed in one request. - This field is a member of `oneof`_ ``_filter``. - include_all_scopes (bool): - Indicates whether every visible scope for - each scope type (zone, region, global) should be - included in the response. For new resource types - added after this field, the flag has no effect - as new resource types will always include every - visible scope for each scope type in response. - For resource types which predate this field, if - this flag is omitted or false, only scopes of - the scope types where the resource type is - expected to be found will be included. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_include_all_scopes``. - max_results (int): - The maximum number of results per page that should be - returned. If the number of available results is larger than - ``maxResults``, Compute Engine returns a ``nextPageToken`` - that can be used to get the next page of results in - subsequent list requests. Acceptable values are ``0`` to - ``500``, inclusive. (Default: ``500``) + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_max_results``. - order_by (str): - Sorts list results by a certain order. By default, results - are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using - ``orderBy="creationTimestamp desc"``. This sorts results - based on the ``creationTimestamp`` field in reverse - chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or - ``creationTimestamp desc`` is supported. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_order_by``. - page_token (str): - Specifies a page token to use. Set ``pageToken`` to the - ``nextPageToken`` returned by a previous list request to get - the next page of results. + :: - This field is a member of `oneof`_ ``_page_token``. - project (str): - Project ID for this request. - return_partial_success (bool): - Opt-in for partial success behavior which - provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no - resources, with an error code. + labels.owner:* - This field is a member of `oneof`_ ``_return_partial_success``. - service_project_number (int): - The Shared VPC service project id or service - project number for which aggregated list request - is invoked for subnetworks list-usable api. + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. - This field is a member of `oneof`_ ``_service_project_number``. - """ + To filter on multiple expressions, provide each separate + expression within parentheses. For example: - filter: str = proto.Field( - proto.STRING, - number=336120696, - optional=True, - ) - include_all_scopes: bool = proto.Field( - proto.BOOL, - number=391327988, - optional=True, - ) - max_results: int = proto.Field( - proto.UINT32, - number=54715419, - optional=True, - ) - order_by: str = proto.Field( - proto.STRING, - number=160562920, - optional=True, - ) - page_token: str = proto.Field( - proto.STRING, - number=19994697, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - return_partial_success: bool = proto.Field( - proto.BOOL, - number=517198390, - optional=True, - ) - service_project_number: int = proto.Field( - proto.INT64, - number=316757497, - optional=True, - ) - - -class AggregatedListUrlMapsRequest(proto.Message): - r"""A request message for UrlMaps.AggregatedList. See the method - description for details. + :: + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - filter (str): - A filter expression that filters resources listed in the - response. Most Compute resources support two types of filter - expressions: expressions that support regular expressions - and expressions that follow API improvement proposal - AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -11181,13 +12196,17 @@ class AggregatedListUrlMapsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -11202,10 +12221,11 @@ class AggregatedListUrlMapsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -11258,8 +12278,8 @@ class AggregatedListUrlMapsRequest(proto.Message): ) -class AggregatedListVpnGatewaysRequest(proto.Message): - r"""A request message for VpnGateways.AggregatedList. See the +class AggregatedListTargetInstancesRequest(proto.Message): + r"""A request message for TargetInstances.AggregatedList. See the method description for details. @@ -11272,42 +12292,69 @@ class AggregatedListVpnGatewaysRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -11335,13 +12382,17 @@ class AggregatedListVpnGatewaysRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -11356,10 +12407,11 @@ class AggregatedListVpnGatewaysRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -11412,8 +12464,8 @@ class AggregatedListVpnGatewaysRequest(proto.Message): ) -class AggregatedListVpnTunnelsRequest(proto.Message): - r"""A request message for VpnTunnels.AggregatedList. See the +class AggregatedListTargetPoolsRequest(proto.Message): + r"""A request message for TargetPools.AggregatedList. See the method description for details. @@ -11426,42 +12478,69 @@ class AggregatedListVpnTunnelsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. include_all_scopes (bool): @@ -11489,13 +12568,17 @@ class AggregatedListVpnTunnelsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -11510,10 +12593,11 @@ class AggregatedListVpnTunnelsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -11566,3803 +12650,3245 @@ class AggregatedListVpnTunnelsRequest(proto.Message): ) -class AliasIpRange(proto.Message): - r"""An alias IP range attached to an instance's network - interface. +class AggregatedListTargetTcpProxiesRequest(proto.Message): + r"""A request message for TargetTcpProxies.AggregatedList. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - ip_cidr_range (str): - The IP alias ranges to allocate for this - interface. This IP CIDR range must belong to the - specified subnetwork and cannot contain IP - addresses reserved by system or used by other - network interfaces. This range may be a single - IP address (such as 10.2.3.4), a netmask (such - as /24) or a CIDR-formatted string (such as - 10.1.2.0/24). + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. - This field is a member of `oneof`_ ``_ip_cidr_range``. - subnetwork_range_name (str): - The name of a subnetwork secondary IP range - from which to allocate an IP alias range. If not - specified, the primary range of the subnetwork - is used. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_subnetwork_range_name``. - """ + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - ip_cidr_range: str = proto.Field( - proto.STRING, - number=98117322, - optional=True, - ) - subnetwork_range_name: str = proto.Field( - proto.STRING, - number=387995966, - optional=True, - ) + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + :: -class AllocationAggregateReservation(proto.Message): - r"""This reservation type is specified by total resource amounts - (e.g. total count of CPUs) and can account for multiple instance - SKUs. In other words, one can create instances of varying shapes - against this reservation. + labels.owner:* + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + To filter on multiple expressions, provide each separate + expression within parentheses. For example: - Attributes: - in_use_resources (MutableSequence[google.cloud.compute_v1.types.AllocationAggregateReservationReservedResourceInfo]): - [Output only] List of resources currently in use. - reserved_resources (MutableSequence[google.cloud.compute_v1.types.AllocationAggregateReservationReservedResourceInfo]): - List of reserved resources (CPUs, memory, - accelerators). - vm_family (str): - The VM family that all instances scheduled - against this reservation must belong to. Check - the VmFamily enum for the list of possible - values. + :: - This field is a member of `oneof`_ ``_vm_family``. - workload_type (str): - The workload type of the instances that will - target this reservation. Check the WorkloadType - enum for the list of possible values. + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - This field is a member of `oneof`_ ``_workload_type``. - """ + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: - class VmFamily(proto.Enum): - r"""The VM family that all instances scheduled against this - reservation must belong to. + :: - Values: - UNDEFINED_VM_FAMILY (0): - A value indicating that the enum field is not - set. - VM_FAMILY_CLOUD_TPU_DEVICE_CT3 (42845948): - No description available. - VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L (108020067): - No description available. - VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP (18705267): - No description available. - VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E (398926997): - No description available. - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P (517384376): - No description available. - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P (517384407): - No description available. - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P (517384438): - No description available. - """ - UNDEFINED_VM_FAMILY = 0 - VM_FAMILY_CLOUD_TPU_DEVICE_CT3 = 42845948 - VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L = 108020067 - VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP = 18705267 - VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E = 398926997 - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P = 517384376 - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 517384407 - VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 517384438 + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) - class WorkloadType(proto.Enum): - r"""The workload type of the instances that will target this - reservation. + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: - Values: - UNDEFINED_WORKLOAD_TYPE (0): - A value indicating that the enum field is not - set. - BATCH (62971674): - Reserved resources will be optimized for - BATCH workloads, such as ML training. - SERVING (17781740): - Reserved resources will be optimized for - SERVING workloads, such as ML inference. - UNSPECIFIED (526786327): - No description available. - """ - UNDEFINED_WORKLOAD_TYPE = 0 - BATCH = 62971674 - SERVING = 17781740 - UNSPECIFIED = 526786327 + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` - in_use_resources: MutableSequence[ - "AllocationAggregateReservationReservedResourceInfo" - ] = proto.RepeatedField( - proto.MESSAGE, - number=409009107, - message="AllocationAggregateReservationReservedResourceInfo", + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. + + This field is a member of `oneof`_ ``_filter``. + include_all_scopes (bool): + Indicates whether every visible scope for + each scope type (zone, region, global) should be + included in the response. For new resource types + added after this field, the flag has no effect + as new resource types will always include every + visible scope for each scope type in response. + For resource types which predate this field, if + this flag is omitted or false, only scopes of + the scope types where the resource type is + expected to be found will be included. + + This field is a member of `oneof`_ ``_include_all_scopes``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. + + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. + + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. + + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. + + This field is a member of `oneof`_ ``_page_token``. + project (str): + Name of the project scoping this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. + + This field is a member of `oneof`_ ``_return_partial_success``. + service_project_number (int): + The Shared VPC service project id or service + project number for which aggregated list request + is invoked for subnetworks list-usable api. + + This field is a member of `oneof`_ ``_service_project_number``. + """ + + filter: str = proto.Field( + proto.STRING, + number=336120696, + optional=True, ) - reserved_resources: MutableSequence[ - "AllocationAggregateReservationReservedResourceInfo" - ] = proto.RepeatedField( - proto.MESSAGE, - number=213217742, - message="AllocationAggregateReservationReservedResourceInfo", + include_all_scopes: bool = proto.Field( + proto.BOOL, + number=391327988, + optional=True, ) - vm_family: str = proto.Field( + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, + ) + order_by: str = proto.Field( proto.STRING, - number=125017580, + number=160562920, optional=True, ) - workload_type: str = proto.Field( + page_token: str = proto.Field( proto.STRING, - number=273432322, + number=19994697, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, + optional=True, + ) + service_project_number: int = proto.Field( + proto.INT64, + number=316757497, optional=True, ) -class AllocationAggregateReservationReservedResourceInfo(proto.Message): - r""" +class AggregatedListTargetVpnGatewaysRequest(proto.Message): + r"""A request message for TargetVpnGateways.AggregatedList. See + the method description for details. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - accelerator (google.cloud.compute_v1.types.AllocationAggregateReservationReservedResourceInfoAccelerator): - Properties of accelerator resources in this - reservation. + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. - This field is a member of `oneof`_ ``_accelerator``. - """ + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - accelerator: "AllocationAggregateReservationReservedResourceInfoAccelerator" = ( - proto.Field( - proto.MESSAGE, - number=424338027, - optional=True, - message="AllocationAggregateReservationReservedResourceInfoAccelerator", - ) - ) + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: -class AllocationAggregateReservationReservedResourceInfoAccelerator(proto.Message): - r""" + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + labels.owner:* - Attributes: - accelerator_count (int): - Number of accelerators of specified type. + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. - This field is a member of `oneof`_ ``_accelerator_count``. - accelerator_type (str): - Full or partial URL to accelerator type. e.g. - "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l". + To filter on multiple expressions, provide each separate + expression within parentheses. For example: - This field is a member of `oneof`_ ``_accelerator_type``. - """ + :: - accelerator_count: int = proto.Field( - proto.INT32, - number=504879675, - optional=True, - ) - accelerator_type: str = proto.Field( - proto.STRING, - number=138031246, - optional=True, - ) + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: -class AllocationReservationSharingPolicy(proto.Message): - r""" + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) - Attributes: - service_share_type (str): - Sharing config for all Google Cloud services. - Check the ServiceShareType enum for the list of - possible values. + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: - This field is a member of `oneof`_ ``_service_share_type``. - """ + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` - class ServiceShareType(proto.Enum): - r"""Sharing config for all Google Cloud services. + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. - Values: - UNDEFINED_SERVICE_SHARE_TYPE (0): - A value indicating that the enum field is not - set. - ALLOW_ALL (475536235): - Allow all Google Cloud managed services to - share reservations. - DISALLOW_ALL (277786301): - [Default] Disallow sharing with all Google Cloud services. - SERVICE_SHARE_TYPE_UNSPECIFIED (279057148): - No description available. - """ - UNDEFINED_SERVICE_SHARE_TYPE = 0 - ALLOW_ALL = 475536235 - DISALLOW_ALL = 277786301 - SERVICE_SHARE_TYPE_UNSPECIFIED = 279057148 + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. - service_share_type: str = proto.Field( - proto.STRING, - number=514508644, - optional=True, - ) + You cannot combine constraints on multiple fields using + regular expressions. + This field is a member of `oneof`_ ``_filter``. + include_all_scopes (bool): + Indicates whether every visible scope for + each scope type (zone, region, global) should be + included in the response. For new resource types + added after this field, the flag has no effect + as new resource types will always include every + visible scope for each scope type in response. + For resource types which predate this field, if + this flag is omitted or false, only scopes of + the scope types where the resource type is + expected to be found will be included. -class AllocationResourceStatus(proto.Message): - r"""[Output Only] Contains output only fields. + This field is a member of `oneof`_ ``_include_all_scopes``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. - Attributes: - health_info (google.cloud.compute_v1.types.AllocationResourceStatusHealthInfo): - [Output only] Health information for the reservation. + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. - This field is a member of `oneof`_ ``_health_info``. - reservation_block_count (int): - The number of reservation blocks associated - with this reservation. + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. - This field is a member of `oneof`_ ``_reservation_block_count``. - reservation_maintenance (google.cloud.compute_v1.types.GroupMaintenanceInfo): - Maintenance information for this reservation + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. - This field is a member of `oneof`_ ``_reservation_maintenance``. - specific_sku_allocation (google.cloud.compute_v1.types.AllocationResourceStatusSpecificSKUAllocation): - Allocation Properties of this reservation. + This field is a member of `oneof`_ ``_page_token``. + project (str): + Project ID for this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. - This field is a member of `oneof`_ ``_specific_sku_allocation``. + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. + + This field is a member of `oneof`_ ``_return_partial_success``. + service_project_number (int): + The Shared VPC service project id or service + project number for which aggregated list request + is invoked for subnetworks list-usable api. + + This field is a member of `oneof`_ ``_service_project_number``. """ - health_info: "AllocationResourceStatusHealthInfo" = proto.Field( - proto.MESSAGE, - number=235287729, + filter: str = proto.Field( + proto.STRING, + number=336120696, optional=True, - message="AllocationResourceStatusHealthInfo", ) - reservation_block_count: int = proto.Field( - proto.INT32, - number=161835754, + include_all_scopes: bool = proto.Field( + proto.BOOL, + number=391327988, optional=True, ) - reservation_maintenance: "GroupMaintenanceInfo" = proto.Field( - proto.MESSAGE, - number=340607776, + max_results: int = proto.Field( + proto.UINT32, + number=54715419, optional=True, - message="GroupMaintenanceInfo", ) - specific_sku_allocation: "AllocationResourceStatusSpecificSKUAllocation" = ( - proto.Field( - proto.MESSAGE, - number=196231151, - optional=True, - message="AllocationResourceStatusSpecificSKUAllocation", - ) + order_by: str = proto.Field( + proto.STRING, + number=160562920, + optional=True, + ) + page_token: str = proto.Field( + proto.STRING, + number=19994697, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, + optional=True, + ) + service_project_number: int = proto.Field( + proto.INT64, + number=316757497, + optional=True, ) -class AllocationResourceStatusHealthInfo(proto.Message): - r"""Health information for the reservation. +class AggregatedListUrlMapsRequest(proto.Message): + r"""A request message for UrlMaps.AggregatedList. See the method + description for details. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - degraded_block_count (int): - The number of reservation blocks that are - degraded. + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. - This field is a member of `oneof`_ ``_degraded_block_count``. - health_status (str): - The health status of the reservation. - Check the HealthStatus enum for the list of - possible values. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_health_status``. - healthy_block_count (int): - The number of reservation blocks that are - healthy. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_healthy_block_count``. - """ + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - class HealthStatus(proto.Enum): - r"""The health status of the reservation. + :: - Values: - UNDEFINED_HEALTH_STATUS (0): - A value indicating that the enum field is not - set. - DEGRADED (396890926): - The reservation is degraded. - HEALTHY (439801213): - The reservation is healthy. - HEALTH_STATUS_UNSPECIFIED (482246925): - The health status of the reservation is - unspecified. - """ - UNDEFINED_HEALTH_STATUS = 0 - DEGRADED = 396890926 - HEALTHY = 439801213 - HEALTH_STATUS_UNSPECIFIED = 482246925 + labels.owner:* - degraded_block_count: int = proto.Field( - proto.INT32, - number=514082636, - optional=True, - ) - health_status: str = proto.Field( - proto.STRING, - number=380545845, - optional=True, - ) - healthy_block_count: int = proto.Field( - proto.INT32, - number=223625019, - optional=True, - ) + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: -class AllocationResourceStatusSpecificSKUAllocation(proto.Message): - r"""Contains Properties set for the reservation. - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + :: - Attributes: - source_instance_template_id (str): - ID of the instance template used to populate - reservation properties. + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - This field is a member of `oneof`_ ``_source_instance_template_id``. - utilizations (MutableMapping[str, int]): - Per service utilization breakdown. The Key is - the Google Cloud managed service name. - """ + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: - source_instance_template_id: str = proto.Field( - proto.STRING, - number=111196154, - optional=True, - ) - utilizations: MutableMapping[str, int] = proto.MapField( - proto.STRING, - proto.INT64, - number=402495121, - ) + :: + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) -class AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk( - proto.Message -): - r""" + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` - Attributes: - disk_size_gb (int): - Specifies the size of the disk in base-2 GB. + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. - This field is a member of `oneof`_ ``_disk_size_gb``. - interface (str): - Specifies the disk interface to use for - attaching this disk, which is either SCSI or - NVME. The default is SCSI. For performance - characteristics of SCSI over NVMe, see Local SSD - performance. Check the Interface enum for the - list of possible values. + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. - This field is a member of `oneof`_ ``_interface``. - """ + You cannot combine constraints on multiple fields using + regular expressions. - class Interface(proto.Enum): - r"""Specifies the disk interface to use for attaching this disk, - which is either SCSI or NVME. The default is SCSI. For - performance characteristics of SCSI over NVMe, see Local SSD - performance. + This field is a member of `oneof`_ ``_filter``. + include_all_scopes (bool): + Indicates whether every visible scope for + each scope type (zone, region, global) should be + included in the response. For new resource types + added after this field, the flag has no effect + as new resource types will always include every + visible scope for each scope type in response. + For resource types which predate this field, if + this flag is omitted or false, only scopes of + the scope types where the resource type is + expected to be found will be included. - Values: - UNDEFINED_INTERFACE (0): - A value indicating that the enum field is not - set. - NVME (2408800): - No description available. - SCSI (2539686): - No description available. - """ - UNDEFINED_INTERFACE = 0 - NVME = 2408800 - SCSI = 2539686 + This field is a member of `oneof`_ ``_include_all_scopes``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) - disk_size_gb: int = proto.Field( - proto.INT64, - number=316263735, - optional=True, - ) - interface: str = proto.Field( - proto.STRING, - number=502623545, - optional=True, - ) + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. -class AllocationSpecificSKUAllocationReservedInstanceProperties(proto.Message): - r"""Properties of the SKU instances being reserved. Next ID: 9 + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. - Attributes: - guest_accelerators (MutableSequence[google.cloud.compute_v1.types.AcceleratorConfig]): - Specifies accelerator type and count. - local_ssds (MutableSequence[google.cloud.compute_v1.types.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk]): - Specifies amount of local ssd to reserve with - each instance. The type of disk is local-ssd. - location_hint (str): - An opaque location hint used to place the - allocation close to other resources. This field - is for use by internal tools that use the public - API. + This field is a member of `oneof`_ ``_page_token``. + project (str): + Name of the project scoping this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. - This field is a member of `oneof`_ ``_location_hint``. - machine_type (str): - Specifies type of machine (name only) which has fixed number - of vCPUs and fixed amount of memory. This also includes - specifying custom machine type following - custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. - This field is a member of `oneof`_ ``_machine_type``. - min_cpu_platform (str): - Minimum cpu platform the reservation. + This field is a member of `oneof`_ ``_return_partial_success``. + service_project_number (int): + The Shared VPC service project id or service + project number for which aggregated list request + is invoked for subnetworks list-usable api. - This field is a member of `oneof`_ ``_min_cpu_platform``. + This field is a member of `oneof`_ ``_service_project_number``. """ - guest_accelerators: MutableSequence["AcceleratorConfig"] = proto.RepeatedField( - proto.MESSAGE, - number=463595119, - message="AcceleratorConfig", + filter: str = proto.Field( + proto.STRING, + number=336120696, + optional=True, ) - local_ssds: MutableSequence[ - "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk" - ] = proto.RepeatedField( - proto.MESSAGE, - number=229951299, - message="AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", + include_all_scopes: bool = proto.Field( + proto.BOOL, + number=391327988, + optional=True, ) - location_hint: str = proto.Field( + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, + ) + order_by: str = proto.Field( proto.STRING, - number=350519505, + number=160562920, optional=True, ) - machine_type: str = proto.Field( + page_token: str = proto.Field( proto.STRING, - number=227711026, + number=19994697, optional=True, ) - min_cpu_platform: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=242912759, + number=227560217, + ) + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, + optional=True, + ) + service_project_number: int = proto.Field( + proto.INT64, + number=316757497, optional=True, ) -class AllocationSpecificSKUReservation(proto.Message): - r"""This reservation type allows to pre allocate specific - instance configuration. +class AggregatedListVpnGatewaysRequest(proto.Message): + r"""A request message for VpnGateways.AggregatedList. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - assured_count (int): - [Output Only] Indicates how many instances are actually - usable currently. + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. - This field is a member of `oneof`_ ``_assured_count``. - count (int): - Specifies the number of resources that are - allocated. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_count``. - in_use_count (int): - [Output Only] Indicates how many instances are in use. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_in_use_count``. - instance_properties (google.cloud.compute_v1.types.AllocationSpecificSKUAllocationReservedInstanceProperties): - The instance properties for the reservation. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_instance_properties``. - source_instance_template (str): - Specifies the instance template to create the - reservation. If you use this field, you must - exclude the instanceProperties field. This field - is optional, and it can be a full or partial - URL. For example, the following are all valid - URLs to an instance template: - - https://www.googleapis.com/compute/v1/projects/project - /global/instanceTemplates/instanceTemplate - - projects/project/global/instanceTemplates/instanceTemplate - - global/instanceTemplates/instanceTemplate + :: - This field is a member of `oneof`_ ``_source_instance_template``. - """ + labels.owner:* - assured_count: int = proto.Field( - proto.INT64, - number=281197645, - optional=True, - ) - count: int = proto.Field( - proto.INT64, - number=94851343, - optional=True, - ) - in_use_count: int = proto.Field( - proto.INT64, - number=493458877, - optional=True, - ) - instance_properties: "AllocationSpecificSKUAllocationReservedInstanceProperties" = ( - proto.Field( - proto.MESSAGE, - number=215355165, - optional=True, - message="AllocationSpecificSKUAllocationReservedInstanceProperties", - ) - ) - source_instance_template: str = proto.Field( - proto.STRING, - number=332423616, - optional=True, - ) + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: -class Allowed(proto.Message): - r""" + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - Attributes: - I_p_protocol (str): - The IP protocol to which this rule applies. - The protocol type is required when creating a - firewall rule. This value can either be one of - the following well known protocol strings (tcp, - udp, icmp, esp, ah, ipip, sctp) or the IP - protocol number. + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: - This field is a member of `oneof`_ ``_I_p_protocol``. - ports (MutableSequence[str]): - An optional list of ports to which this rule applies. This - field is only applicable for the UDP or TCP protocol. Each - entry must be either an integer or a range. If not - specified, this rule applies to connections through any - port. Example inputs include: ["22"], ["80","443"], and - ["12345-12349"]. - """ + :: - I_p_protocol: str = proto.Field( - proto.STRING, - number=488094525, - optional=True, - ) - ports: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=106854418, - ) + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: -class AnnouncePublicAdvertisedPrefixeRequest(proto.Message): - r"""A request message for PublicAdvertisedPrefixes.Announce. See - the method description for details. + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. - Attributes: - project (str): - Project ID for this request. - public_advertised_prefix (str): - The name of the public advertised prefix. It - should comply with RFC1035. - request_id (str): - An optional request ID to identify requests. - Specify a unique request ID so that if you must - retry your request, the server will know to - ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + You cannot combine constraints on multiple fields using + regular expressions. - This field is a member of `oneof`_ ``_request_id``. - """ + This field is a member of `oneof`_ ``_filter``. + include_all_scopes (bool): + Indicates whether every visible scope for + each scope type (zone, region, global) should be + included in the response. For new resource types + added after this field, the flag has no effect + as new resource types will always include every + visible scope for each scope type in response. + For resource types which predate this field, if + this flag is omitted or false, only scopes of + the scope types where the resource type is + expected to be found will be included. - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - public_advertised_prefix: str = proto.Field( - proto.STRING, - number=101874590, - ) - request_id: str = proto.Field( - proto.STRING, - number=37109963, - optional=True, - ) + This field is a member of `oneof`_ ``_include_all_scopes``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. -class AnnouncePublicDelegatedPrefixeRequest(proto.Message): - r"""A request message for PublicDelegatedPrefixes.Announce. See - the method description for details. + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. - Attributes: + This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - public_delegated_prefix (str): - The name of the public delegated prefix. It - should comply with RFC1035. - region (str): - The name of the region where the public - delegated prefix is located. It should comply - with RFC1035. - request_id (str): - An optional request ID to identify requests. - Specify a unique request ID so that if you must - retry your request, the server will know to - ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. - This field is a member of `oneof`_ ``_request_id``. + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. + + This field is a member of `oneof`_ ``_return_partial_success``. + service_project_number (int): + The Shared VPC service project id or service + project number for which aggregated list request + is invoked for subnetworks list-usable api. + + This field is a member of `oneof`_ ``_service_project_number``. """ - project: str = proto.Field( + filter: str = proto.Field( proto.STRING, - number=227560217, + number=336120696, + optional=True, ) - public_delegated_prefix: str = proto.Field( - proto.STRING, - number=204238440, + include_all_scopes: bool = proto.Field( + proto.BOOL, + number=391327988, + optional=True, ) - region: str = proto.Field( - proto.STRING, - number=138946292, + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, ) - request_id: str = proto.Field( + order_by: str = proto.Field( proto.STRING, - number=37109963, + number=160562920, optional=True, ) - - -class ApplyUpdatesToInstancesInstanceGroupManagerRequest(proto.Message): - r"""A request message for - InstanceGroupManagers.ApplyUpdatesToInstances. See the method - description for details. - - Attributes: - instance_group_manager (str): - The name of the managed instance group, - should conform to RFC1035. - instance_group_managers_apply_updates_request_resource (google.cloud.compute_v1.types.InstanceGroupManagersApplyUpdatesRequest): - The body resource for this request - project (str): - Project ID for this request. - zone (str): - The name of the zone where the managed - instance group is located. Should conform to - RFC1035. - """ - - instance_group_manager: str = proto.Field( + page_token: str = proto.Field( proto.STRING, - number=249363395, - ) - instance_group_managers_apply_updates_request_resource: "InstanceGroupManagersApplyUpdatesRequest" = proto.Field( - proto.MESSAGE, - number=259242835, - message="InstanceGroupManagersApplyUpdatesRequest", + number=19994697, + optional=True, ) project: str = proto.Field( proto.STRING, number=227560217, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, + optional=True, + ) + service_project_number: int = proto.Field( + proto.INT64, + number=316757497, + optional=True, ) -class ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest(proto.Message): - r"""A request message for - RegionInstanceGroupManagers.ApplyUpdatesToInstances. See the +class AggregatedListVpnTunnelsRequest(proto.Message): + r"""A request message for VpnTunnels.AggregatedList. See the method description for details. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: - instance_group_manager (str): - The name of the managed instance group, - should conform to RFC1035. - project (str): - Project ID for this request. - region (str): - Name of the region scoping this request, - should conform to RFC1035. - region_instance_group_managers_apply_updates_request_resource (google.cloud.compute_v1.types.RegionInstanceGroupManagersApplyUpdatesRequest): - The body resource for this request - """ + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. - instance_group_manager: str = proto.Field( - proto.STRING, - number=249363395, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) - region_instance_group_managers_apply_updates_request_resource: "RegionInstanceGroupManagersApplyUpdatesRequest" = proto.Field( - proto.MESSAGE, - number=76248318, - message="RegionInstanceGroupManagersApplyUpdatesRequest", - ) + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. -class AttachDiskInstanceRequest(proto.Message): - r"""A request message for Instances.AttachDisk. See the method - description for details. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + labels.owner:* - Attributes: - attached_disk_resource (google.cloud.compute_v1.types.AttachedDisk): - The body resource for this request - force_attach (bool): - Whether to force attach the regional disk - even if it's currently attached to another - instance. If you try to force attach a zonal - disk to an instance, you will receive an error. + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. - This field is a member of `oneof`_ ``_force_attach``. - instance (str): - The instance name for this request. - project (str): - Project ID for this request. - request_id (str): - An optional request ID to identify requests. - Specify a unique request ID so that if you must - retry your request, the server will know to - ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + To filter on multiple expressions, provide each separate + expression within parentheses. For example: - This field is a member of `oneof`_ ``_request_id``. - zone (str): - The name of the zone for this request. + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: + + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. + + This field is a member of `oneof`_ ``_filter``. + include_all_scopes (bool): + Indicates whether every visible scope for + each scope type (zone, region, global) should be + included in the response. For new resource types + added after this field, the flag has no effect + as new resource types will always include every + visible scope for each scope type in response. + For resource types which predate this field, if + this flag is omitted or false, only scopes of + the scope types where the resource type is + expected to be found will be included. + + This field is a member of `oneof`_ ``_include_all_scopes``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. + + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. + + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. + + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. + + This field is a member of `oneof`_ ``_page_token``. + project (str): + Project ID for this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. + + This field is a member of `oneof`_ ``_return_partial_success``. + service_project_number (int): + The Shared VPC service project id or service + project number for which aggregated list request + is invoked for subnetworks list-usable api. + + This field is a member of `oneof`_ ``_service_project_number``. """ - attached_disk_resource: "AttachedDisk" = proto.Field( - proto.MESSAGE, - number=90605845, - message="AttachedDisk", + filter: str = proto.Field( + proto.STRING, + number=336120696, + optional=True, ) - force_attach: bool = proto.Field( + include_all_scopes: bool = proto.Field( proto.BOOL, - number=142758425, + number=391327988, optional=True, ) - instance: str = proto.Field( + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, + ) + order_by: str = proto.Field( proto.STRING, - number=18257045, + number=160562920, + optional=True, + ) + page_token: str = proto.Field( + proto.STRING, + number=19994697, + optional=True, ) project: str = proto.Field( proto.STRING, number=227560217, ) - request_id: str = proto.Field( - proto.STRING, - number=37109963, + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, + service_project_number: int = proto.Field( + proto.INT64, + number=316757497, + optional=True, ) -class AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest(proto.Message): - r"""A request message for - GlobalNetworkEndpointGroups.AttachNetworkEndpoints. See the - method description for details. +class AliasIpRange(proto.Message): + r"""An alias IP range attached to an instance's network + interface. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - global_network_endpoint_groups_attach_endpoints_request_resource (google.cloud.compute_v1.types.GlobalNetworkEndpointGroupsAttachEndpointsRequest): - The body resource for this request - network_endpoint_group (str): - The name of the network endpoint group where - you are attaching network endpoints to. It - should comply with RFC1035. - project (str): - Project ID for this request. - request_id (str): - An optional request ID to identify requests. - Specify a unique request ID so that if you must - retry your request, the server will know to - ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + ip_cidr_range (str): + The IP alias ranges to allocate for this + interface. This IP CIDR range must belong to the + specified subnetwork and cannot contain IP + addresses reserved by system or used by other + network interfaces. This range may be a single + IP address (such as 10.2.3.4), a netmask (such + as/24) or a CIDR-formatted string (such + as10.1.2.0/24). - This field is a member of `oneof`_ ``_request_id``. + This field is a member of `oneof`_ ``_ip_cidr_range``. + subnetwork_range_name (str): + The name of a subnetwork secondary IP range + from which to allocate an IP alias range. If not + specified, the primary range of the subnetwork + is used. + + This field is a member of `oneof`_ ``_subnetwork_range_name``. """ - global_network_endpoint_groups_attach_endpoints_request_resource: "GlobalNetworkEndpointGroupsAttachEndpointsRequest" = proto.Field( - proto.MESSAGE, - number=30691563, - message="GlobalNetworkEndpointGroupsAttachEndpointsRequest", - ) - network_endpoint_group: str = proto.Field( - proto.STRING, - number=433907078, - ) - project: str = proto.Field( + ip_cidr_range: str = proto.Field( proto.STRING, - number=227560217, + number=98117322, + optional=True, ) - request_id: str = proto.Field( + subnetwork_range_name: str = proto.Field( proto.STRING, - number=37109963, + number=387995966, optional=True, ) -class AttachNetworkEndpointsNetworkEndpointGroupRequest(proto.Message): - r"""A request message for - NetworkEndpointGroups.AttachNetworkEndpoints. See the method - description for details. +class AllocationAggregateReservation(proto.Message): + r"""This reservation type is specified by total resource amounts + (e.g. total count of CPUs) and can account for multiple instance + SKUs. In other words, one can create instances of varying shapes + against this reservation. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - network_endpoint_group (str): - The name of the network endpoint group where - you are attaching network endpoints to. It - should comply with RFC1035. - network_endpoint_groups_attach_endpoints_request_resource (google.cloud.compute_v1.types.NetworkEndpointGroupsAttachEndpointsRequest): - The body resource for this request - project (str): - Project ID for this request. - request_id (str): - An optional request ID to identify requests. - Specify a unique request ID so that if you must - retry your request, the server will know to - ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + in_use_resources (MutableSequence[google.cloud.compute_v1.types.AllocationAggregateReservationReservedResourceInfo]): + Output only. [Output only] List of resources currently in + use. + reserved_resources (MutableSequence[google.cloud.compute_v1.types.AllocationAggregateReservationReservedResourceInfo]): + List of reserved resources (CPUs, memory, + accelerators). + vm_family (str): + The VM family that all instances scheduled + against this reservation must belong to. + Check the VmFamily enum for the list of possible + values. - This field is a member of `oneof`_ ``_request_id``. - zone (str): - The name of the zone where the network - endpoint group is located. It should comply with - RFC1035. + This field is a member of `oneof`_ ``_vm_family``. + workload_type (str): + The workload type of the instances that will + target this reservation. Check the WorkloadType + enum for the list of possible values. + + This field is a member of `oneof`_ ``_workload_type``. """ - network_endpoint_group: str = proto.Field( - proto.STRING, - number=433907078, - ) - network_endpoint_groups_attach_endpoints_request_resource: "NetworkEndpointGroupsAttachEndpointsRequest" = proto.Field( + class VmFamily(proto.Enum): + r"""The VM family that all instances scheduled against this + reservation must belong to. + + Values: + UNDEFINED_VM_FAMILY (0): + A value indicating that the enum field is not + set. + VM_FAMILY_CLOUD_TPU_DEVICE_CT3 (42845948): + No description available. + VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L (108020067): + No description available. + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP (18705267): + No description available. + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E (398926997): + No description available. + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P (517384376): + No description available. + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P (517384407): + No description available. + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P (517384438): + No description available. + VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X (485271888): + No description available. + """ + UNDEFINED_VM_FAMILY = 0 + VM_FAMILY_CLOUD_TPU_DEVICE_CT3 = 42845948 + VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L = 108020067 + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP = 18705267 + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E = 398926997 + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P = 517384376 + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 517384407 + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 517384438 + VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X = 485271888 + + class WorkloadType(proto.Enum): + r"""The workload type of the instances that will target this + reservation. + + Values: + UNDEFINED_WORKLOAD_TYPE (0): + A value indicating that the enum field is not + set. + BATCH (62971674): + Reserved resources will be optimized for + BATCH workloads, such as ML training. + SERVING (17781740): + Reserved resources will be optimized for + SERVING workloads, such as ML inference. + UNSPECIFIED (526786327): + No description available. + """ + UNDEFINED_WORKLOAD_TYPE = 0 + BATCH = 62971674 + SERVING = 17781740 + UNSPECIFIED = 526786327 + + in_use_resources: MutableSequence[ + "AllocationAggregateReservationReservedResourceInfo" + ] = proto.RepeatedField( proto.MESSAGE, - number=531079, - message="NetworkEndpointGroupsAttachEndpointsRequest", + number=409009107, + message="AllocationAggregateReservationReservedResourceInfo", ) - project: str = proto.Field( - proto.STRING, - number=227560217, + reserved_resources: MutableSequence[ + "AllocationAggregateReservationReservedResourceInfo" + ] = proto.RepeatedField( + proto.MESSAGE, + number=213217742, + message="AllocationAggregateReservationReservedResourceInfo", ) - request_id: str = proto.Field( + vm_family: str = proto.Field( proto.STRING, - number=37109963, + number=125017580, optional=True, ) - zone: str = proto.Field( + workload_type: str = proto.Field( proto.STRING, - number=3744684, + number=273432322, + optional=True, ) -class AttachNetworkEndpointsRegionNetworkEndpointGroupRequest(proto.Message): - r"""A request message for - RegionNetworkEndpointGroups.AttachNetworkEndpoints. See the - method description for details. - +class AllocationAggregateReservationReservedResourceInfo(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - network_endpoint_group (str): - The name of the network endpoint group where - you are attaching network endpoints to. It - should comply with RFC1035. - project (str): - Project ID for this request. - region (str): - The name of the region where you want to - create the network endpoint group. It should - comply with RFC1035. - region_network_endpoint_groups_attach_endpoints_request_resource (google.cloud.compute_v1.types.RegionNetworkEndpointGroupsAttachEndpointsRequest): - The body resource for this request - request_id (str): - An optional request ID to identify requests. - Specify a unique request ID so that if you must - retry your request, the server will know to - ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + accelerator (google.cloud.compute_v1.types.AllocationAggregateReservationReservedResourceInfoAccelerator): + Properties of accelerator resources in this + reservation. - This field is a member of `oneof`_ ``_request_id``. + This field is a member of `oneof`_ ``_accelerator``. """ - network_endpoint_group: str = proto.Field( - proto.STRING, - number=433907078, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) - region_network_endpoint_groups_attach_endpoints_request_resource: "RegionNetworkEndpointGroupsAttachEndpointsRequest" = proto.Field( - proto.MESSAGE, - number=334986492, - message="RegionNetworkEndpointGroupsAttachEndpointsRequest", - ) - request_id: str = proto.Field( - proto.STRING, - number=37109963, - optional=True, + accelerator: "AllocationAggregateReservationReservedResourceInfoAccelerator" = ( + proto.Field( + proto.MESSAGE, + number=424338027, + optional=True, + message="AllocationAggregateReservationReservedResourceInfoAccelerator", + ) ) -class AttachedDisk(proto.Message): - r"""An instance-attached disk resource. +class AllocationAggregateReservationReservedResourceInfoAccelerator(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - architecture (str): - [Output Only] The architecture of the attached disk. Valid - values are ARM64 or X86_64. Check the Architecture enum for - the list of possible values. - - This field is a member of `oneof`_ ``_architecture``. - auto_delete (bool): - Specifies whether the disk will be - auto-deleted when the instance is deleted (but - not when the disk is detached from the - instance). - - This field is a member of `oneof`_ ``_auto_delete``. - boot (bool): - Indicates that this is a boot disk. The - virtual machine will use the first partition of - the disk for its root filesystem. - - This field is a member of `oneof`_ ``_boot``. - device_name (str): - Specifies a unique device name of your choice that is - reflected into the /dev/disk/by-id/google-\* tree of a Linux - operating system running within the instance. This name can - be used to reference the device for mounting, resizing, and - so on, from within the instance. If not specified, the - server chooses a default device name to apply to this disk, - in the form persistent-disk-x, where x is a number assigned - by Google Compute Engine. This field is only applicable for - persistent disks. - - This field is a member of `oneof`_ ``_device_name``. - disk_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - Encrypts or decrypts a disk using a - customer-supplied encryption key. If you are - creating a new disk, this field encrypts the new - disk using an encryption key that you provide. - If you are attaching an existing disk that is - already encrypted, this field decrypts the disk - using the customer-supplied encryption key. If - you encrypt a disk using a customer-supplied - key, you must provide the same key again when - you attempt to use this resource at a later - time. For example, you must provide the key when - you create a snapshot or an image from the disk - or when you attach the disk to a virtual machine - instance. If you do not provide an encryption - key, then the disk will be encrypted using an - automatically generated key and you do not need - to provide a key to use the disk later. Note: - Instance templates do not store - customer-supplied encryption keys, so you cannot - use your own keys to encrypt disks in a managed - instance group. You cannot create VMs that have - disks with customer-supplied keys using the bulk - insert method. + accelerator_count (int): + Number of accelerators of specified type. - This field is a member of `oneof`_ ``_disk_encryption_key``. - disk_size_gb (int): - The size of the disk in GB. + This field is a member of `oneof`_ ``_accelerator_count``. + accelerator_type (str): + Full or partial URL to accelerator type. e.g. + "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l". - This field is a member of `oneof`_ ``_disk_size_gb``. - force_attach (bool): - [Input Only] Whether to force attach the regional disk even - if it's currently attached to another instance. If you try - to force attach a zonal disk to an instance, you will - receive an error. + This field is a member of `oneof`_ ``_accelerator_type``. + """ - This field is a member of `oneof`_ ``_force_attach``. - guest_os_features (MutableSequence[google.cloud.compute_v1.types.GuestOsFeature]): - A list of features to enable on the guest - operating system. Applicable only for bootable - images. Read Enabling guest operating system - features to see a list of available options. - index (int): - [Output Only] A zero-based index to this disk, where 0 is - reserved for the boot disk. If you have many disks attached - to an instance, each disk would have a unique index number. + accelerator_count: int = proto.Field( + proto.INT32, + number=504879675, + optional=True, + ) + accelerator_type: str = proto.Field( + proto.STRING, + number=138031246, + optional=True, + ) - This field is a member of `oneof`_ ``_index``. - initialize_params (google.cloud.compute_v1.types.AttachedDiskInitializeParams): - [Input Only] Specifies the parameters for a new disk that - will be created alongside the new instance. Use - initialization parameters to create boot disks or local SSDs - attached to the new instance. This property is mutually - exclusive with the source property; you can only define one - or the other, but not both. - This field is a member of `oneof`_ ``_initialize_params``. - interface (str): - Specifies the disk interface to use for - attaching this disk, which is either SCSI or - NVME. For most machine types, the default is - SCSI. Local SSDs can use either NVME or SCSI. In - certain configurations, persistent disks can use - NVMe. For more information, see About persistent - disks. Check the Interface enum for the list of - possible values. +class AllocationReservationSharingPolicy(proto.Message): + r""" - This field is a member of `oneof`_ ``_interface``. - kind (str): - [Output Only] Type of the resource. Always - compute#attachedDisk for attached disks. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_kind``. - licenses (MutableSequence[str]): - [Output Only] Any valid publicly visible licenses. - mode (str): - The mode in which to attach this disk, either READ_WRITE or - READ_ONLY. If not specified, the default is to attach the - disk in READ_WRITE mode. Check the Mode enum for the list of + Attributes: + service_share_type (str): + Sharing config for all Google Cloud services. + Check the ServiceShareType enum for the list of possible values. - This field is a member of `oneof`_ ``_mode``. - saved_state (str): - For LocalSSD disks on VM Instances in STOPPED or SUSPENDED - state, this field is set to PRESERVED if the LocalSSD data - has been saved to a persistent location by customer request. - (see the discard_local_ssd option on Stop/Suspend). - Read-only in the api. Check the SavedState enum for the list - of possible values. - - This field is a member of `oneof`_ ``_saved_state``. - shielded_instance_initial_state (google.cloud.compute_v1.types.InitialStateConfig): - [Output Only] shielded vm initial state stored on disk - - This field is a member of `oneof`_ ``_shielded_instance_initial_state``. - source (str): - Specifies a valid partial or full URL to an - existing Persistent Disk resource. When creating - a new instance boot disk, one of - initializeParams.sourceImage or - initializeParams.sourceSnapshot or disks.source - is required. If desired, you can also attach - existing non-root persistent disks using this - property. This field is only applicable for - persistent disks. Note that for - InstanceTemplate, specify the disk name for - zonal disk, and the URL for regional disk. - - This field is a member of `oneof`_ ``_source``. - type_ (str): - Specifies the type of the disk, either - SCRATCH or PERSISTENT. If not specified, the - default is PERSISTENT. Check the Type enum for - the list of possible values. - - This field is a member of `oneof`_ ``_type``. + This field is a member of `oneof`_ ``_service_share_type``. """ - class Architecture(proto.Enum): - r"""[Output Only] The architecture of the attached disk. Valid values - are ARM64 or X86_64. + class ServiceShareType(proto.Enum): + r"""Sharing config for all Google Cloud services. Values: - UNDEFINED_ARCHITECTURE (0): + UNDEFINED_SERVICE_SHARE_TYPE (0): A value indicating that the enum field is not set. - ARCHITECTURE_UNSPECIFIED (394750507): - Default value indicating Architecture is not - set. - ARM64 (62547450): - Machines with architecture ARM64 - X86_64 (425300551): - Machines with architecture X86_64 + ALLOW_ALL (475536235): + Allow all Google Cloud managed services to + share reservations. + DISALLOW_ALL (277786301): + [Default] Disallow sharing with all Google Cloud services. + SERVICE_SHARE_TYPE_UNSPECIFIED (279057148): + No description available. """ - UNDEFINED_ARCHITECTURE = 0 - ARCHITECTURE_UNSPECIFIED = 394750507 - ARM64 = 62547450 - X86_64 = 425300551 + UNDEFINED_SERVICE_SHARE_TYPE = 0 + ALLOW_ALL = 475536235 + DISALLOW_ALL = 277786301 + SERVICE_SHARE_TYPE_UNSPECIFIED = 279057148 - class Interface(proto.Enum): - r"""Specifies the disk interface to use for attaching this disk, - which is either SCSI or NVME. For most machine types, the - default is SCSI. Local SSDs can use either NVME or SCSI. In - certain configurations, persistent disks can use NVMe. For more - information, see About persistent disks. + service_share_type: str = proto.Field( + proto.STRING, + number=514508644, + optional=True, + ) - Values: - UNDEFINED_INTERFACE (0): - A value indicating that the enum field is not - set. - NVME (2408800): - No description available. - SCSI (2539686): - No description available. - """ - UNDEFINED_INTERFACE = 0 - NVME = 2408800 - SCSI = 2539686 - class Mode(proto.Enum): - r"""The mode in which to attach this disk, either READ_WRITE or - READ_ONLY. If not specified, the default is to attach the disk in - READ_WRITE mode. +class AllocationResourceStatus(proto.Message): + r"""[Output Only] Contains output only fields. - Values: - UNDEFINED_MODE (0): - A value indicating that the enum field is not - set. - READ_ONLY (91950261): - Attaches this disk in read-only mode. - Multiple virtual machines can use a disk in - read-only mode at a time. - READ_WRITE (173607894): - *[Default]* Attaches this disk in read-write mode. Only one - virtual machine at a time can be attached to a disk in - read-write mode. - """ - UNDEFINED_MODE = 0 - READ_ONLY = 91950261 - READ_WRITE = 173607894 + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - class SavedState(proto.Enum): - r"""For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, - this field is set to PRESERVED if the LocalSSD data has been saved - to a persistent location by customer request. (see the - discard_local_ssd option on Stop/Suspend). Read-only in the api. + Attributes: + health_info (google.cloud.compute_v1.types.AllocationResourceStatusHealthInfo): + [Output only] Health information for the reservation. - Values: - UNDEFINED_SAVED_STATE (0): - A value indicating that the enum field is not - set. - DISK_SAVED_STATE_UNSPECIFIED (391290831): - *[Default]* Disk state has not been preserved. - PRESERVED (254159736): - Disk state has been preserved. - """ - UNDEFINED_SAVED_STATE = 0 - DISK_SAVED_STATE_UNSPECIFIED = 391290831 - PRESERVED = 254159736 + This field is a member of `oneof`_ ``_health_info``. + reservation_block_count (int): + The number of reservation blocks associated + with this reservation. - class Type(proto.Enum): - r"""Specifies the type of the disk, either SCRATCH or PERSISTENT. - If not specified, the default is PERSISTENT. + This field is a member of `oneof`_ ``_reservation_block_count``. + reservation_maintenance (google.cloud.compute_v1.types.GroupMaintenanceInfo): + Maintenance information for this reservation + + This field is a member of `oneof`_ ``_reservation_maintenance``. + specific_sku_allocation (google.cloud.compute_v1.types.AllocationResourceStatusSpecificSKUAllocation): + Allocation Properties of this reservation. + + This field is a member of `oneof`_ ``_specific_sku_allocation``. + """ + + health_info: "AllocationResourceStatusHealthInfo" = proto.Field( + proto.MESSAGE, + number=235287729, + optional=True, + message="AllocationResourceStatusHealthInfo", + ) + reservation_block_count: int = proto.Field( + proto.INT32, + number=161835754, + optional=True, + ) + reservation_maintenance: "GroupMaintenanceInfo" = proto.Field( + proto.MESSAGE, + number=340607776, + optional=True, + message="GroupMaintenanceInfo", + ) + specific_sku_allocation: "AllocationResourceStatusSpecificSKUAllocation" = ( + proto.Field( + proto.MESSAGE, + number=196231151, + optional=True, + message="AllocationResourceStatusSpecificSKUAllocation", + ) + ) + + +class AllocationResourceStatusHealthInfo(proto.Message): + r"""Health information for the reservation. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + degraded_block_count (int): + The number of reservation blocks that are + degraded. + + This field is a member of `oneof`_ ``_degraded_block_count``. + health_status (str): + The health status of the reservation. + Check the HealthStatus enum for the list of + possible values. + + This field is a member of `oneof`_ ``_health_status``. + healthy_block_count (int): + The number of reservation blocks that are + healthy. + + This field is a member of `oneof`_ ``_healthy_block_count``. + """ + + class HealthStatus(proto.Enum): + r"""The health status of the reservation. Values: - UNDEFINED_TYPE (0): + UNDEFINED_HEALTH_STATUS (0): A value indicating that the enum field is not set. - PERSISTENT (460683927): - No description available. - SCRATCH (496778970): - No description available. + DEGRADED (396890926): + The reservation is degraded. + HEALTHY (439801213): + The reservation is healthy. + HEALTH_STATUS_UNSPECIFIED (482246925): + The health status of the reservation is + unspecified. """ - UNDEFINED_TYPE = 0 - PERSISTENT = 460683927 - SCRATCH = 496778970 + UNDEFINED_HEALTH_STATUS = 0 + DEGRADED = 396890926 + HEALTHY = 439801213 + HEALTH_STATUS_UNSPECIFIED = 482246925 - architecture: str = proto.Field( - proto.STRING, - number=302803283, + degraded_block_count: int = proto.Field( + proto.INT32, + number=514082636, optional=True, ) - auto_delete: bool = proto.Field( - proto.BOOL, - number=464761403, + health_status: str = proto.Field( + proto.STRING, + number=380545845, optional=True, ) - boot: bool = proto.Field( - proto.BOOL, - number=3029746, + healthy_block_count: int = proto.Field( + proto.INT32, + number=223625019, optional=True, ) - device_name: str = proto.Field( + + +class AllocationResourceStatusSpecificSKUAllocation(proto.Message): + r"""Contains Properties set for the reservation. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + source_instance_template_id (str): + ID of the instance template used to populate + reservation properties. + + This field is a member of `oneof`_ ``_source_instance_template_id``. + utilizations (MutableMapping[str, int]): + Per service utilization breakdown. The Key is + the Google Cloud managed service name. + """ + + source_instance_template_id: str = proto.Field( proto.STRING, - number=67541716, + number=111196154, optional=True, ) - disk_encryption_key: "CustomerEncryptionKey" = proto.Field( - proto.MESSAGE, - number=271660677, - optional=True, - message="CustomerEncryptionKey", + utilizations: MutableMapping[str, int] = proto.MapField( + proto.STRING, + proto.INT64, + number=402495121, ) + + +class AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk( + proto.Message +): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + disk_size_gb (int): + Specifies the size of the disk in base-2 GB. + + This field is a member of `oneof`_ ``_disk_size_gb``. + interface (str): + Specifies the disk interface to use for + attaching this disk, which is either SCSI or + NVME. The default isSCSI. For performance + characteristics of SCSI over NVMe, seeLocal SSD + performance. Check the Interface enum for the + list of possible values. + + This field is a member of `oneof`_ ``_interface``. + """ + + class Interface(proto.Enum): + r"""Specifies the disk interface to use for attaching this disk, + which is either SCSI or NVME. The default isSCSI. + For performance characteristics of SCSI over NVMe, seeLocal SSD + performance. + + Values: + UNDEFINED_INTERFACE (0): + A value indicating that the enum field is not + set. + NVME (2408800): + No description available. + SCSI (2539686): + No description available. + """ + UNDEFINED_INTERFACE = 0 + NVME = 2408800 + SCSI = 2539686 + disk_size_gb: int = proto.Field( proto.INT64, number=316263735, optional=True, ) - force_attach: bool = proto.Field( - proto.BOOL, - number=142758425, + interface: str = proto.Field( + proto.STRING, + number=502623545, optional=True, ) - guest_os_features: MutableSequence["GuestOsFeature"] = proto.RepeatedField( + + +class AllocationSpecificSKUAllocationReservedInstanceProperties(proto.Message): + r"""Properties of the SKU instances being reserved. + Next ID: 9 + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + guest_accelerators (MutableSequence[google.cloud.compute_v1.types.AcceleratorConfig]): + Specifies accelerator type and count. + local_ssds (MutableSequence[google.cloud.compute_v1.types.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk]): + Specifies amount of local ssd to reserve with + each instance. The type of disk is local-ssd. + location_hint (str): + An opaque location hint used to place the + allocation close to other resources. + This field is for use by internal tools that use + the public API. + + This field is a member of `oneof`_ ``_location_hint``. + machine_type (str): + Specifies type of machine (name only) which has fixed number + of vCPUs and fixed amount of memory. This also includes + specifying custom machine type following + custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. + + This field is a member of `oneof`_ ``_machine_type``. + min_cpu_platform (str): + Minimum cpu platform the reservation. + + This field is a member of `oneof`_ ``_min_cpu_platform``. + """ + + guest_accelerators: MutableSequence["AcceleratorConfig"] = proto.RepeatedField( proto.MESSAGE, - number=79294545, - message="GuestOsFeature", - ) - index: int = proto.Field( - proto.INT32, - number=100346066, - optional=True, + number=463595119, + message="AcceleratorConfig", ) - initialize_params: "AttachedDiskInitializeParams" = proto.Field( + local_ssds: MutableSequence[ + "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk" + ] = proto.RepeatedField( proto.MESSAGE, - number=17697045, - optional=True, - message="AttachedDiskInitializeParams", + number=229951299, + message="AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk", ) - interface: str = proto.Field( + location_hint: str = proto.Field( proto.STRING, - number=502623545, + number=350519505, optional=True, ) - kind: str = proto.Field( + machine_type: str = proto.Field( proto.STRING, - number=3292052, + number=227711026, optional=True, ) - licenses: MutableSequence[str] = proto.RepeatedField( + min_cpu_platform: str = proto.Field( proto.STRING, - number=337642578, + number=242912759, + optional=True, ) - mode: str = proto.Field( - proto.STRING, - number=3357091, + + +class AllocationSpecificSKUReservation(proto.Message): + r"""This reservation type allows to pre allocate specific + instance configuration. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + assured_count (int): + Output only. [Output Only] Indicates how many instances are + actually usable currently. + + This field is a member of `oneof`_ ``_assured_count``. + count (int): + Specifies the number of resources that are + allocated. + + This field is a member of `oneof`_ ``_count``. + in_use_count (int): + Output only. [Output Only] Indicates how many instances are + in use. + + This field is a member of `oneof`_ ``_in_use_count``. + instance_properties (google.cloud.compute_v1.types.AllocationSpecificSKUAllocationReservedInstanceProperties): + The instance properties for the reservation. + + This field is a member of `oneof`_ ``_instance_properties``. + source_instance_template (str): + Specifies the instance template to create the + reservation. If you use this field, you must + exclude the instanceProperties field. + + This field is optional, and it can be a full or + partial URL. For example, the following are all + valid URLs to an instance template: + + + - + https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + - + projects/project/global/instanceTemplates/instanceTemplate + - + global/instanceTemplates/instanceTemplate + + This field is a member of `oneof`_ ``_source_instance_template``. + """ + + assured_count: int = proto.Field( + proto.INT64, + number=281197645, optional=True, ) - saved_state: str = proto.Field( - proto.STRING, - number=411587801, + count: int = proto.Field( + proto.INT64, + number=94851343, optional=True, ) - shielded_instance_initial_state: "InitialStateConfig" = proto.Field( - proto.MESSAGE, - number=192356867, + in_use_count: int = proto.Field( + proto.INT64, + number=493458877, optional=True, - message="InitialStateConfig", ) - source: str = proto.Field( + instance_properties: "AllocationSpecificSKUAllocationReservedInstanceProperties" = ( + proto.Field( + proto.MESSAGE, + number=215355165, + optional=True, + message="AllocationSpecificSKUAllocationReservedInstanceProperties", + ) + ) + source_instance_template: str = proto.Field( proto.STRING, - number=177235995, + number=332423616, optional=True, ) - type_: str = proto.Field( + + +class Allowed(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + I_p_protocol (str): + The IP protocol to which this rule applies. + The protocol type is required when creating a + firewall rule. This value can either be one of + the following well known protocol strings (tcp, + udp,icmp, esp, ah, ipip,sctp) or the IP protocol + number. + + This field is a member of `oneof`_ ``_I_p_protocol``. + ports (MutableSequence[str]): + An optional list of ports to which this rule applies. This + field is only applicable for the UDP or TCP protocol. Each + entry must be either an integer or a range. If not + specified, this rule applies to connections through any + port. + + Example inputs include: ["22"], ["80","443"], and + ["12345-12349"]. + """ + + I_p_protocol: str = proto.Field( proto.STRING, - number=3575610, + number=488094525, optional=True, ) + ports: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=106854418, + ) -class AttachedDiskInitializeParams(proto.Message): - r"""[Input Only] Specifies the parameters for a new disk that will be - created alongside the new instance. Use initialization parameters to - create boot disks or local SSDs attached to the new instance. This - field is persisted and returned for instanceTemplate and not - returned in the context of instance. This property is mutually - exclusive with the source property; you can only define one or the - other, but not both. +class AnnouncePublicAdvertisedPrefixeRequest(proto.Message): + r"""A request message for PublicAdvertisedPrefixes.Announce. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - architecture (str): - The architecture of the attached disk. Valid values are - arm64 or x86_64. Check the Architecture enum for the list of - possible values. + project (str): + Project ID for this request. + public_advertised_prefix (str): + The name of the public advertised prefix. It + should comply with RFC1035. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). - This field is a member of `oneof`_ ``_architecture``. - description (str): - An optional description. Provide this - property when creating the disk. + This field is a member of `oneof`_ ``_request_id``. + """ - This field is a member of `oneof`_ ``_description``. - disk_name (str): - Specifies the disk name. If not specified, - the default is to use the name of the instance. - If a disk with the same name already exists in - the given region, the existing disk is attached - to the new instance and the new disk is not - created. + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + public_advertised_prefix: str = proto.Field( + proto.STRING, + number=101874590, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) - This field is a member of `oneof`_ ``_disk_name``. - disk_size_gb (int): - Specifies the size of the disk in base-2 GB. - The size must be at least 10 GB. If you specify - a sourceImage, which is required for boot disks, - the default size is the size of the sourceImage. - If you do not specify a sourceImage, the default - disk size is 500 GB. - This field is a member of `oneof`_ ``_disk_size_gb``. - disk_type (str): - Specifies the disk type to use to create the - instance. If not specified, the default is - pd-standard, specified using the full URL. For - example: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /diskTypes/pd-standard For a full list of - acceptable values, see Persistent disk types. If - you specify this field when creating a VM, you - can provide either the full or partial URL. For - example, the following values are valid: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /diskTypes/diskType - - projects/project/zones/zone/diskTypes/diskType - - zones/zone/diskTypes/diskType If you specify - this field when creating or updating an instance - template or all-instances configuration, specify - the type of the disk, not the URL. For example: - pd-standard. +class AnnouncePublicDelegatedPrefixeRequest(proto.Message): + r"""A request message for PublicDelegatedPrefixes.Announce. See + the method description for details. - This field is a member of `oneof`_ ``_disk_type``. - enable_confidential_compute (bool): - Whether this disk is using confidential - compute mode. - This field is a member of `oneof`_ ``_enable_confidential_compute``. - labels (MutableMapping[str, str]): - Labels to apply to this disk. These can be - later modified by the disks.setLabels method. - This field is only applicable for persistent - disks. - licenses (MutableSequence[str]): - A list of publicly visible licenses. Reserved - for Google's use. - on_update_action (str): - Specifies which action to take on instance - update with this disk. Default is to use the - existing disk. Check the OnUpdateAction enum for - the list of possible values. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_on_update_action``. - provisioned_iops (int): - Indicates how many IOPS to provision for the - disk. This sets the number of I/O operations per - second that the disk can handle. Values must be - between 10,000 and 120,000. For more details, - see the Extreme persistent disk documentation. + Attributes: + project (str): + Project ID for this request. + public_delegated_prefix (str): + The name of the public delegated prefix. It + should comply with RFC1035. + region (str): + The name of theregion where + the public delegated prefix is located. It + should comply with RFC1035. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). - This field is a member of `oneof`_ ``_provisioned_iops``. - provisioned_throughput (int): - Indicates how much throughput to provision - for the disk. This sets the number of throughput - mb per second that the disk can handle. Values - must greater than or equal to 1. + This field is a member of `oneof`_ ``_request_id``. + """ - This field is a member of `oneof`_ ``_provisioned_throughput``. - replica_zones (MutableSequence[str]): - Required for each regional disk associated - with the instance. Specify the URLs of the zones - where the disk should be replicated to. You must - provide exactly two replica zones, and one zone - must be the same as the instance zone. - resource_manager_tags (MutableMapping[str, str]): - Resource manager tags to be bound to the disk. Tag keys and - values have the same definition as resource manager tags. - Keys must be in the format ``tagKeys/{tag_key_id}``, and - values are in the format ``tagValues/456``. The field is - ignored (both PUT & PATCH) when empty. - resource_policies (MutableSequence[str]): - Resource policies applied to this disk for - automatic snapshot creations. Specified using - the full or partial URL. For instance template, - specify only the resource policy name. - source_image (str): - The source image to create this disk. When - creating a new instance boot disk, one of - initializeParams.sourceImage or - initializeParams.sourceSnapshot or disks.source - is required. To create a disk with one of the - public operating system images, specify the - image by its family name. For example, specify - family/debian-9 to use the latest Debian 9 - image: - projects/debian-cloud/global/images/family/debian-9 - Alternatively, use a specific version of a - public operating system image: - projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD - To create a disk with a custom image that you - created, specify the image name in the following - format: global/images/my-custom-image You can - also specify a custom image by its image family, - which returns the latest version of the image in - that family. Replace the image name with - family/family-name: - global/images/family/my-image-family If the - source image is deleted later, this field will - not be set. - - This field is a member of `oneof`_ ``_source_image``. - source_image_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - The customer-supplied encryption key of the - source image. Required if the source image is - protected by a customer-supplied encryption key. - InstanceTemplate and InstancePropertiesPatch do - not store customer-supplied encryption keys, so - you cannot create disks for instances in a - managed instance group if the source images are - encrypted with your own keys. - - This field is a member of `oneof`_ ``_source_image_encryption_key``. - source_snapshot (str): - The source snapshot to create this disk. When - creating a new instance boot disk, one of - initializeParams.sourceSnapshot or - initializeParams.sourceImage or disks.source is - required. To create a disk with a snapshot that - you created, specify the snapshot name in the - following format: global/snapshots/my-backup If - the source snapshot is deleted later, this field - will not be set. Note: You cannot create VMs in - bulk using a snapshot as the source. Use an - image instead when you create VMs using the bulk - insert method. - - This field is a member of `oneof`_ ``_source_snapshot``. - source_snapshot_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - The customer-supplied encryption key of the - source snapshot. - - This field is a member of `oneof`_ ``_source_snapshot_encryption_key``. - storage_pool (str): - The storage pool in which the new disk is - created. You can provide this as a partial or - full URL to the resource. For example, the - following are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /storagePools/storagePool - - projects/project/zones/zone/storagePools/storagePool - - zones/zone/storagePools/storagePool - - This field is a member of `oneof`_ ``_storage_pool``. - """ - - class Architecture(proto.Enum): - r"""The architecture of the attached disk. Valid values are arm64 or - x86_64. - - Values: - UNDEFINED_ARCHITECTURE (0): - A value indicating that the enum field is not - set. - ARCHITECTURE_UNSPECIFIED (394750507): - Default value indicating Architecture is not - set. - ARM64 (62547450): - Machines with architecture ARM64 - X86_64 (425300551): - Machines with architecture X86_64 - """ - UNDEFINED_ARCHITECTURE = 0 - ARCHITECTURE_UNSPECIFIED = 394750507 - ARM64 = 62547450 - X86_64 = 425300551 - - class OnUpdateAction(proto.Enum): - r"""Specifies which action to take on instance update with this - disk. Default is to use the existing disk. - - Values: - UNDEFINED_ON_UPDATE_ACTION (0): - A value indicating that the enum field is not - set. - RECREATE_DISK (494767853): - Always recreate the disk. - RECREATE_DISK_IF_SOURCE_CHANGED (398099712): - Recreate the disk if source (image, snapshot) - of this disk is different from source of - existing disk. - USE_EXISTING_DISK (232682233): - Use the existing disk, this is the default - behaviour. - """ - UNDEFINED_ON_UPDATE_ACTION = 0 - RECREATE_DISK = 494767853 - RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 - USE_EXISTING_DISK = 232682233 - - architecture: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=302803283, - optional=True, + number=227560217, ) - description: str = proto.Field( + public_delegated_prefix: str = proto.Field( proto.STRING, - number=422937596, - optional=True, + number=204238440, ) - disk_name: str = proto.Field( + region: str = proto.Field( proto.STRING, - number=92807149, - optional=True, + number=138946292, ) - disk_size_gb: int = proto.Field( - proto.INT64, - number=316263735, + request_id: str = proto.Field( + proto.STRING, + number=37109963, optional=True, ) - disk_type: str = proto.Field( + + +class ApplyUpdatesToInstancesInstanceGroupManagerRequest(proto.Message): + r"""A request message for + InstanceGroupManagers.ApplyUpdatesToInstances. See the method + description for details. + + Attributes: + instance_group_manager (str): + The name of the managed instance group, + should conform to RFC1035. + instance_group_managers_apply_updates_request_resource (google.cloud.compute_v1.types.InstanceGroupManagersApplyUpdatesRequest): + The body resource for this request + project (str): + Project ID for this request. + zone (str): + The name of thezone + where the managed instance group is located. + Should conform to RFC1035. + """ + + instance_group_manager: str = proto.Field( proto.STRING, - number=93009052, - optional=True, + number=249363395, ) - enable_confidential_compute: bool = proto.Field( - proto.BOOL, - number=102135228, - optional=True, + instance_group_managers_apply_updates_request_resource: "InstanceGroupManagersApplyUpdatesRequest" = proto.Field( + proto.MESSAGE, + number=259242835, + message="InstanceGroupManagersApplyUpdatesRequest", ) - labels: MutableMapping[str, str] = proto.MapField( + project: str = proto.Field( proto.STRING, + number=227560217, + ) + zone: str = proto.Field( proto.STRING, - number=500195327, + number=3744684, ) - licenses: MutableSequence[str] = proto.RepeatedField( + + +class ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest(proto.Message): + r"""A request message for + RegionInstanceGroupManagers.ApplyUpdatesToInstances. See the + method description for details. + + Attributes: + instance_group_manager (str): + The name of the managed instance group, + should conform to RFC1035. + project (str): + Project ID for this request. + region (str): + Name of the region scoping this request, + should conform to RFC1035. + region_instance_group_managers_apply_updates_request_resource (google.cloud.compute_v1.types.RegionInstanceGroupManagersApplyUpdatesRequest): + The body resource for this request + """ + + instance_group_manager: str = proto.Field( proto.STRING, - number=337642578, + number=249363395, ) - on_update_action: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=202451980, - optional=True, + number=227560217, ) - provisioned_iops: int = proto.Field( - proto.INT64, - number=186769108, - optional=True, + region: str = proto.Field( + proto.STRING, + number=138946292, ) - provisioned_throughput: int = proto.Field( - proto.INT64, - number=526524181, + region_instance_group_managers_apply_updates_request_resource: "RegionInstanceGroupManagersApplyUpdatesRequest" = proto.Field( + proto.MESSAGE, + number=76248318, + message="RegionInstanceGroupManagersApplyUpdatesRequest", + ) + + +class AttachDiskInstanceRequest(proto.Message): + r"""A request message for Instances.AttachDisk. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + attached_disk_resource (google.cloud.compute_v1.types.AttachedDisk): + The body resource for this request + force_attach (bool): + Whether to force attach the regional disk + even if it's currently attached to another + instance. If you try to force attach a zonal + disk to an instance, you will receive an error. + + This field is a member of `oneof`_ ``_force_attach``. + instance (str): + The instance name for this request. + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + zone (str): + The name of the zone for this request. + """ + + attached_disk_resource: "AttachedDisk" = proto.Field( + proto.MESSAGE, + number=90605845, + message="AttachedDisk", + ) + force_attach: bool = proto.Field( + proto.BOOL, + number=142758425, optional=True, ) - replica_zones: MutableSequence[str] = proto.RepeatedField( + instance: str = proto.Field( proto.STRING, - number=48438272, + number=18257045, ) - resource_manager_tags: MutableMapping[str, str] = proto.MapField( - proto.STRING, + project: str = proto.Field( proto.STRING, - number=377671164, + number=227560217, ) - resource_policies: MutableSequence[str] = proto.RepeatedField( + request_id: str = proto.Field( proto.STRING, - number=22220385, + number=37109963, + optional=True, ) - source_image: str = proto.Field( + zone: str = proto.Field( proto.STRING, - number=50443319, - optional=True, + number=3744684, ) - source_image_encryption_key: "CustomerEncryptionKey" = proto.Field( + + +class AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest(proto.Message): + r"""A request message for + GlobalNetworkEndpointGroups.AttachNetworkEndpoints. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + global_network_endpoint_groups_attach_endpoints_request_resource (google.cloud.compute_v1.types.GlobalNetworkEndpointGroupsAttachEndpointsRequest): + The body resource for this request + network_endpoint_group (str): + The name of the network endpoint group where + you are attaching network endpoints to. It + should comply with RFC1035. + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + """ + + global_network_endpoint_groups_attach_endpoints_request_resource: "GlobalNetworkEndpointGroupsAttachEndpointsRequest" = proto.Field( proto.MESSAGE, - number=381503659, - optional=True, - message="CustomerEncryptionKey", + number=30691563, + message="GlobalNetworkEndpointGroupsAttachEndpointsRequest", ) - source_snapshot: str = proto.Field( + network_endpoint_group: str = proto.Field( proto.STRING, - number=126061928, - optional=True, + number=433907078, ) - source_snapshot_encryption_key: "CustomerEncryptionKey" = proto.Field( - proto.MESSAGE, - number=303679322, - optional=True, - message="CustomerEncryptionKey", + project: str = proto.Field( + proto.STRING, + number=227560217, ) - storage_pool: str = proto.Field( + request_id: str = proto.Field( proto.STRING, - number=360473440, + number=37109963, optional=True, ) -class AuditConfig(proto.Message): - r"""Specifies the audit configuration for a service. The configuration - determines which permission types are logged, and what identities, - if any, are exempted from logging. An AuditConfig must have one or - more AuditLogConfigs. If there are AuditConfigs for both - ``allServices`` and a specific service, the union of the two - AuditConfigs is used for that service: the log_types specified in - each AuditConfig are enabled, and the exempted_members in each - AuditLogConfig are exempted. Example Policy with multiple - AuditConfigs: { "audit_configs": [ { "service": "allServices", - "audit_log_configs": [ { "log_type": "DATA_READ", - "exempted_members": [ "user:jose@example.com" ] }, { "log_type": - "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": - "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": - "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ - "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy - enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also - exempts ``jose@example.com`` from DATA_READ logging, and - ``aliya@example.com`` from DATA_WRITE logging. +class AttachNetworkEndpointsNetworkEndpointGroupRequest(proto.Message): + r"""A request message for + NetworkEndpointGroups.AttachNetworkEndpoints. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - audit_log_configs (MutableSequence[google.cloud.compute_v1.types.AuditLogConfig]): - The configuration for logging of each type of - permission. - exempted_members (MutableSequence[str]): - - service (str): - Specifies a service that will be enabled for audit logging. - For example, ``storage.googleapis.com``, - ``cloudsql.googleapis.com``. ``allServices`` is a special - value that covers all services. + network_endpoint_group (str): + The name of the network endpoint group where + you are attaching network endpoints to. It + should comply with RFC1035. + network_endpoint_groups_attach_endpoints_request_resource (google.cloud.compute_v1.types.NetworkEndpointGroupsAttachEndpointsRequest): + The body resource for this request + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). - This field is a member of `oneof`_ ``_service``. + This field is a member of `oneof`_ ``_request_id``. + zone (str): + The name of the zone where + the network endpoint group is located. It should + comply with RFC1035. """ - audit_log_configs: MutableSequence["AuditLogConfig"] = proto.RepeatedField( + network_endpoint_group: str = proto.Field( + proto.STRING, + number=433907078, + ) + network_endpoint_groups_attach_endpoints_request_resource: "NetworkEndpointGroupsAttachEndpointsRequest" = proto.Field( proto.MESSAGE, - number=488420626, - message="AuditLogConfig", + number=531079, + message="NetworkEndpointGroupsAttachEndpointsRequest", ) - exempted_members: MutableSequence[str] = proto.RepeatedField( + project: str = proto.Field( proto.STRING, - number=232615576, + number=227560217, ) - service: str = proto.Field( + request_id: str = proto.Field( proto.STRING, - number=373540533, + number=37109963, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class AuditLogConfig(proto.Message): - r"""Provides the configuration for logging a type of permissions. - Example: { "audit_log_configs": [ { "log_type": "DATA_READ", - "exempted_members": [ "user:jose@example.com" ] }, { "log_type": - "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' - logging, while exempting jose@example.com from DATA_READ logging. +class AttachNetworkEndpointsRegionNetworkEndpointGroupRequest(proto.Message): + r"""A request message for + RegionNetworkEndpointGroups.AttachNetworkEndpoints. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - exempted_members (MutableSequence[str]): - Specifies the identities that do not cause - logging for this type of permission. Follows the - same format of Binding.members. - ignore_child_exemptions (bool): - - This field is a member of `oneof`_ ``_ignore_child_exemptions``. - log_type (str): - The log type that this config enables. - Check the LogType enum for the list of possible - values. + network_endpoint_group (str): + The name of the network endpoint group where + you are attaching network endpoints to. It + should comply with RFC1035. + project (str): + Project ID for this request. + region (str): + The name of the region where + you want to create the network endpoint group. + It should comply with RFC1035. + region_network_endpoint_groups_attach_endpoints_request_resource (google.cloud.compute_v1.types.RegionNetworkEndpointGroupsAttachEndpointsRequest): + The body resource for this request + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). - This field is a member of `oneof`_ ``_log_type``. + This field is a member of `oneof`_ ``_request_id``. """ - class LogType(proto.Enum): - r"""The log type that this config enables. - - Values: - UNDEFINED_LOG_TYPE (0): - A value indicating that the enum field is not - set. - ADMIN_READ (128951462): - Admin reads. Example: CloudIAM getIamPolicy - DATA_READ (305224971): - Data reads. Example: CloudSQL Users list - DATA_WRITE (340181738): - Data writes. Example: CloudSQL Users create - LOG_TYPE_UNSPECIFIED (154527053): - Default case. Should never be this. - """ - UNDEFINED_LOG_TYPE = 0 - ADMIN_READ = 128951462 - DATA_READ = 305224971 - DATA_WRITE = 340181738 - LOG_TYPE_UNSPECIFIED = 154527053 - - exempted_members: MutableSequence[str] = proto.RepeatedField( + network_endpoint_group: str = proto.Field( proto.STRING, - number=232615576, + number=433907078, ) - ignore_child_exemptions: bool = proto.Field( - proto.BOOL, - number=70141850, - optional=True, + project: str = proto.Field( + proto.STRING, + number=227560217, ) - log_type: str = proto.Field( + region: str = proto.Field( proto.STRING, - number=403115861, + number=138946292, + ) + region_network_endpoint_groups_attach_endpoints_request_resource: "RegionNetworkEndpointGroupsAttachEndpointsRequest" = proto.Field( + proto.MESSAGE, + number=334986492, + message="RegionNetworkEndpointGroupsAttachEndpointsRequest", + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, optional=True, ) -class Autoscaler(proto.Message): - r"""Represents an Autoscaler resource. Google Compute Engine has two - Autoscaler resources: \* - `Zonal `__ \* - `Regional `__ Use - autoscalers to automatically add or delete instances from a managed - instance group according to your defined autoscaling policy. For - more information, read Autoscaling Groups of Instances. For zonal - managed instance groups resource, use the autoscaler resource. For - regional managed instance groups, use the regionAutoscalers - resource. - +class AttachedDisk(proto.Message): + r"""An instance-attached disk resource. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - autoscaling_policy (google.cloud.compute_v1.types.AutoscalingPolicy): - The configuration parameters for the - autoscaling algorithm. You can define one or - more signals for an autoscaler: cpuUtilization, - customMetricUtilizations, and - loadBalancingUtilization. If none of these are - specified, the default will be to autoscale - based on cpuUtilization to 0.6 or 60%. + architecture (str): + Output only. [Output Only] The architecture of the attached + disk. Valid values are ARM64 or X86_64. Check the + Architecture enum for the list of possible values. - This field is a member of `oneof`_ ``_autoscaling_policy``. - creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + This field is a member of `oneof`_ ``_architecture``. + auto_delete (bool): + Specifies whether the disk will be + auto-deleted when the instance is deleted (but + not when the disk is detached from the + instance). - This field is a member of `oneof`_ ``_creation_timestamp``. - description (str): - An optional description of this resource. - Provide this property when you create the - resource. + This field is a member of `oneof`_ ``_auto_delete``. + boot (bool): + Indicates that this is a boot disk. The + virtual machine will use the first partition of + the disk for its root filesystem. - This field is a member of `oneof`_ ``_description``. - id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + This field is a member of `oneof`_ ``_boot``. + device_name (str): + Specifies a unique device name of your choice that is + reflected into the/dev/disk/by-id/google-\* tree of a Linux + operating system running within the instance. This name can + be used to reference the device for mounting, resizing, and + so on, from within the instance. - This field is a member of `oneof`_ ``_id``. - kind (str): - [Output Only] Type of the resource. Always - compute#autoscaler for autoscalers. + If not specified, the server chooses a default device name + to apply to this disk, in the form persistent-disk-x, where + x is a number assigned by Google Compute Engine. This field + is only applicable for persistent disks. - This field is a member of `oneof`_ ``_kind``. - name (str): - Name of the resource. Provided by the client when the - resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 - characters long and match the regular expression - ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first - character must be a lowercase letter, and all following - characters must be a dash, lowercase letter, or digit, - except the last character, which cannot be a dash. + This field is a member of `oneof`_ ``_device_name``. + disk_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): + Encrypts or decrypts a disk using + acustomer-supplied encryption key. + + If you are creating a new disk, this field + encrypts the new disk using an encryption key + that you provide. If you are attaching an + existing disk that is already encrypted, this + field decrypts the disk using the + customer-supplied encryption key. - This field is a member of `oneof`_ ``_name``. - recommended_size (int): - [Output Only] Target recommended MIG size (number of - instances) computed by autoscaler. Autoscaler calculates the - recommended MIG size even when the autoscaling policy mode - is different from ON. This field is empty when autoscaler is - not connected to an existing managed instance group or - autoscaler did not generate its prediction. + If you encrypt a disk using a customer-supplied + key, you must provide the same key again when + you attempt to use this resource at a later + time. For example, you must provide the key when + you create a snapshot or an image from the disk + or when you attach the disk to a virtual machine + instance. - This field is a member of `oneof`_ ``_recommended_size``. - region (str): - [Output Only] URL of the region where the instance group - resides (for autoscalers living in regional scope). + If you do not provide an encryption key, then + the disk will be encrypted using an + automatically generated key and you do not need + to provide a key to use the disk later. - This field is a member of `oneof`_ ``_region``. - scaling_schedule_status (MutableMapping[str, google.cloud.compute_v1.types.ScalingScheduleStatus]): - [Output Only] Status information of existing scaling - schedules. - self_link (str): - [Output Only] Server-defined URL for the resource. + Note: - This field is a member of `oneof`_ ``_self_link``. - status (str): - [Output Only] The status of the autoscaler configuration. - Current set of possible values: - PENDING: Autoscaler - backend hasn't read new/updated configuration. - DELETING: - Configuration is being deleted. - ACTIVE: Configuration is - acknowledged to be effective. Some warnings might be present - in the statusDetails field. - ERROR: Configuration has - errors. Actionable for users. Details are present in the - statusDetails field. New values might be added in the - future. Check the Status enum for the list of possible - values. + Instance templates do not storecustomer-supplied + encryption keys, so you cannot use your own keys + to encrypt disks in amanaged instance group. - This field is a member of `oneof`_ ``_status``. - status_details (MutableSequence[google.cloud.compute_v1.types.AutoscalerStatusDetails]): - [Output Only] Human-readable details about the current state - of the autoscaler. Read the documentation for Commonly - returned status messages for examples of status messages you - might encounter. - target (str): - URL of the managed instance group that this - autoscaler will scale. This field is required - when creating an autoscaler. + You cannot create VMs that have disks with + customer-supplied keys using the bulk + insert method. - This field is a member of `oneof`_ ``_target``. - zone (str): - [Output Only] URL of the zone where the instance group - resides (for autoscalers living in zonal scope). + This field is a member of `oneof`_ ``_disk_encryption_key``. + disk_size_gb (int): + The size of the disk in GB. - This field is a member of `oneof`_ ``_zone``. + This field is a member of `oneof`_ ``_disk_size_gb``. + force_attach (bool): + [Input Only] Whether to force attach the regional disk even + if it's currently attached to another instance. If you try + to force attach a zonal disk to an instance, you will + receive an error. + + This field is a member of `oneof`_ ``_force_attach``. + guest_os_features (MutableSequence[google.cloud.compute_v1.types.GuestOsFeature]): + A list of features to enable on the guest + operating system. Applicable only for bootable + images. Read Enabling guest operating system + features to see a list of available options. + index (int): + Output only. [Output Only] A zero-based index to this disk, + where 0 is reserved for the boot disk. If you have many + disks attached to an instance, each disk would have a unique + index number. + + This field is a member of `oneof`_ ``_index``. + initialize_params (google.cloud.compute_v1.types.AttachedDiskInitializeParams): + [Input Only] Specifies the parameters for a new disk that + will be created alongside the new instance. Use + initialization parameters to create boot disks or local SSDs + attached to the new instance. + + This property is mutually exclusive with the source + property; you can only define one or the other, but not + both. + + This field is a member of `oneof`_ ``_initialize_params``. + interface (str): + Specifies the disk interface to use for + attaching this disk, which is either SCSI or + NVME. For most machine types, the default is + SCSI. Local SSDs can use either NVME or SCSI. In + certain configurations, persistent disks can use + NVMe. For more information, seeAbout + persistent disks. + Check the Interface enum for the list of + possible values. + + This field is a member of `oneof`_ ``_interface``. + kind (str): + Output only. [Output Only] Type of the resource. + Alwayscompute#attachedDisk for attached disks. + + This field is a member of `oneof`_ ``_kind``. + licenses (MutableSequence[str]): + Output only. [Output Only] Any valid publicly visible + licenses. + mode (str): + The mode in which to attach this disk, either READ_WRITE + orREAD_ONLY. If not specified, the default is to attach the + disk in READ_WRITE mode. Check the Mode enum for the list of + possible values. + + This field is a member of `oneof`_ ``_mode``. + saved_state (str): + Output only. For LocalSSD disks on VM Instances in STOPPED + or SUSPENDED state, this field is set to PRESERVED if the + LocalSSD data has been saved to a persistent location by + customer request. (see the discard_local_ssd option on + Stop/Suspend). Read-only in the api. Check the SavedState + enum for the list of possible values. + + This field is a member of `oneof`_ ``_saved_state``. + shielded_instance_initial_state (google.cloud.compute_v1.types.InitialStateConfig): + Output only. [Output Only] shielded vm initial state stored + on disk + + This field is a member of `oneof`_ ``_shielded_instance_initial_state``. + source (str): + Specifies a valid partial or full URL to an + existing Persistent Disk resource. When creating + a new instance boot disk, one + ofinitializeParams.sourceImage + orinitializeParams.sourceSnapshot or + disks.source is required. + + If desired, you can also attach existing + non-root persistent disks using this property. + This field is only applicable for persistent + disks. + + Note that for InstanceTemplate, specify the disk + name for zonal disk, and the URL for regional + disk. + + This field is a member of `oneof`_ ``_source``. + type_ (str): + Specifies the type of the disk, either + SCRATCH orPERSISTENT. If not specified, the + default isPERSISTENT. Check the Type enum for + the list of possible values. + + This field is a member of `oneof`_ ``_type``. """ - class Status(proto.Enum): - r"""[Output Only] The status of the autoscaler configuration. Current - set of possible values: - PENDING: Autoscaler backend hasn't read - new/updated configuration. - DELETING: Configuration is being - deleted. - ACTIVE: Configuration is acknowledged to be effective. - Some warnings might be present in the statusDetails field. - ERROR: - Configuration has errors. Actionable for users. Details are present - in the statusDetails field. New values might be added in the future. + class Architecture(proto.Enum): + r"""Output only. [Output Only] The architecture of the attached disk. + Valid values are ARM64 or X86_64. Values: - UNDEFINED_STATUS (0): + UNDEFINED_ARCHITECTURE (0): A value indicating that the enum field is not set. - ACTIVE (314733318): - Configuration is acknowledged to be effective - DELETING (528602024): - Configuration is being deleted - ERROR (66247144): - Configuration has errors. Actionable for - users. - PENDING (35394935): - Autoscaler backend hasn't read new/updated - configuration + ARCHITECTURE_UNSPECIFIED (394750507): + Default value indicating Architecture is not + set. + ARM64 (62547450): + Machines with architecture ARM64 + X86_64 (425300551): + Machines with architecture X86_64 """ - UNDEFINED_STATUS = 0 - ACTIVE = 314733318 - DELETING = 528602024 - ERROR = 66247144 - PENDING = 35394935 + UNDEFINED_ARCHITECTURE = 0 + ARCHITECTURE_UNSPECIFIED = 394750507 + ARM64 = 62547450 + X86_64 = 425300551 - autoscaling_policy: "AutoscalingPolicy" = proto.Field( - proto.MESSAGE, - number=221950041, + class Interface(proto.Enum): + r"""Specifies the disk interface to use for attaching this disk, + which is either SCSI or NVME. For most machine types, the + default is SCSI. Local SSDs can use either NVME or SCSI. In + certain configurations, persistent disks can use NVMe. For more + information, seeAbout + persistent disks. + + Values: + UNDEFINED_INTERFACE (0): + A value indicating that the enum field is not + set. + NVME (2408800): + No description available. + SCSI (2539686): + No description available. + """ + UNDEFINED_INTERFACE = 0 + NVME = 2408800 + SCSI = 2539686 + + class Mode(proto.Enum): + r"""The mode in which to attach this disk, either READ_WRITE + orREAD_ONLY. If not specified, the default is to attach the disk in + READ_WRITE mode. + + Values: + UNDEFINED_MODE (0): + A value indicating that the enum field is not + set. + READ_ONLY (91950261): + Attaches this disk in read-only mode. + Multiple virtual machines can use a disk in + read-only mode at a time. + READ_WRITE (173607894): + *[Default]* Attaches this disk in read-write mode. Only one + virtual machine at a time can be attached to a disk in + read-write mode. + """ + UNDEFINED_MODE = 0 + READ_ONLY = 91950261 + READ_WRITE = 173607894 + + class SavedState(proto.Enum): + r"""Output only. For LocalSSD disks on VM Instances in STOPPED or + SUSPENDED state, this field is set to PRESERVED if the LocalSSD data + has been saved to a persistent location by customer request. (see + the discard_local_ssd option on Stop/Suspend). Read-only in the api. + + Values: + UNDEFINED_SAVED_STATE (0): + A value indicating that the enum field is not + set. + DISK_SAVED_STATE_UNSPECIFIED (391290831): + *[Default]* Disk state has not been preserved. + PRESERVED (254159736): + Disk state has been preserved. + """ + UNDEFINED_SAVED_STATE = 0 + DISK_SAVED_STATE_UNSPECIFIED = 391290831 + PRESERVED = 254159736 + + class Type(proto.Enum): + r"""Specifies the type of the disk, either SCRATCH orPERSISTENT. + If not specified, the default isPERSISTENT. + + Values: + UNDEFINED_TYPE (0): + A value indicating that the enum field is not + set. + PERSISTENT (460683927): + No description available. + SCRATCH (496778970): + No description available. + """ + UNDEFINED_TYPE = 0 + PERSISTENT = 460683927 + SCRATCH = 496778970 + + architecture: str = proto.Field( + proto.STRING, + number=302803283, optional=True, - message="AutoscalingPolicy", ) - creation_timestamp: str = proto.Field( - proto.STRING, - number=30525366, + auto_delete: bool = proto.Field( + proto.BOOL, + number=464761403, optional=True, ) - description: str = proto.Field( + boot: bool = proto.Field( + proto.BOOL, + number=3029746, + optional=True, + ) + device_name: str = proto.Field( proto.STRING, - number=422937596, + number=67541716, optional=True, ) - id: int = proto.Field( - proto.UINT64, - number=3355, + disk_encryption_key: "CustomerEncryptionKey" = proto.Field( + proto.MESSAGE, + number=271660677, optional=True, + message="CustomerEncryptionKey", ) - kind: str = proto.Field( - proto.STRING, - number=3292052, + disk_size_gb: int = proto.Field( + proto.INT64, + number=316263735, optional=True, ) - name: str = proto.Field( - proto.STRING, - number=3373707, + force_attach: bool = proto.Field( + proto.BOOL, + number=142758425, optional=True, ) - recommended_size: int = proto.Field( + guest_os_features: MutableSequence["GuestOsFeature"] = proto.RepeatedField( + proto.MESSAGE, + number=79294545, + message="GuestOsFeature", + ) + index: int = proto.Field( proto.INT32, - number=257915749, + number=100346066, optional=True, ) - region: str = proto.Field( + initialize_params: "AttachedDiskInitializeParams" = proto.Field( + proto.MESSAGE, + number=17697045, + optional=True, + message="AttachedDiskInitializeParams", + ) + interface: str = proto.Field( proto.STRING, - number=138946292, + number=502623545, optional=True, ) - scaling_schedule_status: MutableMapping[ - str, "ScalingScheduleStatus" - ] = proto.MapField( + kind: str = proto.Field( proto.STRING, - proto.MESSAGE, - number=465950178, - message="ScalingScheduleStatus", + number=3292052, + optional=True, ) - self_link: str = proto.Field( + licenses: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=456214797, + number=337642578, + ) + mode: str = proto.Field( + proto.STRING, + number=3357091, optional=True, ) - status: str = proto.Field( + saved_state: str = proto.Field( proto.STRING, - number=181260274, + number=411587801, optional=True, ) - status_details: MutableSequence["AutoscalerStatusDetails"] = proto.RepeatedField( + shielded_instance_initial_state: "InitialStateConfig" = proto.Field( proto.MESSAGE, - number=363353845, - message="AutoscalerStatusDetails", + number=192356867, + optional=True, + message="InitialStateConfig", ) - target: str = proto.Field( + source: str = proto.Field( proto.STRING, - number=192835985, + number=177235995, optional=True, ) - zone: str = proto.Field( + type_: str = proto.Field( proto.STRING, - number=3744684, + number=3575610, optional=True, ) -class AutoscalerAggregatedList(proto.Message): - r""" +class AttachedDiskInitializeParams(proto.Message): + r"""[Input Only] Specifies the parameters for a new disk that will be + created alongside the new instance. Use initialization parameters to + create boot disks or local SSDs attached to the new instance. + + This field is persisted and returned for instanceTemplate and not + returned in the context of instance. + + This property is mutually exclusive with the source property; you + can only define one or the other, but not both. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + architecture (str): + The architecture of the attached disk. Valid values are + arm64 or x86_64. Check the Architecture enum for the list of + possible values. - This field is a member of `oneof`_ ``_id``. - items (MutableMapping[str, google.cloud.compute_v1.types.AutoscalersScopedList]): - A list of AutoscalersScopedList resources. - kind (str): - [Output Only] Type of resource. Always - compute#autoscalerAggregatedList for aggregated lists of - autoscalers. + This field is a member of `oneof`_ ``_architecture``. + description (str): + An optional description. Provide this + property when creating the disk. - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + This field is a member of `oneof`_ ``_description``. + disk_name (str): + Specifies the disk name. If not specified, + the default is to use the name of the instance. + If a disk with the same name already exists in + the given region, the existing disk is attached + to the new instance and the new disk is not + created. - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. + This field is a member of `oneof`_ ``_disk_name``. + disk_size_gb (int): + Specifies the size of the disk in base-2 GB. + The size must be at least 10 GB. If you specify + a sourceImage, which is required for boot disks, + the default size is the size of the sourceImage. + If you do not specify a sourceImage, the default + disk size is 500 GB. - This field is a member of `oneof`_ ``_self_link``. - unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. end_interface: - MixerListResponseWithEtagBuilder - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + This field is a member of `oneof`_ ``_disk_size_gb``. + disk_type (str): + Specifies the disk type to use to create the + instance. If not specified, the default is + pd-standard, specified using the full URL. For + example: - This field is a member of `oneof`_ ``_warning``. - """ + https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard - @property - def raw_page(self): - return self + For a full list of acceptable values, + seePersistent disk types. If you specify this + field when creating a VM, you can provide either + the full or partial URL. For example, the + following values are valid: - id: str = proto.Field( - proto.STRING, - number=3355, - optional=True, - ) - items: MutableMapping[str, "AutoscalersScopedList"] = proto.MapField( - proto.STRING, - proto.MESSAGE, - number=100526016, - message="AutoscalersScopedList", - ) - kind: str = proto.Field( - proto.STRING, - number=3292052, - optional=True, - ) - next_page_token: str = proto.Field( - proto.STRING, - number=79797525, - optional=True, - ) - self_link: str = proto.Field( - proto.STRING, - number=456214797, - optional=True, - ) - unreachables: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=243372063, - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, - optional=True, - message="Warning", - ) + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType + - + projects/project/zones/zone/diskTypes/diskType + - zones/zone/diskTypes/diskType -class AutoscalerList(proto.Message): - r"""Contains a list of Autoscaler resources. + If you specify this field when creating or + updating an instance template or all-instances + configuration, specify the type of the disk, not + the URL. For example: pd-standard. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_disk_type``. + enable_confidential_compute (bool): + Whether this disk is using confidential + compute mode. - Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + This field is a member of `oneof`_ ``_enable_confidential_compute``. + labels (MutableMapping[str, str]): + Labels to apply to this disk. These can be + later modified by thedisks.setLabels method. + This field is only applicable for persistent + disks. + licenses (MutableSequence[str]): + A list of publicly visible licenses. Reserved + for Google's use. + on_update_action (str): + Specifies which action to take on instance + update with this disk. Default is to use the + existing disk. Check the OnUpdateAction enum for + the list of possible values. - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.Autoscaler]): - A list of Autoscaler resources. - kind (str): - [Output Only] Type of resource. Always - compute#autoscalerList for lists of autoscalers. + This field is a member of `oneof`_ ``_on_update_action``. + provisioned_iops (int): + Indicates how many IOPS to provision for the + disk. This sets the number of I/O operations per + second that the disk can handle. Values must be + between 10,000 and 120,000. For more details, + see theExtreme persistent disk documentation. - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + This field is a member of `oneof`_ ``_provisioned_iops``. + provisioned_throughput (int): + Indicates how much throughput to provision + for the disk. This sets the number of throughput + mb per second that the disk can handle. Values + must greater than or equal to 1. - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. + This field is a member of `oneof`_ ``_provisioned_throughput``. + replica_zones (MutableSequence[str]): + Required for each regional disk associated + with the instance. Specify the URLs of the zones + where the disk should be replicated to. You must + provide exactly two replica zones, and one zone + must be the same as the instance zone. + resource_manager_tags (MutableMapping[str, str]): + Resource manager tags to be bound to the disk. Tag keys and + values have the same definition as resource manager tags. + Keys and values can be either in numeric format, such as + ``tagKeys/{tag_key_id}`` and ``tagValues/456`` or in + namespaced format such as + ``{org_id|project_id}/{tag_key_short_name}`` and + ``{tag_value_short_name}``. The field is ignored (both PUT & + PATCH) when empty. + resource_policies (MutableSequence[str]): + Resource policies applied to this disk for + automatic snapshot creations. Specified using + the full or partial URL. For instance template, + specify only the resource policy name. + source_image (str): + The source image to create this disk. When + creating a new instance boot disk, one of + initializeParams.sourceImage + orinitializeParams.sourceSnapshot or + disks.source is required. - This field is a member of `oneof`_ ``_self_link``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + To create a disk with one of the public + operating system images, specify the image by + its family name. For example, + specifyfamily/debian-9 to use the latest Debian + 9 image: - This field is a member of `oneof`_ ``_warning``. - """ + projects/debian-cloud/global/images/family/debian-9 - @property - def raw_page(self): - return self + Alternatively, use a specific version of a + public operating system image: - id: str = proto.Field( - proto.STRING, - number=3355, - optional=True, - ) - items: MutableSequence["Autoscaler"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="Autoscaler", - ) - kind: str = proto.Field( - proto.STRING, - number=3292052, - optional=True, - ) - next_page_token: str = proto.Field( - proto.STRING, - number=79797525, - optional=True, - ) - self_link: str = proto.Field( - proto.STRING, - number=456214797, - optional=True, - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, - optional=True, - message="Warning", - ) + projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + To create a disk with a custom image that you + created, specify the image name in the following + format: -class AutoscalerStatusDetails(proto.Message): - r""" + global/images/my-custom-image - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + You can also specify a custom image by its image + family, which returns the latest version of the + image in that family. Replace the image name + with family/family-name: - Attributes: - message (str): - The status message. + global/images/family/my-image-family - This field is a member of `oneof`_ ``_message``. - type_ (str): - The type of error, warning, or notice returned. Current set - of possible values: - ALL_INSTANCES_UNHEALTHY (WARNING): All - instances in the instance group are unhealthy (not in - RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): - There is no backend service attached to the instance group. - - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler - recommends a size greater than maxNumReplicas. - - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom - metric samples are not exported often enough to be a - credible base for autoscaling. - CUSTOM_METRIC_INVALID - (ERROR): The custom metric that was specified does not exist - or does not have the necessary labels. - MIN_EQUALS_MAX - (WARNING): The minNumReplicas is equal to maxNumReplicas. - This means the autoscaler cannot add or remove instances - from the instance group. - MISSING_CUSTOM_METRIC_DATA_POINTS - (WARNING): The autoscaler did not receive any data from the - custom metric configured for autoscaling. - - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler - is configured to scale based on a load balancing signal but - the instance group has not received any requests from the - load balancer. - MODE_OFF (WARNING): Autoscaling is turned - off. The number of instances in the group won't change - automatically. The autoscaling configuration is preserved. - - MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale - only out" mode. The autoscaler can add instances but not - remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The - instance group cannot be autoscaled because it has more than - one backend service attached to it. - - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is insufficient - quota for the necessary resources, such as CPU or number of - instances. - REGION_RESOURCE_STOCKOUT (ERROR): Shown only - for regional autoscalers: there is a resource stockout in - the chosen region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): - The target to be scaled does not exist. - - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): - Autoscaling does not work with an HTTP/S load balancer that - has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT - (ERROR): For zonal autoscalers: there is a resource stockout - in the chosen zone. For regional autoscalers: in at least - one of the zones you're using there is a resource stockout. - New values might be added in the future. Some of the values - might not be available in all API versions. Check the Type - enum for the list of possible values. + If the source image is deleted later, this field + will not be set. - This field is a member of `oneof`_ ``_type``. - """ + This field is a member of `oneof`_ ``_source_image``. + source_image_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): + Thecustomer-supplied + encryption key of the source image. Required if + the source image is protected by a + customer-supplied encryption key. - class Type(proto.Enum): - r"""The type of error, warning, or notice returned. Current set of - possible values: - ALL_INSTANCES_UNHEALTHY (WARNING): All instances - in the instance group are unhealthy (not in RUNNING state). - - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service - attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS - (WARNING): Autoscaler recommends a size greater than maxNumReplicas. - - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric - samples are not exported often enough to be a credible base for - autoscaling. - CUSTOM_METRIC_INVALID (ERROR): The custom metric that - was specified does not exist or does not have the necessary labels. - - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to - maxNumReplicas. This means the autoscaler cannot add or remove - instances from the instance group. - - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not - receive any data from the custom metric configured for autoscaling. - - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is - configured to scale based on a load balancing signal but the - instance group has not received any requests from the load balancer. - - MODE_OFF (WARNING): Autoscaling is turned off. The number of - instances in the group won't change automatically. The autoscaling - configuration is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is - in the "Autoscale only out" mode. The autoscaler can add instances - but not remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The - instance group cannot be autoscaled because it has more than one - backend service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE - (ERROR): There is insufficient quota for the necessary resources, - such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT - (ERROR): Shown only for regional autoscalers: there is a resource - stockout in the chosen region. - SCALING_TARGET_DOES_NOT_EXIST - (ERROR): The target to be scaled does not exist. - - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): - Autoscaling does not work with an HTTP/S load balancer that has been - configured for maxRate. - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal - autoscalers: there is a resource stockout in the chosen zone. For - regional autoscalers: in at least one of the zones you're using - there is a resource stockout. New values might be added in the - future. Some of the values might not be available in all API - versions. + InstanceTemplate and InstancePropertiesPatch do + not storecustomer-supplied encryption keys, so + you cannot create disks for instances in a + managed instance group if the source images are + encrypted with your own keys. - Values: - UNDEFINED_TYPE (0): - A value indicating that the enum field is not - set. - ALL_INSTANCES_UNHEALTHY (404965477): - All instances in the instance group are - unhealthy (not in RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (191417626): - There is no backend service attached to the - instance group. - CAPPED_AT_MAX_NUM_REPLICAS (518617): - Autoscaler recommends a size greater than - maxNumReplicas. - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (328964659): - The custom metric samples are not exported - often enough to be a credible base for - autoscaling. - CUSTOM_METRIC_INVALID (204430550): - The custom metric that was specified does not - exist or does not have the necessary labels. - MIN_EQUALS_MAX (2821361): - The minNumReplicas is equal to - maxNumReplicas. This means the autoscaler cannot - add or remove instances from the instance group. - MISSING_CUSTOM_METRIC_DATA_POINTS (94885086): - The autoscaler did not receive any data from - the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS (509858898): - The autoscaler is configured to scale based - on a load balancing signal but the instance - group has not received any requests from the - load balancer. - MODE_OFF (164169907): - Autoscaling is turned off. The number of - instances in the group won't change - automatically. The autoscaling configuration is - preserved. - MODE_ONLY_SCALE_OUT (3840994): - Autoscaling is in the "Autoscale only scale - out" mode. Instances in the group will be only - added. - MODE_ONLY_UP (100969842): - Autoscaling is in the "Autoscale only out" - mode. Instances in the group will be only added. - MORE_THAN_ONE_BACKEND_SERVICE (151922141): - The instance group cannot be autoscaled - because it has more than one backend service - attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (403101631): - There is insufficient quota for the necessary - resources, such as CPU or number of instances. - REGION_RESOURCE_STOCKOUT (528622846): - Showed only for regional autoscalers: there - is a resource stockout in the chosen region. - SCALING_TARGET_DOES_NOT_EXIST (122636699): - The target to be scaled does not exist. - SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX (29275586): - For some scaling schedules - minRequiredReplicas is greater than - maxNumReplicas. Autoscaler always recommends at - most maxNumReplicas instances. - SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN (398287669): - For some scaling schedules - minRequiredReplicas is less than minNumReplicas. - Autoscaler always recommends at least - minNumReplicas instances. - UNKNOWN (433141802): - No description available. - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (330845009): - Autoscaling does not work with an HTTP/S load - balancer that has been configured for maxRate. - ZONE_RESOURCE_STOCKOUT (210200502): - For zonal autoscalers: there is a resource - stockout in the chosen zone. For regional - autoscalers: in at least one of the zones you're - using there is a resource stockout. - """ - UNDEFINED_TYPE = 0 - ALL_INSTANCES_UNHEALTHY = 404965477 - BACKEND_SERVICE_DOES_NOT_EXIST = 191417626 - CAPPED_AT_MAX_NUM_REPLICAS = 518617 - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE = 328964659 - CUSTOM_METRIC_INVALID = 204430550 - MIN_EQUALS_MAX = 2821361 - MISSING_CUSTOM_METRIC_DATA_POINTS = 94885086 - MISSING_LOAD_BALANCING_DATA_POINTS = 509858898 - MODE_OFF = 164169907 - MODE_ONLY_SCALE_OUT = 3840994 - MODE_ONLY_UP = 100969842 - MORE_THAN_ONE_BACKEND_SERVICE = 151922141 - NOT_ENOUGH_QUOTA_AVAILABLE = 403101631 - REGION_RESOURCE_STOCKOUT = 528622846 - SCALING_TARGET_DOES_NOT_EXIST = 122636699 - SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX = 29275586 - SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN = 398287669 - UNKNOWN = 433141802 - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION = 330845009 - ZONE_RESOURCE_STOCKOUT = 210200502 - - message: str = proto.Field( - proto.STRING, - number=418054151, - optional=True, - ) - type_: str = proto.Field( - proto.STRING, - number=3575610, - optional=True, - ) - - -class AutoscalersScopedList(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - autoscalers (MutableSequence[google.cloud.compute_v1.types.Autoscaler]): - [Output Only] A list of autoscalers contained in this scope. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning which replaces the list - of autoscalers when the list is empty. - - This field is a member of `oneof`_ ``_warning``. - """ - - autoscalers: MutableSequence["Autoscaler"] = proto.RepeatedField( - proto.MESSAGE, - number=465771644, - message="Autoscaler", - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, - optional=True, - message="Warning", - ) + This field is a member of `oneof`_ ``_source_image_encryption_key``. + source_snapshot (str): + The source snapshot to create this disk. When + creating a new instance boot disk, one of + initializeParams.sourceSnapshot + orinitializeParams.sourceImage or disks.source + is required. + To create a disk with a snapshot that you + created, specify the snapshot name in the + following format: -class AutoscalingPolicy(proto.Message): - r"""Cloud Autoscaler policy. + global/snapshots/my-backup - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + If the source snapshot is deleted later, this + field will not be set. - Attributes: - cool_down_period_sec (int): - The number of seconds that your application takes to - initialize on a VM instance. This is referred to as the - `initialization - period `__. - Specifying an accurate initialization period improves - autoscaler decisions. For example, when scaling out, the - autoscaler ignores data from VMs that are still initializing - because those VMs might not yet represent normal usage of - your application. The default initialization period is 60 - seconds. Initialization periods might vary because of - numerous factors. We recommend that you test how long your - application takes to initialize. To do this, create a VM and - time your application's startup process. + Note: You cannot create VMs in bulk using a + snapshot as the source. Use an image instead + when you create VMs using + the bulk + insert method. - This field is a member of `oneof`_ ``_cool_down_period_sec``. - cpu_utilization (google.cloud.compute_v1.types.AutoscalingPolicyCpuUtilization): - Defines the CPU utilization policy that - allows the autoscaler to scale based on the - average CPU utilization of a managed instance - group. + This field is a member of `oneof`_ ``_source_snapshot``. + source_snapshot_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): + Thecustomer-supplied + encryption key of the source snapshot. - This field is a member of `oneof`_ ``_cpu_utilization``. - custom_metric_utilizations (MutableSequence[google.cloud.compute_v1.types.AutoscalingPolicyCustomMetricUtilization]): - Configuration parameters of autoscaling based - on a custom metric. - load_balancing_utilization (google.cloud.compute_v1.types.AutoscalingPolicyLoadBalancingUtilization): - Configuration parameters of autoscaling based - on load balancer. + This field is a member of `oneof`_ ``_source_snapshot_encryption_key``. + storage_pool (str): + The storage pool in which the new disk is + created. You can provide this as a partial or + full URL to the resource. For example, the + following are valid values: - This field is a member of `oneof`_ ``_load_balancing_utilization``. - max_num_replicas (int): - The maximum number of instances that the - autoscaler can scale out to. This is required - when creating or updating an autoscaler. The - maximum number of replicas must not be lower - than minimal number of replicas. - This field is a member of `oneof`_ ``_max_num_replicas``. - min_num_replicas (int): - The minimum number of replicas that the - autoscaler can scale in to. This cannot be less - than 0. If not provided, autoscaler chooses a - default value depending on maximum number of - instances allowed. + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + - + projects/project/zones/zone/storagePools/storagePool + - zones/zone/storagePools/storagePool - This field is a member of `oneof`_ ``_min_num_replicas``. - mode (str): - Defines the operating mode for this policy. The following - modes are available: - OFF: Disables the autoscaler but - maintains its configuration. - ONLY_SCALE_OUT: Restricts the - autoscaler to add VM instances only. - ON: Enables all - autoscaler activities according to its policy. For more - information, see "Turning off or restricting an autoscaler" - Check the Mode enum for the list of possible values. + This field is a member of `oneof`_ ``_storage_pool``. + """ - This field is a member of `oneof`_ ``_mode``. - scale_in_control (google.cloud.compute_v1.types.AutoscalingPolicyScaleInControl): + class Architecture(proto.Enum): + r"""The architecture of the attached disk. Valid values are arm64 or + x86_64. - This field is a member of `oneof`_ ``_scale_in_control``. - scaling_schedules (MutableMapping[str, google.cloud.compute_v1.types.AutoscalingPolicyScalingSchedule]): - Scaling schedules defined for an autoscaler. Multiple - schedules can be set on an autoscaler, and they can overlap. - During overlapping periods the greatest - min_required_replicas of all scaling schedules is applied. - Up to 128 scaling schedules are allowed. - """ + Values: + UNDEFINED_ARCHITECTURE (0): + A value indicating that the enum field is not + set. + ARCHITECTURE_UNSPECIFIED (394750507): + Default value indicating Architecture is not + set. + ARM64 (62547450): + Machines with architecture ARM64 + X86_64 (425300551): + Machines with architecture X86_64 + """ + UNDEFINED_ARCHITECTURE = 0 + ARCHITECTURE_UNSPECIFIED = 394750507 + ARM64 = 62547450 + X86_64 = 425300551 - class Mode(proto.Enum): - r"""Defines the operating mode for this policy. The following modes are - available: - OFF: Disables the autoscaler but maintains its - configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM - instances only. - ON: Enables all autoscaler activities according to - its policy. For more information, see "Turning off or restricting an - autoscaler" + class OnUpdateAction(proto.Enum): + r"""Specifies which action to take on instance update with this + disk. Default is to use the existing disk. Values: - UNDEFINED_MODE (0): + UNDEFINED_ON_UPDATE_ACTION (0): A value indicating that the enum field is not set. - OFF (78159): - Do not automatically scale the MIG in or out. The - recommended_size field contains the size of MIG that would - be set if the actuation mode was enabled. - ON (2527): - Automatically scale the MIG in and out - according to the policy. - ONLY_SCALE_OUT (152713670): - Automatically create VMs according to the - policy, but do not scale the MIG in. - ONLY_UP (478095374): - Automatically create VMs according to the - policy, but do not scale the MIG in. + RECREATE_DISK (494767853): + Always recreate the disk. + RECREATE_DISK_IF_SOURCE_CHANGED (398099712): + Recreate the disk if source (image, snapshot) + of this disk is different from source of + existing disk. + USE_EXISTING_DISK (232682233): + Use the existing disk, this is the default + behaviour. """ - UNDEFINED_MODE = 0 - OFF = 78159 - ON = 2527 - ONLY_SCALE_OUT = 152713670 - ONLY_UP = 478095374 + UNDEFINED_ON_UPDATE_ACTION = 0 + RECREATE_DISK = 494767853 + RECREATE_DISK_IF_SOURCE_CHANGED = 398099712 + USE_EXISTING_DISK = 232682233 - cool_down_period_sec: int = proto.Field( - proto.INT32, - number=107692954, + architecture: str = proto.Field( + proto.STRING, + number=302803283, optional=True, ) - cpu_utilization: "AutoscalingPolicyCpuUtilization" = proto.Field( - proto.MESSAGE, - number=381211147, + description: str = proto.Field( + proto.STRING, + number=422937596, optional=True, - message="AutoscalingPolicyCpuUtilization", ) - custom_metric_utilizations: MutableSequence[ - "AutoscalingPolicyCustomMetricUtilization" - ] = proto.RepeatedField( - proto.MESSAGE, - number=131972850, - message="AutoscalingPolicyCustomMetricUtilization", + disk_name: str = proto.Field( + proto.STRING, + number=92807149, + optional=True, ) - load_balancing_utilization: "AutoscalingPolicyLoadBalancingUtilization" = ( - proto.Field( - proto.MESSAGE, - number=429746403, - optional=True, - message="AutoscalingPolicyLoadBalancingUtilization", - ) + disk_size_gb: int = proto.Field( + proto.INT64, + number=316263735, + optional=True, ) - max_num_replicas: int = proto.Field( - proto.INT32, - number=62327375, + disk_type: str = proto.Field( + proto.STRING, + number=93009052, optional=True, ) - min_num_replicas: int = proto.Field( - proto.INT32, - number=535329825, + enable_confidential_compute: bool = proto.Field( + proto.BOOL, + number=102135228, optional=True, ) - mode: str = proto.Field( + labels: MutableMapping[str, str] = proto.MapField( proto.STRING, - number=3357091, + proto.STRING, + number=500195327, + ) + licenses: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=337642578, + ) + on_update_action: str = proto.Field( + proto.STRING, + number=202451980, optional=True, ) - scale_in_control: "AutoscalingPolicyScaleInControl" = proto.Field( + provisioned_iops: int = proto.Field( + proto.INT64, + number=186769108, + optional=True, + ) + provisioned_throughput: int = proto.Field( + proto.INT64, + number=526524181, + optional=True, + ) + replica_zones: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=48438272, + ) + resource_manager_tags: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=377671164, + ) + resource_policies: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=22220385, + ) + source_image: str = proto.Field( + proto.STRING, + number=50443319, + optional=True, + ) + source_image_encryption_key: "CustomerEncryptionKey" = proto.Field( proto.MESSAGE, - number=527670872, + number=381503659, optional=True, - message="AutoscalingPolicyScaleInControl", + message="CustomerEncryptionKey", ) - scaling_schedules: MutableMapping[ - str, "AutoscalingPolicyScalingSchedule" - ] = proto.MapField( + source_snapshot: str = proto.Field( proto.STRING, + number=126061928, + optional=True, + ) + source_snapshot_encryption_key: "CustomerEncryptionKey" = proto.Field( proto.MESSAGE, - number=355416580, - message="AutoscalingPolicyScalingSchedule", + number=303679322, + optional=True, + message="CustomerEncryptionKey", + ) + storage_pool: str = proto.Field( + proto.STRING, + number=360473440, + optional=True, ) -class AutoscalingPolicyCpuUtilization(proto.Message): - r"""CPU utilization policy. +class AuditConfig(proto.Message): + r"""Specifies the audit configuration for a service. The configuration + determines which permission types are logged, and what identities, + if any, are exempted from logging. An AuditConfig must have one or + more AuditLogConfigs. + + If there are AuditConfigs for both ``allServices`` and a specific + service, the union of the two AuditConfigs is used for that service: + the log_types specified in each AuditConfig are enabled, and the + exempted_members in each AuditLogConfig are exempted. + + Example Policy with multiple AuditConfigs: + + :: + + { + "audit_configs": [ + { + "service": "allServices", + "audit_log_configs": [ + { + "log_type": "DATA_READ", + "exempted_members": [ + "user:jose@example.com" + ] + }, + { + "log_type": "DATA_WRITE" + }, + { + "log_type": "ADMIN_READ" + } + ] + }, + { + "service": "sampleservice.googleapis.com", + "audit_log_configs": [ + { + "log_type": "DATA_READ" + }, + { + "log_type": "DATA_WRITE", + "exempted_members": [ + "user:aliya@example.com" + ] + } + ] + } + ] + } + + For sampleservice, this policy enables DATA_READ, DATA_WRITE and + ADMIN_READ logging. It also exempts ``jose@example.com`` from + DATA_READ logging, and ``aliya@example.com`` from DATA_WRITE + logging. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - predictive_method (str): - Indicates whether predictive autoscaling based on CPU metric - is enabled. Valid values are: \* NONE (default). No - predictive method is used. The autoscaler scales the group - to meet current demand based on real-time metrics. \* - OPTIMIZE_AVAILABILITY. Predictive autoscaling improves - availability by monitoring daily and weekly load patterns - and scaling out ahead of anticipated demand. Check the - PredictiveMethod enum for the list of possible values. + audit_log_configs (MutableSequence[google.cloud.compute_v1.types.AuditLogConfig]): + The configuration for logging of each type of + permission. + exempted_members (MutableSequence[str]): - This field is a member of `oneof`_ ``_predictive_method``. - utilization_target (float): - The target CPU utilization that the autoscaler maintains. - Must be a float value in the range (0, 1]. If not specified, - the default is 0.6. If the CPU level is below the target - utilization, the autoscaler scales in the number of - instances until it reaches the minimum number of instances - you specified or until the average CPU of your instances - reaches the target utilization. If the average CPU is above - the target utilization, the autoscaler scales out until it - reaches the maximum number of instances you specified or - until the average utilization reaches the target - utilization. + service (str): + Specifies a service that will be enabled for audit logging. + For example, ``storage.googleapis.com``, + ``cloudsql.googleapis.com``. ``allServices`` is a special + value that covers all services. - This field is a member of `oneof`_ ``_utilization_target``. + This field is a member of `oneof`_ ``_service``. """ - class PredictiveMethod(proto.Enum): - r"""Indicates whether predictive autoscaling based on CPU metric is - enabled. Valid values are: \* NONE (default). No predictive method - is used. The autoscaler scales the group to meet current demand - based on real-time metrics. \* OPTIMIZE_AVAILABILITY. Predictive - autoscaling improves availability by monitoring daily and weekly - load patterns and scaling out ahead of anticipated demand. - - Values: - UNDEFINED_PREDICTIVE_METHOD (0): - A value indicating that the enum field is not - set. - NONE (2402104): - No predictive method is used. The autoscaler - scales the group to meet current demand based on - real-time metrics - OPTIMIZE_AVAILABILITY (11629437): - Predictive autoscaling improves availability - by monitoring daily and weekly load patterns and - scaling out ahead of anticipated demand. - """ - UNDEFINED_PREDICTIVE_METHOD = 0 - NONE = 2402104 - OPTIMIZE_AVAILABILITY = 11629437 - - predictive_method: str = proto.Field( + audit_log_configs: MutableSequence["AuditLogConfig"] = proto.RepeatedField( + proto.MESSAGE, + number=488420626, + message="AuditLogConfig", + ) + exempted_members: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=390220737, - optional=True, + number=232615576, ) - utilization_target: float = proto.Field( - proto.DOUBLE, - number=215905870, + service: str = proto.Field( + proto.STRING, + number=373540533, optional=True, ) -class AutoscalingPolicyCustomMetricUtilization(proto.Message): - r"""Custom utilization metric policy. +class AuditLogConfig(proto.Message): + r"""Provides the configuration for logging a type of permissions. + Example: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + :: - Attributes: - filter (str): - A filter string, compatible with a Stackdriver Monitoring - filter string for TimeSeries.list API call. This filter is - used to select a specific TimeSeries for the purpose of - autoscaling and to determine whether the metric is exporting - per-instance or per-group data. For the filter to be valid - for autoscaling purposes, the following rules apply: - You - can only use the AND operator for joining selectors. - You - can only use direct equality comparison operator (=) without - any functions for each selector. - You can specify the - metric in both the filter string and in the metric field. - However, if specified in both places, the metric must be - identical. - The monitored resource type determines what - kind of values are expected for the metric. If it is a - gce_instance, the autoscaler expects the metric to include a - separate TimeSeries for each instance in a group. In such a - case, you cannot filter on resource labels. If the resource - type is any other value, the autoscaler expects this metric - to contain values that apply to the entire autoscaled - instance group and resource label filtering can be performed - to point autoscaler at the correct TimeSeries to scale upon. - This is called a *per-group metric* for the purpose of - autoscaling. If not specified, the type defaults to - gce_instance. Try to provide a filter that is selective - enough to pick just one TimeSeries for the autoscaled group - or for each of the instances (if you are using gce_instance - resource type). If multiple TimeSeries are returned upon the - query execution, the autoscaler will sum their respective - values to obtain its scaling value. + { + "audit_log_configs": [ + { + "log_type": "DATA_READ", + "exempted_members": [ + "user:jose@example.com" + ] + }, + { + "log_type": "DATA_WRITE" + } + ] + } - This field is a member of `oneof`_ ``_filter``. - metric (str): - The identifier (type) of the Stackdriver - Monitoring metric. The metric cannot have - negative values. The metric must have a value - type of INT64 or DOUBLE. + This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + jose@example.com from DATA_READ logging. - This field is a member of `oneof`_ ``_metric``. - single_instance_assignment (float): - If scaling is based on a per-group metric value that - represents the total amount of work to be done or resource - usage, set this value to an amount assigned for a single - instance of the scaled group. Autoscaler keeps the number of - instances proportional to the value of this metric. The - metric itself does not change value due to group resizing. A - good metric to use with the target is for example - pubsub.googleapis.com/subscription/num_undelivered_messages - or a custom metric exporting the total number of requests - coming to your instances. A bad example would be a metric - exporting an average or median latency, since this value - can't include a chunk assignable to a single instance, it - could be better used with utilization_target instead. - This field is a member of `oneof`_ ``_single_instance_assignment``. - utilization_target (float): - The target value of the metric that autoscaler maintains. - This must be a positive value. A utilization metric scales - number of virtual machines handling requests to increase or - decrease proportionally to the metric. For example, a good - metric to use as a utilization_target is - https://www.googleapis.com/compute/v1/instance/network/received_bytes_count. - The autoscaler works to keep this value constant for each of - the instances. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_utilization_target``. - utilization_target_type (str): - Defines how target utilization value is expressed for a - Stackdriver Monitoring metric. Either GAUGE, - DELTA_PER_SECOND, or DELTA_PER_MINUTE. Check the - UtilizationTargetType enum for the list of possible values. + Attributes: + exempted_members (MutableSequence[str]): + Specifies the identities that do not cause + logging for this type of permission. + Follows the same format of Binding.members. + ignore_child_exemptions (bool): - This field is a member of `oneof`_ ``_utilization_target_type``. + This field is a member of `oneof`_ ``_ignore_child_exemptions``. + log_type (str): + The log type that this config enables. + Check the LogType enum for the list of possible + values. + + This field is a member of `oneof`_ ``_log_type``. """ - class UtilizationTargetType(proto.Enum): - r"""Defines how target utilization value is expressed for a Stackdriver - Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or - DELTA_PER_MINUTE. + class LogType(proto.Enum): + r"""The log type that this config enables. Values: - UNDEFINED_UTILIZATION_TARGET_TYPE (0): + UNDEFINED_LOG_TYPE (0): A value indicating that the enum field is not set. - DELTA_PER_MINUTE (87432861): - Sets the utilization target value for a - cumulative or delta metric, expressed as the - rate of growth per minute. - DELTA_PER_SECOND (255180029): - Sets the utilization target value for a - cumulative or delta metric, expressed as the - rate of growth per second. - GAUGE (67590361): - Sets the utilization target value for a gauge - metric. The autoscaler will collect the average - utilization of the virtual machines from the - last couple of minutes, and compare the value to - the utilization target value to perform - autoscaling. + ADMIN_READ (128951462): + Admin reads. Example: CloudIAM getIamPolicy + DATA_READ (305224971): + Data reads. Example: CloudSQL Users list + DATA_WRITE (340181738): + Data writes. Example: CloudSQL Users create + LOG_TYPE_UNSPECIFIED (154527053): + Default case. Should never be this. """ - UNDEFINED_UTILIZATION_TARGET_TYPE = 0 - DELTA_PER_MINUTE = 87432861 - DELTA_PER_SECOND = 255180029 - GAUGE = 67590361 - - filter: str = proto.Field( - proto.STRING, - number=336120696, - optional=True, - ) - metric: str = proto.Field( + UNDEFINED_LOG_TYPE = 0 + ADMIN_READ = 128951462 + DATA_READ = 305224971 + DATA_WRITE = 340181738 + LOG_TYPE_UNSPECIFIED = 154527053 + + exempted_members: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=533067184, - optional=True, - ) - single_instance_assignment: float = proto.Field( - proto.DOUBLE, - number=504768064, - optional=True, + number=232615576, ) - utilization_target: float = proto.Field( - proto.DOUBLE, - number=215905870, + ignore_child_exemptions: bool = proto.Field( + proto.BOOL, + number=70141850, optional=True, ) - utilization_target_type: str = proto.Field( + log_type: str = proto.Field( proto.STRING, - number=340169355, - optional=True, - ) - - -class AutoscalingPolicyLoadBalancingUtilization(proto.Message): - r"""Configuration parameters of autoscaling based on load - balancing. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - utilization_target (float): - Fraction of backend capacity utilization (set - in HTTP(S) load balancing configuration) that - the autoscaler maintains. Must be a positive - float value. If not defined, the default is 0.8. - - This field is a member of `oneof`_ ``_utilization_target``. - """ - - utilization_target: float = proto.Field( - proto.DOUBLE, - number=215905870, + number=403115861, optional=True, ) -class AutoscalingPolicyScaleInControl(proto.Message): - r"""Configuration that allows for slower scale in so that even if - Autoscaler recommends an abrupt scale in of a MIG, it will be - throttled as specified by the parameters below. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - max_scaled_in_replicas (google.cloud.compute_v1.types.FixedOrPercent): - Maximum allowed number (or %) of VMs that can - be deducted from the peak recommendation during - the window autoscaler looks at when computing - recommendations. Possibly all these VMs can be - deleted at once so user service needs to be - prepared to lose that many VMs in one step. +class Autoscaler(proto.Message): + r"""Represents an Autoscaler resource. - This field is a member of `oneof`_ ``_max_scaled_in_replicas``. - time_window_sec (int): - How far back autoscaling looks when computing - recommendations to include directives regarding - slower scale in, as described above. + Google Compute Engine has two Autoscaler resources: - This field is a member of `oneof`_ ``_time_window_sec``. - """ + - `Zonal `__ + - `Regional `__ - max_scaled_in_replicas: "FixedOrPercent" = proto.Field( - proto.MESSAGE, - number=180710123, - optional=True, - message="FixedOrPercent", - ) - time_window_sec: int = proto.Field( - proto.INT32, - number=36405300, - optional=True, - ) + Use autoscalers to automatically add or delete instances from a + managed instance group according to your defined autoscaling policy. + For more information, read Autoscaling Groups of Instances. + For zonal managed instance groups resource, use the autoscaler + resource. -class AutoscalingPolicyScalingSchedule(proto.Message): - r"""Scaling based on user-defined schedule. The message describes - a single scaling schedule. A scaling schedule changes the - minimum number of VM instances an autoscaler can recommend, - which can trigger scaling out. + For regional managed instance groups, use theregionAutoscalers + resource. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - description (str): - A description of a scaling schedule. - - This field is a member of `oneof`_ ``_description``. - disabled (bool): - A boolean value that specifies whether a - scaling schedule can influence autoscaler - recommendations. If set to true, then a scaling - schedule has no effect. This field is optional, - and its value is false by default. - - This field is a member of `oneof`_ ``_disabled``. - duration_sec (int): - The duration of time intervals, in seconds, - for which this scaling schedule is to run. The - minimum allowed value is 300. This field is - required. - - This field is a member of `oneof`_ ``_duration_sec``. - min_required_replicas (int): - The minimum number of VM instances that the - autoscaler will recommend in time intervals - starting according to schedule. This field is - required. - - This field is a member of `oneof`_ ``_min_required_replicas``. - schedule (str): - The start timestamps of time intervals when this scaling - schedule is to provide a scaling signal. This field uses the - extended cron format (with an optional year field). The - expression can describe a single timestamp if the optional - year is set, in which case the scaling schedule runs once. - The schedule is interpreted with respect to time_zone. This - field is required. Note: These timestamps only describe when - autoscaler starts providing the scaling signal. The VMs need - additional time to become serving. - - This field is a member of `oneof`_ ``_schedule``. - time_zone (str): - The time zone to use when interpreting the schedule. The - value of this field must be a time zone name from the tz - database: https://en.wikipedia.org/wiki/Tz_database. This - field is assigned a default value of "UTC" if left empty. - - This field is a member of `oneof`_ ``_time_zone``. - """ - - description: str = proto.Field( - proto.STRING, - number=422937596, - optional=True, - ) - disabled: bool = proto.Field( - proto.BOOL, - number=270940796, - optional=True, - ) - duration_sec: int = proto.Field( - proto.INT32, - number=212356902, - optional=True, - ) - min_required_replicas: int = proto.Field( - proto.INT32, - number=365514414, - optional=True, - ) - schedule: str = proto.Field( - proto.STRING, - number=375820951, - optional=True, - ) - time_zone: str = proto.Field( - proto.STRING, - number=36848094, - optional=True, - ) - - -class Backend(proto.Message): - r"""Message containing information of one individual backend. - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + autoscaling_policy (google.cloud.compute_v1.types.AutoscalingPolicy): + The configuration parameters for the + autoscaling algorithm. You can define one or + more signals for an autoscaler: + cpuUtilization,customMetricUtilizations, + andloadBalancingUtilization. - Attributes: - balancing_mode (str): - Specifies how to determine whether the - backend of a load balancer can handle additional - traffic or is fully loaded. For usage - guidelines, see Connection balancing mode. - Backends must use compatible balancing modes. - For more information, see Supported balancing - modes and target capacity settings and - Restrictions and guidance for instance groups. - Note: Currently, if you use the API to configure - incompatible balancing modes, the configuration - might be accepted even though it has no impact - and is ignored. Specifically, - Backend.maxUtilization is ignored when - Backend.balancingMode is RATE. In the future, - this incompatible combination will be rejected. - Check the BalancingMode enum for the list of - possible values. + If none of these are specified, the default will + be to autoscale based oncpuUtilization to 0.6 or + 60%. - This field is a member of `oneof`_ ``_balancing_mode``. - capacity_scaler (float): - A multiplier applied to the backend's target capacity of its - balancing mode. The default value is 1, which means the - group serves up to 100% of its configured capacity - (depending on balancingMode). A setting of 0 means the group - is completely drained, offering 0% of its available - capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot - configure a setting larger than 0 and smaller than 0.1. You - cannot configure a setting of 0 when there is only one - backend attached to the backend service. Not available with - backends that don't support using a balancingMode. This - includes backends such as global internet NEGs, regional - serverless NEGs, and PSC NEGs. + This field is a member of `oneof`_ ``_autoscaling_policy``. + creation_timestamp (str): + Output only. [Output Only] Creation timestamp inRFC3339 text + format. - This field is a member of `oneof`_ ``_capacity_scaler``. - custom_metrics (MutableSequence[google.cloud.compute_v1.types.BackendCustomMetric]): - List of custom metrics that are used for CUSTOM_METRICS - BalancingMode. + This field is a member of `oneof`_ ``_creation_timestamp``. description (str): An optional description of this resource. Provide this property when you create the resource. This field is a member of `oneof`_ ``_description``. - failover (bool): - This field designates whether this is a - failover backend. More than one failover backend - can be configured for a given BackendService. - - This field is a member of `oneof`_ ``_failover``. - group (str): - The fully-qualified URL of an instance group or network - endpoint group (NEG) resource. To determine what types of - backends a load balancer supports, see the `Backend services - overview `__. - You must use the *fully-qualified* URL (starting with - https://www.googleapis.com/) to specify the instance group - or NEG. Partial URLs are not supported. If haPolicy is - specified, backends must refer to NEG resources of type - GCE_VM_IP. + id (int): + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. - This field is a member of `oneof`_ ``_group``. - max_connections (int): - Defines a target maximum number of - simultaneous connections. For usage guidelines, - see Connection balancing mode and Utilization - balancing mode. Not available if the backend's - balancingMode is RATE. + This field is a member of `oneof`_ ``_id``. + kind (str): + Output only. [Output Only] Type of the resource. Always + compute#autoscaler for autoscalers. - This field is a member of `oneof`_ ``_max_connections``. - max_connections_per_endpoint (int): - Defines a target maximum number of - simultaneous connections. For usage guidelines, - see Connection balancing mode and Utilization - balancing mode. Not available if the backend's - balancingMode is RATE. + This field is a member of `oneof`_ ``_kind``. + name (str): + Name of the resource. Provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. - This field is a member of `oneof`_ ``_max_connections_per_endpoint``. - max_connections_per_instance (int): - Defines a target maximum number of - simultaneous connections. For usage guidelines, - see Connection balancing mode and Utilization - balancing mode. Not available if the backend's - balancingMode is RATE. + This field is a member of `oneof`_ ``_name``. + recommended_size (int): + Output only. [Output Only] Target recommended MIG size + (number of instances) computed by autoscaler. Autoscaler + calculates the recommended MIG size even when the + autoscaling policy mode is different from ON. This field is + empty when autoscaler is not connected to an existing + managed instance group or autoscaler did not generate its + prediction. - This field is a member of `oneof`_ ``_max_connections_per_instance``. - max_rate (int): - Defines a maximum number of HTTP requests per - second (RPS). For usage guidelines, see Rate - balancing mode and Utilization balancing mode. - Not available if the backend's balancingMode is - CONNECTION. + This field is a member of `oneof`_ ``_recommended_size``. + region (str): + Output only. [Output Only] URL of theregion where the + instance group resides (for autoscalers living in regional + scope). - This field is a member of `oneof`_ ``_max_rate``. - max_rate_per_endpoint (float): - Defines a maximum target for requests per - second (RPS). For usage guidelines, see Rate - balancing mode and Utilization balancing mode. - Not available if the backend's balancingMode is - CONNECTION. + This field is a member of `oneof`_ ``_region``. + scaling_schedule_status (MutableMapping[str, google.cloud.compute_v1.types.ScalingScheduleStatus]): + Output only. [Output Only] Status information of existing + scaling schedules. + self_link (str): + [Output Only] Server-defined URL for the resource. - This field is a member of `oneof`_ ``_max_rate_per_endpoint``. - max_rate_per_instance (float): - Defines a maximum target for requests per - second (RPS). For usage guidelines, see Rate - balancing mode and Utilization balancing mode. - Not available if the backend's balancingMode is - CONNECTION. + This field is a member of `oneof`_ ``_self_link``. + status (str): + [Output Only] The status of the autoscaler configuration. + Current set of possible values: + + :: + + - PENDING: + Autoscaler backend hasn't read new/updated configuration. + - DELETING: + Configuration is being deleted. + - ACTIVE: + Configuration is acknowledged to be effective. Some warnings might + be present in the statusDetails field. + - ERROR: + Configuration has errors. Actionable for users. Details are present in + the statusDetails field. + + New values might be added in the future. Check the Status + enum for the list of possible values. - This field is a member of `oneof`_ ``_max_rate_per_instance``. - max_utilization (float): - Optional parameter to define a target capacity for the - UTILIZATION balancing mode. The valid range is [0.0, 1.0]. - For usage guidelines, see Utilization balancing mode. + This field is a member of `oneof`_ ``_status``. + status_details (MutableSequence[google.cloud.compute_v1.types.AutoscalerStatusDetails]): + [Output Only] Human-readable details about the current state + of the autoscaler. Read the documentation forCommonly + returned status messages for examples of status messages you + might encounter. + target (str): + URL of the managed instance group that this + autoscaler will scale. This field is required + when creating an autoscaler. - This field is a member of `oneof`_ ``_max_utilization``. - preference (str): - This field indicates whether this backend - should be fully utilized before sending traffic - to backends with default preference. The - possible values are: - PREFERRED: Backends with - this preference level will be filled up to their - capacity limits first, based on RTT. - DEFAULT: - If preferred backends don't have enough - capacity, backends in this layer would be used - and traffic would be assigned based on the load - balancing algorithm you use. This is the default - Check the Preference enum for the list of - possible values. + This field is a member of `oneof`_ ``_target``. + zone (str): + Output only. [Output Only] URL of thezone where the instance + group resides (for autoscalers living in zonal scope). - This field is a member of `oneof`_ ``_preference``. + This field is a member of `oneof`_ ``_zone``. """ - class BalancingMode(proto.Enum): - r"""Specifies how to determine whether the backend of a load - balancer can handle additional traffic or is fully loaded. For - usage guidelines, see Connection balancing mode. Backends must - use compatible balancing modes. For more information, see - Supported balancing modes and target capacity settings and - Restrictions and guidance for instance groups. Note: Currently, - if you use the API to configure incompatible balancing modes, - the configuration might be accepted even though it has no impact - and is ignored. Specifically, Backend.maxUtilization is ignored - when Backend.balancingMode is RATE. In the future, this - incompatible combination will be rejected. + class Status(proto.Enum): + r"""[Output Only] The status of the autoscaler configuration. Current + set of possible values: - Values: - UNDEFINED_BALANCING_MODE (0): - A value indicating that the enum field is not - set. - CONNECTION (246311646): - Balance based on the number of simultaneous - connections. - CUSTOM_METRICS (331575765): - Based on custom defined and reported metrics. - RATE (2508000): - Balance based on requests per second (RPS). - UTILIZATION (157008386): - Balance based on the backend utilization. - """ - UNDEFINED_BALANCING_MODE = 0 - CONNECTION = 246311646 - CUSTOM_METRICS = 331575765 - RATE = 2508000 - UTILIZATION = 157008386 + :: - class Preference(proto.Enum): - r"""This field indicates whether this backend should be fully - utilized before sending traffic to backends with default - preference. The possible values are: - PREFERRED: Backends with - this preference level will be filled up to their capacity limits - first, based on RTT. - DEFAULT: If preferred backends don't have - enough capacity, backends in this layer would be used and - traffic would be assigned based on the load balancing algorithm - you use. This is the default + - PENDING: + Autoscaler backend hasn't read new/updated configuration. + - DELETING: + Configuration is being deleted. + - ACTIVE: + Configuration is acknowledged to be effective. Some warnings might + be present in the statusDetails field. + - ERROR: + Configuration has errors. Actionable for users. Details are present in + the statusDetails field. + + New values might be added in the future. Values: - UNDEFINED_PREFERENCE (0): + UNDEFINED_STATUS (0): A value indicating that the enum field is not set. - DEFAULT (115302945): - No preference. - PREFERENCE_UNSPECIFIED (496219571): - If preference is unspecified, we set it to - the DEFAULT value - PREFERRED (418847841): - Traffic will be sent to this backend first. + ACTIVE (314733318): + Configuration is acknowledged to be effective + DELETING (528602024): + Configuration is being deleted + ERROR (66247144): + Configuration has errors. Actionable for + users. + PENDING (35394935): + Autoscaler backend hasn't read new/updated + configuration """ - UNDEFINED_PREFERENCE = 0 - DEFAULT = 115302945 - PREFERENCE_UNSPECIFIED = 496219571 - PREFERRED = 418847841 + UNDEFINED_STATUS = 0 + ACTIVE = 314733318 + DELETING = 528602024 + ERROR = 66247144 + PENDING = 35394935 - balancing_mode: str = proto.Field( - proto.STRING, - number=430286217, + autoscaling_policy: "AutoscalingPolicy" = proto.Field( + proto.MESSAGE, + number=221950041, optional=True, + message="AutoscalingPolicy", ) - capacity_scaler: float = proto.Field( - proto.FLOAT, - number=315958157, + creation_timestamp: str = proto.Field( + proto.STRING, + number=30525366, optional=True, ) - custom_metrics: MutableSequence["BackendCustomMetric"] = proto.RepeatedField( - proto.MESSAGE, - number=429453813, - message="BackendCustomMetric", - ) description: str = proto.Field( proto.STRING, number=422937596, optional=True, ) - failover: bool = proto.Field( - proto.BOOL, - number=138892530, + id: int = proto.Field( + proto.UINT64, + number=3355, optional=True, ) - group: str = proto.Field( + kind: str = proto.Field( proto.STRING, - number=98629247, + number=3292052, optional=True, ) - max_connections: int = proto.Field( - proto.INT32, - number=110652154, + name: str = proto.Field( + proto.STRING, + number=3373707, optional=True, ) - max_connections_per_endpoint: int = proto.Field( + recommended_size: int = proto.Field( proto.INT32, - number=216904604, + number=257915749, optional=True, ) - max_connections_per_instance: int = proto.Field( - proto.INT32, - number=104671900, + region: str = proto.Field( + proto.STRING, + number=138946292, optional=True, ) - max_rate: int = proto.Field( - proto.INT32, - number=408035035, - optional=True, + scaling_schedule_status: MutableMapping[ + str, "ScalingScheduleStatus" + ] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=465950178, + message="ScalingScheduleStatus", ) - max_rate_per_endpoint: float = proto.Field( - proto.FLOAT, - number=129832283, + self_link: str = proto.Field( + proto.STRING, + number=456214797, optional=True, ) - max_rate_per_instance: float = proto.Field( - proto.FLOAT, - number=17599579, + status: str = proto.Field( + proto.STRING, + number=181260274, optional=True, ) - max_utilization: float = proto.Field( - proto.FLOAT, - number=148192199, + status_details: MutableSequence["AutoscalerStatusDetails"] = proto.RepeatedField( + proto.MESSAGE, + number=363353845, + message="AutoscalerStatusDetails", + ) + target: str = proto.Field( + proto.STRING, + number=192835985, optional=True, ) - preference: str = proto.Field( + zone: str = proto.Field( proto.STRING, - number=150781147, + number=3744684, optional=True, ) -class BackendBucket(proto.Message): - r"""Represents a Cloud Storage Bucket resource. This Cloud - Storage bucket resource is referenced by a URL map of a load - balancer. For more information, read Backend Buckets. - +class AutoscalerAggregatedList(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - bucket_name (str): - Cloud Storage bucket name. - - This field is a member of `oneof`_ ``_bucket_name``. - cdn_policy (google.cloud.compute_v1.types.BackendBucketCdnPolicy): - Cloud CDN configuration for this - BackendBucket. - - This field is a member of `oneof`_ ``_cdn_policy``. - compression_mode (str): - Compress text responses using Brotli or gzip - compression, based on the client's - Accept-Encoding header. Check the - CompressionMode enum for the list of possible - values. - - This field is a member of `oneof`_ ``_compression_mode``. - creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. - - This field is a member of `oneof`_ ``_creation_timestamp``. - custom_response_headers (MutableSequence[str]): - Headers that the Application Load Balancer - should add to proxied responses. - description (str): - An optional textual description of the - resource; provided by the client when the - resource is created. - - This field is a member of `oneof`_ ``_description``. - edge_security_policy (str): - [Output Only] The resource URL for the edge security policy - associated with this backend bucket. - - This field is a member of `oneof`_ ``_edge_security_policy``. - enable_cdn (bool): - If true, enable Cloud CDN for this - BackendBucket. - - This field is a member of `oneof`_ ``_enable_cdn``. - id (int): + id (str): [Output Only] Unique identifier for the resource; defined by the server. This field is a member of `oneof`_ ``_id``. + items (MutableMapping[str, google.cloud.compute_v1.types.AutoscalersScopedList]): + A list of AutoscalersScopedList resources. kind (str): - Type of the resource. + Output only. [Output Only] Type of resource. + Alwayscompute#autoscalerAggregatedList for aggregated lists + of autoscalers. This field is a member of `oneof`_ ``_kind``. - load_balancing_scheme (str): - The value can only be INTERNAL_MANAGED for cross-region - internal layer 7 load balancer. If loadBalancingScheme is - not specified, the backend bucket can be used by classic - global external load balancers, or global application - external load balancers, or both. Check the - LoadBalancingScheme enum for the list of possible values. - - This field is a member of `oneof`_ ``_load_balancing_scheme``. - name (str): - Name of the resource. Provided by the client when the - resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 - characters long and match the regular expression - ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first - character must be a lowercase letter, and all following - characters must be a dash, lowercase letter, or digit, - except the last character, which cannot be a dash. - - This field is a member of `oneof`_ ``_name``. - params (google.cloud.compute_v1.types.BackendBucketParams): - Input only. [Input Only] Additional params passed with the - request, but not persisted as part of resource payload. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. - This field is a member of `oneof`_ ``_params``. + This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. - used_by (MutableSequence[google.cloud.compute_v1.types.BackendBucketUsedBy]): - [Output Only] List of resources referencing that backend - bucket. - """ - - class CompressionMode(proto.Enum): - r"""Compress text responses using Brotli or gzip compression, - based on the client's Accept-Encoding header. - - Values: - UNDEFINED_COMPRESSION_MODE (0): - A value indicating that the enum field is not - set. - AUTOMATIC (165298699): - Automatically uses the best compression based - on the Accept-Encoding header sent by the - client. - DISABLED (516696700): - Disables compression. Existing compressed - responses cached by Cloud CDN will not be served - to clients. - """ - UNDEFINED_COMPRESSION_MODE = 0 - AUTOMATIC = 165298699 - DISABLED = 516696700 + unreachables (MutableSequence[str]): + Output only. [Output Only] Unreachable resources. + end_interface: MixerListResponseWithEtagBuilder + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. - class LoadBalancingScheme(proto.Enum): - r"""The value can only be INTERNAL_MANAGED for cross-region internal - layer 7 load balancer. If loadBalancingScheme is not specified, the - backend bucket can be used by classic global external load - balancers, or global application external load balancers, or both. + This field is a member of `oneof`_ ``_warning``. + """ - Values: - UNDEFINED_LOAD_BALANCING_SCHEME (0): - A value indicating that the enum field is not - set. - INTERNAL_MANAGED (37350397): - Signifies that this will be used for internal - Application Load Balancers. - """ - UNDEFINED_LOAD_BALANCING_SCHEME = 0 - INTERNAL_MANAGED = 37350397 + @property + def raw_page(self): + return self - bucket_name: str = proto.Field( - proto.STRING, - number=283610048, - optional=True, - ) - cdn_policy: "BackendBucketCdnPolicy" = proto.Field( - proto.MESSAGE, - number=213976452, - optional=True, - message="BackendBucketCdnPolicy", - ) - compression_mode: str = proto.Field( - proto.STRING, - number=95520988, - optional=True, - ) - creation_timestamp: str = proto.Field( - proto.STRING, - number=30525366, - optional=True, - ) - custom_response_headers: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=387539094, - ) - description: str = proto.Field( + id: str = proto.Field( proto.STRING, - number=422937596, + number=3355, optional=True, ) - edge_security_policy: str = proto.Field( + items: MutableMapping[str, "AutoscalersScopedList"] = proto.MapField( proto.STRING, - number=41036943, - optional=True, - ) - enable_cdn: bool = proto.Field( - proto.BOOL, - number=282942321, - optional=True, - ) - id: int = proto.Field( - proto.UINT64, - number=3355, - optional=True, + proto.MESSAGE, + number=100526016, + message="AutoscalersScopedList", ) kind: str = proto.Field( proto.STRING, number=3292052, optional=True, ) - load_balancing_scheme: str = proto.Field( - proto.STRING, - number=363890244, - optional=True, - ) - name: str = proto.Field( + next_page_token: str = proto.Field( proto.STRING, - number=3373707, - optional=True, - ) - params: "BackendBucketParams" = proto.Field( - proto.MESSAGE, - number=78313862, + number=79797525, optional=True, - message="BackendBucketParams", ) self_link: str = proto.Field( proto.STRING, number=456214797, optional=True, ) - used_by: MutableSequence["BackendBucketUsedBy"] = proto.RepeatedField( - proto.MESSAGE, - number=389320729, - message="BackendBucketUsedBy", - ) - - -class BackendBucketCdnPolicy(proto.Message): - r"""Message containing Cloud CDN configuration for a backend - bucket. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - bypass_cache_on_request_headers (MutableSequence[google.cloud.compute_v1.types.BackendBucketCdnPolicyBypassCacheOnRequestHeader]): - Bypass the cache when the specified request - headers are matched - e.g. Pragma or - Authorization headers. Up to 5 headers can be - specified. The cache is bypassed for all - cdnPolicy.cacheMode settings. - cache_key_policy (google.cloud.compute_v1.types.BackendBucketCdnPolicyCacheKeyPolicy): - The CacheKeyPolicy for this CdnPolicy. - - This field is a member of `oneof`_ ``_cache_key_policy``. - cache_mode (str): - Specifies the cache setting for all responses from this - backend. The possible values are: USE_ORIGIN_HEADERS - Requires the origin to set valid caching headers to cache - content. Responses without these headers will not be cached - at Google's edge, and will require a full trip to the origin - on every request, potentially impacting performance and - increasing load on the origin server. FORCE_CACHE_ALL Cache - all content, ignoring any "private", "no-store" or - "no-cache" directives in Cache-Control response headers. - Warning: this may result in Cloud CDN caching private, - per-user (user identifiable) content. CACHE_ALL_STATIC - Automatically cache static content, including common image - formats, media (video and audio), and web assets (JavaScript - and CSS). Requests and responses that are marked as - uncacheable, as well as dynamic content (including HTML), - will not be cached. If no value is provided for - cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. Check - the CacheMode enum for the list of possible values. - - This field is a member of `oneof`_ ``_cache_mode``. - client_ttl (int): - Specifies a separate client (e.g. browser client) maximum - TTL. This is used to clamp the max-age (or Expires) value - sent to the client. With FORCE_CACHE_ALL, the lesser of - client_ttl and default_ttl is used for the response max-age - directive, along with a "public" directive. For cacheable - content in CACHE_ALL_STATIC mode, client_ttl clamps the - max-age from the origin (if specified), or else sets the - response max-age directive to the lesser of the client_ttl - and default_ttl, and also ensures a "public" cache-control - directive is present. If a client TTL is not specified, a - default value (1 hour) will be used. The maximum allowed - value is 31,622,400s (1 year). - - This field is a member of `oneof`_ ``_client_ttl``. - default_ttl (int): - Specifies the default TTL for cached content served by this - origin for responses that do not have an existing valid TTL - (max-age or s-maxage). Setting a TTL of "0" means "always - revalidate". The value of defaultTTL cannot be set to a - value greater than that of maxTTL, but can be equal. When - the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will - overwrite the TTL set in all responses. The maximum allowed - value is 31,622,400s (1 year), noting that infrequently - accessed objects may be evicted from the cache before the - defined TTL. - - This field is a member of `oneof`_ ``_default_ttl``. - max_ttl (int): - Specifies the maximum allowed TTL for cached - content served by this origin. Cache directives - that attempt to set a max-age or s-maxage higher - than this, or an Expires header more than maxTTL - seconds in the future will be capped at the - value of maxTTL, as if it were the value of an - s-maxage Cache-Control directive. Headers sent - to the client will not be modified. Setting a - TTL of "0" means "always revalidate". The - maximum allowed value is 31,622,400s (1 year), - noting that infrequently accessed objects may be - evicted from the cache before the defined TTL. - - This field is a member of `oneof`_ ``_max_ttl``. - negative_caching (bool): - Negative caching allows per-status code TTLs to be set, in - order to apply fine-grained caching for common errors or - redirects. This can reduce the load on your origin and - improve end-user experience by reducing response latency. - When the cache mode is set to CACHE_ALL_STATIC or - USE_ORIGIN_HEADERS, negative caching applies to responses - with the specified response code that lack any - Cache-Control, Expires, or Pragma: no-cache directives. When - the cache mode is set to FORCE_CACHE_ALL, negative caching - applies to all responses with the specified response code, - and override any caching headers. By default, Cloud CDN will - apply the following default TTLs to these status codes: HTTP - 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m - HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal - Reasons): 120s HTTP 405 (Method Not Found), 501 (Not - Implemented): 60s. These defaults can be overridden in - negative_caching_policy. - - This field is a member of `oneof`_ ``_negative_caching``. - negative_caching_policy (MutableSequence[google.cloud.compute_v1.types.BackendBucketCdnPolicyNegativeCachingPolicy]): - Sets a cache TTL for the specified HTTP status code. - negative_caching must be enabled to configure - negative_caching_policy. Omitting the policy and leaving - negative_caching enabled will use Cloud CDN's default cache - TTLs. Note that when specifying an explicit - negative_caching_policy, you should take care to specify a - cache TTL for all response codes that you wish to cache. - Cloud CDN will not apply any default negative caching when a - policy exists. - request_coalescing (bool): - If true then Cloud CDN will combine multiple - concurrent cache fill requests into a small - number of requests to the origin. - - This field is a member of `oneof`_ ``_request_coalescing``. - serve_while_stale (int): - Serve existing content from the cache (if - available) when revalidating content with the - origin, or when an error is encountered when - refreshing the cache. This setting defines the - default "max-stale" duration for any cached - responses that do not specify a max-stale - directive. Stale responses that exceed the TTL - configured here will not be served. The default - limit (max-stale) is 86400s (1 day), which will - allow stale content to be served up to this - limit beyond the max-age (or s-maxage) of a - cached response. The maximum allowed value is - 604800 (1 week). Set this to zero (0) to disable - serve-while-stale. - - This field is a member of `oneof`_ ``_serve_while_stale``. - signed_url_cache_max_age_sec (int): - Maximum number of seconds the response to a signed URL - request will be considered fresh. After this time period, - the response will be revalidated before being served. - Defaults to 1hr (3600s). When serving responses to signed - URL requests, Cloud CDN will internally behave as though all - responses from this backend had a "Cache-Control: public, - max-age=[TTL]" header, regardless of any existing - Cache-Control header. The actual headers served in responses - will not be altered. - - This field is a member of `oneof`_ ``_signed_url_cache_max_age_sec``. - signed_url_key_names (MutableSequence[str]): - [Output Only] Names of the keys for signing request URLs. - """ - - class CacheMode(proto.Enum): - r"""Specifies the cache setting for all responses from this backend. The - possible values are: USE_ORIGIN_HEADERS Requires the origin to set - valid caching headers to cache content. Responses without these - headers will not be cached at Google's edge, and will require a full - trip to the origin on every request, potentially impacting - performance and increasing load on the origin server. - FORCE_CACHE_ALL Cache all content, ignoring any "private", - "no-store" or "no-cache" directives in Cache-Control response - headers. Warning: this may result in Cloud CDN caching private, - per-user (user identifiable) content. CACHE_ALL_STATIC Automatically - cache static content, including common image formats, media (video - and audio), and web assets (JavaScript and CSS). Requests and - responses that are marked as uncacheable, as well as dynamic content - (including HTML), will not be cached. If no value is provided for - cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. - - Values: - UNDEFINED_CACHE_MODE (0): - A value indicating that the enum field is not - set. - CACHE_ALL_STATIC (355027945): - Automatically cache static content, including - common image formats, media (video and audio), - and web assets (JavaScript and CSS). Requests - and responses that are marked as uncacheable, as - well as dynamic content (including HTML), will - not be cached. - FORCE_CACHE_ALL (486026928): - Cache all content, ignoring any "private", - "no-store" or "no-cache" directives in - Cache-Control response headers. Warning: this - may result in Cloud CDN caching private, - per-user (user identifiable) content. - INVALID_CACHE_MODE (381295560): - No description available. - USE_ORIGIN_HEADERS (55380261): - Requires the origin to set valid caching - headers to cache content. Responses without - these headers will not be cached at Google's - edge, and will require a full trip to the origin - on every request, potentially impacting - performance and increasing load on the origin - server. - """ - UNDEFINED_CACHE_MODE = 0 - CACHE_ALL_STATIC = 355027945 - FORCE_CACHE_ALL = 486026928 - INVALID_CACHE_MODE = 381295560 - USE_ORIGIN_HEADERS = 55380261 - - bypass_cache_on_request_headers: MutableSequence[ - "BackendBucketCdnPolicyBypassCacheOnRequestHeader" - ] = proto.RepeatedField( - proto.MESSAGE, - number=486203082, - message="BackendBucketCdnPolicyBypassCacheOnRequestHeader", - ) - cache_key_policy: "BackendBucketCdnPolicyCacheKeyPolicy" = proto.Field( - proto.MESSAGE, - number=159263727, - optional=True, - message="BackendBucketCdnPolicyCacheKeyPolicy", - ) - cache_mode: str = proto.Field( + unreachables: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=28877888, - optional=True, - ) - client_ttl: int = proto.Field( - proto.INT32, - number=29034360, - optional=True, - ) - default_ttl: int = proto.Field( - proto.INT32, - number=100253422, - optional=True, - ) - max_ttl: int = proto.Field( - proto.INT32, - number=307578001, - optional=True, - ) - negative_caching: bool = proto.Field( - proto.BOOL, - number=336110005, - optional=True, + number=243372063, ) - negative_caching_policy: MutableSequence[ - "BackendBucketCdnPolicyNegativeCachingPolicy" - ] = proto.RepeatedField( + warning: "Warning" = proto.Field( proto.MESSAGE, - number=155359996, - message="BackendBucketCdnPolicyNegativeCachingPolicy", - ) - request_coalescing: bool = proto.Field( - proto.BOOL, - number=532808276, - optional=True, - ) - serve_while_stale: int = proto.Field( - proto.INT32, - number=236682203, - optional=True, - ) - signed_url_cache_max_age_sec: int = proto.Field( - proto.INT64, - number=269374534, - optional=True, - ) - signed_url_key_names: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=371848885, - ) - - -class BackendBucketCdnPolicyBypassCacheOnRequestHeader(proto.Message): - r"""Bypass the cache when the specified request headers are present, - e.g. Pragma or Authorization headers. Values are case insensitive. - The presence of such a header overrides the cache_mode setting. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - header_name (str): - The header field name to match on when - bypassing cache. Values are case-insensitive. - - This field is a member of `oneof`_ ``_header_name``. - """ - - header_name: str = proto.Field( - proto.STRING, - number=110223613, - optional=True, - ) - - -class BackendBucketCdnPolicyCacheKeyPolicy(proto.Message): - r"""Message containing what to include in the cache key for a - request for Cloud CDN. - - Attributes: - include_http_headers (MutableSequence[str]): - Allows HTTP request headers (by name) to be - used in the cache key. - query_string_whitelist (MutableSequence[str]): - Names of query string parameters to include - in cache keys. Default parameters are always - included. '&' and '=' will be percent encoded - and not treated as delimiters. - """ - - include_http_headers: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=2489606, - ) - query_string_whitelist: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=52456496, - ) - - -class BackendBucketCdnPolicyNegativeCachingPolicy(proto.Message): - r"""Specify CDN TTLs for response error codes. - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - code (int): - The HTTP status code to define a TTL against. - Only HTTP status codes 300, 301, 302, 307, 308, - 404, 405, 410, 421, 451 and 501 are can be - specified as values, and you cannot specify a - status code more than once. - - This field is a member of `oneof`_ ``_code``. - ttl (int): - The TTL (in seconds) for which to cache - responses with the corresponding status code. - The maximum allowed value is 1800s (30 minutes), - noting that infrequently accessed objects may be - evicted from the cache before the defined TTL. - - This field is a member of `oneof`_ ``_ttl``. - """ - - code: int = proto.Field( - proto.INT32, - number=3059181, - optional=True, - ) - ttl: int = proto.Field( - proto.INT32, - number=115180, + number=50704284, optional=True, + message="Warning", ) -class BackendBucketList(proto.Message): - r"""Contains a list of BackendBucket resources. +class AutoscalerList(proto.Message): + r"""Contains a list of Autoscaler resources. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -15372,23 +15898,25 @@ class BackendBucketList(proto.Message): the server. This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.BackendBucket]): - A list of BackendBucket resources. + items (MutableSequence[google.cloud.compute_v1.types.Autoscaler]): + A list of Autoscaler resources. kind (str): - Type of resource. + Output only. [Output Only] Type of resource. Always + compute#autoscalerList for lists of autoscalers. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -15406,10 +15934,10 @@ def raw_page(self): number=3355, optional=True, ) - items: MutableSequence["BackendBucket"] = proto.RepeatedField( + items: MutableSequence["Autoscaler"] = proto.RepeatedField( proto.MESSAGE, number=100526016, - message="BackendBucket", + message="Autoscaler", ) kind: str = proto.Field( proto.STRING, @@ -15434,115 +15962,1896 @@ def raw_page(self): ) -class BackendBucketParams(proto.Message): - r"""Additional Backend Bucket parameters. - - Attributes: - resource_manager_tags (MutableMapping[str, str]): - Tag keys/values directly bound to this resource. Tag keys - and values have the same definition as resource manager - tags. The field is allowed for INSERT only. The keys/values - to set on the resource should be specified in either ID { : - } or Namespaced format { : }. For example the following are - valid inputs: \* {"tagKeys/333" : "tagValues/444", - "tagKeys/123" : "tagValues/456"} \* {"123/environment" : - "production", "345/abc" : "xyz"} Note: \* Invalid - combinations of ID & namespaced format is not supported. For - instance: {"123/environment" : "tagValues/444"} is invalid. - """ - - resource_manager_tags: MutableMapping[str, str] = proto.MapField( - proto.STRING, - proto.STRING, - number=377671164, - ) - - -class BackendBucketUsedBy(proto.Message): +class AutoscalerStatusDetails(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - reference (str): - [Output Only] Server-defined URL for UrlMaps referencing - that BackendBucket. - - This field is a member of `oneof`_ ``_reference``. - """ - - reference: str = proto.Field( - proto.STRING, - number=148586315, - optional=True, - ) - - -class BackendCustomMetric(proto.Message): - r"""Custom Metrics are used for CUSTOM_METRICS balancing_mode. - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - dry_run (bool): - If true, the metric data is collected and - reported to Cloud Monitoring, but is not used - for load balancing. + message (str): + The status message. - This field is a member of `oneof`_ ``_dry_run``. - max_utilization (float): - Optional parameter to define a target utilization for the - Custom Metrics balancing mode. The valid range is [0.0, - 1.0]. + This field is a member of `oneof`_ ``_message``. + type_ (str): + The type of error, warning, or notice returned. Current set + of possible values: + + :: + + - ALL_INSTANCES_UNHEALTHY (WARNING): + All instances in the instance group are unhealthy (not in RUNNING + state). + - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): + There is no backend service attached to the instance group. + - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): + Autoscaler recommends a size greater than maxNumReplicas. + - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): + The custom metric samples are not exported often enough to be + a credible base for autoscaling. + - CUSTOM_METRIC_INVALID (ERROR): + The custom metric that was specified does not exist or does not have + the necessary labels. + - MIN_EQUALS_MAX (WARNING): + The minNumReplicas is equal to maxNumReplicas. This means the + autoscaler cannot add or remove instances from the instance group. + - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): + The autoscaler did not receive any data from the custom metric + configured for autoscaling. + - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): + The autoscaler is configured to scale based on a load balancing signal + but the instance group has not received any requests from the load + balancer. + - MODE_OFF (WARNING): + Autoscaling is turned off. The number of instances in the group won't + change automatically. The autoscaling configuration is preserved. + - MODE_ONLY_UP (WARNING): + Autoscaling is in the "Autoscale only out" mode. The autoscaler can add + instances but not remove any. + - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): + The instance group cannot be autoscaled because it has more than one + backend service attached to it. + - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): + There is insufficient quota for the necessary resources, such as CPU or + number of instances. + - REGION_RESOURCE_STOCKOUT (ERROR): + Shown only for regional autoscalers: there is a resource stockout in + the chosen region. + - SCALING_TARGET_DOES_NOT_EXIST (ERROR): + The target to be scaled does not exist. + - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION + (ERROR): Autoscaling does not work with an HTTP/S load balancer that + has been configured for maxRate. + - ZONE_RESOURCE_STOCKOUT (ERROR): + For zonal autoscalers: there is a resource stockout in the chosen zone. + For regional autoscalers: in at least one of the zones you're using + there is a resource stockout. - This field is a member of `oneof`_ ``_max_utilization``. - name (str): - Name of a custom utilization signal. The name must be 1-64 - characters long and match the regular expression - `a-z <[-_.a-z0-9]*[a-z0-9]>`__? which means that the first - character must be a lowercase letter, and all following - characters must be a dash, period, underscore, lowercase - letter, or digit, except the last character, which cannot be - a dash, period, or underscore. For usage guidelines, see - Custom Metrics balancing mode. This field can only be used - for a global or regional backend service with the - loadBalancingScheme set to EXTERNAL_MANAGED, - INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + New values might be added in the future. Some of the values + might not be available in all API versions. Check the Type + enum for the list of possible values. - This field is a member of `oneof`_ ``_name``. + This field is a member of `oneof`_ ``_type``. """ - dry_run: bool = proto.Field( - proto.BOOL, - number=323854839, - optional=True, - ) - max_utilization: float = proto.Field( - proto.FLOAT, - number=148192199, - optional=True, - ) - name: str = proto.Field( - proto.STRING, + class Type(proto.Enum): + r"""The type of error, warning, or notice returned. Current set of + possible values: + + :: + + - ALL_INSTANCES_UNHEALTHY (WARNING): + All instances in the instance group are unhealthy (not in RUNNING + state). + - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): + There is no backend service attached to the instance group. + - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): + Autoscaler recommends a size greater than maxNumReplicas. + - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): + The custom metric samples are not exported often enough to be + a credible base for autoscaling. + - CUSTOM_METRIC_INVALID (ERROR): + The custom metric that was specified does not exist or does not have + the necessary labels. + - MIN_EQUALS_MAX (WARNING): + The minNumReplicas is equal to maxNumReplicas. This means the + autoscaler cannot add or remove instances from the instance group. + - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): + The autoscaler did not receive any data from the custom metric + configured for autoscaling. + - MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): + The autoscaler is configured to scale based on a load balancing signal + but the instance group has not received any requests from the load + balancer. + - MODE_OFF (WARNING): + Autoscaling is turned off. The number of instances in the group won't + change automatically. The autoscaling configuration is preserved. + - MODE_ONLY_UP (WARNING): + Autoscaling is in the "Autoscale only out" mode. The autoscaler can add + instances but not remove any. + - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): + The instance group cannot be autoscaled because it has more than one + backend service attached to it. + - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): + There is insufficient quota for the necessary resources, such as CPU or + number of instances. + - REGION_RESOURCE_STOCKOUT (ERROR): + Shown only for regional autoscalers: there is a resource stockout in + the chosen region. + - SCALING_TARGET_DOES_NOT_EXIST (ERROR): + The target to be scaled does not exist. + - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION + (ERROR): Autoscaling does not work with an HTTP/S load balancer that + has been configured for maxRate. + - ZONE_RESOURCE_STOCKOUT (ERROR): + For zonal autoscalers: there is a resource stockout in the chosen zone. + For regional autoscalers: in at least one of the zones you're using + there is a resource stockout. + + New values might be added in the future. Some of the values might + not be available in all API versions. + + Values: + UNDEFINED_TYPE (0): + A value indicating that the enum field is not + set. + ALL_INSTANCES_UNHEALTHY (404965477): + All instances in the instance group are + unhealthy (not in RUNNING state). + BACKEND_SERVICE_DOES_NOT_EXIST (191417626): + There is no backend service attached to the + instance group. + CAPPED_AT_MAX_NUM_REPLICAS (518617): + Autoscaler recommends a size greater than + maxNumReplicas. + CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (328964659): + The custom metric samples are not exported + often enough to be a credible base for + autoscaling. + CUSTOM_METRIC_INVALID (204430550): + The custom metric that was specified does not + exist or does not have the necessary labels. + MIN_EQUALS_MAX (2821361): + The minNumReplicas is equal to + maxNumReplicas. This means the autoscaler cannot + add or remove instances from the instance group. + MISSING_CUSTOM_METRIC_DATA_POINTS (94885086): + The autoscaler did not receive any data from + the custom metric configured for autoscaling. + MISSING_LOAD_BALANCING_DATA_POINTS (509858898): + The autoscaler is configured to scale based + on a load balancing signal but the instance + group has not received any requests from the + load balancer. + MODE_OFF (164169907): + Autoscaling is turned off. The number of + instances in the group won't change + automatically. The autoscaling configuration is + preserved. + MODE_ONLY_SCALE_OUT (3840994): + Autoscaling is in the "Autoscale only scale + out" mode. Instances in the group will be only + added. + MODE_ONLY_UP (100969842): + Autoscaling is in the "Autoscale only out" + mode. Instances in the group will be only added. + MORE_THAN_ONE_BACKEND_SERVICE (151922141): + The instance group cannot be autoscaled + because it has more than one backend service + attached to it. + NOT_ENOUGH_QUOTA_AVAILABLE (403101631): + There is insufficient quota for the necessary + resources, such as CPU or number of instances. + REGION_RESOURCE_STOCKOUT (528622846): + Showed only for regional autoscalers: there + is a resource stockout in the chosen region. + SCALING_TARGET_DOES_NOT_EXIST (122636699): + The target to be scaled does not exist. + SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX (29275586): + For some scaling schedules + minRequiredReplicas is greater than + maxNumReplicas. Autoscaler always recommends at + most maxNumReplicas instances. + SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN (398287669): + For some scaling schedules + minRequiredReplicas is less than minNumReplicas. + Autoscaler always recommends at least + minNumReplicas instances. + UNKNOWN (433141802): + No description available. + UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (330845009): + Autoscaling does not work with an HTTP/S load + balancer that has been configured for maxRate. + ZONE_RESOURCE_STOCKOUT (210200502): + For zonal autoscalers: there is a resource + stockout in the chosen zone. For regional + autoscalers: in at least one of the zones you're + using there is a resource stockout. + """ + UNDEFINED_TYPE = 0 + ALL_INSTANCES_UNHEALTHY = 404965477 + BACKEND_SERVICE_DOES_NOT_EXIST = 191417626 + CAPPED_AT_MAX_NUM_REPLICAS = 518617 + CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE = 328964659 + CUSTOM_METRIC_INVALID = 204430550 + MIN_EQUALS_MAX = 2821361 + MISSING_CUSTOM_METRIC_DATA_POINTS = 94885086 + MISSING_LOAD_BALANCING_DATA_POINTS = 509858898 + MODE_OFF = 164169907 + MODE_ONLY_SCALE_OUT = 3840994 + MODE_ONLY_UP = 100969842 + MORE_THAN_ONE_BACKEND_SERVICE = 151922141 + NOT_ENOUGH_QUOTA_AVAILABLE = 403101631 + REGION_RESOURCE_STOCKOUT = 528622846 + SCALING_TARGET_DOES_NOT_EXIST = 122636699 + SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX = 29275586 + SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN = 398287669 + UNKNOWN = 433141802 + UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION = 330845009 + ZONE_RESOURCE_STOCKOUT = 210200502 + + message: str = proto.Field( + proto.STRING, + number=418054151, + optional=True, + ) + type_: str = proto.Field( + proto.STRING, + number=3575610, + optional=True, + ) + + +class AutoscalersScopedList(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + autoscalers (MutableSequence[google.cloud.compute_v1.types.Autoscaler]): + [Output Only] A list of autoscalers contained in this scope. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning which replaces the list + of autoscalers when the list is empty. + + This field is a member of `oneof`_ ``_warning``. + """ + + autoscalers: MutableSequence["Autoscaler"] = proto.RepeatedField( + proto.MESSAGE, + number=465771644, + message="Autoscaler", + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + +class AutoscalingPolicy(proto.Message): + r"""Cloud Autoscaler policy. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + cool_down_period_sec (int): + The number of seconds that your application takes to + initialize on a VM instance. This is referred to as the + `initialization + period `__. + Specifying an accurate initialization period improves + autoscaler decisions. For example, when scaling out, the + autoscaler ignores data from VMs that are still initializing + because those VMs might not yet represent normal usage of + your application. The default initialization period is 60 + seconds. + + Initialization periods might vary because of numerous + factors. We recommend that you test how long your + application takes to initialize. To do this, create a VM and + time your application's startup process. + + This field is a member of `oneof`_ ``_cool_down_period_sec``. + cpu_utilization (google.cloud.compute_v1.types.AutoscalingPolicyCpuUtilization): + Defines the CPU utilization policy that + allows the autoscaler to scale based on the + average CPU utilization of a managed instance + group. + + This field is a member of `oneof`_ ``_cpu_utilization``. + custom_metric_utilizations (MutableSequence[google.cloud.compute_v1.types.AutoscalingPolicyCustomMetricUtilization]): + Configuration parameters of autoscaling based + on a custom metric. + load_balancing_utilization (google.cloud.compute_v1.types.AutoscalingPolicyLoadBalancingUtilization): + Configuration parameters of autoscaling based + on load balancer. + + This field is a member of `oneof`_ ``_load_balancing_utilization``. + max_num_replicas (int): + The maximum number of instances that the + autoscaler can scale out to. This is required + when creating or updating an autoscaler. The + maximum number of replicas must not be lower + than minimal number of replicas. + + This field is a member of `oneof`_ ``_max_num_replicas``. + min_num_replicas (int): + The minimum number of replicas that the + autoscaler can scale in to. This cannot be less + than 0. If not provided, autoscaler chooses a + default value depending on maximum number of + instances allowed. + + This field is a member of `oneof`_ ``_min_num_replicas``. + mode (str): + Defines the operating mode for this policy. The following + modes are available: + + :: + + - OFF: Disables the autoscaler but maintains its + configuration. + - ONLY_SCALE_OUT: Restricts the autoscaler to add + VM instances only. + - ON: Enables all autoscaler activities according to its + policy. + + For more information, see "Turning off or restricting an + autoscaler" Check the Mode enum for the list of possible + values. + + This field is a member of `oneof`_ ``_mode``. + scale_in_control (google.cloud.compute_v1.types.AutoscalingPolicyScaleInControl): + + This field is a member of `oneof`_ ``_scale_in_control``. + scaling_schedules (MutableMapping[str, google.cloud.compute_v1.types.AutoscalingPolicyScalingSchedule]): + Scaling schedules defined for an autoscaler. Multiple + schedules can be set on an autoscaler, and they can overlap. + During overlapping periods the greatest + min_required_replicas of all scaling schedules is applied. + Up to 128 scaling schedules are allowed. + """ + + class Mode(proto.Enum): + r"""Defines the operating mode for this policy. The following modes are + available: + + :: + + - OFF: Disables the autoscaler but maintains its + configuration. + - ONLY_SCALE_OUT: Restricts the autoscaler to add + VM instances only. + - ON: Enables all autoscaler activities according to its + policy. + + For more information, see "Turning off or restricting an autoscaler" + + Values: + UNDEFINED_MODE (0): + A value indicating that the enum field is not + set. + OFF (78159): + Do not automatically scale the MIG in or out. The + recommended_size field contains the size of MIG that would + be set if the actuation mode was enabled. + ON (2527): + Automatically scale the MIG in and out + according to the policy. + ONLY_SCALE_OUT (152713670): + Automatically create VMs according to the + policy, but do not scale the MIG in. + ONLY_UP (478095374): + Automatically create VMs according to the + policy, but do not scale the MIG in. + """ + UNDEFINED_MODE = 0 + OFF = 78159 + ON = 2527 + ONLY_SCALE_OUT = 152713670 + ONLY_UP = 478095374 + + cool_down_period_sec: int = proto.Field( + proto.INT32, + number=107692954, + optional=True, + ) + cpu_utilization: "AutoscalingPolicyCpuUtilization" = proto.Field( + proto.MESSAGE, + number=381211147, + optional=True, + message="AutoscalingPolicyCpuUtilization", + ) + custom_metric_utilizations: MutableSequence[ + "AutoscalingPolicyCustomMetricUtilization" + ] = proto.RepeatedField( + proto.MESSAGE, + number=131972850, + message="AutoscalingPolicyCustomMetricUtilization", + ) + load_balancing_utilization: "AutoscalingPolicyLoadBalancingUtilization" = ( + proto.Field( + proto.MESSAGE, + number=429746403, + optional=True, + message="AutoscalingPolicyLoadBalancingUtilization", + ) + ) + max_num_replicas: int = proto.Field( + proto.INT32, + number=62327375, + optional=True, + ) + min_num_replicas: int = proto.Field( + proto.INT32, + number=535329825, + optional=True, + ) + mode: str = proto.Field( + proto.STRING, + number=3357091, + optional=True, + ) + scale_in_control: "AutoscalingPolicyScaleInControl" = proto.Field( + proto.MESSAGE, + number=527670872, + optional=True, + message="AutoscalingPolicyScaleInControl", + ) + scaling_schedules: MutableMapping[ + str, "AutoscalingPolicyScalingSchedule" + ] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=355416580, + message="AutoscalingPolicyScalingSchedule", + ) + + +class AutoscalingPolicyCpuUtilization(proto.Message): + r"""CPU utilization policy. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + predictive_method (str): + Indicates whether predictive autoscaling based on CPU metric + is enabled. Valid values are: + + - NONE (default). No predictive method is used. The + autoscaler scales the group to meet current demand based + on real-time metrics. + - OPTIMIZE_AVAILABILITY. Predictive autoscaling improves + availability by monitoring daily and weekly load patterns + and scaling out ahead of anticipated demand. Check the + PredictiveMethod enum for the list of possible values. + + This field is a member of `oneof`_ ``_predictive_method``. + utilization_target (float): + The target CPU utilization that the autoscaler maintains. + Must be a float value in the range (0, 1]. If not specified, + the default is0.6. + + If the CPU level is below the target utilization, the + autoscaler scales in the number of instances until it + reaches the minimum number of instances you specified or + until the average CPU of your instances reaches the target + utilization. + + If the average CPU is above the target utilization, the + autoscaler scales out until it reaches the maximum number of + instances you specified or until the average utilization + reaches the target utilization. + + This field is a member of `oneof`_ ``_utilization_target``. + """ + + class PredictiveMethod(proto.Enum): + r"""Indicates whether predictive autoscaling based on CPU metric is + enabled. Valid values are: + + - NONE (default). No predictive method is used. The autoscaler + scales the group to meet current demand based on real-time + metrics. + - OPTIMIZE_AVAILABILITY. Predictive autoscaling improves + availability by monitoring daily and weekly load patterns and + scaling out ahead of anticipated demand. + + Values: + UNDEFINED_PREDICTIVE_METHOD (0): + A value indicating that the enum field is not + set. + NONE (2402104): + No predictive method is used. The autoscaler + scales the group to meet current demand based on + real-time metrics + OPTIMIZE_AVAILABILITY (11629437): + Predictive autoscaling improves availability + by monitoring daily and weekly load patterns and + scaling out ahead of anticipated demand. + """ + UNDEFINED_PREDICTIVE_METHOD = 0 + NONE = 2402104 + OPTIMIZE_AVAILABILITY = 11629437 + + predictive_method: str = proto.Field( + proto.STRING, + number=390220737, + optional=True, + ) + utilization_target: float = proto.Field( + proto.DOUBLE, + number=215905870, + optional=True, + ) + + +class AutoscalingPolicyCustomMetricUtilization(proto.Message): + r"""Custom utilization metric policy. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + filter (str): + A filter string, compatible with a Stackdriver + Monitoringfilter string forTimeSeries.list API call. This + filter is used to select a specific TimeSeries for the + purpose of autoscaling and to determine whether the metric + is exporting per-instance or per-group data. + + For the filter to be valid for autoscaling purposes, the + following rules apply: + + :: + + - You can only use the AND operator for joining + selectors. + - You can only use direct equality comparison operator + (=) without any functions for each selector. + - You can specify the metric in both the filter string and in the + metric field. However, if specified in both places, the metric must + be identical. + - The monitored resource type + determines what kind of values are expected for the metric. If it is + a gce_instance, the autoscaler expects the metric to + include a separate TimeSeries for each instance in a group. In such a + case, you cannot filter on resource labels. + + + If the resource type is any other value, the autoscaler expects + this metric to contain values that apply to the entire autoscaled + instance group and resource label filtering can be performed to + point autoscaler at the correct TimeSeries to scale upon. This is + called a *per-group metric* for the purpose of autoscaling. + + If not specified, the type defaults to + gce_instance. + + Try to provide a filter that is selective enough to pick + just one TimeSeries for the autoscaled group or for each of + the instances (if you are using gce_instance resource type). + If multiple TimeSeries are returned upon the query + execution, the autoscaler will sum their respective values + to obtain its scaling value. + + This field is a member of `oneof`_ ``_filter``. + metric (str): + The identifier (type) of the Stackdriver + Monitoring metric. The metric cannot have + negative values. + + The metric must have a value type of INT64 + orDOUBLE. + + This field is a member of `oneof`_ ``_metric``. + single_instance_assignment (float): + If scaling is based on a per-group metric value that + represents the total amount of work to be done or resource + usage, set this value to an amount assigned for a single + instance of the scaled group. Autoscaler keeps the number of + instances proportional to the value of this metric. The + metric itself does not change value due to group resizing. + + A good metric to use with the target is for + examplepubsub.googleapis.com/subscription/num_undelivered_messages + or a custom metric exporting the total number of requests + coming to your instances. + + A bad example would be a metric exporting an average or + median latency, since this value can't include a chunk + assignable to a single instance, it could be better used + with utilization_target instead. + + This field is a member of `oneof`_ ``_single_instance_assignment``. + utilization_target (float): + The target value of the metric that autoscaler maintains. + This must be a positive value. A utilization metric scales + number of virtual machines handling requests to increase or + decrease proportionally to the metric. + + For example, a good metric to use as a utilization_target + ishttps://www.googleapis.com/compute/v1/instance/network/received_bytes_count. + The autoscaler works to keep this value constant for each of + the instances. + + This field is a member of `oneof`_ ``_utilization_target``. + utilization_target_type (str): + Defines how target utilization value is expressed for a + Stackdriver Monitoring metric. Either + GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE. Check the + UtilizationTargetType enum for the list of possible values. + + This field is a member of `oneof`_ ``_utilization_target_type``. + """ + + class UtilizationTargetType(proto.Enum): + r"""Defines how target utilization value is expressed for a Stackdriver + Monitoring metric. Either GAUGE,DELTA_PER_SECOND, or + DELTA_PER_MINUTE. + + Values: + UNDEFINED_UTILIZATION_TARGET_TYPE (0): + A value indicating that the enum field is not + set. + DELTA_PER_MINUTE (87432861): + Sets the utilization target value for a + cumulative or delta metric, expressed as the + rate of growth per minute. + DELTA_PER_SECOND (255180029): + Sets the utilization target value for a + cumulative or delta metric, expressed as the + rate of growth per second. + GAUGE (67590361): + Sets the utilization target value for a gauge + metric. The autoscaler will collect the average + utilization of the virtual machines from the + last couple of minutes, and compare the value to + the utilization target value to perform + autoscaling. + """ + UNDEFINED_UTILIZATION_TARGET_TYPE = 0 + DELTA_PER_MINUTE = 87432861 + DELTA_PER_SECOND = 255180029 + GAUGE = 67590361 + + filter: str = proto.Field( + proto.STRING, + number=336120696, + optional=True, + ) + metric: str = proto.Field( + proto.STRING, + number=533067184, + optional=True, + ) + single_instance_assignment: float = proto.Field( + proto.DOUBLE, + number=504768064, + optional=True, + ) + utilization_target: float = proto.Field( + proto.DOUBLE, + number=215905870, + optional=True, + ) + utilization_target_type: str = proto.Field( + proto.STRING, + number=340169355, + optional=True, + ) + + +class AutoscalingPolicyLoadBalancingUtilization(proto.Message): + r"""Configuration parameters of autoscaling based on load + balancing. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + utilization_target (float): + Fraction of backend capacity utilization (set + in HTTP(S) load balancing configuration) that + the autoscaler maintains. Must be a positive + float value. If not defined, the default is 0.8. + + This field is a member of `oneof`_ ``_utilization_target``. + """ + + utilization_target: float = proto.Field( + proto.DOUBLE, + number=215905870, + optional=True, + ) + + +class AutoscalingPolicyScaleInControl(proto.Message): + r"""Configuration that allows for slower scale in so that even if + Autoscaler recommends an abrupt scale in of a MIG, it will be + throttled as specified by the parameters below. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + max_scaled_in_replicas (google.cloud.compute_v1.types.FixedOrPercent): + Maximum allowed number (or %) of VMs that can + be deducted from the peak recommendation during + the window autoscaler looks at when computing + recommendations. Possibly all these VMs can be + deleted at once so user service needs to be + prepared to lose that many VMs in one step. + + This field is a member of `oneof`_ ``_max_scaled_in_replicas``. + time_window_sec (int): + How far back autoscaling looks when computing + recommendations to include directives regarding + slower scale in, as described above. + + This field is a member of `oneof`_ ``_time_window_sec``. + """ + + max_scaled_in_replicas: "FixedOrPercent" = proto.Field( + proto.MESSAGE, + number=180710123, + optional=True, + message="FixedOrPercent", + ) + time_window_sec: int = proto.Field( + proto.INT32, + number=36405300, + optional=True, + ) + + +class AutoscalingPolicyScalingSchedule(proto.Message): + r"""Scaling based on user-defined schedule. The message describes + a single scaling schedule. A scaling schedule changes the + minimum number of VM instances an autoscaler can recommend, + which can trigger scaling out. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + description (str): + A description of a scaling schedule. + + This field is a member of `oneof`_ ``_description``. + disabled (bool): + A boolean value that specifies whether a + scaling schedule can influence autoscaler + recommendations. If set to true, then a scaling + schedule has no effect. This field is optional, + and its value is false by default. + + This field is a member of `oneof`_ ``_disabled``. + duration_sec (int): + The duration of time intervals, in seconds, + for which this scaling schedule is to run. The + minimum allowed value is 300. This field is + required. + + This field is a member of `oneof`_ ``_duration_sec``. + min_required_replicas (int): + The minimum number of VM instances that the + autoscaler will recommend in time intervals + starting according to schedule. This field is + required. + + This field is a member of `oneof`_ ``_min_required_replicas``. + schedule (str): + The start timestamps of time intervals when this scaling + schedule is to provide a scaling signal. This field uses the + extended cron format (with an optional year field). The + expression can describe a single timestamp if the optional + year is set, in which case the scaling schedule runs once. + The schedule is interpreted with respect to time_zone. This + field is required. Note: These timestamps only describe when + autoscaler starts providing the scaling signal. The VMs need + additional time to become serving. + + This field is a member of `oneof`_ ``_schedule``. + time_zone (str): + The time zone to use when interpreting the schedule. The + value of this field must be a time zone name from the tz + database: https://en.wikipedia.org/wiki/Tz_database. This + field is assigned a default value of "UTC" if left empty. + + This field is a member of `oneof`_ ``_time_zone``. + """ + + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + disabled: bool = proto.Field( + proto.BOOL, + number=270940796, + optional=True, + ) + duration_sec: int = proto.Field( + proto.INT32, + number=212356902, + optional=True, + ) + min_required_replicas: int = proto.Field( + proto.INT32, + number=365514414, + optional=True, + ) + schedule: str = proto.Field( + proto.STRING, + number=375820951, + optional=True, + ) + time_zone: str = proto.Field( + proto.STRING, + number=36848094, + optional=True, + ) + + +class Backend(proto.Message): + r"""Message containing information of one individual backend. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + balancing_mode (str): + Specifies how to determine whether the + backend of a load balancer can handle additional + traffic or is fully loaded. For usage + guidelines, see Connection balancing mode. + + Backends must use compatible balancing modes. + For more information, see Supported balancing + modes and target capacity settings and + Restrictions and guidance for instance groups. + + Note: Currently, if you use the API to configure + incompatible balancing modes, the configuration + might be accepted even though it has no impact + and is ignored. Specifically, + Backend.maxUtilization is ignored when + Backend.balancingMode is RATE. In the future, + this incompatible combination will be rejected. + Check the BalancingMode enum for the list of + possible values. + + This field is a member of `oneof`_ ``_balancing_mode``. + capacity_scaler (float): + A multiplier applied to the backend's target capacity of its + balancing mode. The default value is 1, which means the + group serves up to 100% of its configured capacity + (depending onbalancingMode). A setting of 0 means the group + is completely drained, offering 0% of its available + capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot + configure a setting larger than 0 and smaller than0.1. You + cannot configure a setting of 0 when there is only one + backend attached to the backend service. + + Not available with backends that don't support using + abalancingMode. This includes backends such as global + internet NEGs, regional serverless NEGs, and PSC NEGs. + + This field is a member of `oneof`_ ``_capacity_scaler``. + custom_metrics (MutableSequence[google.cloud.compute_v1.types.BackendCustomMetric]): + List of custom metrics that are used for CUSTOM_METRICS + BalancingMode. + description (str): + An optional description of this resource. + Provide this property when you create the + resource. + + This field is a member of `oneof`_ ``_description``. + failover (bool): + This field designates whether this is a + failover backend. More than one failover backend + can be configured for a given BackendService. + + This field is a member of `oneof`_ ``_failover``. + group (str): + The fully-qualified URL of aninstance group or network + endpoint group (NEG) resource. To determine what types of + backends a load balancer supports, see the `Backend services + overview `__. + + You must use the *fully-qualified* URL (starting + withhttps://www.googleapis.com/) to specify the instance + group or NEG. Partial URLs are not supported. + + If haPolicy is specified, backends must refer to NEG + resources of type GCE_VM_IP. + + This field is a member of `oneof`_ ``_group``. + max_connections (int): + Defines a target maximum number of + simultaneous connections. For usage guidelines, + seeConnection balancing mode and Utilization + balancing mode. Not available if the + backend'sbalancingMode is RATE. + + This field is a member of `oneof`_ ``_max_connections``. + max_connections_per_endpoint (int): + Defines a target maximum number of + simultaneous connections. For usage guidelines, + seeConnection balancing mode and Utilization + balancing mode. + + Not available if the backend's balancingMode + isRATE. + + This field is a member of `oneof`_ ``_max_connections_per_endpoint``. + max_connections_per_instance (int): + Defines a target maximum number of + simultaneous connections. For usage guidelines, + seeConnection balancing mode and Utilization + balancing mode. + + Not available if the backend's balancingMode + isRATE. + + This field is a member of `oneof`_ ``_max_connections_per_instance``. + max_rate (int): + Defines a maximum number of HTTP requests per + second (RPS). For usage guidelines, seeRate + balancing mode and Utilization + balancing mode. + + Not available if the backend's balancingMode + isCONNECTION. + + This field is a member of `oneof`_ ``_max_rate``. + max_rate_per_endpoint (float): + Defines a maximum target for requests per + second (RPS). For usage guidelines, seeRate + balancing mode and Utilization + balancing mode. + + Not available if the backend's balancingMode + isCONNECTION. + + This field is a member of `oneof`_ ``_max_rate_per_endpoint``. + max_rate_per_instance (float): + Defines a maximum target for requests per + second (RPS). For usage guidelines, seeRate + balancing mode and Utilization + balancing mode. + + Not available if the backend's balancingMode + isCONNECTION. + + This field is a member of `oneof`_ ``_max_rate_per_instance``. + max_utilization (float): + Optional parameter to define a target capacity for + theUTILIZATION balancing mode. The valid range is[0.0, 1.0]. + + For usage guidelines, seeUtilization balancing mode. + + This field is a member of `oneof`_ ``_max_utilization``. + preference (str): + This field indicates whether this backend + should be fully utilized before sending traffic + to backends with default preference. The + possible values are: + + - PREFERRED: Backends with this preference + level will be filled up to their capacity + limits first, based on RTT. + - DEFAULT: If preferred backends don't have + enough capacity, backends in this layer + would be used and traffic would be assigned + based on the load balancing algorithm you use. + This is the default + Check the Preference enum for the list of + possible values. + + This field is a member of `oneof`_ ``_preference``. + """ + + class BalancingMode(proto.Enum): + r"""Specifies how to determine whether the backend of a load + balancer can handle additional traffic or is fully loaded. For + usage guidelines, see Connection balancing mode. + + Backends must use compatible balancing modes. For more + information, see Supported balancing modes and target capacity + settings and Restrictions and guidance for instance groups. + + Note: Currently, if you use the API to configure incompatible + balancing modes, the configuration might be accepted even though + it has no impact and is ignored. Specifically, + Backend.maxUtilization is ignored when Backend.balancingMode is + RATE. In the future, this incompatible combination will be + rejected. + + Values: + UNDEFINED_BALANCING_MODE (0): + A value indicating that the enum field is not + set. + CONNECTION (246311646): + Balance based on the number of simultaneous + connections. + CUSTOM_METRICS (331575765): + Based on custom defined and reported metrics. + RATE (2508000): + Balance based on requests per second (RPS). + UTILIZATION (157008386): + Balance based on the backend utilization. + """ + UNDEFINED_BALANCING_MODE = 0 + CONNECTION = 246311646 + CUSTOM_METRICS = 331575765 + RATE = 2508000 + UTILIZATION = 157008386 + + class Preference(proto.Enum): + r"""This field indicates whether this backend should be fully + utilized before sending traffic to backends with default + preference. The possible values are: + + - PREFERRED: Backends with this preference level will be + filled up to their capacity limits first, based on RTT. + - DEFAULT: If preferred backends don't have enough + capacity, backends in this layer would be used and traffic + would be assigned based on the load balancing algorithm you + use. This is the default + + Values: + UNDEFINED_PREFERENCE (0): + A value indicating that the enum field is not + set. + DEFAULT (115302945): + No preference. + PREFERENCE_UNSPECIFIED (496219571): + If preference is unspecified, we set it to + the DEFAULT value + PREFERRED (418847841): + Traffic will be sent to this backend first. + """ + UNDEFINED_PREFERENCE = 0 + DEFAULT = 115302945 + PREFERENCE_UNSPECIFIED = 496219571 + PREFERRED = 418847841 + + balancing_mode: str = proto.Field( + proto.STRING, + number=430286217, + optional=True, + ) + capacity_scaler: float = proto.Field( + proto.FLOAT, + number=315958157, + optional=True, + ) + custom_metrics: MutableSequence["BackendCustomMetric"] = proto.RepeatedField( + proto.MESSAGE, + number=429453813, + message="BackendCustomMetric", + ) + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + failover: bool = proto.Field( + proto.BOOL, + number=138892530, + optional=True, + ) + group: str = proto.Field( + proto.STRING, + number=98629247, + optional=True, + ) + max_connections: int = proto.Field( + proto.INT32, + number=110652154, + optional=True, + ) + max_connections_per_endpoint: int = proto.Field( + proto.INT32, + number=216904604, + optional=True, + ) + max_connections_per_instance: int = proto.Field( + proto.INT32, + number=104671900, + optional=True, + ) + max_rate: int = proto.Field( + proto.INT32, + number=408035035, + optional=True, + ) + max_rate_per_endpoint: float = proto.Field( + proto.FLOAT, + number=129832283, + optional=True, + ) + max_rate_per_instance: float = proto.Field( + proto.FLOAT, + number=17599579, + optional=True, + ) + max_utilization: float = proto.Field( + proto.FLOAT, + number=148192199, + optional=True, + ) + preference: str = proto.Field( + proto.STRING, + number=150781147, + optional=True, + ) + + +class BackendBucket(proto.Message): + r"""Represents a Cloud Storage Bucket resource. + + This Cloud Storage bucket resource is referenced by a URL map of + a load balancer. For more information, readBackend Buckets. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + bucket_name (str): + Cloud Storage bucket name. + + This field is a member of `oneof`_ ``_bucket_name``. + cdn_policy (google.cloud.compute_v1.types.BackendBucketCdnPolicy): + Cloud CDN configuration for this + BackendBucket. + + This field is a member of `oneof`_ ``_cdn_policy``. + compression_mode (str): + Compress text responses using Brotli or gzip + compression, based on the client's + Accept-Encoding header. Check the + CompressionMode enum for the list of possible + values. + + This field is a member of `oneof`_ ``_compression_mode``. + creation_timestamp (str): + [Output Only] Creation timestamp inRFC3339 text format. + + This field is a member of `oneof`_ ``_creation_timestamp``. + custom_response_headers (MutableSequence[str]): + Headers that the Application Load Balancer + should add to proxied responses. + description (str): + An optional textual description of the + resource; provided by the client when the + resource is created. + + This field is a member of `oneof`_ ``_description``. + edge_security_policy (str): + [Output Only] The resource URL for the edge security policy + associated with this backend bucket. + + This field is a member of `oneof`_ ``_edge_security_policy``. + enable_cdn (bool): + If true, enable Cloud CDN for this + BackendBucket. + + This field is a member of `oneof`_ ``_enable_cdn``. + id (int): + [Output Only] Unique identifier for the resource; defined by + the server. + + This field is a member of `oneof`_ ``_id``. + kind (str): + Output only. Type of the resource. + + This field is a member of `oneof`_ ``_kind``. + load_balancing_scheme (str): + The value can only be INTERNAL_MANAGED for cross-region + internal layer 7 load balancer. + + If loadBalancingScheme is not specified, the backend bucket + can be used by classic global external load balancers, or + global application external load balancers, or both. Check + the LoadBalancingScheme enum for the list of possible + values. + + This field is a member of `oneof`_ ``_load_balancing_scheme``. + name (str): + Name of the resource. Provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. + + This field is a member of `oneof`_ ``_name``. + params (google.cloud.compute_v1.types.BackendBucketParams): + Input only. [Input Only] Additional params passed with the + request, but not persisted as part of resource payload. + + This field is a member of `oneof`_ ``_params``. + self_link (str): + [Output Only] Server-defined URL for the resource. + + This field is a member of `oneof`_ ``_self_link``. + used_by (MutableSequence[google.cloud.compute_v1.types.BackendBucketUsedBy]): + Output only. [Output Only] List of resources referencing + that backend bucket. + """ + + class CompressionMode(proto.Enum): + r"""Compress text responses using Brotli or gzip compression, + based on the client's Accept-Encoding header. + + Values: + UNDEFINED_COMPRESSION_MODE (0): + A value indicating that the enum field is not + set. + AUTOMATIC (165298699): + Automatically uses the best compression based + on the Accept-Encoding header sent by the + client. + DISABLED (516696700): + Disables compression. Existing compressed + responses cached by Cloud CDN will not be served + to clients. + """ + UNDEFINED_COMPRESSION_MODE = 0 + AUTOMATIC = 165298699 + DISABLED = 516696700 + + class LoadBalancingScheme(proto.Enum): + r"""The value can only be INTERNAL_MANAGED for cross-region internal + layer 7 load balancer. + + If loadBalancingScheme is not specified, the backend bucket can be + used by classic global external load balancers, or global + application external load balancers, or both. + + Values: + UNDEFINED_LOAD_BALANCING_SCHEME (0): + A value indicating that the enum field is not + set. + INTERNAL_MANAGED (37350397): + Signifies that this will be used for internal + Application Load Balancers. + """ + UNDEFINED_LOAD_BALANCING_SCHEME = 0 + INTERNAL_MANAGED = 37350397 + + bucket_name: str = proto.Field( + proto.STRING, + number=283610048, + optional=True, + ) + cdn_policy: "BackendBucketCdnPolicy" = proto.Field( + proto.MESSAGE, + number=213976452, + optional=True, + message="BackendBucketCdnPolicy", + ) + compression_mode: str = proto.Field( + proto.STRING, + number=95520988, + optional=True, + ) + creation_timestamp: str = proto.Field( + proto.STRING, + number=30525366, + optional=True, + ) + custom_response_headers: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=387539094, + ) + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + edge_security_policy: str = proto.Field( + proto.STRING, + number=41036943, + optional=True, + ) + enable_cdn: bool = proto.Field( + proto.BOOL, + number=282942321, + optional=True, + ) + id: int = proto.Field( + proto.UINT64, + number=3355, + optional=True, + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + load_balancing_scheme: str = proto.Field( + proto.STRING, + number=363890244, + optional=True, + ) + name: str = proto.Field( + proto.STRING, + number=3373707, + optional=True, + ) + params: "BackendBucketParams" = proto.Field( + proto.MESSAGE, + number=78313862, + optional=True, + message="BackendBucketParams", + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + used_by: MutableSequence["BackendBucketUsedBy"] = proto.RepeatedField( + proto.MESSAGE, + number=389320729, + message="BackendBucketUsedBy", + ) + + +class BackendBucketCdnPolicy(proto.Message): + r"""Message containing Cloud CDN configuration for a backend + bucket. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + bypass_cache_on_request_headers (MutableSequence[google.cloud.compute_v1.types.BackendBucketCdnPolicyBypassCacheOnRequestHeader]): + Bypass the cache when the specified request + headers are matched - e.g. Pragma or + Authorization headers. Up to 5 headers can be + specified. The cache is bypassed for all + cdnPolicy.cacheMode settings. + cache_key_policy (google.cloud.compute_v1.types.BackendBucketCdnPolicyCacheKeyPolicy): + The CacheKeyPolicy for this CdnPolicy. + + This field is a member of `oneof`_ ``_cache_key_policy``. + cache_mode (str): + Specifies the cache setting for all responses from this + backend. The possible values are:USE_ORIGIN_HEADERS Requires + the origin to set valid caching headers to cache content. + Responses without these headers will not be cached at + Google's edge, and will require a full trip to the origin on + every request, potentially impacting performance and + increasing load on the origin server.FORCE_CACHE_ALL Cache + all content, ignoring any "private", "no-store" or + "no-cache" directives in Cache-Control response headers. + Warning: this may result in Cloud CDN caching private, + per-user (user identifiable) content.CACHE_ALL_STATIC + Automatically cache static content, including common image + formats, media (video and audio), and web assets (JavaScript + and CSS). Requests and responses that are marked as + uncacheable, as well as dynamic content (including HTML), + will not be cached. + + If no value is provided for cdnPolicy.cacheMode, it defaults + to CACHE_ALL_STATIC. Check the CacheMode enum for the list + of possible values. + + This field is a member of `oneof`_ ``_cache_mode``. + client_ttl (int): + Specifies a separate client (e.g. browser client) maximum + TTL. This is used to clamp the max-age (or Expires) value + sent to the client. With FORCE_CACHE_ALL, the lesser of + client_ttl and default_ttl is used for the response max-age + directive, along with a "public" directive. For cacheable + content in CACHE_ALL_STATIC mode, client_ttl clamps the + max-age from the origin (if specified), or else sets the + response max-age directive to the lesser of the client_ttl + and default_ttl, and also ensures a "public" cache-control + directive is present. If a client TTL is not specified, a + default value (1 hour) will be used. The maximum allowed + value is 31,622,400s (1 year). + + This field is a member of `oneof`_ ``_client_ttl``. + default_ttl (int): + Specifies the default TTL for cached content served by this + origin for responses that do not have an existing valid TTL + (max-age or s-maxage). Setting a TTL of "0" means "always + revalidate". The value of defaultTTL cannot be set to a + value greater than that of maxTTL, but can be equal. When + the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will + overwrite the TTL set in all responses. The maximum allowed + value is 31,622,400s (1 year), noting that infrequently + accessed objects may be evicted from the cache before the + defined TTL. + + This field is a member of `oneof`_ ``_default_ttl``. + max_ttl (int): + Specifies the maximum allowed TTL for cached + content served by this origin. + Cache directives that attempt to set a max-age + or s-maxage higher than this, or an Expires + header more than maxTTL seconds in the future + will be capped at the value of maxTTL, as if it + were the value of an s-maxage Cache-Control + directive. + Headers sent to the client will not be modified. + Setting a TTL of "0" means "always revalidate". + The maximum allowed value is 31,622,400s (1 + year), noting that infrequently accessed objects + may be evicted from the cache before the defined + TTL. + + This field is a member of `oneof`_ ``_max_ttl``. + negative_caching (bool): + Negative caching allows per-status code TTLs to be set, in + order to apply fine-grained caching for common errors or + redirects. This can reduce the load on your origin and + improve end-user experience by reducing response latency. + When the cache mode is set to CACHE_ALL_STATIC or + USE_ORIGIN_HEADERS, negative caching applies to responses + with the specified response code that lack any + Cache-Control, Expires, or Pragma: no-cache directives. When + the cache mode is set to FORCE_CACHE_ALL, negative caching + applies to all responses with the specified response code, + and override any caching headers. By default, Cloud CDN will + apply the following default TTLs to these status codes: HTTP + 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m + HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal + Reasons): 120s HTTP 405 (Method Not Found), 501 (Not + Implemented): 60s. These defaults can be overridden in + negative_caching_policy. + + This field is a member of `oneof`_ ``_negative_caching``. + negative_caching_policy (MutableSequence[google.cloud.compute_v1.types.BackendBucketCdnPolicyNegativeCachingPolicy]): + Sets a cache TTL for the specified HTTP status code. + negative_caching must be enabled to configure + negative_caching_policy. Omitting the policy and leaving + negative_caching enabled will use Cloud CDN's default cache + TTLs. Note that when specifying an explicit + negative_caching_policy, you should take care to specify a + cache TTL for all response codes that you wish to cache. + Cloud CDN will not apply any default negative caching when a + policy exists. + request_coalescing (bool): + If true then Cloud CDN will combine multiple + concurrent cache fill requests into a small + number of requests to the origin. + + This field is a member of `oneof`_ ``_request_coalescing``. + serve_while_stale (int): + Serve existing content from the cache (if + available) when revalidating content with the + origin, or when an error is encountered when + refreshing the cache. + This setting defines the default "max-stale" + duration for any cached responses that do not + specify a max-stale directive. Stale responses + that exceed the TTL configured here will not be + served. The default limit (max-stale) is 86400s + (1 day), which will allow stale content to be + served up to this limit beyond the max-age (or + s-maxage) of a cached response. + The maximum allowed value is 604800 (1 week). + Set this to zero (0) to disable + serve-while-stale. + + This field is a member of `oneof`_ ``_serve_while_stale``. + signed_url_cache_max_age_sec (int): + Maximum number of seconds the response to a signed URL + request will be considered fresh. After this time period, + the response will be revalidated before being served. + Defaults to 1hr (3600s). When serving responses to signed + URL requests, Cloud CDN will internally behave as though all + responses from this backend had a "Cache-Control: public, + max-age=[TTL]" header, regardless of any existing + Cache-Control header. The actual headers served in responses + will not be altered. + + This field is a member of `oneof`_ ``_signed_url_cache_max_age_sec``. + signed_url_key_names (MutableSequence[str]): + [Output Only] Names of the keys for signing request URLs. + """ + + class CacheMode(proto.Enum): + r"""Specifies the cache setting for all responses from this backend. The + possible values are:USE_ORIGIN_HEADERS Requires the origin to set + valid caching headers to cache content. Responses without these + headers will not be cached at Google's edge, and will require a full + trip to the origin on every request, potentially impacting + performance and increasing load on the origin server.FORCE_CACHE_ALL + Cache all content, ignoring any "private", "no-store" or "no-cache" + directives in Cache-Control response headers. Warning: this may + result in Cloud CDN caching private, per-user (user identifiable) + content.CACHE_ALL_STATIC Automatically cache static content, + including common image formats, media (video and audio), and web + assets (JavaScript and CSS). Requests and responses that are marked + as uncacheable, as well as dynamic content (including HTML), will + not be cached. + + If no value is provided for cdnPolicy.cacheMode, it defaults to + CACHE_ALL_STATIC. + + Values: + UNDEFINED_CACHE_MODE (0): + A value indicating that the enum field is not + set. + CACHE_ALL_STATIC (355027945): + Automatically cache static content, including + common image formats, media (video and audio), + and web assets (JavaScript and CSS). Requests + and responses that are marked as uncacheable, as + well as dynamic content (including HTML), will + not be cached. + FORCE_CACHE_ALL (486026928): + Cache all content, ignoring any "private", + "no-store" or "no-cache" directives in + Cache-Control response headers. Warning: this + may result in Cloud CDN caching private, + per-user (user identifiable) content. + INVALID_CACHE_MODE (381295560): + No description available. + USE_ORIGIN_HEADERS (55380261): + Requires the origin to set valid caching + headers to cache content. Responses without + these headers will not be cached at Google's + edge, and will require a full trip to the origin + on every request, potentially impacting + performance and increasing load on the origin + server. + """ + UNDEFINED_CACHE_MODE = 0 + CACHE_ALL_STATIC = 355027945 + FORCE_CACHE_ALL = 486026928 + INVALID_CACHE_MODE = 381295560 + USE_ORIGIN_HEADERS = 55380261 + + bypass_cache_on_request_headers: MutableSequence[ + "BackendBucketCdnPolicyBypassCacheOnRequestHeader" + ] = proto.RepeatedField( + proto.MESSAGE, + number=486203082, + message="BackendBucketCdnPolicyBypassCacheOnRequestHeader", + ) + cache_key_policy: "BackendBucketCdnPolicyCacheKeyPolicy" = proto.Field( + proto.MESSAGE, + number=159263727, + optional=True, + message="BackendBucketCdnPolicyCacheKeyPolicy", + ) + cache_mode: str = proto.Field( + proto.STRING, + number=28877888, + optional=True, + ) + client_ttl: int = proto.Field( + proto.INT32, + number=29034360, + optional=True, + ) + default_ttl: int = proto.Field( + proto.INT32, + number=100253422, + optional=True, + ) + max_ttl: int = proto.Field( + proto.INT32, + number=307578001, + optional=True, + ) + negative_caching: bool = proto.Field( + proto.BOOL, + number=336110005, + optional=True, + ) + negative_caching_policy: MutableSequence[ + "BackendBucketCdnPolicyNegativeCachingPolicy" + ] = proto.RepeatedField( + proto.MESSAGE, + number=155359996, + message="BackendBucketCdnPolicyNegativeCachingPolicy", + ) + request_coalescing: bool = proto.Field( + proto.BOOL, + number=532808276, + optional=True, + ) + serve_while_stale: int = proto.Field( + proto.INT32, + number=236682203, + optional=True, + ) + signed_url_cache_max_age_sec: int = proto.Field( + proto.INT64, + number=269374534, + optional=True, + ) + signed_url_key_names: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=371848885, + ) + + +class BackendBucketCdnPolicyBypassCacheOnRequestHeader(proto.Message): + r"""Bypass the cache when the specified request headers are present, + e.g. Pragma or Authorization headers. Values are case insensitive. + The presence of such a header overrides the cache_mode setting. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + header_name (str): + The header field name to match on when + bypassing cache. Values are case-insensitive. + + This field is a member of `oneof`_ ``_header_name``. + """ + + header_name: str = proto.Field( + proto.STRING, + number=110223613, + optional=True, + ) + + +class BackendBucketCdnPolicyCacheKeyPolicy(proto.Message): + r"""Message containing what to include in the cache key for a + request for Cloud CDN. + + Attributes: + include_http_headers (MutableSequence[str]): + Allows HTTP request headers (by name) to be + used in the cache key. + query_string_whitelist (MutableSequence[str]): + Names of query string parameters to include + in cache keys. Default parameters are always + included. '&' and '=' will be percent encoded + and not treated as delimiters. + """ + + include_http_headers: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=2489606, + ) + query_string_whitelist: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=52456496, + ) + + +class BackendBucketCdnPolicyNegativeCachingPolicy(proto.Message): + r"""Specify CDN TTLs for response error codes. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + code (int): + The HTTP status code to define a TTL against. + Only HTTP status codes 300, 301, 302, 307, 308, + 404, 405, 410, 421, 451 and 501 can be specified + as values, and you cannot specify a status code + more than once. + + This field is a member of `oneof`_ ``_code``. + ttl (int): + The TTL (in seconds) for which to cache + responses with the corresponding status code. + The maximum allowed value is 1800s (30 minutes), + noting that infrequently accessed objects may be + evicted from the cache before the defined TTL. + + This field is a member of `oneof`_ ``_ttl``. + """ + + code: int = proto.Field( + proto.INT32, + number=3059181, + optional=True, + ) + ttl: int = proto.Field( + proto.INT32, + number=115180, + optional=True, + ) + + +class BackendBucketList(proto.Message): + r"""Contains a list of BackendBucket resources. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. + + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.BackendBucket]): + A list of BackendBucket resources. + kind (str): + Output only. Type of resource. + + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. + + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. + """ + + @property + def raw_page(self): + return self + + id: str = proto.Field( + proto.STRING, + number=3355, + optional=True, + ) + items: MutableSequence["BackendBucket"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="BackendBucket", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + +class BackendBucketParams(proto.Message): + r"""Additional Backend Bucket parameters. + + Attributes: + resource_manager_tags (MutableMapping[str, str]): + Tag keys/values directly bound to this resource. Tag keys + and values have the same definition as resource manager + tags. The field is allowed for INSERT only. The keys/values + to set on the resource should be specified in either ID { : + } or Namespaced format { : }. For example the following are + valid inputs: + + - {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + "tagValues/456"} + - {"123/environment" : "production", "345/abc" : "xyz"} + Note: + - Invalid combinations of ID & namespaced format is not + supported. For instance: {"123/environment" : + "tagValues/444"} is invalid. + """ + + resource_manager_tags: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=377671164, + ) + + +class BackendBucketUsedBy(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + reference (str): + Output only. [Output Only] Server-defined URL for UrlMaps + referencing that BackendBucket. + + This field is a member of `oneof`_ ``_reference``. + """ + + reference: str = proto.Field( + proto.STRING, + number=148586315, + optional=True, + ) + + +class BackendCustomMetric(proto.Message): + r"""Custom Metrics are used for CUSTOM_METRICS balancing_mode. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + dry_run (bool): + If true, the metric data is collected and + reported to Cloud Monitoring, but is not used + for load balancing. + + This field is a member of `oneof`_ ``_dry_run``. + max_utilization (float): + Optional parameter to define a target utilization for the + Custom Metrics balancing mode. The valid range is [0.0, + 1.0]. + + This field is a member of `oneof`_ ``_max_utilization``. + name (str): + Name of a custom utilization signal. The name must be 1-64 + characters long and match the regular expression + ``[a-z]([-_.a-z0-9]*[a-z0-9])?`` which means that the first + character must be a lowercase letter, and all following + characters must be a dash, period, underscore, lowercase + letter, or digit, except the last character, which cannot be + a dash, period, or underscore. For usage guidelines, see + Custom Metrics balancing mode. This field can only be used + for a global or regional backend service with the + loadBalancingScheme set to EXTERNAL_MANAGED,INTERNAL_MANAGED + INTERNAL_SELF_MANAGED. + + This field is a member of `oneof`_ ``_name``. + """ + + dry_run: bool = proto.Field( + proto.BOOL, + number=323854839, + optional=True, + ) + max_utilization: float = proto.Field( + proto.FLOAT, + number=148192199, + optional=True, + ) + name: str = proto.Field( + proto.STRING, number=3373707, optional=True, ) class BackendService(proto.Message): - r"""Represents a Backend Service resource. A backend service defines how - Google Cloud load balancers distribute traffic. The backend service - configuration contains a set of values, such as the protocol used to - connect to backends, various distribution and session settings, - health checks, and timeouts. These settings provide fine-grained - control over how your load balancer behaves. Most of the settings - have default values that allow for easy configuration if you need to - get started quickly. Backend services in Google Compute Engine can - be either regionally or globally scoped. \* - `Global `__ - \* - `Regional `__ - For more information, see Backend Services. + r"""Represents a Backend Service resource. + + A backend service defines how Google Cloud load balancers distribute + traffic. The backend service configuration contains a set of values, + such as the protocol used to connect to backends, various + distribution and session settings, health checks, and timeouts. + These settings provide fine-grained control over how your load + balancer behaves. Most of the settings have default values that + allow for easy configuration if you need to get started quickly. + + Backend services in Google Compute Engine can be either regionally + or globally scoped. + + - `Global `__ + - `Regional `__ + + For more information, seeBackend Services. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -15552,11 +17861,13 @@ class BackendService(proto.Message): Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. + If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The - maximum allowed value is two weeks (1,209,600). Not - supported when the backend service is referenced by a URL - map that is bound to target gRPC proxy that has + maximum allowed value is two weeks (1,209,600). + + Not supported when the backend service is referenced by a + URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. This field is a member of `oneof`_ ``_affinity_cookie_ttl_sec``. @@ -15591,6 +17902,7 @@ class BackendService(proto.Message): settings are only available for external passthrough Network Load Balancers and internal passthrough Network Load Balancers. + connectionTrackingPolicy cannot be specified with haPolicy. @@ -15603,21 +17915,28 @@ class BackendService(proto.Message): destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This - field is only applicable when localityLbPolicy is set to - MAGLEV or RING_HASH. This field is applicable to either: - A - regional backend service with the service_protocol set to - HTTP, HTTPS, HTTP2 or H2C, and load_balancing_scheme set to - INTERNAL_MANAGED. - A global backend service with the - load_balancing_scheme set to INTERNAL_SELF_MANAGED. + field is only applicable whenlocalityLbPolicy is set to + MAGLEV orRING_HASH. + + This field is applicable to either: + + :: + + - A regional backend service with the service_protocol set to HTTP, + HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + INTERNAL_MANAGED. + - A global backend service with the + load_balancing_scheme set to INTERNAL_SELF_MANAGED. This field is a member of `oneof`_ ``_consistent_hash``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. custom_metrics (MutableSequence[google.cloud.compute_v1.types.BackendServiceCustomMetric]): - List of custom metrics that are used for the - WEIGHTED_ROUND_ROBIN locality_lb_policy. + List of custom metrics that are used for + theWEIGHTED_ROUND_ROBIN locality_lb_policy. custom_request_headers (MutableSequence[str]): Headers that the load balancer adds to proxied requests. See `Creating custom @@ -15645,13 +17964,15 @@ class BackendService(proto.Message): This field is a member of `oneof`_ ``_enable_c_d_n``. external_managed_migration_state (str): Specifies the canary migration state. Possible values are - PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin - the migration from EXTERNAL to EXTERNAL_MANAGED, the state - must be changed to PREPARE. The state must be changed to - TEST_ALL_TRAFFIC before the loadBalancingScheme can be - changed to EXTERNAL_MANAGED. Optionally, the + PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. + + To begin the migration from EXTERNAL to EXTERNAL_MANAGED, + the state must be changed to PREPARE. The state must be + changed to TEST_ALL_TRAFFIC before the loadBalancingScheme + can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by percentage using externalManagedMigrationTestingPercentage. + Rolling back a migration requires the states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC @@ -15664,13 +17985,17 @@ class BackendService(proto.Message): This field is a member of `oneof`_ ``_external_managed_migration_state``. external_managed_migration_testing_percentage (float): Determines the fraction of requests that should be processed - by the Global external Application Load Balancer. The value - of this field must be in the range [0, 100]. Session - affinity options will slightly affect this routing behavior, - for more details, see: Session Affinity. This value can only - be set if the loadBalancingScheme in the BackendService is - set to EXTERNAL (when using the classic Application Load - Balancer) and the migration state is TEST_BY_PERCENTAGE. + by the Global external Application Load Balancer. + + The value of this field must be in the range [0, 100]. + + Session affinity options will slightly affect this routing + behavior, for more details, see:Session Affinity. + + This value can only be set if the loadBalancingScheme in the + BackendService is set to EXTERNAL (when using the classic + Application Load Balancer) and the migration state is + TEST_BY_PERCENTAGE. This field is a member of `oneof`_ ``_external_managed_migration_testing_percentage``. failover_policy (google.cloud.compute_v1.types.BackendServiceFailoverPolicy): @@ -15680,6 +18005,7 @@ class BackendService(proto.Message): Balancers `__ and `external passthrough Network Load Balancers `__. + failoverPolicy cannot be specified with haPolicy. This field is a member of `oneof`_ ``_failover_policy``. @@ -15691,34 +18017,46 @@ class BackendService(proto.Message): up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve a - BackendService. + conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a BackendService. This field is a member of `oneof`_ ``_fingerprint``. ha_policy (google.cloud.compute_v1.types.BackendServiceHAPolicy): Configures self-managed High Availability (HA) for External - and Internal Protocol Forwarding. The backends of this - regional backend service must only specify zonal network - endpoint groups (NEGs) of type GCE_VM_IP. When haPolicy is - set for an Internal Passthrough Network Load Balancer, the - regional backend service must set the network field. All - zonal NEGs must belong to the same network. However, - individual NEGs can belong to different subnetworks of that - network. When haPolicy is specified, the set of attached - network endpoints across all backends comprise an High - Availability domain from which one endpoint is selected as - the active endpoint (the leader) that receives all traffic. + and Internal Protocol Forwarding. + + The backends of this regional backend service must only + specify zonal network endpoint groups (NEGs) of type + GCE_VM_IP. + + When haPolicy is set for an Internal Passthrough Network + Load Balancer, the regional backend service must set the + network field. All zonal NEGs must belong to the same + network. However, individual NEGs can belong to different + subnetworks of that network. + + When haPolicy is specified, the set of attached network + endpoints across all backends comprise an High Availability + domain from which one endpoint is selected as the active + endpoint (the leader) that receives all traffic. + haPolicy can be added only at backend service creation time. - Once set up, it cannot be deleted. Note that haPolicy is not - for load balancing, and therefore cannot be specified with - sessionAffinity, connectionTrackingPolicy, and - failoverPolicy. haPolicy requires customers to be - responsible for tracking backend endpoint health and - electing a leader among the healthy endpoints. Therefore, - haPolicy cannot be specified with healthChecks. haPolicy can - only be specified for External Passthrough Network Load - Balancers and Internal Passthrough Network Load Balancers. + Once set up, it cannot be deleted. + + Note that haPolicy is not for load balancing, and therefore + cannot be specified with sessionAffinity, + connectionTrackingPolicy, and failoverPolicy. + + haPolicy requires customers to be responsible for tracking + backend endpoint health and electing a leader among the + healthy endpoints. Therefore, haPolicy cannot be specified + with healthChecks. + + haPolicy can only be specified for External Passthrough + Network Load Balancers and Internal Passthrough Network Load + Balancers. This field is a member of `oneof`_ ``_ha_policy``. health_checks (MutableSequence[str]): @@ -15731,6 +18069,7 @@ class BackendService(proto.Message): or zonal NEG backends must have a health check unless haPolicy is specified. Backend services with internet or serverless NEG backends must not have a health check. + healthChecks[] cannot be specified with haPolicy. iap (google.cloud.compute_v1.types.BackendServiceIAP): The configurations for Identity-Aware Proxy @@ -15747,33 +18086,45 @@ class BackendService(proto.Message): ip_address_selection_policy (str): Specifies a preference for traffic sent from the proxy to the backend (or from the client to the backend for proxyless - gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 - traffic to the backends of the backend service (Instance - Group, Managed Instance Group, Network Endpoint Group), - regardless of traffic from the client to the proxy. Only - IPv4 health checks are used to check the health of the - backends. This is the default setting. - PREFER_IPV6: - Prioritize the connection to the endpoint's IPv6 address - over its IPv4 address (provided there is a healthy IPv6 - address). - IPV6_ONLY: Only send IPv6 traffic to the - backends of the backend service (Instance Group, Managed - Instance Group, Network Endpoint Group), regardless of - traffic from the client to the proxy. Only IPv6 health - checks are used to check the health of the backends. This - field is applicable to either: - Advanced global external - Application Load Balancer (load balancing scheme - EXTERNAL_MANAGED), - Regional external Application Load - Balancer, - Internal proxy Network Load Balancer (load - balancing scheme INTERNAL_MANAGED), - Regional internal - Application Load Balancer (load balancing scheme - INTERNAL_MANAGED), - Traffic Director with Envoy proxies and - proxyless gRPC (load balancing scheme - INTERNAL_SELF_MANAGED). Check the IpAddressSelectionPolicy - enum for the list of possible values. + gRPC). The possible values are: + + :: + + - IPV4_ONLY: Only send IPv4 traffic to the backends of the + backend service (Instance Group, Managed Instance Group, Network Endpoint + Group), regardless of traffic from the client to the proxy. Only IPv4 + health checks are used to check the health of the backends. This is the + default setting. + - PREFER_IPV6: Prioritize the connection to the endpoint's + IPv6 address over its IPv4 address (provided there is a healthy IPv6 + address). + - IPV6_ONLY: Only send IPv6 traffic to the backends of the + backend service (Instance Group, Managed Instance Group, Network Endpoint + Group), regardless of traffic from the client to the proxy. Only IPv6 + health checks are used to check the health of the backends. + + This field is applicable to either: + + :: + + - Advanced global external Application Load Balancer (load balancing + scheme EXTERNAL_MANAGED), + - Regional external Application Load + Balancer, + - Internal proxy Network Load Balancer (load balancing + scheme INTERNAL_MANAGED), + - Regional internal Application Load + Balancer (load balancing scheme INTERNAL_MANAGED), + - Traffic + Director with Envoy proxies and proxyless gRPC (load balancing scheme + INTERNAL_SELF_MANAGED). + + Check the IpAddressSelectionPolicy enum for the list of + possible values. This field is a member of `oneof`_ ``_ip_address_selection_policy``. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always compute#backendService for backend services. This field is a member of `oneof`_ ``_kind``. @@ -15781,7 +18132,8 @@ class BackendService(proto.Message): Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more - information, refer to Choosing a load balancer. + information, refer toChoosing + a load balancer. Check the LoadBalancingScheme enum for the list of possible values. @@ -15792,55 +18144,71 @@ class BackendService(proto.Message): must set at least one value for either the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies - overrides any value set in the localityLbPolicy field. For - an example of how to use this field, see Define a list of - preferred policies. Caution: This field and its children are - intended for use in a service mesh that includes gRPC - clients only. Envoy proxies can't use backend services that - have this configuration. + overrides any value set in the localityLbPolicy field. + + For an example of how to use this field, seeDefine a list of + preferred policies. + + Caution: This field and its children are intended for use in + a service mesh that includes gRPC clients only. Envoy + proxies can't use backend services that have this + configuration. locality_lb_policy (str): The load balancing algorithm used within the scope of the - locality. The possible values are: - ROUND_ROBIN: This is a - simple policy in which each healthy backend is selected in - round robin order. This is the default. - LEAST_REQUEST: An - O(1) algorithm which selects two random healthy hosts and - picks the host which has fewer active requests. - RING_HASH: - The ring/modulo hash load balancer implements consistent - hashing to backends. The algorithm has the property that the - addition/removal of a host from a set of N hosts only - affects 1/N of the requests. - RANDOM: The load balancer - selects a random healthy host. - ORIGINAL_DESTINATION: - Backend host is selected based on the client connection - metadata, i.e., connections are opened to the same address - as the destination address of the incoming connection before - the connection was redirected to the load balancer. - - MAGLEV: used as a drop in replacement for the ring hash load - balancer. Maglev is not as stable as ring hash but has - faster table lookup build times and host selection times. - For more information about Maglev, see Maglev: A Fast and - Reliable Software Network Load Balancer. - - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin Load - Balancing using weights computed from Backend reported - Custom Metrics. If set, the Backend Service responses are - expected to contain non-standard HTTP response header field - Endpoint-Load-Metrics. The reported metrics to use for - computing the weights are specified via the customMetrics - field. This field is applicable to either: - A regional - backend service with the service_protocol set to HTTP, - HTTPS, HTTP2 or H2C, and load_balancing_scheme set to - INTERNAL_MANAGED. - A global backend service with the - load_balancing_scheme set to INTERNAL_SELF_MANAGED, - INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is - not configured—that is, if session affinity remains at the - default value of NONE—then the default value for - localityLbPolicy is ROUND_ROBIN. If session affinity is set - to a value other than NONE, then the default value for - localityLbPolicy is MAGLEV. Only ROUND_ROBIN and RING_HASH - are supported when the backend service is referenced by a - URL map that is bound to target gRPC proxy that has - validateForProxyless field set to true. localityLbPolicy - cannot be specified with haPolicy. Check the - LocalityLbPolicy enum for the list of possible values. + locality. The possible values are: + + :: + + - ROUND_ROBIN: This is a simple policy in which each healthy + backend is selected in round robin order. This is the default. + - LEAST_REQUEST: An O(1) algorithm which + selects two random healthy hosts and picks the host which has fewer active + requests. + - RING_HASH: The ring/modulo hash load balancer implements + consistent hashing to backends. The algorithm has the property that the + addition/removal of a host from a set of N hosts only affects 1/N of the + requests. + - RANDOM: The load balancer selects a random healthy + host. + - ORIGINAL_DESTINATION: Backend host is selected + based on the client connection metadata, i.e., connections are opened to + the same address as the destination address of the incoming connection + before the connection was redirected to the load balancer. + - MAGLEV: used as a drop in replacement for the ring hash + load balancer. Maglev is not as stable as ring hash but has faster table + lookup build times and host selection times. For more information about + Maglev, see Maglev: + A Fast and Reliable Software Network Load Balancer. + - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin + Load Balancing using weights computed from Backend reported Custom Metrics. + If set, the Backend Service responses are expected to contain non-standard + HTTP response header field Endpoint-Load-Metrics. The reported + metrics to use for computing the weights are specified via thecustomMetrics field. + + This field is applicable to either: + - A regional backend service with the service_protocol set to HTTP, + HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + INTERNAL_MANAGED. + - A global backend service with the + load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or + EXTERNAL_MANAGED. + + + If sessionAffinity is not configured—that is, if session + affinity remains at the default value of NONE—then the + default value for localityLbPolicy + is ROUND_ROBIN. If session affinity is set to a value other + than NONE, + then the default value for localityLbPolicy isMAGLEV. + + Only ROUND_ROBIN and RING_HASH are supported + when the backend service is referenced by a URL map that is bound to + target gRPC proxy that has validateForProxyless field set to true. + + localityLbPolicy cannot be specified with haPolicy. + + Check the LocalityLbPolicy enum for the list of possible + values. This field is a member of `oneof`_ ``_locality_lb_policy``. log_config (google.cloud.compute_v1.types.BackendServiceLogConfig): @@ -15855,12 +18223,17 @@ class BackendService(proto.Message): to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in - this duration is closed. If not specified, there will be no - timeout limit, i.e. the maximum duration is infinite. This - value can be overridden in the PathMatcher configuration of - the UrlMap that references this backend service. This field - is only allowed when the loadBalancingScheme of the backend - service is INTERNAL_SELF_MANAGED. + this duration is closed. + + If not specified, there will be no timeout limit, i.e. the + maximum duration is infinite. + + This value can be overridden in the PathMatcher + configuration of the UrlMap that references this backend + service. + + This field is only allowed when the loadBalancingScheme of + the backend service is INTERNAL_SELF_MANAGED. This field is a member of `oneof`_ ``_max_stream_duration``. metadatas (MutableMapping[str, str]): @@ -15870,7 +18243,7 @@ class BackendService(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -15880,15 +18253,17 @@ class BackendService(proto.Message): This field is a member of `oneof`_ ``_name``. network (str): The URL of the network to which this backend - service belongs. This field must be set for - Internal Passthrough Network Load Balancers when - the haPolicy is enabled, and for External - Passthrough Network Load Balancers when the - haPolicy fastIpMove is enabled. This field can - only be specified when the load balancing scheme - is set to INTERNAL, or when the load balancing - scheme is set to EXTERNAL and haPolicy - fastIpMove is enabled. + service belongs. + This field must be set for Internal Passthrough + Network Load Balancers when the haPolicy is + enabled, and for External Passthrough Network + Load Balancers when the haPolicy fastIpMove is + enabled. + + This field can only be specified when the load + balancing scheme is set toINTERNAL, or when the + load balancing scheme is set toEXTERNAL and + haPolicy fastIpMove is enabled. This field is a member of `oneof`_ ``_network``. outlier_detection (google.cloud.compute_v1.types.OutlierDetection): @@ -15896,32 +18271,46 @@ class BackendService(proto.Message): endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered - disabled. Results of the outlier detection algorithm - (ejection of endpoints from the load balancing pool and - returning them back to the pool) are executed independently - by each proxy instance of the load balancer. In most cases, - more than one proxy instance handles the traffic received by - a backend service. Thus, it is possible that an unhealthy - endpoint is detected and ejected by only some of the - proxies, and while this happens, other proxies may continue - to send requests to the same unhealthy endpoint until they - detect and eject the unhealthy endpoint. Applicable backend - endpoints can be: - VM instances in an Instance Group - - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - - Endpoints in a Hybrid Connectivity NEG - (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to - Cloud Run, App Engine, or Cloud Functions Services - Private - Service Connect NEGs, that resolve to Google-managed - regional API endpoints or managed services published using - Private Service Connect Applicable backend service types can - be: - A global backend service with the loadBalancingScheme - set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A - regional backend service with the serviceProtocol set to - HTTP, HTTPS, HTTP2 or H2C, and loadBalancingScheme set to - INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for - Serverless NEGs. Not supported when the backend service is - referenced by a URL map that is bound to target gRPC proxy - that has validateForProxyless field set to true. + disabled. + + Results of the outlier detection algorithm (ejection of + endpoints from the load balancing pool and returning them + back to the pool) are executed independently by each proxy + instance of the load balancer. In most cases, more than one + proxy instance handles the traffic received by a backend + service. Thus, it is possible that an unhealthy endpoint is + detected and ejected by only some of the proxies, and while + this happens, other proxies may continue to send requests to + the same unhealthy endpoint until they detect and eject the + unhealthy endpoint. + + Applicable backend endpoints can be: + + :: + + - VM instances in an Instance Group + - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) + - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) + - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud + Functions Services + - Private Service Connect NEGs, that resolve to + Google-managed regional API endpoints or managed services published using + Private Service Connect + + Applicable backend service types can be: + + :: + + - A global backend service with the loadBalancingScheme set to + INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. + - A regional backend + service with the serviceProtocol set to HTTP, HTTPS, HTTP2 or H2C, and + loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not + supported for Serverless NEGs. + + Not supported when the backend service is referenced by a + URL map that is bound to target gRPC proxy that has + validateForProxyless field set to true. This field is a member of `oneof`_ ``_outlier_detection``. params (google.cloud.compute_v1.types.BackendServiceParams): @@ -15949,24 +18338,28 @@ class BackendService(proto.Message): This field is a member of `oneof`_ ``_port_name``. protocol (str): The protocol this BackendService uses to - communicate with backends. Possible values are - HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. - depending on the chosen load balancer or Traffic - Director configuration. Refer to the - documentation for the load balancers or for - Traffic Director for more information. Must be - set to GRPC when the backend service is + communicate with backends. + + Possible values are HTTP, HTTPS, HTTP2, H2C, + TCP, SSL, UDP or GRPC. depending on the chosen + load balancer or Traffic Director configuration. + Refer to the documentation for the load + balancers or for Traffic Director for more + information. + + Must be set to GRPC when the backend service is referenced by a URL map that is bound to target - gRPC proxy. Check the Protocol enum for the list - of possible values. + gRPC proxy. + Check the Protocol enum for the list of possible + values. This field is a member of `oneof`_ ``_protocol``. region (str): - [Output Only] URL of the region where the regional backend - service resides. This field is not applicable to global - backend services. You must specify this field as part of the - HTTP request URL. It is not settable as a field in the - request body. + Output only. [Output Only] URL of the region where the + regional backend service resides. This field is not + applicable to global backend services. You must specify this + field as part of the HTTP request URL. It is not settable as + a field in the request body. This field is a member of `oneof`_ ``_region``. security_policy (str): @@ -15986,23 +18379,29 @@ class BackendService(proto.Message): This field is a member of `oneof`_ ``_self_link``. service_bindings (MutableSequence[str]): - URLs of networkservices.ServiceBinding resources. Can only - be set if load balancing scheme is INTERNAL_SELF_MANAGED. If - set, lists of backends and health checks must be both empty. + URLs of networkservices.ServiceBinding resources. + + Can only be set if load balancing scheme is + INTERNAL_SELF_MANAGED. If set, lists of backends and health + checks must be both empty. service_lb_policy (str): - URL to networkservices.ServiceLbPolicy resource. Can only be - set if load balancing scheme is EXTERNAL_MANAGED, - INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is - global. + URL to networkservices.ServiceLbPolicy resource. + + Can only be set if load balancing scheme is + EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED + and the scope is global. This field is a member of `oneof`_ ``_service_lb_policy``. session_affinity (str): - Type of session affinity to use. The default is NONE. Only - NONE and HEADER_FIELD are supported when the backend service - is referenced by a URL map that is bound to target gRPC - proxy that has validateForProxyless field set to true. For - more details, see: `Session + Type of session affinity to use. The default is NONE. + + Only NONE and HEADER_FIELD are supported when the backend + service is referenced by a URL map that is bound to target + gRPC proxy that has validateForProxyless field set to true. + + For more details, see: `Session Affinity `__. + sessionAffinity cannot be specified with haPolicy. Check the SessionAffinity enum for the list of possible values. @@ -16010,7 +18409,7 @@ class BackendService(proto.Message): strong_session_affinity_cookie (google.cloud.compute_v1.types.BackendServiceHttpCookie): Describes the HTTP cookie used for stateful session affinity. This field is applicable and required if the - sessionAffinity is set to STRONG_COOKIE_AFFINITY. + sessionAffinity is set toSTRONG_COOKIE_AFFINITY. This field is a member of `oneof`_ ``_strong_session_affinity_cookie``. subsetting (google.cloud.compute_v1.types.Subsetting): @@ -16021,11 +18420,15 @@ class BackendService(proto.Message): The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service - settings. The default is 30 seconds. The full - range of timeout values allowed goes from 1 - through 2,147,483,647 seconds. This value can be - overridden in the PathMatcher configuration of - the UrlMap that references this backend service. + settings. + The default is 30 seconds. + The full range of timeout values allowed goes + from 1 through 2,147,483,647 seconds. + + This value can be overridden in the PathMatcher + configuration of the UrlMap that references this + backend service. + Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field @@ -16039,8 +18442,8 @@ class BackendService(proto.Message): This field is a member of `oneof`_ ``_tls_settings``. used_by (MutableSequence[google.cloud.compute_v1.types.BackendServiceUsedBy]): - [Output Only] List of resources referencing given backend - service. + Output only. [Output Only] List of resources referencing + given backend service. """ class CompressionMode(proto.Enum): @@ -16066,18 +18469,21 @@ class CompressionMode(proto.Enum): class ExternalManagedMigrationState(proto.Enum): r"""Specifies the canary migration state. Possible values are PREPARE, - TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration - from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to - PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the - loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, - the TEST_BY_PERCENTAGE state can be used to migrate traffic by - percentage using externalManagedMigrationTestingPercentage. Rolling - back a migration requires the states to be set in reverse order. So - changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the - state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, - the TEST_BY_PERCENTAGE state can be used to migrate some traffic - back to EXTERNAL or PREPARE can be used to migrate all traffic back - to EXTERNAL. + TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. + + To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state + must be changed to PREPARE. The state must be changed to + TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to + EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be + used to migrate traffic by percentage using + externalManagedMigrationTestingPercentage. + + Rolling back a migration requires the states to be set in reverse + order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL + requires the state to be set to TEST_ALL_TRAFFIC at the same time. + Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some + traffic back to EXTERNAL or PREPARE can be used to migrate all + traffic back to EXTERNAL. Values: UNDEFINED_EXTERNAL_MANAGED_MIGRATION_STATE (0): @@ -16098,24 +18504,38 @@ class ExternalManagedMigrationState(proto.Enum): class IpAddressSelectionPolicy(proto.Enum): r"""Specifies a preference for traffic sent from the proxy to the backend (or from the client to the backend for proxyless gRPC). The - possible values are: - IPV4_ONLY: Only send IPv4 traffic to the - backends of the backend service (Instance Group, Managed Instance - Group, Network Endpoint Group), regardless of traffic from the - client to the proxy. Only IPv4 health checks are used to check the - health of the backends. This is the default setting. - PREFER_IPV6: - Prioritize the connection to the endpoint's IPv6 address over its - IPv4 address (provided there is a healthy IPv6 address). - - IPV6_ONLY: Only send IPv6 traffic to the backends of the backend - service (Instance Group, Managed Instance Group, Network Endpoint - Group), regardless of traffic from the client to the proxy. Only - IPv6 health checks are used to check the health of the backends. - This field is applicable to either: - Advanced global external - Application Load Balancer (load balancing scheme EXTERNAL_MANAGED), - - Regional external Application Load Balancer, - Internal proxy - Network Load Balancer (load balancing scheme INTERNAL_MANAGED), - - Regional internal Application Load Balancer (load balancing scheme - INTERNAL_MANAGED), - Traffic Director with Envoy proxies and - proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED). + possible values are: + + :: + + - IPV4_ONLY: Only send IPv4 traffic to the backends of the + backend service (Instance Group, Managed Instance Group, Network Endpoint + Group), regardless of traffic from the client to the proxy. Only IPv4 + health checks are used to check the health of the backends. This is the + default setting. + - PREFER_IPV6: Prioritize the connection to the endpoint's + IPv6 address over its IPv4 address (provided there is a healthy IPv6 + address). + - IPV6_ONLY: Only send IPv6 traffic to the backends of the + backend service (Instance Group, Managed Instance Group, Network Endpoint + Group), regardless of traffic from the client to the proxy. Only IPv6 + health checks are used to check the health of the backends. + + This field is applicable to either: + + :: + + - Advanced global external Application Load Balancer (load balancing + scheme EXTERNAL_MANAGED), + - Regional external Application Load + Balancer, + - Internal proxy Network Load Balancer (load balancing + scheme INTERNAL_MANAGED), + - Regional internal Application Load + Balancer (load balancing scheme INTERNAL_MANAGED), + - Traffic + Director with Envoy proxies and proxyless gRPC (load balancing scheme + INTERNAL_SELF_MANAGED). Values: UNDEFINED_IP_ADDRESS_SELECTION_POLICY (0): @@ -16150,9 +18570,10 @@ class IpAddressSelectionPolicy(proto.Enum): PREFER_IPV6 = 408601302 class LoadBalancingScheme(proto.Enum): - r"""Specifies the load balancer type. A backend service created - for one type of load balancer cannot be used with another. For - more information, refer to Choosing a load balancer. + r"""Specifies the load balancer type. A backend service + created for one type of load balancer cannot be used with + another. For more information, refer toChoosing + a load balancer. Values: UNDEFINED_LOAD_BALANCING_SCHEME (0): @@ -16190,41 +18611,57 @@ class LoadBalancingScheme(proto.Enum): class LocalityLbPolicy(proto.Enum): r"""The load balancing algorithm used within the scope of the locality. - The possible values are: - ROUND_ROBIN: This is a simple policy in - which each healthy backend is selected in round robin order. This is - the default. - LEAST_REQUEST: An O(1) algorithm which selects two - random healthy hosts and picks the host which has fewer active - requests. - RING_HASH: The ring/modulo hash load balancer implements - consistent hashing to backends. The algorithm has the property that - the addition/removal of a host from a set of N hosts only affects - 1/N of the requests. - RANDOM: The load balancer selects a random - healthy host. - ORIGINAL_DESTINATION: Backend host is selected based - on the client connection metadata, i.e., connections are opened to - the same address as the destination address of the incoming - connection before the connection was redirected to the load - balancer. - MAGLEV: used as a drop in replacement for the ring hash - load balancer. Maglev is not as stable as ring hash but has faster - table lookup build times and host selection times. For more - information about Maglev, see Maglev: A Fast and Reliable Software - Network Load Balancer. - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted - Round Robin Load Balancing using weights computed from Backend - reported Custom Metrics. If set, the Backend Service responses are - expected to contain non-standard HTTP response header field - Endpoint-Load-Metrics. The reported metrics to use for computing the - weights are specified via the customMetrics field. This field is - applicable to either: - A regional backend service with the - service_protocol set to HTTP, HTTPS, HTTP2 or H2C, and - load_balancing_scheme set to INTERNAL_MANAGED. - A global backend - service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED, - INTERNAL_MANAGED, or EXTERNAL_MANAGED. If sessionAffinity is not - configured—that is, if session affinity remains at the default value - of NONE—then the default value for localityLbPolicy is ROUND_ROBIN. - If session affinity is set to a value other than NONE, then the - default value for localityLbPolicy is MAGLEV. Only ROUND_ROBIN and - RING_HASH are supported when the backend service is referenced by a - URL map that is bound to target gRPC proxy that has - validateForProxyless field set to true. localityLbPolicy cannot be - specified with haPolicy. + The possible values are: + + :: + + - ROUND_ROBIN: This is a simple policy in which each healthy + backend is selected in round robin order. This is the default. + - LEAST_REQUEST: An O(1) algorithm which + selects two random healthy hosts and picks the host which has fewer active + requests. + - RING_HASH: The ring/modulo hash load balancer implements + consistent hashing to backends. The algorithm has the property that the + addition/removal of a host from a set of N hosts only affects 1/N of the + requests. + - RANDOM: The load balancer selects a random healthy + host. + - ORIGINAL_DESTINATION: Backend host is selected + based on the client connection metadata, i.e., connections are opened to + the same address as the destination address of the incoming connection + before the connection was redirected to the load balancer. + - MAGLEV: used as a drop in replacement for the ring hash + load balancer. Maglev is not as stable as ring hash but has faster table + lookup build times and host selection times. For more information about + Maglev, see Maglev: + A Fast and Reliable Software Network Load Balancer. + - WEIGHTED_ROUND_ROBIN: Per-endpoint Weighted Round Robin + Load Balancing using weights computed from Backend reported Custom Metrics. + If set, the Backend Service responses are expected to contain non-standard + HTTP response header field Endpoint-Load-Metrics. The reported + metrics to use for computing the weights are specified via thecustomMetrics field. + + This field is applicable to either: + - A regional backend service with the service_protocol set to HTTP, + HTTPS, HTTP2 or H2C, and load_balancing_scheme set to + INTERNAL_MANAGED. + - A global backend service with the + load_balancing_scheme set to INTERNAL_SELF_MANAGED, INTERNAL_MANAGED, or + EXTERNAL_MANAGED. + + + If sessionAffinity is not configured—that is, if session + affinity remains at the default value of NONE—then the + default value for localityLbPolicy + is ROUND_ROBIN. If session affinity is set to a value other + than NONE, + then the default value for localityLbPolicy isMAGLEV. + + Only ROUND_ROBIN and RING_HASH are supported + when the backend service is referenced by a URL map that is bound to + target gRPC proxy that has validateForProxyless field set to true. + + localityLbPolicy cannot be specified with haPolicy. Values: UNDEFINED_LOCALITY_LB_POLICY (0): @@ -16243,8 +18680,10 @@ class LocalityLbPolicy(proto.Enum): Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about - Maglev, see Maglev: A Fast and Reliable Software - Network Load Balancer. + Maglev, seeMaglev: + + A Fast and Reliable Software Network Load + Balancer. ORIGINAL_DESTINATION (166297216): Backend host is selected based on the client connection metadata, i.e., connections are @@ -16268,9 +18707,9 @@ class LocalityLbPolicy(proto.Enum): Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is - weighted rendezvous hashing. This option is only - supported in internal passthrough network load - balancing. + weighted rendezvous hashing. + This option is only supported in internal + passthrough network load balancing. WEIGHTED_MAGLEV (254930962): Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure @@ -16289,9 +18728,9 @@ class LocalityLbPolicy(proto.Enum): reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field - Endpoint-Load-Metrics. The reported metrics to - use for computing the weights are specified via - the customMetrics fields. + Endpoint-Load-Metrics. The reported metrics + to use for computing the weights are specified + via the customMetrics fields. """ UNDEFINED_LOCALITY_LB_POLICY = 0 INVALID_LB_POLICY = 323318707 @@ -16306,13 +18745,16 @@ class LocalityLbPolicy(proto.Enum): WEIGHTED_ROUND_ROBIN = 5584977 class Protocol(proto.Enum): - r"""The protocol this BackendService uses to communicate with - backends. Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, - UDP or GRPC. depending on the chosen load balancer or Traffic - Director configuration. Refer to the documentation for the load - balancers or for Traffic Director for more information. Must be - set to GRPC when the backend service is referenced by a URL map - that is bound to target gRPC proxy. + r"""The protocol this BackendService uses to communicate + with backends. + + Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP or + GRPC. depending on the chosen load balancer or Traffic Director + configuration. Refer to the documentation for the load balancers + or for Traffic Director for more information. + + Must be set to GRPC when the backend service is referenced by a + URL map that is bound to target gRPC proxy. Values: UNDEFINED_PROTOCOL (0): @@ -16351,12 +18793,15 @@ class Protocol(proto.Enum): UNSPECIFIED = 526786327 class SessionAffinity(proto.Enum): - r"""Type of session affinity to use. The default is NONE. Only NONE and - HEADER_FIELD are supported when the backend service is referenced by - a URL map that is bound to target gRPC proxy that has - validateForProxyless field set to true. For more details, see: - `Session + r"""Type of session affinity to use. The default is NONE. + + Only NONE and HEADER_FIELD are supported when the backend service is + referenced by a URL map that is bound to target gRPC proxy that has + validateForProxyless field set to true. + + For more details, see: `Session Affinity `__. + sessionAffinity cannot be specified with haPolicy. Values: @@ -16705,24 +19150,25 @@ class BackendServiceAggregatedList(proto.Message): A list of BackendServicesScopedList resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -16791,23 +19237,25 @@ class BackendServiceCdnPolicy(proto.Message): This field is a member of `oneof`_ ``_cache_key_policy``. cache_mode (str): Specifies the cache setting for all responses from this - backend. The possible values are: USE_ORIGIN_HEADERS - Requires the origin to set valid caching headers to cache - content. Responses without these headers will not be cached - at Google's edge, and will require a full trip to the origin - on every request, potentially impacting performance and - increasing load on the origin server. FORCE_CACHE_ALL Cache + backend. The possible values are:USE_ORIGIN_HEADERS Requires + the origin to set valid caching headers to cache content. + Responses without these headers will not be cached at + Google's edge, and will require a full trip to the origin on + every request, potentially impacting performance and + increasing load on the origin server.FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, - per-user (user identifiable) content. CACHE_ALL_STATIC + per-user (user identifiable) content.CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), - will not be cached. If no value is provided for - cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. Check - the CacheMode enum for the list of possible values. + will not be cached. + + If no value is provided for cdnPolicy.cacheMode, it defaults + to CACHE_ALL_STATIC. Check the CacheMode enum for the list + of possible values. This field is a member of `oneof`_ ``_cache_mode``. client_ttl (int): @@ -16840,17 +19288,19 @@ class BackendServiceCdnPolicy(proto.Message): This field is a member of `oneof`_ ``_default_ttl``. max_ttl (int): Specifies the maximum allowed TTL for cached - content served by this origin. Cache directives - that attempt to set a max-age or s-maxage higher - than this, or an Expires header more than maxTTL - seconds in the future will be capped at the - value of maxTTL, as if it were the value of an - s-maxage Cache-Control directive. Headers sent - to the client will not be modified. Setting a - TTL of "0" means "always revalidate". The - maximum allowed value is 31,622,400s (1 year), - noting that infrequently accessed objects may be - evicted from the cache before the defined TTL. + content served by this origin. + Cache directives that attempt to set a max-age + or s-maxage higher than this, or an Expires + header more than maxTTL seconds in the future + will be capped at the value of maxTTL, as if it + were the value of an s-maxage Cache-Control + directive. + Headers sent to the client will not be modified. + Setting a TTL of "0" means "always revalidate". + The maximum allowed value is 31,622,400s (1 + year), noting that infrequently accessed objects + may be evicted from the cache before the defined + TTL. This field is a member of `oneof`_ ``_max_ttl``. negative_caching (bool): @@ -16893,16 +19343,17 @@ class BackendServiceCdnPolicy(proto.Message): Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when - refreshing the cache. This setting defines the - default "max-stale" duration for any cached - responses that do not specify a max-stale - directive. Stale responses that exceed the TTL - configured here will not be served. The default - limit (max-stale) is 86400s (1 day), which will - allow stale content to be served up to this - limit beyond the max-age (or s-maxage) of a - cached response. The maximum allowed value is - 604800 (1 week). Set this to zero (0) to disable + refreshing the cache. + This setting defines the default "max-stale" + duration for any cached responses that do not + specify a max-stale directive. Stale responses + that exceed the TTL configured here will not be + served. The default limit (max-stale) is 86400s + (1 day), which will allow stale content to be + served up to this limit beyond the max-age (or + s-maxage) of a cached response. + The maximum allowed value is 604800 (1 week). + Set this to zero (0) to disable serve-while-stale. This field is a member of `oneof`_ ``_serve_while_stale``. @@ -16924,20 +19375,22 @@ class BackendServiceCdnPolicy(proto.Message): class CacheMode(proto.Enum): r"""Specifies the cache setting for all responses from this backend. The - possible values are: USE_ORIGIN_HEADERS Requires the origin to set + possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting - performance and increasing load on the origin server. - FORCE_CACHE_ALL Cache all content, ignoring any "private", - "no-store" or "no-cache" directives in Cache-Control response - headers. Warning: this may result in Cloud CDN caching private, - per-user (user identifiable) content. CACHE_ALL_STATIC Automatically - cache static content, including common image formats, media (video - and audio), and web assets (JavaScript and CSS). Requests and - responses that are marked as uncacheable, as well as dynamic content - (including HTML), will not be cached. If no value is provided for - cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. + performance and increasing load on the origin server.FORCE_CACHE_ALL + Cache all content, ignoring any "private", "no-store" or "no-cache" + directives in Cache-Control response headers. Warning: this may + result in Cloud CDN caching private, per-user (user identifiable) + content.CACHE_ALL_STATIC Automatically cache static content, + including common image formats, media (video and audio), and web + assets (JavaScript and CSS). Requests and responses that are marked + as uncacheable, as well as dynamic content (including HTML), will + not be cached. + + If no value is provided for cdnPolicy.cacheMode, it defaults to + CACHE_ALL_STATIC. Values: UNDEFINED_CACHE_MODE (0): @@ -17071,9 +19524,9 @@ class BackendServiceCdnPolicyNegativeCachingPolicy(proto.Message): code (int): The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, - 404, 405, 410, 421, 451 and 501 are can be - specified as values, and you cannot specify a - status code more than once. + 404, 405, 410, 421, 451 and 501 can be specified + as values, and you cannot specify a status code + more than once. This field is a member of `oneof`_ ``_code``. ttl (int): @@ -17106,21 +19559,28 @@ class BackendServiceConnectionTrackingPolicy(proto.Message): Attributes: connection_persistence_on_unhealthy_backends (str): Specifies connection persistence when backends are - unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set - to DEFAULT_FOR_PROTOCOL, the existing connections persist on - unhealthy backends only for connection-oriented protocols - (TCP and SCTP) and only if the Tracking Mode is - PER_CONNECTION (default tracking mode) or the Session - Affinity is configured for 5-tuple. They do not persist for - UDP. If set to NEVER_PERSIST, after a backend becomes - unhealthy, the existing connections on the unhealthy backend - are never persisted on the unhealthy backend. They are - always diverted to newly selected healthy backends (unless - all backends are unhealthy). If set to ALWAYS_PERSIST, - existing connections always persist on unhealthy backends - regardless of protocol and session affinity. It is generally - not recommended to use this mode overriding the default. For - more details, see `Connection Persistence for Network Load + unhealthy. The default value is DEFAULT_FOR_PROTOCOL. + + If set to DEFAULT_FOR_PROTOCOL, the existing connections + persist on unhealthy backends only for connection-oriented + protocols (TCP and SCTP) and only if the Tracking Mode + isPER_CONNECTION (default tracking mode) or the Session + Affinity is configured for 5-tuple. They do not persist + forUDP. + + If set to NEVER_PERSIST, after a backend becomes unhealthy, + the existing connections on the unhealthy backend are never + persisted on the unhealthy backend. They are always diverted + to newly selected healthy backends (unless all backends are + unhealthy). + + If set to ALWAYS_PERSIST, existing connections always + persist on unhealthy backends regardless of protocol and + session affinity. It is generally not recommended to use + this mode overriding the default. + + For more details, see `Connection Persistence for Network + Load Balancing `__ and `Connection Persistence for Internal TCP/UDP Load Balancing `__. @@ -17136,25 +19596,35 @@ class BackendServiceConnectionTrackingPolicy(proto.Message): This field is a member of `oneof`_ ``_enable_strong_affinity``. idle_timeout_sec (int): Specifies how long to keep a Connection Tracking entry while - there is no matching traffic (in seconds). For internal - passthrough Network Load Balancers: - The minimum (default) - is 10 minutes and the maximum is 16 hours. - It can be set - only if Connection Tracking is less than 5-tuple (i.e. - Session Affinity is CLIENT_IP_NO_DESTINATION, CLIENT_IP or - CLIENT_IP_PROTO, and Tracking Mode is PER_SESSION). For - external passthrough Network Load Balancers the default is - 60 seconds. This option is not available publicly. + there is no matching traffic (in seconds). + + For internal passthrough Network Load Balancers: + + :: + + - The minimum (default) is 10 minutes and the maximum is 16 hours. + - It can be set only if Connection Tracking is less than 5-tuple + (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and Tracking + Mode is PER_SESSION). + + For external passthrough Network Load Balancers the default + is 60 seconds. This option is not available publicly. This field is a member of `oneof`_ ``_idle_timeout_sec``. tracking_mode (str): Specifies the key used for connection tracking. There are - two options: - PER_CONNECTION: This is the default mode. The - Connection Tracking is performed as per the Connection Key - (default Hash Method) for the specific protocol. - - PER_SESSION: The Connection Tracking is performed as per the - configured Session Affinity. It matches the configured - Session Affinity. For more details, see `Tracking Mode for - Network Load + two options: + + :: + + - PER_CONNECTION: This is the default mode. The Connection + Tracking is performed as per the Connection Key (default Hash Method) for + the specific protocol. + - PER_SESSION: The Connection Tracking is performed as per + the configured Session Affinity. It matches the configured Session + Affinity. + + For more details, see `Tracking Mode for Network Load Balancing `__ and `Tracking Mode for Internal TCP/UDP Load Balancing `__. @@ -17165,20 +19635,25 @@ class BackendServiceConnectionTrackingPolicy(proto.Message): class ConnectionPersistenceOnUnhealthyBackends(proto.Enum): r"""Specifies connection persistence when backends are unhealthy. The - default value is DEFAULT_FOR_PROTOCOL. If set to - DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy - backends only for connection-oriented protocols (TCP and SCTP) and - only if the Tracking Mode is PER_CONNECTION (default tracking mode) - or the Session Affinity is configured for 5-tuple. They do not - persist for UDP. If set to NEVER_PERSIST, after a backend becomes - unhealthy, the existing connections on the unhealthy backend are - never persisted on the unhealthy backend. They are always diverted - to newly selected healthy backends (unless all backends are - unhealthy). If set to ALWAYS_PERSIST, existing connections always - persist on unhealthy backends regardless of protocol and session - affinity. It is generally not recommended to use this mode - overriding the default. For more details, see `Connection - Persistence for Network Load + default value is DEFAULT_FOR_PROTOCOL. + + If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on + unhealthy backends only for connection-oriented protocols (TCP and + SCTP) and only if the Tracking Mode isPER_CONNECTION (default + tracking mode) or the Session Affinity is configured for 5-tuple. + They do not persist forUDP. + + If set to NEVER_PERSIST, after a backend becomes unhealthy, the + existing connections on the unhealthy backend are never persisted on + the unhealthy backend. They are always diverted to newly selected + healthy backends (unless all backends are unhealthy). + + If set to ALWAYS_PERSIST, existing connections always persist on + unhealthy backends regardless of protocol and session affinity. It + is generally not recommended to use this mode overriding the + default. + + For more details, see `Connection Persistence for Network Load Balancing `__ and `Connection Persistence for Internal TCP/UDP Load Balancing `__. @@ -17201,12 +19676,18 @@ class ConnectionPersistenceOnUnhealthyBackends(proto.Enum): class TrackingMode(proto.Enum): r"""Specifies the key used for connection tracking. There are two - options: - PER_CONNECTION: This is the default mode. The Connection - Tracking is performed as per the Connection Key (default Hash - Method) for the specific protocol. - PER_SESSION: The Connection - Tracking is performed as per the configured Session Affinity. It - matches the configured Session Affinity. For more details, see - `Tracking Mode for Network Load + options: + + :: + + - PER_CONNECTION: This is the default mode. The Connection + Tracking is performed as per the Connection Key (default Hash Method) for + the specific protocol. + - PER_SESSION: The Connection Tracking is performed as per + the configured Session Affinity. It matches the configured Session + Affinity. + + For more details, see `Tracking Mode for Network Load Balancing `__ and `Tracking Mode for Internal TCP/UDP Load Balancing `__. @@ -17263,15 +19744,15 @@ class BackendServiceCustomMetric(proto.Message): name (str): Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression - `a-z <[-_.a-z0-9]*[a-z0-9]>`__? which means that the first + ``[a-z]([-_.a-z0-9]*[a-z0-9])?`` which means that the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the - loadBalancingScheme set to EXTERNAL_MANAGED, - INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + loadBalancingScheme set to EXTERNAL_MANAGED,INTERNAL_MANAGED + INTERNAL_SELF_MANAGED. This field is a member of `oneof`_ ``_name``. """ @@ -17309,7 +19790,8 @@ class BackendServiceFailoverPolicy(proto.Message): Attributes: disable_connection_drain_on_failover (bool): This can be set to true only if the protocol - is TCP. The default is false. + isTCP. + The default is false. This field is a member of `oneof`_ ``_disable_connection_drain_on_failover``. drop_traffic_if_unhealthy (bool): @@ -17326,7 +19808,7 @@ class BackendServiceFailoverPolicy(proto.Message): This field is a member of `oneof`_ ``_drop_traffic_if_unhealthy``. failover_ratio (float): - The value of the field must be in the range [0, 1]. If the + The value of the field must be in the range[0, 1]. If the value is 0, the load balancer performs a failover when the number of healthy primary VMs equals zero. For all other values, the load balancer performs a failover when the total @@ -17372,9 +19854,9 @@ class BackendServiceGroupHealth(proto.Message): endpoint group, determined based on configured health checks. kind (str): - [Output Only] Type of resource. Always - compute#backendServiceGroupHealth for the health of backend - services. + Output only. [Output Only] Type of resource. + Alwayscompute#backendServiceGroupHealth for the health of + backend services. This field is a member of `oneof`_ ``_kind``. """ @@ -17404,141 +19886,182 @@ class BackendServiceHAPolicy(proto.Message): Attributes: fast_i_p_move (str): Specifies whether fast IP move is enabled, and if so, the - mechanism to achieve it. Supported values are: - DISABLED: - Fast IP Move is disabled. You can only use the - haPolicy.leader API to update the leader. - >GARP_RA: - Provides a method to very quickly define a new network - endpoint as the leader. This method is faster than updating - the leader using the haPolicy.leader API. Fast IP move works - as follows: The VM hosting the network endpoint that should - become the new leader sends either a Gratuitous ARP (GARP) - packet (IPv4) or an ICMPv6 Router Advertisement(RA) packet - (IPv6). Google Cloud immediately but temporarily associates - the forwarding rule IP address with that VM, and both new - and in-flight packets are quickly delivered to that VM. Note - the important properties of the Fast IP Move functionality: - - The GARP/RA-initiated re-routing stays active for - approximately 20 minutes. After triggering fast failover, - you must also appropriately set the haPolicy.leader. - The - new leader instance should continue to send GARP/RA packets - periodically every 10 seconds until at least 10 minutes - after updating the haPolicy.leader (but stop immediately if - it is no longer the leader). - After triggering a fast - failover, we recommend that you wait at least 3 seconds - before sending another GARP/RA packet from a different VM - instance to avoid race conditions. - Don't send GARP/RA - packets from different VM instances at the same time. If - multiple instances continue to send GARP/RA packets, traffic - might be routed to different destinations in an alternating - order. This condition ceases when a single instance issues a - GARP/RA packet. - The GARP/RA request always takes priority - over the leader API. Using the haPolicy.leader API to change - the leader to a different instance will have no effect until - the GARP/RA request becomes inactive. - The GARP/RA packets - should follow the GARP/RA Packet Specifications.. - When - multiple forwarding rules refer to a regional backend - service, you need only send a GARP or RA packet for a single - forwarding rule virtual IP. The virtual IPs for all - forwarding rules targeting the same backend service will - also be moved to the sender of the GARP or RA packet. The - following are the Fast IP Move limitations (that is, when - fastIPMove is not DISABLED): - Multiple forwarding rules - cannot use the same IP address if one of them refers to a - regional backend service with fastIPMove. - The regional - backend service must set the network field, and all NEGs - must belong to that network. However, individual NEGs can - belong to different subnetworks of that network. - The - maximum number of network endpoints across all backends of a - backend service with fastIPMove is 32. - The maximum number - of backend services with fastIPMove that can have the same - network endpoint attached to one of its backends is 64. - - The maximum number of backend services with fastIPMove in a - VPC in a region is 64. - The network endpoints that are - attached to a backend of a backend service with fastIPMove - cannot resolve to Gen3+ machines for IPv6. - Traffic - directed to the leader by a static route next hop will not - be redirected to a new leader by fast failover. Such traffic - will only be redirected once an haPolicy.leader update has - taken effect. Only traffic to the forwarding rule's virtual - IP will be redirected to a new leader by fast failover. + mechanism to achieve it. + + Supported values are: + + :: + + - DISABLED: Fast IP Move is disabled. You can only use the + haPolicy.leader API to update the leader. + - >GARP_RA: Provides a method to very quickly define a new network + endpoint as the leader. This method is faster than updating the leader + using the haPolicy.leader API. Fast IP move works as follows: The VM + hosting the network endpoint that should become the new leader sends + either a Gratuitous ARP (GARP) packet (IPv4) or an ICMPv6 Router + Advertisement(RA) packet (IPv6). Google Cloud immediately but + temporarily associates the forwarding rule IP address with that VM, and + both new and in-flight packets are quickly delivered to that VM. + + Note the important properties of the Fast IP Move + functionality: + + :: + + - The GARP/RA-initiated re-routing stays active for approximately 20 + minutes. After triggering fast failover, you must also + appropriately set the haPolicy.leader. + - The new leader instance should continue to send GARP/RA packets + periodically every 10 seconds until at least 10 minutes after updating + the haPolicy.leader (but stop immediately if it is no longer the leader). + - After triggering a fast failover, we recommend that you wait at least + 3 seconds before sending another GARP/RA packet from a different VM + instance to avoid race conditions. + - Don't send GARP/RA packets from different VM + instances at the same time. If multiple instances continue to send + GARP/RA packets, traffic might be routed to different destinations in an + alternating order. This condition ceases when a single instance + issues a GARP/RA packet. + - The GARP/RA request always takes priority over the leader API. + Using the haPolicy.leader API to change the leader to a different + instance will have no effect until the GARP/RA request becomes + inactive. + - The GARP/RA packets should follow the GARP/RA + Packet Specifications.. + - When multiple forwarding rules refer to a regional backend service, + you need only send a GARP or RA packet for a single forwarding rule + virtual IP. The virtual IPs for all forwarding rules targeting the same + backend service will also be moved to the sender of the GARP or RA + packet. + + The following are the Fast IP Move limitations (that is, + when fastIPMove is not DISABLED): + + :: + + - Multiple forwarding rules cannot use the same IP address if one of + them refers to a regional backend service with fastIPMove. + - The regional backend service must set the network field, and all + NEGs must belong to that network. However, individual + NEGs can belong to different subnetworks of that network. + - The maximum number of network endpoints across all backends of a + backend service with fastIPMove is 32. + - The maximum number of backend services with fastIPMove that can have + the same network endpoint attached to one of its backends is 64. + - The maximum number of backend services with fastIPMove in a VPC in a + region is 64. + - The network endpoints that are attached to a backend of a backend + service with fastIPMove cannot resolve to Gen3+ machines for IPv6. + - Traffic directed to the leader by a static route next hop will not be + redirected to a new leader by fast failover. Such traffic will only be + redirected once an haPolicy.leader update has taken effect. Only traffic + to the forwarding rule's virtual IP will be redirected to a new leader by + fast failover. + haPolicy.fastIPMove can be set only at backend service - creation time. Once set, it cannot be updated. By default, - fastIpMove is set to DISABLED. Check the FastIPMove enum for - the list of possible values. + creation time. Once set, it cannot be updated. + + By default, fastIpMove is set to DISABLED. Check the + FastIPMove enum for the list of possible values. This field is a member of `oneof`_ ``_fast_i_p_move``. leader (google.cloud.compute_v1.types.BackendServiceHAPolicyLeader): Selects one of the network endpoints attached to the backend NEGs of this service as the active endpoint (the leader) that receives all - traffic. When the leader changes, there is no - connection draining to persist existing - connections on the old leader. You are - responsible for selecting a suitable endpoint as - the leader. For example, preferring a healthy - endpoint over unhealthy ones. Note that this - service does not track backend endpoint health, - and selects the configured leader - unconditionally. + traffic. + + When the leader changes, there is no connection + draining to persist existing connections on the + old leader. + + You are responsible for selecting a suitable + endpoint as the leader. For example, preferring + a healthy endpoint over unhealthy ones. Note + that this service does not track backend + endpoint health, and selects the configured + leader unconditionally. This field is a member of `oneof`_ ``_leader``. """ class FastIPMove(proto.Enum): r"""Specifies whether fast IP move is enabled, and if so, the mechanism - to achieve it. Supported values are: - DISABLED: Fast IP Move is - disabled. You can only use the haPolicy.leader API to update the - leader. - >GARP_RA: Provides a method to very quickly define a new - network endpoint as the leader. This method is faster than updating - the leader using the haPolicy.leader API. Fast IP move works as - follows: The VM hosting the network endpoint that should become the - new leader sends either a Gratuitous ARP (GARP) packet (IPv4) or an - ICMPv6 Router Advertisement(RA) packet (IPv6). Google Cloud - immediately but temporarily associates the forwarding rule IP - address with that VM, and both new and in-flight packets are quickly - delivered to that VM. Note the important properties of the Fast IP - Move functionality: - The GARP/RA-initiated re-routing stays active - for approximately 20 minutes. After triggering fast failover, you - must also appropriately set the haPolicy.leader. - The new leader - instance should continue to send GARP/RA packets periodically every - 10 seconds until at least 10 minutes after updating the - haPolicy.leader (but stop immediately if it is no longer the - leader). - After triggering a fast failover, we recommend that you - wait at least 3 seconds before sending another GARP/RA packet from a - different VM instance to avoid race conditions. - Don't send GARP/RA - packets from different VM instances at the same time. If multiple - instances continue to send GARP/RA packets, traffic might be routed - to different destinations in an alternating order. This condition - ceases when a single instance issues a GARP/RA packet. - The GARP/RA - request always takes priority over the leader API. Using the - haPolicy.leader API to change the leader to a different instance - will have no effect until the GARP/RA request becomes inactive. - - The GARP/RA packets should follow the GARP/RA Packet - Specifications.. - When multiple forwarding rules refer to a - regional backend service, you need only send a GARP or RA packet for - a single forwarding rule virtual IP. The virtual IPs for all - forwarding rules targeting the same backend service will also be - moved to the sender of the GARP or RA packet. The following are the - Fast IP Move limitations (that is, when fastIPMove is not DISABLED): - - Multiple forwarding rules cannot use the same IP address if one of - them refers to a regional backend service with fastIPMove. - The - regional backend service must set the network field, and all NEGs - must belong to that network. However, individual NEGs can belong to - different subnetworks of that network. - The maximum number of - network endpoints across all backends of a backend service with - fastIPMove is 32. - The maximum number of backend services with - fastIPMove that can have the same network endpoint attached to one - of its backends is 64. - The maximum number of backend services with - fastIPMove in a VPC in a region is 64. - The network endpoints that - are attached to a backend of a backend service with fastIPMove - cannot resolve to Gen3+ machines for IPv6. - Traffic directed to the - leader by a static route next hop will not be redirected to a new - leader by fast failover. Such traffic will only be redirected once - an haPolicy.leader update has taken effect. Only traffic to the - forwarding rule's virtual IP will be redirected to a new leader by - fast failover. haPolicy.fastIPMove can be set only at backend - service creation time. Once set, it cannot be updated. By default, - fastIpMove is set to DISABLED. + to achieve it. + + Supported values are: + + :: + + - DISABLED: Fast IP Move is disabled. You can only use the + haPolicy.leader API to update the leader. + - >GARP_RA: Provides a method to very quickly define a new network + endpoint as the leader. This method is faster than updating the leader + using the haPolicy.leader API. Fast IP move works as follows: The VM + hosting the network endpoint that should become the new leader sends + either a Gratuitous ARP (GARP) packet (IPv4) or an ICMPv6 Router + Advertisement(RA) packet (IPv6). Google Cloud immediately but + temporarily associates the forwarding rule IP address with that VM, and + both new and in-flight packets are quickly delivered to that VM. + + Note the important properties of the Fast IP Move functionality: + + :: + + - The GARP/RA-initiated re-routing stays active for approximately 20 + minutes. After triggering fast failover, you must also + appropriately set the haPolicy.leader. + - The new leader instance should continue to send GARP/RA packets + periodically every 10 seconds until at least 10 minutes after updating + the haPolicy.leader (but stop immediately if it is no longer the leader). + - After triggering a fast failover, we recommend that you wait at least + 3 seconds before sending another GARP/RA packet from a different VM + instance to avoid race conditions. + - Don't send GARP/RA packets from different VM + instances at the same time. If multiple instances continue to send + GARP/RA packets, traffic might be routed to different destinations in an + alternating order. This condition ceases when a single instance + issues a GARP/RA packet. + - The GARP/RA request always takes priority over the leader API. + Using the haPolicy.leader API to change the leader to a different + instance will have no effect until the GARP/RA request becomes + inactive. + - The GARP/RA packets should follow the GARP/RA + Packet Specifications.. + - When multiple forwarding rules refer to a regional backend service, + you need only send a GARP or RA packet for a single forwarding rule + virtual IP. The virtual IPs for all forwarding rules targeting the same + backend service will also be moved to the sender of the GARP or RA + packet. + + The following are the Fast IP Move limitations (that is, when + fastIPMove is not DISABLED): + + :: + + - Multiple forwarding rules cannot use the same IP address if one of + them refers to a regional backend service with fastIPMove. + - The regional backend service must set the network field, and all + NEGs must belong to that network. However, individual + NEGs can belong to different subnetworks of that network. + - The maximum number of network endpoints across all backends of a + backend service with fastIPMove is 32. + - The maximum number of backend services with fastIPMove that can have + the same network endpoint attached to one of its backends is 64. + - The maximum number of backend services with fastIPMove in a VPC in a + region is 64. + - The network endpoints that are attached to a backend of a backend + service with fastIPMove cannot resolve to Gen3+ machines for IPv6. + - Traffic directed to the leader by a static route next hop will not be + redirected to a new leader by fast failover. Such traffic will only be + redirected once an haPolicy.leader update has taken effect. Only traffic + to the forwarding rule's virtual IP will be redirected to a new leader by + fast failover. + + haPolicy.fastIPMove can be set only at backend service creation + time. Once set, it cannot be updated. + + By default, fastIpMove is set to DISABLED. Values: UNDEFINED_FAST_I_P_MOVE (0): @@ -17576,17 +20099,20 @@ class BackendServiceHAPolicyLeader(proto.Message): A fully-qualified URL (starting with https://www.googleapis.com/) of the zonal Network Endpoint Group (NEG) with ``GCE_VM_IP`` endpoints that the leader is - attached to. The leader's backendGroup must already be - specified as a backend of this backend service. Removing a - backend that is designated as the leader's backendGroup is - not permitted. + attached to. + + The leader's backendGroup must already be specified as a + backend of this backend service. Removing a backend that is + designated as the leader's backendGroup is not permitted. This field is a member of `oneof`_ ``_backend_group``. network_endpoint (google.cloud.compute_v1.types.BackendServiceHAPolicyLeaderNetworkEndpoint): The network endpoint within the leader.backendGroup that is designated as the - leader. This network endpoint cannot be detached - from the NEG specified in the + leader. + + This network endpoint cannot be detached from + the NEG specified in the haPolicy.leader.backendGroup until the leader is updated with another network endpoint, or the leader is removed from the haPolicy. @@ -17617,11 +20143,12 @@ class BackendServiceHAPolicyLeaderNetworkEndpoint(proto.Message): The name of the VM instance of the leader network endpoint. The instance must already be attached to the NEG specified in the - haPolicy.leader.backendGroup. The name must be - 1-63 characters long, and comply with RFC1035. - Authorization requires the following IAM - permission on the specified resource instance: - compute.instances.use + haPolicy.leader.backendGroup. + + The name must be 1-63 characters long, and + comply with RFC1035. Authorization requires the + following IAM permission on the specified + resource instance: compute.instances.use This field is a member of `oneof`_ ``_instance``. """ @@ -17693,11 +20220,13 @@ class BackendServiceIAP(proto.Message): authentication flow. For security reasons, this value cannot be retrieved via the API. Instead, the SHA-256 hash of the value is returned in the - oauth2ClientSecretSha256 field. @InputOnly + oauth2ClientSecretSha256 field. + + @InputOnly This field is a member of `oneof`_ ``_oauth2_client_secret``. oauth2_client_secret_sha256 (str): - [Output Only] SHA256 hash value for the field + Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above. This field is a member of `oneof`_ ``_oauth2_client_secret_sha256``. @@ -17739,21 +20268,23 @@ class BackendServiceList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.BackendService]): A list of BackendService resources. kind (str): - [Output Only] Type of resource. Always - compute#backendServiceList for lists of backend services. + Output only. [Output Only] Type of resource. + Alwayscompute#backendServiceList for lists of backend + services. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -17813,22 +20344,23 @@ class BackendServiceListUsable(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.BackendService]): A list of BackendService resources. kind (str): - [Output Only] Type of resource. Always - compute#usableBackendServiceList for lists of usable backend - services. + Output only. [Output Only] Type of resource. + Alwayscompute#usableBackendServiceList for lists of usable + backend services. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -17921,16 +20453,21 @@ class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy(proto.Message) This field is a member of `oneof`_ ``_data``. name (str): - Identifies the custom policy. The value - should match the name of a custom implementation - registered on the gRPC clients. It should follow - protocol buffer message naming conventions and - include the full path (for example, - myorg.CustomLbPolicy). The maximum length is 256 - characters. Do not specify the same custom - policy more than once for a backend. If you do, - the configuration is rejected. For an example of - how to use this field, see Use a custom policy. + Identifies the custom policy. + + The value should match the name of a custom + implementation registered on the gRPC clients. + It should follow protocol buffer message naming + conventions and include the full path (for + example, myorg.CustomLbPolicy). The maximum + length is 256 characters. + + Do not specify the same custom policy more than + once for a backend. If you do, the configuration + is rejected. + + For an example of how to use this field, seeUse + a custom policy. This field is a member of `oneof`_ ``_name``. """ @@ -17957,10 +20494,11 @@ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy(proto.Message): The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of - localityLbPolicy. Do not specify the same policy more than - once for a backend. If you do, the configuration is - rejected. Check the Name enum for the list of possible - values. + localityLbPolicy. + + Do not specify the same policy more than once for a backend. + If you do, the configuration is rejected. Check the Name + enum for the list of possible values. This field is a member of `oneof`_ ``_name``. """ @@ -17968,9 +20506,10 @@ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy(proto.Message): class Name(proto.Enum): r"""The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information - about these values, see the description of localityLbPolicy. Do not - specify the same policy more than once for a backend. If you do, the - configuration is rejected. + about these values, see the description of localityLbPolicy. + + Do not specify the same policy more than once for a backend. If you + do, the configuration is rejected. Values: UNDEFINED_NAME (0): @@ -17989,8 +20528,10 @@ class Name(proto.Enum): Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about - Maglev, see Maglev: A Fast and Reliable Software - Network Load Balancer. + Maglev, seeMaglev: + + A Fast and Reliable Software Network Load + Balancer. ORIGINAL_DESTINATION (166297216): Backend host is selected based on the client connection metadata, i.e., connections are @@ -18014,9 +20555,9 @@ class Name(proto.Enum): Per-instance weighted Load Balancing via health check reported weights. In internal passthrough network load balancing, it is - weighted rendezvous hashing. This option is only - supported in internal passthrough network load - balancing. + weighted rendezvous hashing. + This option is only supported in internal + passthrough network load balancing. WEIGHTED_MAGLEV (254930962): Per-instance weighted Load Balancing via health check reported weights. If set, the Backend Service must configure @@ -18035,9 +20576,9 @@ class Name(proto.Enum): reported Custom Metrics. If set, the Backend Service responses are expected to contain non-standard HTTP response header field - Endpoint-Load-Metrics. The reported metrics to - use for computing the weights are specified via - the customMetrics fields. + Endpoint-Load-Metrics. The reported metrics + to use for computing the weights are specified + via the customMetrics fields. """ UNDEFINED_NAME = 0 INVALID_LB_POLICY = 323318707 @@ -18078,6 +20619,7 @@ class BackendServiceLogConfig(proto.Message): "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: + serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace optional_mode (str): @@ -18154,11 +20696,15 @@ class BackendServiceParams(proto.Message): tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are - valid inputs: \* {"tagKeys/333" : "tagValues/444", - "tagKeys/123" : "tagValues/456"} \* {"123/environment" : - "production", "345/abc" : "xyz"} Note: \* Invalid - combinations of ID & namespaced format is not supported. For - instance: {"123/environment" : "tagValues/444"} is invalid. + valid inputs: + + - {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + "tagValues/456"} + - {"123/environment" : "production", "345/abc" : "xyz"} + Note: + - Invalid combinations of ID & namespaced format is not + supported. For instance: {"123/environment" : + "tagValues/444"} is invalid. """ resource_manager_tags: MutableMapping[str, str] = proto.MapField( @@ -18285,9 +20831,9 @@ class BackendServiceUsedBy(proto.Message): Attributes: reference (str): - [Output Only] Server-defined URL for resources referencing - given BackendService like UrlMaps, TargetTcpProxies, - TargetSslProxies and ForwardingRule. + Output only. [Output Only] Server-defined URL for resources + referencing given BackendService like UrlMaps, + TargetTcpProxies, TargetSslProxies and ForwardingRule. This field is a member of `oneof`_ ``_reference``. """ @@ -18336,19 +20882,19 @@ class BfdPacket(proto.Message): Attributes: authentication_present (bool): The Authentication Present bit of the BFD - packet. This is specified in section 4.1 of - RFC5880 + packet. This is specified in section 4.1 + ofRFC5880 This field is a member of `oneof`_ ``_authentication_present``. control_plane_independent (bool): The Control Plane Independent bit of the BFD - packet. This is specified in section 4.1 of - RFC5880 + packet. This is specified in section 4.1 + ofRFC5880 This field is a member of `oneof`_ ``_control_plane_independent``. demand (bool): The demand bit of the BFD packet. This is - specified in section 4.1 of RFC5880 + specified in section 4.1 ofRFC5880 This field is a member of `oneof`_ ``_demand``. diagnostic (str): @@ -18357,76 +20903,77 @@ class BfdPacket(proto.Message): state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in - section 4.1 of RFC5880 Check the Diagnostic enum - for the list of possible values. + section 4.1 ofRFC5880 + Check the Diagnostic enum for the list of + possible values. This field is a member of `oneof`_ ``_diagnostic``. final (bool): The Final bit of the BFD packet. This is - specified in section 4.1 of RFC5880 + specified in section 4.1 ofRFC5880 This field is a member of `oneof`_ ``_final``. length (int): The length of the BFD Control packet in - bytes. This is specified in section 4.1 of - RFC5880 + bytes. This is specified in section 4.1 + ofRFC5880 This field is a member of `oneof`_ ``_length``. min_echo_rx_interval_ms (int): The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 - of RFC5880 + ofRFC5880 This field is a member of `oneof`_ ``_min_echo_rx_interval_ms``. min_rx_interval_ms (int): The Required Min RX Interval value in the BFD - packet. This is specified in section 4.1 of - RFC5880 + packet. This is specified in section 4.1 + ofRFC5880 This field is a member of `oneof`_ ``_min_rx_interval_ms``. min_tx_interval_ms (int): The Desired Min TX Interval value in the BFD - packet. This is specified in section 4.1 of - RFC5880 + packet. This is specified in section 4.1 + ofRFC5880 This field is a member of `oneof`_ ``_min_tx_interval_ms``. multiplier (int): The detection time multiplier of the BFD - packet. This is specified in section 4.1 of - RFC5880 + packet. This is specified in section 4.1 + ofRFC5880 This field is a member of `oneof`_ ``_multiplier``. multipoint (bool): The multipoint bit of the BFD packet. This is - specified in section 4.1 of RFC5880 + specified in section 4.1 ofRFC5880 This field is a member of `oneof`_ ``_multipoint``. my_discriminator (int): The My Discriminator value in the BFD packet. - This is specified in section 4.1 of RFC5880 + This is specified in section 4.1 ofRFC5880 This field is a member of `oneof`_ ``_my_discriminator``. poll (bool): The Poll bit of the BFD packet. This is - specified in section 4.1 of RFC5880 + specified in section 4.1 ofRFC5880 This field is a member of `oneof`_ ``_poll``. state (str): The current BFD session state as seen by the transmitting system. These states are specified - in section 4.1 of RFC5880 Check the State enum + in section 4.1 ofRFC5880 Check the State enum for the list of possible values. This field is a member of `oneof`_ ``_state``. version (int): The version number of the BFD protocol, as - specified in section 4.1 of RFC5880. + specified in section 4.1 ofRFC5880. This field is a member of `oneof`_ ``_version``. your_discriminator (int): The Your Discriminator value in the BFD - packet. This is specified in section 4.1 of - RFC5880 + packet. This is specified in section 4.1 + ofRFC5880 This field is a member of `oneof`_ ``_your_discriminator``. """ @@ -18435,8 +20982,8 @@ class Diagnostic(proto.Enum): r"""The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for - example. These diagnostic codes are specified in section 4.1 of - RFC5880 + example. These diagnostic codes are specified in section 4.1 + ofRFC5880 Values: UNDEFINED_DIAGNOSTIC (0): @@ -18477,7 +21024,7 @@ class Diagnostic(proto.Enum): class State(proto.Enum): r"""The current BFD session state as seen by the transmitting - system. These states are specified in section 4.1 of RFC5880 + system. These states are specified in section 4.1 ofRFC5880 Values: UNDEFINED_STATE (0): @@ -18596,9 +21143,9 @@ class BfdStatus(proto.Message): If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is - disabled for this BGP peer. Check the - BfdSessionInitializationMode enum for the list - of possible values. + disabled for this BGP peer. + Check the BfdSessionInitializationMode enum for + the list of possible values. This field is a member of `oneof`_ ``_bfd_session_initialization_mode``. config_update_timestamp_micros (int): @@ -18620,14 +21167,15 @@ class BfdStatus(proto.Message): state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in - section 4.1 of RFC5880 Check the LocalDiagnostic - enum for the list of possible values. + section 4.1 ofRFC5880 + Check the LocalDiagnostic enum for the list of + possible values. This field is a member of `oneof`_ ``_local_diagnostic``. local_state (str): The current BFD session state as seen by the transmitting system. These states are specified - in section 4.1 of RFC5880 Check the LocalState + in section 4.1 ofRFC5880 Check the LocalState enum for the list of possible values. This field is a member of `oneof`_ ``_local_state``. @@ -18654,11 +21202,11 @@ class BfdStatus(proto.Message): """ class BfdSessionInitializationMode(proto.Enum): - r"""The BFD session initialization mode for this BGP peer. If set - to ACTIVE, the Cloud Router will initiate the BFD session for - this BGP peer. If set to PASSIVE, the Cloud Router will wait for - the peer router to initiate the BFD session for this BGP peer. - If set to DISABLED, BFD is disabled for this BGP peer. + r"""The BFD session initialization mode for this BGP peer. + If set to ACTIVE, the Cloud Router will initiate the BFD session + for this BGP peer. If set to PASSIVE, the Cloud Router will wait + for the peer router to initiate the BFD session for this BGP + peer. If set to DISABLED, BFD is disabled for this BGP peer. Values: UNDEFINED_BFD_SESSION_INITIALIZATION_MODE (0): @@ -18680,8 +21228,8 @@ class LocalDiagnostic(proto.Enum): r"""The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for - example. These diagnostic codes are specified in section 4.1 of - RFC5880 + example. These diagnostic codes are specified in section 4.1 + ofRFC5880 Values: UNDEFINED_LOCAL_DIAGNOSTIC (0): @@ -18722,7 +21270,7 @@ class LocalDiagnostic(proto.Enum): class LocalState(proto.Enum): r"""The current BFD session state as seen by the transmitting - system. These states are specified in section 4.1 of RFC5880 + system. These states are specified in section 4.1 ofRFC5880 Values: UNDEFINED_LOCAL_STATE (0): @@ -18860,27 +21408,29 @@ class BgpRoute(proto.Message): Attributes: as_paths (MutableSequence[google.cloud.compute_v1.types.BgpRouteAsPath]): - [Output only] AS-PATH for the route + Output only. [Output only] AS-PATH for the route communities (MutableSequence[str]): - [Output only] BGP communities in human-readable A:B format. + Output only. [Output only] BGP communities in human-readable + A:B format. destination (google.cloud.compute_v1.types.BgpRouteNetworkLayerReachabilityInformation): - [Output only] Destination IP range for the route, in - human-readable CIDR format + Output only. [Output only] Destination IP range for the + route, in human-readable CIDR format This field is a member of `oneof`_ ``_destination``. med (int): - [Output only] BGP multi-exit discriminator + Output only. [Output only] BGP multi-exit discriminator This field is a member of `oneof`_ ``_med``. origin (str): - [Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the - Origin enum for the list of possible values. + Output only. [Output only] BGP origin (EGP, IGP or + INCOMPLETE) Check the Origin enum for the list of possible + values. This field is a member of `oneof`_ ``_origin``. """ class Origin(proto.Enum): - r"""[Output only] BGP origin (EGP, IGP or INCOMPLETE) + r"""Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) Values: UNDEFINED_ORIGIN (0): @@ -18932,17 +21482,22 @@ class BgpRouteAsPath(proto.Message): Attributes: asns (MutableSequence[int]): - [Output only] ASNs in the path segment. When type is - SEQUENCE, these are ordered. + Output only. [Output only] ASNs in the path segment. When + type is SEQUENCE, these are ordered. + asns32 (MutableSequence[int]): + Output only. [Output only] ASNs in the path segment. This + field is for better support of 32 bit ASNs as the other asns + field suffers from overflow when the ASN is larger. When + type is SEQUENCE, these are ordered. type_ (str): - [Output only] Type of AS-PATH segment (SEQUENCE or SET) - Check the Type enum for the list of possible values. + Output only. [Output only] Type of AS-PATH segment (SEQUENCE + or SET) Check the Type enum for the list of possible values. This field is a member of `oneof`_ ``_type``. """ class Type(proto.Enum): - r"""[Output only] Type of AS-PATH segment (SEQUENCE or SET) + r"""Output only. [Output only] Type of AS-PATH segment (SEQUENCE or SET) Values: UNDEFINED_TYPE (0): @@ -18961,6 +21516,10 @@ class Type(proto.Enum): proto.INT32, number=3003767, ) + asns32: MutableSequence[int] = proto.RepeatedField( + proto.UINT32, + number=202267158, + ) type_: str = proto.Field( proto.STRING, number=3575610, @@ -19008,12 +21567,16 @@ class Binding(proto.Message): This field is a member of `oneof`_ ``_binding_id``. condition (google.cloud.compute_v1.types.Expr): - The condition that is associated with this binding. If the - condition evaluates to ``true``, then this binding applies - to the current request. If the condition evaluates to - ``false``, then this binding does not apply to the current - request. However, a different role binding might grant the - same role to one or more of the principals in this binding. + The condition that is associated with this binding. + + If the condition evaluates to ``true``, then this binding + applies to the current request. + + If the condition evaluates to ``false``, then this binding + does not apply to the current request. However, a different + role binding might grant the same role to one or more of the + principals in this binding. + To learn which resources support conditions in their IAM policies, see the `IAM documentation `__. @@ -19022,73 +21585,98 @@ class Binding(proto.Message): members (MutableSequence[str]): Specifies the principals requesting access for a Google Cloud resource. ``members`` can have the following values: - \* ``allUsers``: A special identifier that represents anyone - who is on the internet; with or without a Google account. \* - ``allAuthenticatedUsers``: A special identifier that - represents anyone who is authenticated with a Google account - or a service account. Does not include identities that come - from external identity providers (IdPs) through identity - federation. \* ``user:{emailid}``: An email address that - represents a specific Google account. For example, - ``alice@example.com`` . \* ``serviceAccount:{emailid}``: An - email address that represents a Google service account. For - example, ``my-other-app@appspot.gserviceaccount.com``. \* - ``serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]``: - An identifier for a `Kubernetes service - account `__. - For example, - ``my-project.svc.id.goog[my-namespace/my-kubernetes-sa]``. - \* ``group:{emailid}``: An email address that represents a - Google group. For example, ``admins@example.com``. \* - ``domain:{domain}``: The G Suite domain (primary) that - represents all the users of that domain. For example, - ``google.com`` or ``example.com``. \* - ``principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}``: - A single identity in a workforce identity pool. \* - ``principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}``: - All workforce identities in a group. \* - ``principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}``: - All workforce identities with a specific attribute value. \* - ``principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*``: - All identities in a workforce identity pool. \* - ``principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}``: - A single identity in a workload identity pool. \* - ``principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}``: - A workload identity pool group. \* - ``principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}``: - All identities in a workload identity pool with a certain - attribute. \* - ``principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*``: - All identities in a workload identity pool. \* - ``deleted:user:{emailid}?uid={uniqueid}``: An email address - (plus unique identifier) representing a user that has been - recently deleted. For example, - ``alice@example.com?uid=123456789012345678901``. If the user - is recovered, this value reverts to ``user:{emailid}`` and - the recovered user retains the role in the binding. \* - ``deleted:serviceAccount:{emailid}?uid={uniqueid}``: An - email address (plus unique identifier) representing a - service account that has been recently deleted. For example, - ``my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901``. - If the service account is undeleted, this value reverts to - ``serviceAccount:{emailid}`` and the undeleted service - account retains the role in the binding. \* - ``deleted:group:{emailid}?uid={uniqueid}``: An email address - (plus unique identifier) representing a Google group that - has been recently deleted. For example, - ``admins@example.com?uid=123456789012345678901``. If the - group is recovered, this value reverts to - ``group:{emailid}`` and the recovered group retains the role - in the binding. \* - ``deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}``: - Deleted single identity in a workforce identity pool. For - example, - ``deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value``. + + - ``allUsers``: A special identifier that represents anyone + who is on the internet; with or without a Google account. + + - ``allAuthenticatedUsers``: A special identifier that + represents anyone who is authenticated with a Google + account or a service account. Does not include identities + that come from external identity providers (IdPs) through + identity federation. + + - ``user:{emailid}``: An email address that represents a + specific Google account. For example, + ``alice@example.com`` . + + - ``serviceAccount:{emailid}``: An email address that + represents a Google service account. For example, + ``my-other-app@appspot.gserviceaccount.com``. + + - ``serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]``: + An identifier for a `Kubernetes service + account `__. + For example, + ``my-project.svc.id.goog[my-namespace/my-kubernetes-sa]``. + + - ``group:{emailid}``: An email address that represents a + Google group. For example, ``admins@example.com``. + + - ``domain:{domain}``: The G Suite domain (primary) that + represents all the users of that domain. For example, + ``google.com`` or ``example.com``. + + - ``principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}``: + A single identity in a workforce identity pool. + + - ``principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}``: + All workforce identities in a group. + + - ``principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}``: + All workforce identities with a specific attribute value. + + - ``principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*``: + All identities in a workforce identity pool. + + - ``principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}``: + A single identity in a workload identity pool. + + - ``principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}``: + A workload identity pool group. + + - ``principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}``: + All identities in a workload identity pool with a certain + attribute. + + - ``principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*``: + All identities in a workload identity pool. + + - ``deleted:user:{emailid}?uid={uniqueid}``: An email + address (plus unique identifier) representing a user that + has been recently deleted. For example, + ``alice@example.com?uid=123456789012345678901``. If the + user is recovered, this value reverts to + ``user:{emailid}`` and the recovered user retains the role + in the binding. + + - ``deleted:serviceAccount:{emailid}?uid={uniqueid}``: An + email address (plus unique identifier) representing a + service account that has been recently deleted. For + example, + ``my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901``. + If the service account is undeleted, this value reverts to + ``serviceAccount:{emailid}`` and the undeleted service + account retains the role in the binding. + + - ``deleted:group:{emailid}?uid={uniqueid}``: An email + address (plus unique identifier) representing a Google + group that has been recently deleted. For example, + ``admins@example.com?uid=123456789012345678901``. If the + group is recovered, this value reverts to + ``group:{emailid}`` and the recovered group retains the + role in the binding. + + - ``deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}``: + Deleted single identity in a workforce identity pool. For + example, + ``deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value``. role (str): Role that is assigned to the list of ``members``, or principals. For example, ``roles/viewer``, ``roles/editor``, - or ``roles/owner``. For an overview of the IAM roles and - permissions, see the `IAM + or ``roles/owner``. + + For an overview of the IAM roles and permissions, see the + `IAM documentation `__. For a list of the available pre-defined roles, see `here `__. @@ -19135,17 +21723,21 @@ class BulkInsertDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -19184,11 +21776,17 @@ class BulkInsertDiskResource(proto.Message): source_consistency_group_policy (str): The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full - or partial URL, such as: - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /resourcePolicies/resourcePolicy - + or partial URL, such as: + + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy + + - projects/project/regions/region/resourcePolicies/resourcePolicy - - regions/region/resourcePolicies/resourcePolicy + + - + regions/region/resourcePolicies/resourcePolicy This field is a member of `oneof`_ ``_source_consistency_group_policy``. """ @@ -19217,17 +21815,21 @@ class BulkInsertInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -19275,13 +21877,13 @@ class BulkInsertInstanceResource(proto.Message): This field is a member of `oneof`_ ``_instance_properties``. location_policy (google.cloud.compute_v1.types.LocationPolicy): Policy for choosing target zone. For more - information, see Create VMs in bulk. + information, seeCreate VMs in bulk. This field is a member of `oneof`_ ``_location_policy``. min_count (int): The minimum number of instances to create. If no min_count - is specified then count is used as the default value. If - min_count instances cannot be created, then no instances + is specified then count is used as the default value. + Ifmin_count instances cannot be created, then no instances will be created and instances already created will be deleted. @@ -19292,13 +21894,13 @@ class BulkInsertInstanceResource(proto.Message): pattern must contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: a - name_pattern of inst-#### generates instance names such as - inst-0001 and inst-0002. If existing instances in the same + name_pattern of inst-#### generates instance names such + asinst-0001 and inst-0002. If existing instances in the same project and zone have names that match the name pattern then the generated instance numbers start after the biggest existing number. For example, if there exists an instance - with name inst-0050, then instance names generated using the - pattern inst-#### begin with inst-0051. The name pattern + with nameinst-0050, then instance names generated using the + patterninst-#### begin with inst-0051. The name pattern placeholder #...# can contain up to 18 characters. This field is a member of `oneof`_ ``_name_pattern``. @@ -19309,18 +21911,25 @@ class BulkInsertInstanceResource(proto.Message): source_instance_template (str): Specifies the instance template from which to create instances. You may combine - sourceInstanceTemplate with instanceProperties - to override specific values from an existing + sourceInstanceTemplate withinstanceProperties to + override specific values from an existing instance template. Bulk API follows the semantics of JSON Merge Patch described by RFC - 7396. It can be a full or partial URL. For - example, the following are all valid URLs to an - instance template: - - https://www.googleapis.com/compute/v1/projects/project - /global/instanceTemplates/instanceTemplate - - projects/project/global/instanceTemplates/instanceTemplate - - global/instanceTemplates/instanceTemplate This - field is optional. + 7396. + + It can be a full or partial URL. For example, + the following are all valid URLs to an instance + template: + + + - + https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + - + projects/project/global/instanceTemplates/instanceTemplate + - + global/instanceTemplates/instanceTemplate + + This field is optional. This field is a member of `oneof`_ ``_source_instance_template``. """ @@ -19368,8 +21977,8 @@ class BulkInsertInstanceResource(proto.Message): class BulkInsertInstanceResourcePerInstanceProperties(proto.Message): - r"""Per-instance properties to be set on individual instances. To - be extended in the future. + r"""Per-instance properties to be set on individual instances. + To be extended in the future. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -19381,8 +21990,8 @@ class BulkInsertInstanceResourcePerInstanceProperties(proto.Message): This field is a member of `oneof`_ ``_hostname``. name (str): - This field is only temporary. It will be - removed. Do not use it. + Output only. This field is only temporary. It + will be removed. Do not use it. This field is a member of `oneof`_ ``_name``. """ @@ -19499,17 +22108,21 @@ class BulkInsertRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -19553,17 +22166,21 @@ class BulkInsertRegionInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -19605,17 +22222,21 @@ class BulkSetLabelsDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -19706,15 +22327,19 @@ class CacheInvalidationRule(proto.Message): Attributes: cache_tags (MutableSequence[str]): - A list of cache tags used to identify cached objects. - - Cache tags are specified when the response is first cached, - by setting the ``Cache-Tag`` response header at the origin. - - Multiple cache tags in the same invalidation request are - treated as Boolean ``OR`` - for example, - ``tag1 OR tag2 OR tag3``. - If other fields are also - specified, these are treated as Boolean ``AND`` with any - tags. Up to 10 tags can be specified in a single - invalidation request. + A list of cache tags used to identify cached objects. + + :: + + - Cache tags are specified when the response is first cached, by setting + the `Cache-Tag` response header at the origin. + - Multiple cache tags in the same invalidation request are treated as + Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. + - If other fields are also specified, these are treated as Boolean `AND` + with any tags. + + Up to 10 tags can be specified in a single invalidation + request. host (str): If set, this invalidation rule will only apply to requests with a Host header matching @@ -19822,6 +22447,160 @@ class CacheKeyPolicy(proto.Message): ) +class CalendarModeAdviceRequest(proto.Message): + r"""A request to recommend the best way to consume the specified + resources in the future. + + Attributes: + future_resources_specs (MutableMapping[str, google.cloud.compute_v1.types.FutureResourcesSpec]): + Specification of resources to create in the + future. The key of the map is an arbitrary + string specified by the caller. Value of the map + is a specification of required resources and + their constraints. Currently only one value is + allowed in this map. + """ + + future_resources_specs: MutableMapping[str, "FutureResourcesSpec"] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=255012610, + message="FutureResourcesSpec", + ) + + +class CalendarModeAdviceResponse(proto.Message): + r"""A response containing the recommended way of creating the + specified resources in the future. It contains (will contain) + multiple recommendations that can be analyzed by the customer + and the best one can be picked. + + Attributes: + recommendations (MutableSequence[google.cloud.compute_v1.types.CalendarModeRecommendation]): + Recommendations where, how and when to create + the requested resources in order to maximize + their obtainability and minimize cost. + """ + + recommendations: MutableSequence[ + "CalendarModeRecommendation" + ] = proto.RepeatedField( + proto.MESSAGE, + number=324515802, + message="CalendarModeRecommendation", + ) + + +class CalendarModeAdviceRpcRequest(proto.Message): + r"""A request message for Advice.CalendarMode. See the method + description for details. + + Attributes: + calendar_mode_advice_request_resource (google.cloud.compute_v1.types.CalendarModeAdviceRequest): + The body resource for this request + project (str): + Project ID for this request. + region (str): + Name of the region for this request. + """ + + calendar_mode_advice_request_resource: "CalendarModeAdviceRequest" = proto.Field( + proto.MESSAGE, + number=162098922, + message="CalendarModeAdviceRequest", + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + + +class CalendarModeRecommendation(proto.Message): + r"""A single recommendation to create requested resources. + Contains detailed recommendations for every future resources + specification specified in CalendarModeAdviceRequest. + + Attributes: + recommendations_per_spec (MutableMapping[str, google.cloud.compute_v1.types.FutureResourcesRecommendation]): + Recommendations for every future resource + specification passed in + CalendarModeAdviceRequest. Keys of the map + correspond to keys specified in the request. + """ + + recommendations_per_spec: MutableMapping[ + str, "FutureResourcesRecommendation" + ] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=61331554, + message="FutureResourcesRecommendation", + ) + + +class CancelFutureReservationRequest(proto.Message): + r"""A request message for FutureReservations.Cancel. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + future_reservation (str): + Name of the future reservation to retrieve. + Name should conform to RFC1035. + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + zone (str): + Name of the zone for this request. Name + should conform to RFC1035. + """ + + future_reservation: str = proto.Field( + proto.STRING, + number=56206160, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + class CancelInstanceGroupManagerResizeRequestRequest(proto.Message): r"""A request message for InstanceGroupManagerResizeRequests.Cancel. See the method @@ -19832,9 +22611,9 @@ class CancelInstanceGroupManagerResizeRequestRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. The - name should conform to RFC1035 or be a resource - ID. + The name of the managed instance group. + The name should conform to RFC1035 or be a + resource ID. project (str): Project ID for this request. request_id (str): @@ -19842,25 +22621,29 @@ class CancelInstanceGroupManagerResizeRequestRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resize_request (str): - The name of the resize request to cancel. The - name should conform to RFC1035 or be a resource - ID. + The name of the resize request to cancel. + The name should conform to RFC1035 or be a + resource ID. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. The name should conform to RFC1035. """ @@ -19899,7 +22682,9 @@ class CircuitBreakers(proto.Message): max_connections (int): The maximum number of connections to the backend service. If not specified, there is no - limit. Not supported when the backend service is + limit. + + Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. @@ -19908,10 +22693,12 @@ class CircuitBreakers(proto.Message): max_pending_requests (int): The maximum number of pending requests allowed to the backend service. If not - specified, there is no limit. Not supported when - the backend service is referenced by a URL map - that is bound to target gRPC proxy that has - validateForProxyless field set to true. + specified, there is no limit. + + Not supported when the backend service is + referenced by a URL map that is bound to target + gRPC proxy that has validateForProxyless field + set to true. This field is a member of `oneof`_ ``_max_pending_requests``. max_requests (int): @@ -19926,19 +22713,23 @@ class CircuitBreakers(proto.Message): by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable - keep alive. Not supported when the backend - service is referenced by a URL map that is bound - to target gRPC proxy that has - validateForProxyless field set to true. + keep alive. + + Not supported when the backend service is + referenced by a URL map that is bound to target + gRPC proxy that has validateForProxyless field + set to true. This field is a member of `oneof`_ ``_max_requests_per_connection``. max_retries (int): The maximum number of parallel retries allowed to the backend cluster. If not - specified, the default is 1. Not supported when - the backend service is referenced by a URL map - that is bound to target gRPC proxy that has - validateForProxyless field set to true. + specified, the default is 1. + + Not supported when the backend service is + referenced by a URL map that is bound to target + gRPC proxy that has validateForProxyless field + set to true. This field is a member of `oneof`_ ``_max_retries``. """ @@ -19985,17 +22776,21 @@ class CloneRulesFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. source_firewall_policy (str): @@ -20037,17 +22832,21 @@ class CloneRulesNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. source_firewall_policy (str): @@ -20096,17 +22895,21 @@ class CloneRulesRegionNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. source_firewall_policy (str): @@ -20141,6 +22944,7 @@ class CloneRulesRegionNetworkFirewallPolicyRequest(proto.Message): class Commitment(proto.Message): r"""Represents a regional resource-based commitment resource. + Creating this commitment resource means that you are purchasing a resource-based committed use contract, with an explicit start and end time. You can purchase resource-based commitments for @@ -20170,24 +22974,25 @@ class Commitment(proto.Message): whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine - resources such as VCPU or MEMORY, listed in + resources such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in - licenseResources. Note that if you specify - MACHINE commitments, then you must also specify - a type to indicate the machine series of the - hardware resource that you are committing to. - Check the Category enum for the list of possible - values. + licenseResources. + Note that if you specify MACHINE commitments, + then you must also specify a type to indicate + the machine series of the hardware resource that + you are committing to. Check the Category enum + for the list of possible values. This field is a member of `oneof`_ ``_category``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. custom_end_timestamp (str): [Input Only] Optional, specifies the requested commitment - end time in RFC3339 text format. Use this option when the + end time inRFC3339 text format. Use this option when the desired commitment's end date is later than the start date + term duration. @@ -20199,18 +23004,19 @@ class Commitment(proto.Message): This field is a member of `oneof`_ ``_description``. end_timestamp (str): - [Output Only] Commitment end time in RFC3339 text format. + Output only. [Output Only] Commitment end time inRFC3339 + text format. This field is a member of `oneof`_ ``_end_timestamp``. existing_reservations (MutableSequence[str]): id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always + Output only. [Output Only] Type of the resource. Always compute#commitment for commitments. This field is a member of `oneof`_ ``_kind``. @@ -20226,8 +23032,8 @@ class Commitment(proto.Message): name (str): Name of the commitment. You must specify a name when you purchase the commitment. The name must be 1-63 characters - long, and comply with RFC1035. Specifically, the name must - be 1-63 characters long and match the regular expression + long, and comply withRFC1035. Specifically, the name must be + 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, @@ -20241,29 +23047,31 @@ class Commitment(proto.Message): and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for - this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH - (3 years). Check the Plan enum for the list of possible - values. + this field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 + years). Check the Plan enum for the list of possible values. This field is a member of `oneof`_ ``_plan``. region (str): - [Output Only] URL of the region where the commitment and - committed resources are located. + Output only. [Output Only] URL of the region where the + commitment and committed resources are located. This field is a member of `oneof`_ ``_region``. reservations (MutableSequence[google.cloud.compute_v1.types.Reservation]): The list of new reservations that you want to - create and attach to this commitment. You must - attach reservations to your commitment if your - commitment specifies any GPUs or Local SSD - disks. For more information, see Attach + create and attach to this commitment. + + You must attach reservations to your commitment + if your commitment specifies any GPUs or Local + SSD disks. For more information, see Attach reservations to resource-based commitments. + Specify this property only if you want to create new reservations to attach. To attach existing - reservations, specify the existingReservations + reservations, specify theexistingReservations property instead. resource_status (google.cloud.compute_v1.types.CommitmentResourceStatus): - [Output Only] Status information for Commitment resource. + Output only. [Output Only] Status information for Commitment + resource. This field is a member of `oneof`_ ``_resource_status``. resources (MutableSequence[google.cloud.compute_v1.types.ResourceCommitment]): @@ -20272,7 +23080,8 @@ class Commitment(proto.Message): to. Specify as a separate entry in the list for each individual resource type. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. split_source_commitment (str): @@ -20283,35 +23092,39 @@ class Commitment(proto.Message): This field is a member of `oneof`_ ``_split_source_commitment``. start_timestamp (str): - [Output Only] Commitment start time in RFC3339 text format. + Output only. [Output Only] Commitment start time inRFC3339 + text format. This field is a member of `oneof`_ ``_start_timestamp``. status (str): - [Output Only] Status of the commitment with regards to - eventual expiration (each commitment has an end date - defined). Status can be one of the following values: - NOT_YET_ACTIVE, ACTIVE, or EXPIRED. Check the Status enum - for the list of possible values. + Output only. [Output Only] Status of the commitment with + regards to eventual expiration (each commitment has an end + date defined). Status can be one of the following values: + NOT_YET_ACTIVE, ACTIVE, orEXPIRED. Check the Status enum for + the list of possible values. This field is a member of `oneof`_ ``_status``. status_message (str): - [Output Only] An optional, human-readable explanation of the - status. + Output only. [Output Only] An optional, human-readable + explanation of the status. This field is a member of `oneof`_ ``_status_message``. type_ (str): The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible - resource types. The type must be one of the following: - ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, - ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, + resource types. + + The type must be one of the following:ACCELERATOR_OPTIMIZED, + ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, - COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, - GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, - GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, - GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, - MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, + COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, + GENERAL_PURPOSE,GENERAL_PURPOSE_C4, + GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, + GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, + GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, + GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, + MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type @@ -20326,12 +23139,12 @@ class Category(proto.Enum): r"""The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine - resources such as VCPU or MEMORY, listed in resources. Category + resources such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, - listed in licenseResources. Note that if you specify MACHINE - commitments, then you must also specify a type to indicate the - machine series of the hardware resource that you are committing - to. + listed in licenseResources. + Note that if you specify MACHINE commitments, then you must also + specify a type to indicate the machine series of the hardware + resource that you are committing to. Values: UNDEFINED_CATEGORY (0): @@ -20355,8 +23168,8 @@ class Plan(proto.Enum): commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The - supported values for this field are TWELVE_MONTH (1 year), and - THIRTY_SIX_MONTH (3 years). + supported values for this field are TWELVE_MONTH (1 year), + andTHIRTY_SIX_MONTH (3 years). Values: UNDEFINED_PLAN (0): @@ -20375,9 +23188,10 @@ class Plan(proto.Enum): TWELVE_MONTH = 173083962 class Status(proto.Enum): - r"""[Output Only] Status of the commitment with regards to eventual - expiration (each commitment has an end date defined). Status can be - one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED. + r"""Output only. [Output Only] Status of the commitment with regards to + eventual expiration (each commitment has an end date defined). + Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, + orEXPIRED. Values: UNDEFINED_STATUS (0): @@ -20406,19 +23220,22 @@ class Status(proto.Enum): class Type(proto.Enum): r"""The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series - affects the discount rate and the eligible resource types. The type - must be one of the following: ACCELERATOR_OPTIMIZED, - ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, - COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, - COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, - GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, - GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, - GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, - MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type - MEMORY_OPTIMIZED specifies a commitment that applies only to - eligible resources of memory optimized M1 and M2 machine series. - Type GENERAL_PURPOSE specifies a commitment that applies only to - eligible resources of general purpose N1 machine series. + affects the discount rate and the eligible resource types. + + The type must be one of the following:ACCELERATOR_OPTIMIZED, + ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, + COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, + COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, + GENERAL_PURPOSE,GENERAL_PURPOSE_C4, + GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, + GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, + GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, + GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, + MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For + example, type MEMORY_OPTIMIZED specifies a commitment that applies + only to eligible resources of memory optimized M1 and M2 machine + series. Type GENERAL_PURPOSE specifies a commitment that applies + only to eligible resources of general purpose N1 machine series. Values: UNDEFINED_TYPE (0): @@ -20462,10 +23279,14 @@ class Type(proto.Enum): No description available. GENERAL_PURPOSE_N4 (301912158): No description available. + GENERAL_PURPOSE_N4D (232471462): + No description available. GENERAL_PURPOSE_T2D (232477166): No description available. GRAPHICS_OPTIMIZED (68500563): No description available. + GRAPHICS_OPTIMIZED_G4 (54029369): + No description available. MEMORY_OPTIMIZED (281753417): No description available. MEMORY_OPTIMIZED_M3 (276301372): @@ -20508,8 +23329,10 @@ class Type(proto.Enum): GENERAL_PURPOSE_N2 = 301912156 GENERAL_PURPOSE_N2D = 232471400 GENERAL_PURPOSE_N4 = 301912158 + GENERAL_PURPOSE_N4D = 232471462 GENERAL_PURPOSE_T2D = 232477166 GRAPHICS_OPTIMIZED = 68500563 + GRAPHICS_OPTIMIZED_G4 = 54029369 MEMORY_OPTIMIZED = 281753417 MEMORY_OPTIMIZED_M3 = 276301372 MEMORY_OPTIMIZED_M4 = 276301373 @@ -20651,26 +23474,27 @@ class CommitmentAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.CommitmentsScopedList]): A list of CommitmentsScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#commitmentAggregatedList for aggregated lists of - commitments. + Output only. [Output Only] Type of resource. + Alwayscompute#commitmentAggregatedList for aggregated lists + of commitments. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -20733,21 +23557,22 @@ class CommitmentList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Commitment]): A list of Commitment resources. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -20800,10 +23625,10 @@ class CommitmentResourceStatus(proto.Message): Attributes: custom_term_eligibility_end_timestamp (str): - [Output Only] Indicates the end time of customer's - eligibility to send custom term requests in RFC3339 text - format. Term extension requests that (not the end time in - the request) after this time will be rejected. + Output only. [Output Only] Indicates the end time of + customer's eligibility to send custom term requests in + RFC3339 text format. Term extension requests that (not the + end time in the request) after this time will be rejected. This field is a member of `oneof`_ ``_custom_term_eligibility_end_timestamp``. """ @@ -20910,7 +23735,7 @@ class ConnectionDraining(proto.Message): Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as - described in Enabling connection draining. + described inEnabling connection draining. This field is a member of `oneof`_ ``_draining_timeout_sec``. """ @@ -20935,25 +23760,27 @@ class ConsistentHashLoadBalancerSettings(proto.Message): cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity - is set to HTTP_COOKIE. Not supported when the backend - service is referenced by a URL map that is bound to target - gRPC proxy that has validateForProxyless field set to true. + is set to HTTP_COOKIE. + + Not supported when the backend service is referenced by a + URL map that is bound to target gRPC proxy that has + validateForProxyless field set to true. This field is a member of `oneof`_ ``_http_cookie``. http_header_name (str): The hash based on the value of the specified header field. - This field is applicable if the sessionAffinity is set to - HEADER_FIELD. + This field is applicable if the sessionAffinity is set + toHEADER_FIELD. This field is a member of `oneof`_ ``_http_header_name``. minimum_ring_size (int): The minimum number of virtual nodes to use - for the hash ring. Defaults to 1024. Larger ring - sizes result in more granular load - distributions. If the number of hosts in the - load balancing pool is larger than the ring - size, each host will be assigned a single - virtual node. + for the hash ring. Defaults to + 1024. Larger ring sizes result in more granular + load distributions. If the number of hosts + in the load balancing pool is larger than + the ring size, each host will be assigned a + single virtual node. This field is a member of `oneof`_ ``_minimum_ring_size``. """ @@ -21030,17 +23857,21 @@ class CopyRulesOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -21079,11 +23910,12 @@ class CorsPolicy(proto.Message): Attributes: allow_credentials (bool): In response to a preflight request, setting - this to true indicates that the actual request - can include user credentials. This field - translates to the - Access-Control-Allow-Credentials header. Default - is false. + this to true indicates that + the actual request can include user credentials. + This field translates to the + Access-Control-Allow-Credentials header. + + Default is false. This field is a member of `oneof`_ ``_allow_credentials``. allow_headers (MutableSequence[str]): @@ -21094,20 +23926,23 @@ class CorsPolicy(proto.Message): Access-Control-Allow-Methods header. allow_origin_regexes (MutableSequence[str]): Specifies a regular expression that matches allowed origins. - For more information, see regular expression syntax . An - origin is allowed if it matches either an item in - allowOrigins or an item in allowOriginRegexes. Regular - expressions can only be used when the loadBalancingScheme is - set to INTERNAL_SELF_MANAGED. + For more information, see regular expression syntax. + + An origin is allowed if it matches either an item + inallowOrigins or an item inallowOriginRegexes. + + Regular expressions can only be used when the + loadBalancingScheme is set to INTERNAL_SELF_MANAGED. allow_origins (MutableSequence[str]): Specifies the list of origins that is allowed - to do CORS requests. An origin is allowed if it - matches either an item in allowOrigins or an - item in allowOriginRegexes. + to do CORS requests. + An origin is allowed if it matches either an + item inallowOrigins or an item + inallowOriginRegexes. disabled (bool): - If true, disables the CORS policy. The - default value is false, which indicates that the - CORS policy is in effect. + If true, disables the CORS policy. + The default value is false, which indicates that + the CORS policy is in effect. This field is a member of `oneof`_ ``_disabled``. expose_headers (MutableSequence[str]): @@ -21167,8 +24002,8 @@ class CreateInstancesInstanceGroupManagerRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. It - should conform to RFC1035. + The name of the managed instance group. + It should conform to RFC1035. instance_group_managers_create_instances_request_resource (google.cloud.compute_v1.types.InstanceGroupManagersCreateInstancesRequest): The body resource for this request project (str): @@ -21178,22 +24013,25 @@ class CreateInstancesInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. The request ID must be a valid UUID - with the exception that zero UUID is not - supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed - instance group is located. It should conform to - RFC1035. + The name of thezone + where the managed instance group is located. + It should conform to RFC1035. """ instance_group_manager: str = proto.Field( @@ -21230,14 +24068,14 @@ class CreateInstancesRegionInstanceGroupManagerRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. It - should conform to RFC1035. + The name of the managed instance group. + It should conform to RFC1035. project (str): Project ID for this request. region (str): - The name of the region where the managed - instance group is located. It should conform to - RFC1035. + The name of theregion + where the managed instance group is located. + It should conform to RFC1035. region_instance_group_managers_create_instances_request_resource (google.cloud.compute_v1.types.RegionInstanceGroupManagersCreateInstancesRequest): The body resource for this request request_id (str): @@ -21245,16 +24083,19 @@ class CreateInstancesRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. The request ID must be a valid UUID - with the exception that zero UUID is not - supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -21335,17 +24176,21 @@ class CreateSnapshotDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. snapshot_resource (google.cloud.compute_v1.types.Snapshot): @@ -21403,17 +24248,21 @@ class CreateSnapshotRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. snapshot_resource (google.cloud.compute_v1.types.Snapshot): @@ -21444,6 +24293,177 @@ class CreateSnapshotRegionDiskRequest(proto.Message): ) +class CrossSiteNetwork(proto.Message): + r"""A resource that represents a cross-site network. + + You can use cross-site networks to connect your on-premises + networks to each other through Interconnect connections. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + creation_timestamp (str): + Output only. [Output Only] Creation timestamp inRFC3339 text + format. + + This field is a member of `oneof`_ ``_creation_timestamp``. + description (str): + An optional description of the cross-site + network. + + This field is a member of `oneof`_ ``_description``. + id (int): + Output only. [Output Only] The unique identifier for the + resource type. The server generates this identifier. + + This field is a member of `oneof`_ ``_id``. + kind (str): + Output only. [Output Only] Type of the resource. + Alwayscompute#crossSiteNetwork for cross-site networks. + + This field is a member of `oneof`_ ``_kind``. + name (str): + Name of the resource. Provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. + + This field is a member of `oneof`_ ``_name``. + self_link (str): + Output only. [Output Only] Server-defined URL for the + resource. + + This field is a member of `oneof`_ ``_self_link``. + """ + + creation_timestamp: str = proto.Field( + proto.STRING, + number=30525366, + optional=True, + ) + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + id: int = proto.Field( + proto.UINT64, + number=3355, + optional=True, + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + name: str = proto.Field( + proto.STRING, + number=3373707, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + + +class CrossSiteNetworkList(proto.Message): + r"""Response to the list request that contains a list of + cross-site networks. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + etag (str): + + This field is a member of `oneof`_ ``_etag``. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. + + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.CrossSiteNetwork]): + A list of CrossSiteNetwork resources. + kind (str): + Output only. [Output Only] Type of the resource. + Alwayscompute#crossSiteNetwork for cross-site networks. + + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + [Output Only] Server-defined URL for this resource. + + This field is a member of `oneof`_ ``_self_link``. + unreachables (MutableSequence[str]): + Output only. [Output Only] Unreachable resources. + end_interface: MixerListResponseWithEtagBuilder + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. + """ + + @property + def raw_page(self): + return self + + etag: str = proto.Field( + proto.STRING, + number=3123477, + optional=True, + ) + id: str = proto.Field( + proto.STRING, + number=3355, + optional=True, + ) + items: MutableSequence["CrossSiteNetwork"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="CrossSiteNetwork", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + unreachables: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=243372063, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + class CustomErrorResponsePolicy(proto.Message): r"""Specifies the custom error response policy that must be applied when the backend service or backend bucket responds with @@ -21455,33 +24475,39 @@ class CustomErrorResponsePolicy(proto.Message): Attributes: error_response_rules (MutableSequence[google.cloud.compute_v1.types.CustomErrorResponsePolicyCustomErrorResponseRule]): Specifies rules for returning error - responses. In a given policy, if you specify - rules for both a range of error codes as well as - rules for specific error codes then rules with - specific error codes have a higher priority. For - example, assume that you configure a rule for - 401 (Un-authorized) code, and another for all 4 + responses. + In a given policy, if you specify rules for both + a range of error codes as well as rules for + specific error codes then rules with specific + error codes have a higher priority. For example, + assume that you configure a rule for 401 + (Un-authorized) code, and another for all 4 series error codes (4XX). If the backend service - returns a 401, then the rule for 401 will be + returns a401, then the rule for 401 will be applied. However if the backend service returns - a 403, the rule for 4xx takes effect. + a 403, the rule for4xx takes effect. error_service (str): The full or partial URL to the BackendBucket resource that - contains the custom error content. Examples are: - - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket - - - compute/v1/projects/project/global/backendBuckets/myBackendBucket - - global/backendBuckets/myBackendBucket If errorService is - not specified at lower levels like pathMatcher, pathRule and - routeRule, an errorService specified at a higher level in - the UrlMap will be used. If - UrlMap.defaultCustomErrorResponsePolicy contains one or more - errorResponseRules[], it must specify errorService. If load - balancer cannot reach the backendBucket, a simple Not Found - Error will be returned, with the original response code (or - overrideResponseCode if configured). errorService is not - supported for internal or regional HTTP/HTTPS load - balancers. + contains the custom error content. Examples are: + + :: + + - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket + - compute/v1/projects/project/global/backendBuckets/myBackendBucket + - global/backendBuckets/myBackendBucket + + If errorService is not specified at lower levels + likepathMatcher, pathRule and routeRule, an errorService + specified at a higher level in theUrlMap will be used. + IfUrlMap.defaultCustomErrorResponsePolicy contains one or + moreerrorResponseRules[], it must specifyerrorService. + + If load balancer cannot reach the backendBucket, a simple + Not Found Error will be returned, with the original response + code (oroverrideResponseCode if configured). + + errorService is not supported for internal or + regionalHTTP/HTTPS load balancers. This field is a member of `oneof`_ ``_error_service``. """ @@ -21510,18 +24536,25 @@ class CustomErrorResponsePolicyCustomErrorResponseRule(proto.Message): Attributes: match_response_codes (MutableSequence[str]): - Valid values include: - A number between 400 - and 599: For example 401 or 503, in which case - the load balancer applies the policy if the - error code exactly matches this value. - 5xx: - Load Balancer will apply the policy if the - backend service responds with any response code - in the range of 500 to 599. - 4xx: Load Balancer - will apply the policy if the backend service - responds with any response code in the range of - 400 to 499. Values must be unique within - matchResponseCodes and across all - errorResponseRules of CustomErrorResponsePolicy. + Valid values include: + + + - A number between 400 and 599: For example + 401 or 503, in which case the load balancer + applies the policy if the error code exactly + matches this value. + - 5xx: Load Balancer will apply the policy + if the backend service responds with any + response code in the range of 500 to 599. + - 4xx: Load + Balancer will apply the policy if the + backend service responds with any response + code in the range of 400 to + 499. + + Values must be unique within matchResponseCodes + and across allerrorResponseRules + ofCustomErrorResponsePolicy. override_response_code (int): The HTTP status code returned with the response containing the custom error content. If @@ -21533,13 +24566,18 @@ class CustomErrorResponsePolicyCustomErrorResponseRule(proto.Message): This field is a member of `oneof`_ ``_override_response_code``. path (str): The full path to a file within backendBucket - . For example: /errors/defaultError.html path - must start with a leading slash. path cannot - have trailing slashes. If the file is not - available in backendBucket or the load balancer - cannot reach the BackendBucket, a simple Not - Found Error is returned to the client. The value - must be from 1 to 1024 characters + . For example:/errors/defaultError.html + path must start + with a leading slash. path cannot have trailing + slashes. + + If the file is not available in backendBucket + or the load balancer cannot reach the + BackendBucket, a simpleNot Found Error is + returned to the client. + + The value must + be from 1 to 1024 characters This field is a member of `oneof`_ ``_path``. """ @@ -21568,10 +24606,15 @@ class CustomerEncryptionKey(proto.Message): Attributes: kms_key_name (str): The name of the encryption key that is stored in Google - Cloud KMS. For example: "kmsKeyName": + Cloud KMS. For example: + + "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ - key_region/cryptoKeys/key The fully-qualifed key name may be - returned for resource GET requests. For example: + key_region/cryptoKeys/key + + The fully-qualifed key name may be returned for resource GET + requests. For example: + "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1 @@ -21581,16 +24624,20 @@ class CustomerEncryptionKey(proto.Message): The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. For example: + "kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com/ This field is a member of `oneof`_ ``_kms_key_service_account``. raw_key (str): Specifies a 256-bit customer-supplied - encryption key, encoded in RFC 4648 base64 to - either encrypt or decrypt this resource. You can - provide either the rawKey or the - rsaEncryptedKey. For example: "rawKey": + encryption key, encoded in RFC + 4648 base64 to either encrypt or decrypt this + resource. You can provide either the rawKey or + thersaEncryptedKey. For example: + + "rawKey": + "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=". This field is a member of `oneof`_ ``_raw_key``. @@ -21599,24 +24646,31 @@ class CustomerEncryptionKey(proto.Message): RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or - the rsaEncryptedKey. For example: + thersaEncryptedKey. For example: + "rsaEncryptedKey": + "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==" + The key must meet the following requirements - before you can provide it to Compute Engine: 1. - The key is wrapped using a RSA public key - certificate provided by Google. 2. After being - wrapped, the key must be encoded in RFC 4648 - base64 encoding. Gets the RSA public key - certificate provided by Google at: + before you can provide it to Compute Engine: + + 1. The key is wrapped using a RSA public key + certificate provided by Google. + 2. After being wrapped, the key must be + encoded in RFC 4648 base64 encoding. + + Gets the RSA public key certificate provided by + Google at: + https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem This field is a member of `oneof`_ ``_rsa_encrypted_key``. sha256 (str): - [Output only] The RFC 4648 base64 encoded SHA-256 hash of - the customer-supplied encryption key that protects this + [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the + customer-supplied encryption key that protects this resource. This field is a member of `oneof`_ ``_sha256``. @@ -21656,15 +24710,17 @@ class CustomerEncryptionKeyProtectedDisk(proto.Message): Attributes: disk_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - Decrypts data associated with the disk with a - customer-supplied encryption key. + Decrypts data associated with the disk with + acustomer-supplied encryption key. This field is a member of `oneof`_ ``_disk_encryption_key``. source (str): Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for - persistent disks. For example: "source": - "/compute/v1/projects/project_id/zones/zone/disks/ disk_name + persistent disks. For example: + + "source": "/compute/v1/projects/project_id/zones/zone/disks/ + disk_name This field is a member of `oneof`_ ``_source``. """ @@ -21722,13 +24778,19 @@ class Date(proto.Message): r"""Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This - can represent one of the following: \* A full date, with non-zero - year, month, and day values. \* A month and day, with a zero year - (for example, an anniversary). \* A year on its own, with a zero - month and a zero day. \* A year and month, with a zero day (for - example, a credit card expiration date). Related types: \* - google.type.TimeOfDay \* google.type.DateTime \* - google.protobuf.Timestamp + can represent one of the following: + + - A full date, with non-zero year, month, and day values. + - A month and day, with a zero year (for example, an anniversary). + - A year on its own, with a zero month and a zero day. + - A year and month, with a zero day (for example, a credit card + expiration date). + + Related types: + + - google.type.TimeOfDay + - google.type.DateTime + - google.protobuf.Timestamp .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -21791,17 +24853,21 @@ class DeleteAccessConfigInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -21854,17 +24920,21 @@ class DeleteAddressRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -21905,17 +24975,21 @@ class DeleteAutoscalerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -21958,17 +25032,21 @@ class DeleteBackendBucketRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22006,17 +25084,21 @@ class DeleteBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22036,6 +25118,54 @@ class DeleteBackendServiceRequest(proto.Message): ) +class DeleteCrossSiteNetworkRequest(proto.Message): + r"""A request message for CrossSiteNetworks.Delete. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + cross_site_network (str): + Name of the cross-site network to delete. + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. Specify a + unique request ID so that if you must retry your request, + the server will know to ignore the request if it has already + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + + This field is a member of `oneof`_ ``_request_id``. + """ + + cross_site_network: str = proto.Field( + proto.STRING, + number=108192469, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + + class DeleteDiskRequest(proto.Message): r"""A request message for Disks.Delete. See the method description for details. @@ -22053,17 +25183,21 @@ class DeleteDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -22106,17 +25240,21 @@ class DeleteExternalVpnGatewayRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22151,17 +25289,21 @@ class DeleteFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22194,17 +25336,21 @@ class DeleteFirewallRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22244,17 +25390,21 @@ class DeleteForwardingRuleRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22278,6 +25428,65 @@ class DeleteForwardingRuleRequest(proto.Message): ) +class DeleteFutureReservationRequest(proto.Message): + r"""A request message for FutureReservations.Delete. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + future_reservation (str): + Name of the future reservation to retrieve. + Name should conform to RFC1035. + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + zone (str): + Name of the zone for this request. Name + should conform to RFC1035. + """ + + future_reservation: str = proto.Field( + proto.STRING, + number=56206160, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + class DeleteGlobalAddressRequest(proto.Message): r"""A request message for GlobalAddresses.Delete. See the method description for details. @@ -22295,17 +25504,21 @@ class DeleteGlobalAddressRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22343,17 +25556,21 @@ class DeleteGlobalForwardingRuleRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22391,17 +25608,21 @@ class DeleteGlobalNetworkEndpointGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22503,17 +25724,21 @@ class DeleteGlobalPublicDelegatedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22550,17 +25775,21 @@ class DeleteHealthCheckRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22597,17 +25826,21 @@ class DeleteImageRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22645,21 +25878,25 @@ class DeleteInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -22692,9 +25929,9 @@ class DeleteInstanceGroupManagerResizeRequestRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. The - name should conform to RFC1035 or be a resource - ID. + The name of the managed instance group. + The name should conform to RFC1035 or be a + resource ID. project (str): Project ID for this request. request_id (str): @@ -22702,25 +25939,29 @@ class DeleteInstanceGroupManagerResizeRequestRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resize_request (str): - The name of the resize request to delete. The - name should conform to RFC1035 or be a resource - ID. + The name of the resize request to delete. + The name should conform to RFC1035 or be a + resource ID. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. The name should conform to RFC1035. """ @@ -22765,22 +26006,26 @@ class DeleteInstanceGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the instance group - is located. + The name of the zone + where the instance group is located. """ instance_group: str = proto.Field( @@ -22819,17 +26064,21 @@ class DeleteInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -22872,17 +26121,21 @@ class DeleteInstanceTemplateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -22921,21 +26174,25 @@ class DeleteInstancesInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -22985,17 +26242,21 @@ class DeleteInstancesRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23042,17 +26303,21 @@ class DeleteInstantSnapshotRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -23095,15 +26360,18 @@ class DeleteInterconnectAttachmentGroupRequest(proto.Message): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -23144,17 +26412,21 @@ class DeleteInterconnectAttachmentRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23195,15 +26467,18 @@ class DeleteInterconnectGroupRequest(proto.Message): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -23241,17 +26516,21 @@ class DeleteInterconnectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23288,17 +26567,21 @@ class DeleteLicenseRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23335,17 +26618,21 @@ class DeleteMachineImageRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23384,15 +26671,18 @@ class DeleteNetworkAttachmentRequest(proto.Message): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -23437,17 +26727,21 @@ class DeleteNetworkEdgeSecurityServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23489,23 +26783,27 @@ class DeleteNetworkEndpointGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the network - endpoint group is located. It should comply with - RFC1035. + The name of the zone where + the network endpoint group is located. It should + comply with RFC1035. """ network_endpoint_group: str = proto.Field( @@ -23544,17 +26842,21 @@ class DeleteNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23596,17 +26898,21 @@ class DeleteNetworkInterfaceInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -23653,17 +26959,21 @@ class DeleteNetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23700,17 +27010,21 @@ class DeleteNodeGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -23755,17 +27069,21 @@ class DeleteNodeTemplateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23809,17 +27127,21 @@ class DeleteNodesNodeGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -23865,17 +27187,21 @@ class DeleteOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -23913,17 +27239,21 @@ class DeletePacketMirroringRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -23954,16 +27284,17 @@ class DeletePerInstanceConfigsInstanceGroupManagerRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. It - should conform to RFC1035. + The name of the managed instance group. + It should conform to RFC1035. instance_group_managers_delete_per_instance_configs_req_resource (google.cloud.compute_v1.types.InstanceGroupManagersDeletePerInstanceConfigsReq): The body resource for this request project (str): Project ID for this request. zone (str): - The name of the zone where the managed - instance group is located. It should conform to - RFC1035. + The name of thezone + where the managed instance + group is located. + It should conform to RFC1035. """ instance_group_manager: str = proto.Field( @@ -24040,17 +27371,21 @@ class DeletePublicAdvertisedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24090,17 +27425,21 @@ class DeletePublicDelegatedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24143,17 +27482,21 @@ class DeleteRegionAutoscalerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24197,17 +27540,21 @@ class DeleteRegionBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24251,17 +27598,21 @@ class DeleteRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24304,17 +27655,21 @@ class DeleteRegionHealthCheckRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24359,17 +27714,21 @@ class DeleteRegionHealthCheckServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24412,17 +27771,21 @@ class DeleteRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24465,17 +27828,21 @@ class DeleteRegionInstanceTemplateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24519,17 +27886,21 @@ class DeleteRegionInstantSnapshotRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24567,25 +27938,29 @@ class DeleteRegionNetworkEndpointGroupRequest(proto.Message): project (str): Project ID for this request. region (str): - The name of the region where the network - endpoint group is located. It should comply with - RFC1035. + The name of the region where + the network endpoint group is located. It should + comply with RFC1035. request_id (str): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24628,17 +28003,21 @@ class DeleteRegionNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24682,17 +28061,21 @@ class DeleteRegionNotificationEndpointRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -24768,17 +28151,21 @@ class DeleteRegionSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -24821,17 +28208,21 @@ class DeleteRegionSslCertificateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_certificate (str): @@ -24875,17 +28266,21 @@ class DeleteRegionSslPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_policy (str): @@ -24930,17 +28325,21 @@ class DeleteRegionTargetHttpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_http_proxy (str): @@ -24984,17 +28383,21 @@ class DeleteRegionTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxy (str): @@ -25038,17 +28441,21 @@ class DeleteRegionTargetTcpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_tcp_proxy (str): @@ -25130,17 +28537,21 @@ class DeleteReservationRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. reservation (str): @@ -25185,17 +28596,21 @@ class DeleteResourcePolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource_policy (str): @@ -25243,17 +28658,21 @@ class DeleteRoutePolicyRouterRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. router (str): @@ -25300,17 +28719,21 @@ class DeleteRouteRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. route (str): @@ -25349,17 +28772,21 @@ class DeleteRouterRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. router (str): @@ -25400,17 +28827,21 @@ class DeleteSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -25449,17 +28880,21 @@ class DeleteServiceAttachmentRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. service_attachment (str): @@ -25507,17 +28942,21 @@ class DeleteSignedUrlKeyBackendBucketRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -25562,17 +29001,21 @@ class DeleteSignedUrlKeyBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -25611,17 +29054,21 @@ class DeleteSnapshotRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. snapshot (str): @@ -25658,17 +29105,21 @@ class DeleteSslCertificateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_certificate (str): @@ -25706,17 +29157,21 @@ class DeleteSslPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_policy (str): @@ -25755,17 +29210,21 @@ class DeleteStoragePoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. storage_pool (str): @@ -25810,17 +29269,21 @@ class DeleteSubnetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. subnetwork (str): @@ -25861,17 +29324,21 @@ class DeleteTargetGrpcProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_grpc_proxy (str): @@ -25909,17 +29376,21 @@ class DeleteTargetHttpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_http_proxy (str): @@ -25957,17 +29428,21 @@ class DeleteTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxy (str): @@ -26005,17 +29480,21 @@ class DeleteTargetInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_instance (str): @@ -26061,17 +29540,21 @@ class DeleteTargetPoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_pool (str): @@ -26112,17 +29595,21 @@ class DeleteTargetSslProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_ssl_proxy (str): @@ -26160,17 +29647,21 @@ class DeleteTargetTcpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_tcp_proxy (str): @@ -26210,17 +29701,21 @@ class DeleteTargetVpnGatewayRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_vpn_gateway (str): @@ -26261,17 +29756,21 @@ class DeleteUrlMapRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. url_map (str): @@ -26310,17 +29809,21 @@ class DeleteVpnGatewayRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. vpn_gateway (str): @@ -26363,17 +29866,21 @@ class DeleteVpnTunnelRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. vpn_tunnel (str): @@ -26399,6 +29906,60 @@ class DeleteVpnTunnelRequest(proto.Message): ) +class DeleteWireGroupRequest(proto.Message): + r"""A request message for WireGroups.Delete. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + cross_site_network (str): + + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. Specify a + unique request ID so that if you must retry your request, + the server will know to ignore the request if it has already + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + + This field is a member of `oneof`_ ``_request_id``. + wire_group (str): + Name of the wire group resource to delete. + """ + + cross_site_network: str = proto.Field( + proto.STRING, + number=108192469, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + wire_group: str = proto.Field( + proto.STRING, + number=122540613, + ) + + class DeleteZoneOperationRequest(proto.Message): r"""A request message for ZoneOperations.Delete. See the method description for details. @@ -26445,8 +30006,8 @@ class Denied(proto.Message): The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, - udp, icmp, esp, ah, ipip, sctp) or the IP - protocol number. + udp,icmp, esp, ah, ipip,sctp) or the IP protocol + number. This field is a member of `oneof`_ ``_I_p_protocol``. ports (MutableSequence[str]): @@ -26454,7 +30015,9 @@ class Denied(proto.Message): field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any - port. Example inputs include: ["22"], ["80","443"], and + port. + + Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. """ @@ -26488,17 +30051,21 @@ class DeprecateImageRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -26562,14 +30129,14 @@ class DeprecationStatus(proto.Message): This field is a member of `oneof`_ ``_replacement``. state (str): The deprecation state of this resource. This - can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. + can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life - date for an image, can use ACTIVE. Operations - which create a new resource using a DEPRECATED + date for an image, can useACTIVE. Operations + which create a new resource using aDEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which - use OBSOLETE or DELETED resources will be + use OBSOLETE orDELETED resources will be rejected and result in an error. Check the State enum for the list of possible values. @@ -26577,14 +30144,14 @@ class DeprecationStatus(proto.Message): """ class State(proto.Enum): - r"""The deprecation state of this resource. This can be ACTIVE, - DEPRECATED, OBSOLETE, or DELETED. Operations which communicate - the end of life date for an image, can use ACTIVE. Operations - which create a new resource using a DEPRECATED resource will - return successfully, but with a warning indicating the - deprecated resource and recommending its replacement. Operations - which use OBSOLETE or DELETED resources will be rejected and - result in an error. + r"""The deprecation state of this resource. This can be + ACTIVE,DEPRECATED, OBSOLETE, or DELETED. Operations which + communicate the end of life date for an image, can useACTIVE. + Operations which create a new resource using aDEPRECATED + resource will return successfully, but with a warning indicating + the deprecated resource and recommending its replacement. + Operations which use OBSOLETE orDELETED resources will be + rejected and result in an error. Values: UNDEFINED_STATE (0): @@ -26653,17 +30220,21 @@ class DetachDiskInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -26715,17 +30286,21 @@ class DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -26772,23 +30347,27 @@ class DetachNetworkEndpointsNetworkEndpointGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the network - endpoint group is located. It should comply with - RFC1035. + The name of the zone where + the network endpoint group is located. It should + comply with RFC1035. """ network_endpoint_group: str = proto.Field( @@ -26831,24 +30410,27 @@ class DetachNetworkEndpointsRegionNetworkEndpointGroupRequest(proto.Message): project (str): Project ID for this request. region (str): - The name of the region where the network - endpoint group is located. It should comply with - RFC1035. + The name of the region where + the network endpoint group is located. It should + comply with RFC1035. region_network_endpoint_groups_detach_endpoints_request_resource (google.cloud.compute_v1.types.RegionNetworkEndpointGroupsDetachEndpointsRequest): The body resource for this request request_id (str): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -26893,17 +30475,21 @@ class DisableXpnHostProjectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -26936,17 +30522,21 @@ class DisableXpnResourceProjectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -26968,30 +30558,42 @@ class DisableXpnResourceProjectRequest(proto.Message): class Disk(proto.Message): - r"""Represents a Persistent Disk resource. Google Compute Engine has two - Disk resources: \* `Zonal `__ - \* `Regional `__ + r"""Represents a Persistent Disk resource. + + Google Compute Engine has two Disk resources: + + - `Zonal `__ + - `Regional `__ + Persistent disks are required for running your VM instances. Create both boot and non-boot (data) persistent disks. For more information, read Persistent Disks. For more storage options, read - Storage options. The disks resource represents a zonal persistent - disk. For more information, read Zonal persistent disks. The - regionDisks resource represents a regional persistent disk. For more - information, read Regional resources. + Storage options. + + The disks resource represents a zonal persistent disk. For more + information, readZonal persistent disks. + + The regionDisks resource represents a regional persistent disk. For + more information, read Regional resources. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: access_mode (str): - The access mode of the disk. - READ_WRITE_SINGLE: The - default AccessMode, means the disk can be attached to single - instance in RW mode. - READ_WRITE_MANY: The AccessMode means - the disk can be attached to multiple instances in RW mode. - - READ_ONLY_MANY: The AccessMode means the disk can be - attached to multiple instances in RO mode. The AccessMode is - only valid for Hyperdisk disk types. Check the AccessMode - enum for the list of possible values. + The access mode of the disk. + + :: + + - READ_WRITE_SINGLE: The default AccessMode, means the + disk can be attached to single instance in RW mode. + - READ_WRITE_MANY: The AccessMode means the disk can be + attached to multiple instances in RW mode. + - READ_ONLY_MANY: The AccessMode means the disk can be + attached to multiple instances in RO mode. + + The AccessMode is only valid for Hyperdisk disk types. Check + the AccessMode enum for the list of possible values. This field is a member of `oneof`_ ``_access_mode``. architecture (str): @@ -27006,10 +30608,11 @@ class Disk(proto.Message): This field is a member of `oneof`_ ``_async_primary_disk``. async_secondary_disks (MutableMapping[str, google.cloud.compute_v1.types.DiskAsyncReplicationList]): - [Output Only] A list of disks this disk is asynchronously - replicated to. + Output only. [Output Only] A list of disks this disk is + asynchronously replicated to. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -27020,24 +30623,32 @@ class Disk(proto.Message): This field is a member of `oneof`_ ``_description``. disk_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): Encrypts the disk using a customer-supplied encryption key - or a customer-managed encryption key. Encryption keys do not - protect access to metadata of the disk. After you encrypt a - disk with a customer-supplied key, you must provide the same - key if you use the disk later. For example, to create a disk - snapshot, to create a disk image, to create a machine image, - or to attach the disk to a virtual machine. After you - encrypt a disk with a customer-managed key, the - diskEncryptionKey.kmsKeyName is set to a key *version* name - once the disk is created. The disk is encrypted with this - version of the key. In the response, + or a customer-managed encryption key. + + Encryption keys do not protect access to metadata of the + disk. + + After you encrypt a disk with a customer-supplied key, you + must provide the same key if you use the disk later. For + example, to create a disk snapshot, to create a disk image, + to create a machine image, or to attach the disk to a + virtual machine. + + After you encrypt a disk with a customer-managed key, + thediskEncryptionKey.kmsKeyName is set to a key *version* + name once the disk is created. The disk is encrypted with + this version of the key. In the response, diskEncryptionKey.kmsKeyName appears in the following - format: "diskEncryptionKey.kmsKeyName": + format: + + "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ - key_region/cryptoKeys/key /cryptoKeysVersions/version If you - do not provide an encryption key when creating the disk, - then the disk is encrypted using an automatically generated - key and you don't need to provide a key to use the disk - later. + key_region/cryptoKeys/key /cryptoKeysVersions/version + + If you do not provide an encryption key when creating the + disk, then the disk is encrypted using an automatically + generated key and you don't need to provide a key to use the + disk later. This field is a member of `oneof`_ ``_disk_encryption_key``. enable_confidential_compute (bool): @@ -27051,13 +30662,13 @@ class Disk(proto.Message): images. Read Enabling guest operating system features to see a list of available options. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always compute#disk for - disks. + Output only. [Output Only] Type of the resource. Always + compute#disk for disks. This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -27069,20 +30680,23 @@ class Disk(proto.Message): or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make a get() request to - retrieve a disk. + fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a disk. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): Labels to apply to this disk. These can be later modified by the setLabels method. last_attach_timestamp (str): - [Output Only] Last attach timestamp in RFC3339 text format. + Output only. [Output Only] Last attach timestamp inRFC3339 + text format. This field is a member of `oneof`_ ``_last_attach_timestamp``. last_detach_timestamp (str): - [Output Only] Last detach timestamp in RFC3339 text format. + Output only. [Output Only] Last detach timestamp inRFC3339 + text format. This field is a member of `oneof`_ ``_last_detach_timestamp``. license_codes (MutableSequence[int]): @@ -27100,7 +30714,7 @@ class Disk(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -27121,8 +30735,8 @@ class Disk(proto.Message): Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. The currently supported size is - 4096, other sizes may be added in the future. If - an unsupported value is requested, the error + 4096, other sizes may be added in the future. + If an unsupported value is requested, the error message will list the supported values for the caller's project. @@ -27132,7 +30746,7 @@ class Disk(proto.Message): disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, - see the Extreme persistent disk documentation. + see theExtreme persistent disk documentation. This field is a member of `oneof`_ ``_provisioned_iops``. provisioned_throughput (int): @@ -27143,10 +30757,10 @@ class Disk(proto.Message): This field is a member of `oneof`_ ``_provisioned_throughput``. region (str): - [Output Only] URL of the region where the disk resides. Only - applicable for regional resources. You must specify this - field as part of the HTTP request URL. It is not settable as - a field in the request body. + Output only. [Output Only] URL of the region where the disk + resides. Only applicable for regional resources. You must + specify this field as part of the HTTP request URL. It is + not settable as a field in the request body. This field is a member of `oneof`_ ``_region``. replica_zones (MutableSequence[str]): @@ -27157,7 +30771,8 @@ class Disk(proto.Message): Resource policies applied to this disk for automatic snapshot creations. resource_status (google.cloud.compute_v1.types.DiskResourceStatus): - [Output Only] Status information for the disk resource. + Output only. [Output Only] Status information for the disk + resource. This field is a member of `oneof`_ ``_resource_status``. satisfies_pzi (bool): @@ -27165,143 +30780,177 @@ class Disk(proto.Message): This field is a member of `oneof`_ ``_satisfies_pzi``. satisfies_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. self_link (str): - [Output Only] Server-defined fully-qualified URL for this - resource. + Output only. [Output Only] Server-defined fully-qualified + URL for this resource. This field is a member of `oneof`_ ``_self_link``. size_gb (int): Size, in GB, of the persistent disk. You can specify this field when creating a persistent - disk using the sourceImage, sourceSnapshot, or - sourceDisk parameter, or specify it alone to - create an empty persistent disk. If you specify - this field along with a source, the value of - sizeGb must not be less than the size of the - source. Acceptable values are greater than 0. + disk using thesourceImage, sourceSnapshot, + orsourceDisk parameter, or specify it alone to + create an empty persistent disk. + + If you specify this field along with a source, + the value ofsizeGb must not be less than the + size of the source. + Acceptable values are greater than 0. This field is a member of `oneof`_ ``_size_gb``. source_consistency_group_policy (str): - [Output Only] URL of the DiskConsistencyGroupPolicy for a - secondary disk that was created using a consistency group. + Output only. [Output Only] URL of the + DiskConsistencyGroupPolicy for a secondary disk that was + created using a consistency group. This field is a member of `oneof`_ ``_source_consistency_group_policy``. source_consistency_group_policy_id (str): - [Output Only] ID of the DiskConsistencyGroupPolicy for a - secondary disk that was created using a consistency group. + Output only. [Output Only] ID of the + DiskConsistencyGroupPolicy for a secondary disk that was + created using a consistency group. This field is a member of `oneof`_ ``_source_consistency_group_policy_id``. source_disk (str): The source disk used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid - values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /disks/disk - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /disks/disk - - projects/project/zones/zone/disks/disk - - projects/project/regions/region/disks/disk - - zones/zone/disks/disk - - regions/region/disks/disk + values: + + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk + + - + projects/project/zones/zone/disks/disk + + - + projects/project/regions/region/disks/disk + + - + zones/zone/disks/disk + + - + regions/region/disks/disk This field is a member of `oneof`_ ``_source_disk``. source_disk_id (str): - [Output Only] The unique ID of the disk used to create this - disk. This value identifies the exact disk that was used to - create this persistent disk. For example, if you created the - persistent disk from a disk that was later deleted and - recreated under the same name, the source disk ID would - identify the exact version of the disk that was used. + Output only. [Output Only] The unique ID of the disk used to + create this disk. This value identifies the exact disk that + was used to create this persistent disk. For example, if you + created the persistent disk from a disk that was later + deleted and recreated under the same name, the source disk + ID would identify the exact version of the disk that was + used. This field is a member of `oneof`_ ``_source_disk_id``. source_image (str): The source image used to create this disk. If the source image is deleted, this field will not - be set. To create a disk with one of the public + be set. + + To create a disk with one of the public operating system images, specify the image by - its family name. For example, specify - family/debian-9 to use the latest Debian 9 - image: + its family name. For example, + specifyfamily/debian-9 to use the latest Debian + 9 image: + projects/debian-cloud/global/images/family/debian-9 + Alternatively, use a specific version of a public operating system image: + projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD + To create a disk with a custom image that you created, specify the image name in the following - format: global/images/my-custom-image You can - also specify a custom image by its image family, - which returns the latest version of the image in - that family. Replace the image name with - family/family-name: + format: + + global/images/my-custom-image + + You can also specify a custom image by its image + family, which returns the latest version of the + image in that family. Replace the image name + with family/family-name: + global/images/family/my-image-family This field is a member of `oneof`_ ``_source_image``. source_image_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - The customer-supplied encryption key of the - source image. Required if the source image is - protected by a customer-supplied encryption key. + Thecustomer-supplied + encryption key of the source image. Required if + the source image is protected by a + customer-supplied encryption key. This field is a member of `oneof`_ ``_source_image_encryption_key``. source_image_id (str): - [Output Only] The ID value of the image used to create this - disk. This value identifies the exact image that was used to - create this persistent disk. For example, if you created the - persistent disk from an image that was later deleted and - recreated under the same name, the source image ID would - identify the exact version of the image that was used. + Output only. [Output Only] The ID value of the image used to + create this disk. This value identifies the exact image that + was used to create this persistent disk. For example, if you + created the persistent disk from an image that was later + deleted and recreated under the same name, the source image + ID would identify the exact version of the image that was + used. This field is a member of `oneof`_ ``_source_image_id``. source_instant_snapshot (str): The source instant snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the - following are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /instantSnapshots/instantSnapshot - - projects/project/zones/zone/instantSnapshots/instantSnapshot - - zones/zone/instantSnapshots/instantSnapshot + following are valid values: + + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot + - + projects/project/zones/zone/instantSnapshots/instantSnapshot + - zones/zone/instantSnapshots/instantSnapshot This field is a member of `oneof`_ ``_source_instant_snapshot``. source_instant_snapshot_id (str): - [Output Only] The unique ID of the instant snapshot used to - create this disk. This value identifies the exact instant - snapshot that was used to create this persistent disk. For - example, if you created the persistent disk from an instant - snapshot that was later deleted and recreated under the same - name, the source instant snapshot ID would identify the - exact version of the instant snapshot that was used. + Output only. [Output Only] The unique ID of the instant + snapshot used to create this disk. This value identifies the + exact instant snapshot that was used to create this + persistent disk. For example, if you created the persistent + disk from an instant snapshot that was later deleted and + recreated under the same name, the source instant snapshot + ID would identify the exact version of the instant snapshot + that was used. This field is a member of `oneof`_ ``_source_instant_snapshot_id``. source_snapshot (str): The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are - valid values: - - https://www.googleapis.com/compute/v1/projects/project - /global/snapshots/snapshot - - projects/project/global/snapshots/snapshot - - global/snapshots/snapshot + valid values: + + + - + https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot + - projects/project/global/snapshots/snapshot + - global/snapshots/snapshot This field is a member of `oneof`_ ``_source_snapshot``. source_snapshot_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - The customer-supplied encryption key of the - source snapshot. Required if the source snapshot - is protected by a customer-supplied encryption - key. + Thecustomer-supplied + encryption key of the source snapshot. Required + if the source snapshot is protected by a + customer-supplied encryption key. This field is a member of `oneof`_ ``_source_snapshot_encryption_key``. source_snapshot_id (str): - [Output Only] The unique ID of the snapshot used to create - this disk. This value identifies the exact snapshot that was - used to create this persistent disk. For example, if you - created the persistent disk from a snapshot that was later - deleted and recreated under the same name, the source - snapshot ID would identify the exact version of the snapshot - that was used. + Output only. [Output Only] The unique ID of the snapshot + used to create this disk. This value identifies the exact + snapshot that was used to create this persistent disk. For + example, if you created the persistent disk from a snapshot + that was later deleted and recreated under the same name, + the source snapshot ID would identify the exact version of + the snapshot that was used. This field is a member of `oneof`_ ``_source_snapshot_id``. source_storage_object (str): @@ -27318,52 +30967,68 @@ class Disk(proto.Message): This field is a member of `oneof`_ ``_source_storage_object``. status (str): - [Output Only] The status of disk creation. - CREATING: Disk - is provisioning. - RESTORING: Source data is being copied - into the disk. - FAILED: Disk creation failed. - READY: Disk - is ready for use. - DELETING: Disk is deleting. Check the - Status enum for the list of possible values. + Output only. [Output Only] The status of disk creation. + + :: + + - CREATING: Disk is provisioning. + - RESTORING: Source data is being copied into the + disk. + - FAILED: Disk creation failed. + - READY: Disk is ready for use. + - DELETING: Disk is deleting. + + Check the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. storage_pool (str): The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource. For example, the - following are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /storagePools/storagePool - - projects/project/zones/zone/storagePools/storagePool - - zones/zone/storagePools/storagePool + following are valid values: + + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/storagePools/storagePool + - + projects/project/zones/zone/storagePools/storagePool + - zones/zone/storagePools/storagePool This field is a member of `oneof`_ ``_storage_pool``. type_ (str): URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For - example: projects/project - /zones/zone/diskTypes/pd-ssd . See Persistent - disk types. + example:projects/project/zones/zone/diskTypes/pd-ssd. + See Persistent disk types. This field is a member of `oneof`_ ``_type``. users (MutableSequence[str]): - [Output Only] Links to the users of the disk (attached - instances) in form: - projects/project/zones/zone/instances/instance + Output only. [Output Only] Links to the users of the disk + (attached instances) in + form:projects/project/zones/zone/instances/instance zone (str): - [Output Only] URL of the zone where the disk resides. You - must specify this field as part of the HTTP request URL. It - is not settable as a field in the request body. + Output only. [Output Only] URL of the zone where the disk + resides. You must specify this field as part of the HTTP + request URL. It is not settable as a field in the request + body. This field is a member of `oneof`_ ``_zone``. """ class AccessMode(proto.Enum): - r"""The access mode of the disk. - READ_WRITE_SINGLE: The default - AccessMode, means the disk can be attached to single instance in RW - mode. - READ_WRITE_MANY: The AccessMode means the disk can be - attached to multiple instances in RW mode. - READ_ONLY_MANY: The - AccessMode means the disk can be attached to multiple instances in - RO mode. The AccessMode is only valid for Hyperdisk disk types. + r"""The access mode of the disk. + + :: + + - READ_WRITE_SINGLE: The default AccessMode, means the + disk can be attached to single instance in RW mode. + - READ_WRITE_MANY: The AccessMode means the disk can be + attached to multiple instances in RW mode. + - READ_ONLY_MANY: The AccessMode means the disk can be + attached to multiple instances in RO mode. + + The AccessMode is only valid for Hyperdisk disk types. Values: UNDEFINED_ACCESS_MODE (0): @@ -27405,10 +31070,16 @@ class Architecture(proto.Enum): X86_64 = 425300551 class Status(proto.Enum): - r"""[Output Only] The status of disk creation. - CREATING: Disk is - provisioning. - RESTORING: Source data is being copied into the - disk. - FAILED: Disk creation failed. - READY: Disk is ready for - use. - DELETING: Disk is deleting. + r"""Output only. [Output Only] The status of disk creation. + + :: + + - CREATING: Disk is provisioning. + - RESTORING: Source data is being copied into the + disk. + - FAILED: Disk creation failed. + - READY: Disk is ready for use. + - DELETING: Disk is deleting. Values: UNDEFINED_STATUS (0): @@ -27706,26 +31377,27 @@ class DiskAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.DisksScopedList]): A list of DisksScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#diskAggregatedList for aggregated lists of + Output only. [Output Only] Type of resource. + Alwayscompute#diskAggregatedList for aggregated lists of persistent disks. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -27781,30 +31453,34 @@ class DiskAsyncReplication(proto.Message): Attributes: consistency_group_policy (str): - [Output Only] URL of the DiskConsistencyGroupPolicy if - replication was started on the disk as a member of a group. + Output only. [Output Only] URL of the + DiskConsistencyGroupPolicy if replication was started on the + disk as a member of a group. This field is a member of `oneof`_ ``_consistency_group_policy``. consistency_group_policy_id (str): - [Output Only] ID of the DiskConsistencyGroupPolicy if - replication was started on the disk as a member of a group. + Output only. [Output Only] ID of the + DiskConsistencyGroupPolicy if replication was started on the + disk as a member of a group. This field is a member of `oneof`_ ``_consistency_group_policy_id``. disk (str): The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For - example, the following are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /disks/disk - - projects/project/zones/zone/disks/disk - - zones/zone/disks/disk + example, the following are valid values: + + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + - projects/project/zones/zone/disks/disk + - zones/zone/disks/disk This field is a member of `oneof`_ ``_disk``. disk_id (str): - [Output Only] The unique ID of the other disk asynchronously - replicated to or from the current disk. This value - identifies the exact disk that was used to create this + Output only. [Output Only] The unique ID of the other disk + asynchronously replicated to or from the current disk. This + value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify @@ -27882,42 +31558,54 @@ class DiskInstantiationConfig(proto.Message): This field is a member of `oneof`_ ``_device_name``. instantiate_from (str): Specifies whether to include the disk and - what image to use. Possible values are: - - source-image: to use the same image that was - used to create the source instance's - corresponding disk. Applicable to the boot disk - and additional read-write disks. - - source-image-family: to use the same image - family that was used to create the source - instance's corresponding disk. Applicable to the - boot disk and additional read-write disks. - - custom-image: to use a user-provided image url - for disk creation. Applicable to the boot disk - and additional read-write disks. - - attach-read-only: to attach a read-only disk. - Applicable to read-only disks. - do-not-include: - to exclude a disk from the template. Applicable - to additional read-write disks, local SSDs, and - read-only disks. Check the InstantiateFrom enum - for the list of possible values. + what image to use. Possible values are: + + + - source-image: to use the same image that + was used to create the source instance's + corresponding disk. Applicable to the boot + disk and additional read-write disks. + - source-image-family: to use the same + image family that was used to create the + source instance's corresponding disk. + Applicable to the boot disk and + additional read-write disks. + - custom-image: to use a user-provided + image url for disk creation. Applicable + to the boot disk and additional read-write + disks. + - attach-read-only: to attach a read-only + disk. Applicable to read-only disks. + - do-not-include: to exclude a disk from + the template. Applicable to additional + read-write disks, local SSDs, and read-only + disks. + Check the InstantiateFrom enum for the list of + possible values. This field is a member of `oneof`_ ``_instantiate_from``. """ class InstantiateFrom(proto.Enum): r"""Specifies whether to include the disk and what image to use. - Possible values are: - source-image: to use the same image that - was used to create the source instance's corresponding disk. - Applicable to the boot disk and additional read-write disks. - - source-image-family: to use the same image family that was used - to create the source instance's corresponding disk. Applicable - to the boot disk and additional read-write disks. - - custom-image: to use a user-provided image url for disk - creation. Applicable to the boot disk and additional read-write - disks. - attach-read-only: to attach a read-only disk. - Applicable to read-only disks. - do-not-include: to exclude a - disk from the template. Applicable to additional read-write - disks, local SSDs, and read-only disks. + Possible values are: + + + - source-image: to use the same image that was used to + create the source instance's corresponding disk. Applicable to + the boot disk and additional read-write disks. + - source-image-family: to use the same image family that + was used to create the source instance's corresponding disk. + Applicable to the boot disk and additional read-write + disks. + - custom-image: to use a user-provided image url for disk + creation. Applicable to the boot disk and additional + read-write disks. + - attach-read-only: to attach a read-only + disk. Applicable to read-only disks. + - do-not-include: to exclude a disk from the template. + Applicable to additional read-write disks, local SSDs, and + read-only disks. Values: UNDEFINED_INSTANTIATE_FROM (0): @@ -27957,8 +31645,9 @@ class InstantiateFrom(proto.Enum): creation of the source instance's corresponding disk. The request will fail if the source image of the source disk does not belong to any image - family. Applicable to: boot disk, additional - read-write disks. + family. Applicable to: + + boot disk, additional read-write disks. """ UNDEFINED_INSTANTIATE_FROM = 0 ATTACH_READ_ONLY = 513775419 @@ -28005,21 +31694,22 @@ class DiskList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Disk]): A list of Disk resources. kind (str): - [Output Only] Type of resource. Always compute#diskList for - lists of disks. + Output only. [Output Only] Type of resource. Always + compute#diskList for lists of disks. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -28075,19 +31765,23 @@ class DiskMoveRequest(proto.Message): The URL of the destination zone to move the disk. This can be a full or partial URL. For example, the following are all valid URLs to a - zone: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - - projects/project/zones/zone - zones/zone + zone: + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone + - projects/project/zones/zone + - zones/zone This field is a member of `oneof`_ ``_destination_zone``. target_disk (str): The URL of the target disk to move. This can be a full or partial URL. For example, the - following are all valid URLs to a disk: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /disks/disk - - projects/project/zones/zone/disks/disk - - zones/zone/disks/disk + following are all valid URLs to a disk: + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + - projects/project/zones/zone/disks/disk + - zones/zone/disks/disk This field is a member of `oneof`_ ``_target_disk``. """ @@ -28111,9 +31805,12 @@ class DiskParams(proto.Message): resource_manager_tags (MutableMapping[str, str]): Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. - Keys must be in the format ``tagKeys/{tag_key_id}``, and - values are in the format ``tagValues/456``. The field is - ignored (both PUT & PATCH) when empty. + Keys and values can be either in numeric format, such as + ``tagKeys/{tag_key_id}`` and ``tagValues/456`` or in + namespaced format such as + ``{org_id|project_id}/{tag_key_short_name}`` and + ``{tag_value_short_name}``. The field is ignored (both PUT & + PATCH) when empty. """ resource_manager_tags: MutableMapping[str, str] = proto.MapField( @@ -28203,23 +31900,29 @@ class State(proto.Enum): class DiskType(proto.Message): - r"""Represents a Disk Type resource. Google Compute Engine has two Disk - Type resources: \* - `Regional `__ \* - `Zonal `__ You can choose - from a variety of disk types based on your needs. For more - information, read Storage options. The diskTypes resource represents - disk types for a zonal persistent disk. For more information, read - Zonal persistent disks. The regionDiskTypes resource represents disk - types for a regional persistent disk. For more information, read - Regional persistent disks. + r"""Represents a Disk Type resource. + + Google Compute Engine has two Disk Type resources: + + - `Regional `__ + - `Zonal `__ + + You can choose from a variety of disk types based on your needs. For + more information, readStorage options. + + The diskTypes resource represents disk types for a zonal persistent + disk. For more information, readZonal persistent disks. + + The regionDiskTypes resource represents disk types for a regional + persistent disk. For more information, read Regional persistent + disks. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + [Output Only] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. default_disk_size_gb (int): @@ -28241,8 +31944,8 @@ class DiskType(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always compute#diskType - for disk types. + Output only. [Output Only] Type of the resource. Always + compute#diskType for disk types. This field is a member of `oneof`_ ``_kind``. name (str): @@ -28345,25 +32048,26 @@ class DiskTypeAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.DiskTypesScopedList]): A list of DiskTypesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#diskTypeAggregatedList. + Output only. [Output Only] Type of resource. + Alwayscompute#diskTypeAggregatedList. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -28426,21 +32130,22 @@ class DiskTypeList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.DiskType]): A list of DiskType resources. kind (str): - [Output Only] Type of resource. Always compute#diskTypeList - for disk types. + Output only. [Output Only] Type of resource. Always + compute#diskTypeList for disk types. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -28603,15 +32308,26 @@ class DisksStartAsyncReplicationRequest(proto.Message): The secondary disk to start asynchronous replication to. You can provide this as a partial or full URL to the resource. For - example, the following are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /disks/disk - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /disks/disk - - projects/project/zones/zone/disks/disk - - projects/project/regions/region/disks/disk - - zones/zone/disks/disk - - regions/region/disks/disk + example, the following are valid values: + + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk + + - + projects/project/zones/zone/disks/disk + + - + projects/project/regions/region/disks/disk + + - + zones/zone/disks/disk + + - + regions/region/disks/disk This field is a member of `oneof`_ ``_async_secondary_disk``. """ @@ -28636,11 +32352,17 @@ class DisksStopGroupAsyncReplicationResource(proto.Message): resource_policy (str): The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This may be a full - or partial URL, such as: - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /resourcePolicies/resourcePolicy - + or partial URL, such as: + + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy + + - projects/project/regions/region/resourcePolicies/resourcePolicy - - regions/region/resourcePolicies/resourcePolicy + + - + regions/region/resourcePolicies/resourcePolicy This field is a member of `oneof`_ ``_resource_policy``. """ @@ -28681,10 +32403,10 @@ class DistributionPolicy(proto.Message): target_shape (str): The distribution shape to which the group converges either proactively or on resize events - (depending on the value set in - updatePolicy.instanceRedistributionType). Check - the TargetShape enum for the list of possible - values. + (depending on the value set + inupdatePolicy.instanceRedistributionType). + Check the TargetShape enum for the list of + possible values. This field is a member of `oneof`_ ``_target_shape``. zones (MutableSequence[google.cloud.compute_v1.types.DistributionPolicyZoneConfiguration]): @@ -28694,8 +32416,8 @@ class DistributionPolicy(proto.Message): class TargetShape(proto.Enum): r"""The distribution shape to which the group converges either - proactively or on resize events (depending on the value set in - updatePolicy.instanceRedistributionType). + proactively or on resize events (depending on the value set + inupdatePolicy.instanceRedistributionType). Values: UNDEFINED_TARGET_SHAPE (0): @@ -28732,86 +32454,542 @@ class TargetShape(proto.Enum): between any two zones. Recommended for highly available serving workloads. """ - UNDEFINED_TARGET_SHAPE = 0 - ANY = 64972 - ANY_SINGLE_ZONE = 61100880 - BALANCED = 468409608 - EVEN = 2140442 + UNDEFINED_TARGET_SHAPE = 0 + ANY = 64972 + ANY_SINGLE_ZONE = 61100880 + BALANCED = 468409608 + EVEN = 2140442 + + target_shape: str = proto.Field( + proto.STRING, + number=338621299, + optional=True, + ) + zones: MutableSequence["DistributionPolicyZoneConfiguration"] = proto.RepeatedField( + proto.MESSAGE, + number=116085319, + message="DistributionPolicyZoneConfiguration", + ) + + +class DistributionPolicyZoneConfiguration(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + zone (str): + The URL of thezone. + The zone must exist in the region where the + managed instance group is located. + + This field is a member of `oneof`_ ``_zone``. + """ + + zone: str = proto.Field( + proto.STRING, + number=3744684, + optional=True, + ) + + +class Duration(proto.Message): + r"""A Duration represents a fixed-length span of time represented + as a count of seconds and fractions of seconds at nanosecond + resolution. It is independent of any calendar and concepts like + "day" or "month". Range is approximately 10,000 years. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + nanos (int): + Span of time that's a fraction of a second at nanosecond + resolution. Durations less than one second are represented + with a 0 ``seconds`` field and a positive ``nanos`` field. + Must be from 0 to 999,999,999 inclusive. + + This field is a member of `oneof`_ ``_nanos``. + seconds (int): + Span of time at a resolution of a second. Must be from 0 to + 315,576,000,000 inclusive. Note: these bounds are computed + from: 60 sec/min \* 60 min/hr \* 24 hr/day \* 365.25 + days/year \* 10000 years + + This field is a member of `oneof`_ ``_seconds``. + """ + + nanos: int = proto.Field( + proto.INT32, + number=104586303, + optional=True, + ) + seconds: int = proto.Field( + proto.INT64, + number=359484031, + optional=True, + ) + + +class EnableXpnHostProjectRequest(proto.Message): + r"""A request message for Projects.EnableXpnHost. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + """ + + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + + +class EnableXpnResourceProjectRequest(proto.Message): + r"""A request message for Projects.EnableXpnResource. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + project (str): + Project ID for this request. + projects_enable_xpn_resource_request_resource (google.cloud.compute_v1.types.ProjectsEnableXpnResourceRequest): + The body resource for this request + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + """ + + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + projects_enable_xpn_resource_request_resource: "ProjectsEnableXpnResourceRequest" = proto.Field( + proto.MESSAGE, + number=421980207, + message="ProjectsEnableXpnResourceRequest", + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + + +class Error(proto.Message): + r"""Output only. Errors that prevented the ResizeRequest to be + fulfilled. + + Attributes: + errors (MutableSequence[google.cloud.compute_v1.types.Errors]): + [Output Only] The array of errors encountered while + processing this operation. + """ + + errors: MutableSequence["Errors"] = proto.RepeatedField( + proto.MESSAGE, + number=315977579, + message="Errors", + ) + + +class ErrorDetails(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + error_info (google.cloud.compute_v1.types.ErrorInfo): + + This field is a member of `oneof`_ ``_error_info``. + help_ (google.cloud.compute_v1.types.Help): + + This field is a member of `oneof`_ ``_help``. + localized_message (google.cloud.compute_v1.types.LocalizedMessage): + + This field is a member of `oneof`_ ``_localized_message``. + quota_info (google.cloud.compute_v1.types.QuotaExceededInfo): + + This field is a member of `oneof`_ ``_quota_info``. + """ + + error_info: "ErrorInfo" = proto.Field( + proto.MESSAGE, + number=25251973, + optional=True, + message="ErrorInfo", + ) + help_: "Help" = proto.Field( + proto.MESSAGE, + number=3198785, + optional=True, + message="Help", + ) + localized_message: "LocalizedMessage" = proto.Field( + proto.MESSAGE, + number=404537155, + optional=True, + message="LocalizedMessage", + ) + quota_info: "QuotaExceededInfo" = proto.Field( + proto.MESSAGE, + number=93923861, + optional=True, + message="QuotaExceededInfo", + ) + + +class ErrorInfo(proto.Message): + r"""Describes the cause of the error with structured details. + + Example of an error when contacting the "pubsub.googleapis.com" API + when it is not enabled: + + :: + + { "reason": "API_DISABLED" + "domain": "googleapis.com" + "metadata": { + "resource": "projects/123", + "service": "pubsub.googleapis.com" + } + } + + This response indicates that the pubsub.googleapis.com API is not + enabled. + + Example of an error that is returned when attempting to create a + Spanner instance in a region that is out of stock: + + :: + + { "reason": "STOCKOUT" + "domain": "spanner.googleapis.com", + "metadata": { + "availableRegions": "us-central1,us-east2" + } + } + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + domain (str): + The logical grouping to which the "reason" + belongs. The error domain is typically the + registered service name of the tool or product + that generates the error. Example: + "pubsub.googleapis.com". If the error is + generated by some common infrastructure, the + error domain must be a globally unique value + that identifies the infrastructure. For Google + API infrastructure, the error domain is + "googleapis.com". + + This field is a member of `oneof`_ ``_domain``. + metadatas (MutableMapping[str, str]): + Additional structured details about this error. + + Keys must match a regular expression of ``a-z+`` but should + ideally be lowerCamelCase. Also, they must be limited to 64 + characters in length. When identifying the current value of + an exceeded limit, the units should be contained in the key, + not the value. For example, rather than + ``{"instanceLimit": "100/request"}``, should be returned as, + ``{"instanceLimitPerRequest": "100"}``, if the client + exceeds the number of instances that can be created in a + single (batch) request. + reason (str): + The reason of the error. This is a constant value that + identifies the proximate cause of the error. Error reasons + are unique within a particular domain of errors. This should + be at most 63 characters and match a regular expression of + ``A-Z+[A-Z0-9]``, which represents UPPER_SNAKE_CASE. + + This field is a member of `oneof`_ ``_reason``. + """ + + domain: str = proto.Field( + proto.STRING, + number=284415172, + optional=True, + ) + metadatas: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=8514340, + ) + reason: str = proto.Field( + proto.STRING, + number=138777156, + optional=True, + ) + + +class Errors(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + code (str): + [Output Only] The error type identifier for this error. + + This field is a member of `oneof`_ ``_code``. + error_details (MutableSequence[google.cloud.compute_v1.types.ErrorDetails]): + [Output Only] An optional list of messages that contain the + error details. There is a set of defined message types to + use for providing details.The syntax depends on the error + code. For example, QuotaExceededInfo will have details when + the error code is QUOTA_EXCEEDED. + location (str): + [Output Only] Indicates the field in the request that caused + the error. This property is optional. + + This field is a member of `oneof`_ ``_location``. + message (str): + [Output Only] An optional, human-readable error message. + + This field is a member of `oneof`_ ``_message``. + """ + + code: str = proto.Field( + proto.STRING, + number=3059181, + optional=True, + ) + error_details: MutableSequence["ErrorDetails"] = proto.RepeatedField( + proto.MESSAGE, + number=274653963, + message="ErrorDetails", + ) + location: str = proto.Field( + proto.STRING, + number=290430901, + optional=True, + ) + message: str = proto.Field( + proto.STRING, + number=418054151, + optional=True, + ) + + +class ExchangedPeeringRoute(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + dest_range (str): + The destination range of the route. + + This field is a member of `oneof`_ ``_dest_range``. + imported (bool): + True if the peering route has been imported + from a peer. The actual import happens if the + field networkPeering.importCustomRoutes is true + for this network, and + networkPeering.exportCustomRoutes is true for + the peer network, and the import does not result + in a route conflict. + + This field is a member of `oneof`_ ``_imported``. + next_hop_region (str): + The region of peering route next hop, only + applies to dynamic routes. + + This field is a member of `oneof`_ ``_next_hop_region``. + priority (int): + The priority of the peering route. + + This field is a member of `oneof`_ ``_priority``. + type_ (str): + The type of the peering route. + Check the Type enum for the list of possible + values. + + This field is a member of `oneof`_ ``_type``. + """ + + class Type(proto.Enum): + r"""The type of the peering route. + + Values: + UNDEFINED_TYPE (0): + A value indicating that the enum field is not + set. + DYNAMIC_PEERING_ROUTE (469794858): + For routes exported from local network. + STATIC_PEERING_ROUTE (473407545): + The peering route. + SUBNET_PEERING_ROUTE (465782504): + The peering route corresponding to subnetwork + range. + """ + UNDEFINED_TYPE = 0 + DYNAMIC_PEERING_ROUTE = 469794858 + STATIC_PEERING_ROUTE = 473407545 + SUBNET_PEERING_ROUTE = 465782504 - target_shape: str = proto.Field( + dest_range: str = proto.Field( proto.STRING, - number=338621299, + number=381327712, optional=True, ) - zones: MutableSequence["DistributionPolicyZoneConfiguration"] = proto.RepeatedField( - proto.MESSAGE, - number=116085319, - message="DistributionPolicyZoneConfiguration", + imported: bool = proto.Field( + proto.BOOL, + number=114502404, + optional=True, + ) + next_hop_region: str = proto.Field( + proto.STRING, + number=122577014, + optional=True, + ) + priority: int = proto.Field( + proto.UINT32, + number=445151652, + optional=True, + ) + type_: str = proto.Field( + proto.STRING, + number=3575610, + optional=True, ) -class DistributionPolicyZoneConfiguration(proto.Message): +class ExchangedPeeringRoutesList(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - zone (str): - The URL of the zone. The zone must exist in - the region where the managed instance group is - located. - - This field is a member of `oneof`_ ``_zone``. - """ - - zone: str = proto.Field( - proto.STRING, - number=3744684, - optional=True, - ) - - -class Duration(proto.Message): - r"""A Duration represents a fixed-length span of time represented - as a count of seconds and fractions of seconds at nanosecond - resolution. It is independent of any calendar and concepts like - "day" or "month". Range is approximately 10,000 years. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.ExchangedPeeringRoute]): + A list of ExchangedPeeringRoute resources. + kind (str): + Output only. [Output Only] Type of resource. + Alwayscompute#exchangedPeeringRoutesList for exchanged + peering routes lists. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. - Attributes: - nanos (int): - Span of time that's a fraction of a second at nanosecond - resolution. Durations less than one second are represented - with a 0 ``seconds`` field and a positive ``nanos`` field. - Must be from 0 to 999,999,999 inclusive. + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. - This field is a member of `oneof`_ ``_nanos``. - seconds (int): - Span of time at a resolution of a second. Must be from 0 to - 315,576,000,000 inclusive. Note: these bounds are computed - from: 60 sec/min \* 60 min/hr \* 24 hr/day \* 365.25 - days/year \* 10000 years + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. - This field is a member of `oneof`_ ``_seconds``. + This field is a member of `oneof`_ ``_warning``. """ - nanos: int = proto.Field( - proto.INT32, - number=104586303, + @property + def raw_page(self): + return self + + id: str = proto.Field( + proto.STRING, + number=3355, optional=True, ) - seconds: int = proto.Field( - proto.INT64, - number=359484031, + items: MutableSequence["ExchangedPeeringRoute"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="ExchangedPeeringRoute", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, optional=True, + message="Warning", ) -class EnableXpnHostProjectRequest(proto.Message): - r"""A request message for Projects.EnableXpnHost. See the method - description for details. +class ExpandIpCidrRangeSubnetworkRequest(proto.Message): + r"""A request message for Subnetworks.ExpandIpCidrRange. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -28819,349 +32997,849 @@ class EnableXpnHostProjectRequest(proto.Message): Attributes: project (str): Project ID for this request. + region (str): + Name of the region scoping this request. request_id (str): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. + subnetwork (str): + Name of the Subnetwork resource to update. + subnetworks_expand_ip_cidr_range_request_resource (google.cloud.compute_v1.types.SubnetworksExpandIpCidrRangeRequest): + The body resource for this request """ project: str = proto.Field( proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) request_id: str = proto.Field( proto.STRING, number=37109963, optional=True, ) + subnetwork: str = proto.Field( + proto.STRING, + number=307827694, + ) + subnetworks_expand_ip_cidr_range_request_resource: "SubnetworksExpandIpCidrRangeRequest" = proto.Field( + proto.MESSAGE, + number=477014110, + message="SubnetworksExpandIpCidrRangeRequest", + ) -class EnableXpnResourceProjectRequest(proto.Message): - r"""A request message for Projects.EnableXpnResource. See the - method description for details. +class Expr(proto.Message): + r"""Represents a textual expression in the Common Expression Language + (CEL) syntax. CEL is a C-like expression language. The syntax and + semantics of CEL are documented at + https://github.com/google/cel-spec. + + Example (Comparison): + + :: + + title: "Summary size limit" + description: "Determines if a summary is less than 100 chars" + expression: "document.summary.size() < 100" + + Example (Equality): + + :: + + title: "Requestor is owner" + description: "Determines if requestor is the document owner" + expression: "document.owner == request.auth.claims.email" + + Example (Logic): + + :: + + title: "Public documents" + description: "Determine whether the document should be publicly visible" + expression: "document.type != 'private' && document.type != 'internal'" + + Example (Data Manipulation): + + :: + + title: "Notification string" + description: "Create a notification string with a timestamp." + expression: "'New message received at ' + string(document.create_time)" + + The exact variables and functions that may be referenced within an + expression are determined by the service that evaluates it. See the + service documentation for additional information. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - project (str): - Project ID for this request. - projects_enable_xpn_resource_request_resource (google.cloud.compute_v1.types.ProjectsEnableXpnResourceRequest): - The body resource for this request - request_id (str): - An optional request ID to identify requests. - Specify a unique request ID so that if you must - retry your request, the server will know to - ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + description (str): + Optional. Description of the expression. This + is a longer text which describes the expression, + e.g. when hovered over it in a UI. - This field is a member of `oneof`_ ``_request_id``. + This field is a member of `oneof`_ ``_description``. + expression (str): + Textual representation of an expression in + Common Expression Language syntax. + + This field is a member of `oneof`_ ``_expression``. + location (str): + Optional. String indicating the location of + the expression for error reporting, e.g. a file + name and a position in the file. + + This field is a member of `oneof`_ ``_location``. + title (str): + Optional. Title for the expression, i.e. a + short string describing its purpose. This can be + used e.g. in UIs which allow to enter the + expression. + + This field is a member of `oneof`_ ``_title``. """ - project: str = proto.Field( + description: str = proto.Field( proto.STRING, - number=227560217, + number=422937596, + optional=True, ) - projects_enable_xpn_resource_request_resource: "ProjectsEnableXpnResourceRequest" = proto.Field( - proto.MESSAGE, - number=421980207, - message="ProjectsEnableXpnResourceRequest", + expression: str = proto.Field( + proto.STRING, + number=352031384, + optional=True, ) - request_id: str = proto.Field( + location: str = proto.Field( proto.STRING, - number=37109963, + number=290430901, + optional=True, + ) + title: str = proto.Field( + proto.STRING, + number=110371416, optional=True, ) -class Error(proto.Message): - r"""Errors that prevented the ResizeRequest to be fulfilled. +class ExternalVpnGateway(proto.Message): + r"""Represents an external VPN gateway. + + External VPN gateway is the on-premises VPN gateway(s) or + another cloud provider's VPN gateway that connects to your + Google Cloud VPN gateway. + + To create a highly available VPN from Google Cloud Platform to + your VPN gateway or another cloud provider's VPN gateway, you + must create a external VPN gateway resource with information + about the other gateway. + + For more information about using external VPN gateways, see + Creating an HA VPN gateway and tunnel pair to a peer VPN. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - errors (MutableSequence[google.cloud.compute_v1.types.Errors]): - [Output Only] The array of errors encountered while - processing this operation. + creation_timestamp (str): + Output only. [Output Only] Creation timestamp inRFC3339 text + format. + + This field is a member of `oneof`_ ``_creation_timestamp``. + description (str): + An optional description of this resource. + Provide this property when you create the + resource. + + This field is a member of `oneof`_ ``_description``. + id (int): + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. + + This field is a member of `oneof`_ ``_id``. + interfaces (MutableSequence[google.cloud.compute_v1.types.ExternalVpnGatewayInterface]): + A list of interfaces for this external VPN + gateway. + If your peer-side gateway is an on-premises + gateway and non-AWS cloud providers' gateway, at + most two interfaces can be provided for an + external VPN gateway. If your peer side is an + AWS virtual private gateway, four interfaces + should be provided for an external VPN gateway. + kind (str): + Output only. [Output Only] Type of the resource. + Alwayscompute#externalVpnGateway for externalVpnGateways. + + This field is a member of `oneof`_ ``_kind``. + label_fingerprint (str): + A fingerprint for the labels being applied to + this ExternalVpnGateway, which is essentially a + hash of the labels set used for optimistic + locking. The fingerprint is initially generated + by Compute Engine and changes after every + request to modify or update labels. You must + always provide an up-to-date fingerprint hash in + order to update or change labels, otherwise the + request will fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve an ExternalVpnGateway. + + This field is a member of `oneof`_ ``_label_fingerprint``. + labels (MutableMapping[str, str]): + Labels for this resource. These can only be + added or modified by thesetLabels method. Each + label key/value pair must comply withRFC1035. + Label values may be empty. + name (str): + Name of the resource. Provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. + + This field is a member of `oneof`_ ``_name``. + redundancy_type (str): + Indicates the user-supplied redundancy type + of this external VPN gateway. Check the + RedundancyType enum for the list of possible + values. + + This field is a member of `oneof`_ ``_redundancy_type``. + self_link (str): + Output only. [Output Only] Server-defined URL for the + resource. + + This field is a member of `oneof`_ ``_self_link``. """ - errors: MutableSequence["Errors"] = proto.RepeatedField( + class RedundancyType(proto.Enum): + r"""Indicates the user-supplied redundancy type of this external + VPN gateway. + + Values: + UNDEFINED_REDUNDANCY_TYPE (0): + A value indicating that the enum field is not + set. + FOUR_IPS_REDUNDANCY (520087913): + The external VPN gateway has four public IP addresses; at + the time of writing this API, the AWS virtual private + gateway is an example which has four public IP addresses for + high availability connections; there should be two VPN + connections in the AWS virtual private gateway , each AWS + VPN connection has two public IP addresses; please make sure + to put two public IP addresses from one AWS VPN connection + into interfaces 0 and 1 of this external VPN gateway, and + put the other two public IP addresses from another AWS VPN + connection into interfaces 2 and 3 of this external VPN + gateway. When displaying highly available configuration + status for the VPN tunnels connected to FOUR_IPS_REDUNDANCY + external VPN gateway, Google will always detect whether + interfaces 0 and 1 are connected on one interface of HA + Cloud VPN gateway, and detect whether interfaces 2 and 3 are + connected to another interface of the HA Cloud VPN gateway. + SINGLE_IP_INTERNALLY_REDUNDANT (133914873): + The external VPN gateway has only one public + IP address which internally provide redundancy + or failover. + TWO_IPS_REDUNDANCY (367049635): + The external VPN gateway has two public IP + addresses which are redundant with each other, + the following two types of setup on your + on-premises side would have this type of + redundancy: + + (1) Two separate on-premises gateways, each with + one public IP address, the two on-premises + gateways are redundant with each other. (2) A + single on-premise gateway with two public IP + addresses that are redundant with eatch + other. + """ + UNDEFINED_REDUNDANCY_TYPE = 0 + FOUR_IPS_REDUNDANCY = 520087913 + SINGLE_IP_INTERNALLY_REDUNDANT = 133914873 + TWO_IPS_REDUNDANCY = 367049635 + + creation_timestamp: str = proto.Field( + proto.STRING, + number=30525366, + optional=True, + ) + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + id: int = proto.Field( + proto.UINT64, + number=3355, + optional=True, + ) + interfaces: MutableSequence["ExternalVpnGatewayInterface"] = proto.RepeatedField( proto.MESSAGE, - number=315977579, - message="Errors", + number=12073562, + message="ExternalVpnGatewayInterface", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + label_fingerprint: str = proto.Field( + proto.STRING, + number=178124825, + optional=True, + ) + labels: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=500195327, + ) + name: str = proto.Field( + proto.STRING, + number=3373707, + optional=True, + ) + redundancy_type: str = proto.Field( + proto.STRING, + number=271443740, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, ) -class ErrorDetails(proto.Message): - r""" +class ExternalVpnGatewayInterface(proto.Message): + r"""The interface for the external VPN gateway. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - error_info (google.cloud.compute_v1.types.ErrorInfo): + id (int): + The numeric ID of this interface. The allowed input values + for this id for different redundancy types of external VPN + gateway: - This field is a member of `oneof`_ ``_error_info``. - help_ (google.cloud.compute_v1.types.Help): + :: - This field is a member of `oneof`_ ``_help``. - localized_message (google.cloud.compute_v1.types.LocalizedMessage): + - SINGLE_IP_INTERNALLY_REDUNDANT - 0 + - TWO_IPS_REDUNDANCY - 0, 1 + - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 - This field is a member of `oneof`_ ``_localized_message``. - quota_info (google.cloud.compute_v1.types.QuotaExceededInfo): + This field is a member of `oneof`_ ``_id``. + ip_address (str): + IP address of the interface in the external + VPN gateway. Only IPv4 is supported. This IP + address can be either from your on-premise + gateway or another Cloud provider's VPN gateway, + it cannot be an IP address from Google Compute + Engine. - This field is a member of `oneof`_ ``_quota_info``. + This field is a member of `oneof`_ ``_ip_address``. + ipv6_address (str): + IPv6 address of the interface in the external + VPN gateway. This IPv6 address can be either + from your on-premise gateway or another Cloud + provider's VPN gateway, it cannot be an IP + address from Google Compute Engine. Must specify + an IPv6 address (not IPV4-mapped) using any + format described in RFC 4291 (e.g. + 2001:db8:0:0:2d9:51:0:0). The output format is + RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). + + This field is a member of `oneof`_ ``_ipv6_address``. """ - error_info: "ErrorInfo" = proto.Field( - proto.MESSAGE, - number=25251973, - optional=True, - message="ErrorInfo", - ) - help_: "Help" = proto.Field( - proto.MESSAGE, - number=3198785, + id: int = proto.Field( + proto.UINT32, + number=3355, optional=True, - message="Help", ) - localized_message: "LocalizedMessage" = proto.Field( - proto.MESSAGE, - number=404537155, + ip_address: str = proto.Field( + proto.STRING, + number=406272220, optional=True, - message="LocalizedMessage", ) - quota_info: "QuotaExceededInfo" = proto.Field( - proto.MESSAGE, - number=93923861, + ipv6_address: str = proto.Field( + proto.STRING, + number=341563804, optional=True, - message="QuotaExceededInfo", ) -class ErrorInfo(proto.Message): - r"""Describes the cause of the error with structured details. Example of - an error when contacting the "pubsub.googleapis.com" API when it is - not enabled: { "reason": "API_DISABLED" "domain": "googleapis.com" - "metadata": { "resource": "projects/123", "service": - "pubsub.googleapis.com" } } This response indicates that the - pubsub.googleapis.com API is not enabled. Example of an error that - is returned when attempting to create a Spanner instance in a region - that is out of stock: { "reason": "STOCKOUT" "domain": - "spanner.googleapis.com", "metadata": { "availableRegions": - "us-central1,us-east2" } } +class ExternalVpnGatewayList(proto.Message): + r"""Response to the list request, and contains a list of + externalVpnGateways. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - domain (str): - The logical grouping to which the "reason" - belongs. The error domain is typically the - registered service name of the tool or product - that generates the error. Example: - "pubsub.googleapis.com". If the error is - generated by some common infrastructure, the - error domain must be a globally unique value - that identifies the infrastructure. For Google - API infrastructure, the error domain is - "googleapis.com". + etag (str): - This field is a member of `oneof`_ ``_domain``. - metadatas (MutableMapping[str, str]): - Additional structured details about this error. Keys must - match a regular expression of ``a-z+`` but should ideally be - lowerCamelCase. Also, they must be limited to 64 characters - in length. When identifying the current value of an exceeded - limit, the units should be contained in the key, not the - value. For example, rather than - ``{"instanceLimit": "100/request"}``, should be returned as, - ``{"instanceLimitPerRequest": "100"}``, if the client - exceeds the number of instances that can be created in a - single (batch) request. - reason (str): - The reason of the error. This is a constant value that - identifies the proximate cause of the error. Error reasons - are unique within a particular domain of errors. This should - be at most 63 characters and match a regular expression of - ``A-Z+[A-Z0-9]``, which represents UPPER_SNAKE_CASE. + This field is a member of `oneof`_ ``_etag``. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. - This field is a member of `oneof`_ ``_reason``. + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.ExternalVpnGateway]): + A list of ExternalVpnGateway resources. + kind (str): + Output only. [Output Only] Type of resource. Always + compute#externalVpnGatewayList for lists of + externalVpnGateways. + + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. + + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. """ - domain: str = proto.Field( + @property + def raw_page(self): + return self + + etag: str = proto.Field( proto.STRING, - number=284415172, + number=3123477, optional=True, ) - metadatas: MutableMapping[str, str] = proto.MapField( + id: str = proto.Field( proto.STRING, + number=3355, + optional=True, + ) + items: MutableSequence["ExternalVpnGateway"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="ExternalVpnGateway", + ) + kind: str = proto.Field( proto.STRING, - number=8514340, + number=3292052, + optional=True, ) - reason: str = proto.Field( + next_page_token: str = proto.Field( proto.STRING, - number=138777156, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, optional=True, + message="Warning", ) -class Errors(proto.Message): +class FileContentBuffer(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - code (str): - [Output Only] The error type identifier for this error. - - This field is a member of `oneof`_ ``_code``. - error_details (MutableSequence[google.cloud.compute_v1.types.ErrorDetails]): - [Output Only] An optional list of messages that contain the - error details. There is a set of defined message types to - use for providing details.The syntax depends on the error - code. For example, QuotaExceededInfo will have details when - the error code is QUOTA_EXCEEDED. - location (str): - [Output Only] Indicates the field in the request that caused - the error. This property is optional. + content (str): + The raw content in the secure keys file. - This field is a member of `oneof`_ ``_location``. - message (str): - [Output Only] An optional, human-readable error message. + This field is a member of `oneof`_ ``_content``. + file_type (str): + The file type of source file. + Check the FileType enum for the list of possible + values. - This field is a member of `oneof`_ ``_message``. + This field is a member of `oneof`_ ``_file_type``. """ - code: str = proto.Field( - proto.STRING, - number=3059181, - optional=True, - ) - error_details: MutableSequence["ErrorDetails"] = proto.RepeatedField( - proto.MESSAGE, - number=274653963, - message="ErrorDetails", - ) - location: str = proto.Field( + class FileType(proto.Enum): + r"""The file type of source file. + + Values: + UNDEFINED_FILE_TYPE (0): + A value indicating that the enum field is not + set. + BIN (65767): + No description available. + UNDEFINED (137851184): + No description available. + X509 (2674086): + No description available. + """ + UNDEFINED_FILE_TYPE = 0 + BIN = 65767 + UNDEFINED = 137851184 + X509 = 2674086 + + content: str = proto.Field( proto.STRING, - number=290430901, + number=414659705, optional=True, ) - message: str = proto.Field( + file_type: str = proto.Field( proto.STRING, - number=418054151, + number=294346781, optional=True, ) -class ExchangedPeeringRoute(proto.Message): - r""" +class Firewall(proto.Message): + r"""Represents a Firewall Rule resource. + + Firewall rules allow or deny ingress traffic to, and egress + traffic from your instances. For more information, readFirewall + rules. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - dest_range (str): - The destination range of the route. + allowed (MutableSequence[google.cloud.compute_v1.types.Allowed]): + The list of ALLOW rules specified by this + firewall. Each rule specifies a protocol and + port-range tuple that describes a permitted + connection. + creation_timestamp (str): + Output only. [Output Only] Creation timestamp inRFC3339 text + format. - This field is a member of `oneof`_ ``_dest_range``. - imported (bool): - True if the peering route has been imported - from a peer. The actual import happens if the - field networkPeering.importCustomRoutes is true - for this network, and - networkPeering.exportCustomRoutes is true for - the peer network, and the import does not result - in a route conflict. + This field is a member of `oneof`_ ``_creation_timestamp``. + denied (MutableSequence[google.cloud.compute_v1.types.Denied]): + The list of DENY rules specified by this + firewall. Each rule specifies a protocol and + port-range tuple that describes a denied + connection. + description (str): + An optional description of this resource. + Provide this field when you create the resource. - This field is a member of `oneof`_ ``_imported``. - next_hop_region (str): - The region of peering route next hop, only - applies to dynamic routes. + This field is a member of `oneof`_ ``_description``. + destination_ranges (MutableSequence[str]): + If destination ranges are specified, the + firewall rule applies only to traffic that has + destination IP address in these ranges. These + ranges must be expressed inCIDR format. Both + IPv4 and IPv6 are supported. + direction (str): + Direction of traffic to which this firewall applies, either + ``INGRESS`` or ``EGRESS``. The default is ``INGRESS``. For + ``EGRESS`` traffic, you cannot specify the sourceTags + fields. Check the Direction enum for the list of possible + values. - This field is a member of `oneof`_ ``_next_hop_region``. + This field is a member of `oneof`_ ``_direction``. + disabled (bool): + Denotes whether the firewall rule is + disabled. When set to true, the firewall rule is + not enforced and the network behaves as if it + did not exist. If this is unspecified, the + firewall rule will be enabled. + + This field is a member of `oneof`_ ``_disabled``. + id (int): + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. + + This field is a member of `oneof`_ ``_id``. + kind (str): + Output only. [Output Only] Type of the resource. Always + compute#firewall for firewall rules. + + This field is a member of `oneof`_ ``_kind``. + log_config (google.cloud.compute_v1.types.FirewallLogConfig): + This field denotes the logging options for a + particular firewall rule. If logging is enabled, + logs will be exported to Cloud Logging. + + This field is a member of `oneof`_ ``_log_config``. + name (str): + Name of the resource; provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?``. The first character must be + a lowercase letter, and all following characters (except for + the last character) must be a dash, lowercase letter, or + digit. The last character must be a lowercase letter or + digit. + + This field is a member of `oneof`_ ``_name``. + network (str): + URL of the network resource for this firewall + rule. If not specified when creating a firewall + rule, the default network is used: + + global/networks/default + + If you choose to specify this field, you can + specify the network as a full or partial URL. + For example, the following are all valid URLs: + + - + https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network + - + projects/myproject/global/networks/my-network + - global/networks/default + + This field is a member of `oneof`_ ``_network``. + params (google.cloud.compute_v1.types.FirewallParams): + Input only. [Input Only] Additional params passed with the + request, but not persisted as part of resource payload. + + This field is a member of `oneof`_ ``_params``. priority (int): - The priority of the peering route. + Priority for this rule. This is an integer between ``0`` and + ``65535``, both inclusive. The default value is ``1000``. + Relative priorities determine which rule takes effect if + multiple rules apply. Lower values indicate higher priority. + For example, a rule with priority ``0`` has higher + precedence than a rule with priority ``1``. DENY rules take + precedence over ALLOW rules if they have equal priority. + Note that VPC networks have implied rules with a priority of + ``65535``. To avoid conflicts with the implied rules, use a + priority number less than ``65535``. This field is a member of `oneof`_ ``_priority``. - type_ (str): - The type of the peering route. - Check the Type enum for the list of possible - values. + self_link (str): + [Output Only] Server-defined URL for the resource. - This field is a member of `oneof`_ ``_type``. + This field is a member of `oneof`_ ``_self_link``. + source_ranges (MutableSequence[str]): + If source ranges are specified, the firewall + rule applies only to traffic that has a source + IP address in these ranges. These ranges must be + expressed inCIDR format. One or both of + sourceRanges and sourceTags may be set. + If both fields are set, the rule applies to + traffic that has a source IP address within + sourceRanges OR a source IP from a resource with + a matching tag listed in thesourceTags field. + The connection does not need to match both + fields for the rule to + apply. Both IPv4 and IPv6 are supported. + source_service_accounts (MutableSequence[str]): + If source service accounts are specified, the + firewall rules apply only to traffic originating + from an instance with a service account in this + list. Source service accounts cannot be used to + control traffic to an instance's external IP + address because service accounts are associated + with an instance, not an IP address.sourceRanges + can be set at the same time + assourceServiceAccounts. If both are set, the + firewall applies to traffic that has a source IP + address within the sourceRanges OR a source IP + that belongs to an instance with service account + listed insourceServiceAccount. The connection + does not need to match both fields for the + firewall to apply.sourceServiceAccounts cannot + be used at the same time assourceTags or + targetTags. + source_tags (MutableSequence[str]): + If source tags are specified, the firewall + rule applies only to traffic with source IPs + that match the primary network interfaces of VM + instances that have the tag and are in the same + VPC network. Source tags cannot be used to + control traffic to an instance's external IP + address, it only applies to traffic between + instances in the same virtual network. Because + tags are associated with instances, not IP + addresses. One or both of sourceRanges and + sourceTags may be set. If both fields are set, + the firewall applies to traffic that has a + source IP address within sourceRanges OR a + source IP from a resource with a matching tag + listed in the sourceTags field. The connection + does not need to match both fields for the + firewall to apply. + target_service_accounts (MutableSequence[str]): + A list of service accounts indicating sets of instances + located in the network that may make network connections as + specified inallowed[].targetServiceAccounts cannot be used + at the same time astargetTags or sourceTags. If neither + targetServiceAccounts nor targetTags are specified, the + firewall rule applies to all instances on the specified + network. + target_tags (MutableSequence[str]): + A list of tags that controls which instances + the firewall rule applies to. If targetTags are + specified, then the firewall rule applies only + to instances in the VPC network that have one of + those tags. If no targetTags are specified, the + firewall rule applies to all instances on the + specified network. """ - class Type(proto.Enum): - r"""The type of the peering route. + class Direction(proto.Enum): + r"""Direction of traffic to which this firewall applies, either + ``INGRESS`` or ``EGRESS``. The default is ``INGRESS``. For + ``EGRESS`` traffic, you cannot specify the sourceTags fields. Values: - UNDEFINED_TYPE (0): + UNDEFINED_DIRECTION (0): A value indicating that the enum field is not set. - DYNAMIC_PEERING_ROUTE (469794858): - For routes exported from local network. - STATIC_PEERING_ROUTE (473407545): - The peering route. - SUBNET_PEERING_ROUTE (465782504): - The peering route corresponding to subnetwork - range. + EGRESS (432880501): + Indicates that firewall should apply to + outgoing traffic. + INGRESS (516931221): + Indicates that firewall should apply to + incoming traffic. """ - UNDEFINED_TYPE = 0 - DYNAMIC_PEERING_ROUTE = 469794858 - STATIC_PEERING_ROUTE = 473407545 - SUBNET_PEERING_ROUTE = 465782504 + UNDEFINED_DIRECTION = 0 + EGRESS = 432880501 + INGRESS = 516931221 - dest_range: str = proto.Field( + allowed: MutableSequence["Allowed"] = proto.RepeatedField( + proto.MESSAGE, + number=162398632, + message="Allowed", + ) + creation_timestamp: str = proto.Field( proto.STRING, - number=381327712, + number=30525366, optional=True, ) - imported: bool = proto.Field( + denied: MutableSequence["Denied"] = proto.RepeatedField( + proto.MESSAGE, + number=275217307, + message="Denied", + ) + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + destination_ranges: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=305699879, + ) + direction: str = proto.Field( + proto.STRING, + number=111150975, + optional=True, + ) + disabled: bool = proto.Field( proto.BOOL, - number=114502404, + number=270940796, optional=True, ) - next_hop_region: str = proto.Field( + id: int = proto.Field( + proto.UINT64, + number=3355, + optional=True, + ) + kind: str = proto.Field( proto.STRING, - number=122577014, + number=3292052, + optional=True, + ) + log_config: "FirewallLogConfig" = proto.Field( + proto.MESSAGE, + number=351299741, + optional=True, + message="FirewallLogConfig", + ) + name: str = proto.Field( + proto.STRING, + number=3373707, + optional=True, + ) + network: str = proto.Field( + proto.STRING, + number=232872494, + optional=True, + ) + params: "FirewallParams" = proto.Field( + proto.MESSAGE, + number=78313862, optional=True, + message="FirewallParams", ) priority: int = proto.Field( - proto.UINT32, + proto.INT32, number=445151652, optional=True, ) - type_: str = proto.Field( + self_link: str = proto.Field( proto.STRING, - number=3575610, + number=456214797, optional=True, ) + source_ranges: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=200097658, + ) + source_service_accounts: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=105100756, + ) + source_tags: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=452222397, + ) + target_service_accounts: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=457639710, + ) + target_tags: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=62901767, + ) -class ExchangedPeeringRoutesList(proto.Message): - r""" +class FirewallList(proto.Message): + r"""Contains a list of firewalls. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -29171,25 +33849,25 @@ class ExchangedPeeringRoutesList(proto.Message): the server. This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.ExchangedPeeringRoute]): - A list of ExchangedPeeringRoute resources. + items (MutableSequence[google.cloud.compute_v1.types.Firewall]): + A list of Firewall resources. kind (str): - [Output Only] Type of resource. Always - compute#exchangedPeeringRoutesList for exchanged peering - routes lists. + Output only. [Output Only] Type of resource. Always + compute#firewallList for lists of firewalls. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -29207,10 +33885,10 @@ def raw_page(self): number=3355, optional=True, ) - items: MutableSequence["ExchangedPeeringRoute"] = proto.RepeatedField( + items: MutableSequence["Firewall"] = proto.RepeatedField( proto.MESSAGE, number=100526016, - message="ExchangedPeeringRoute", + message="Firewall", ) kind: str = proto.Field( proto.STRING, @@ -29235,155 +33913,155 @@ def raw_page(self): ) -class ExpandIpCidrRangeSubnetworkRequest(proto.Message): - r"""A request message for Subnetworks.ExpandIpCidrRange. See the - method description for details. - +class FirewallLogConfig(proto.Message): + r"""The available logging options for a firewall rule. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - project (str): - Project ID for this request. - region (str): - Name of the region scoping this request. - request_id (str): - An optional request ID to identify requests. - Specify a unique request ID so that if you must - retry your request, the server will know to - ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + enable (bool): + This field denotes whether to enable logging + for a particular firewall rule. - This field is a member of `oneof`_ ``_request_id``. - subnetwork (str): - Name of the Subnetwork resource to update. - subnetworks_expand_ip_cidr_range_request_resource (google.cloud.compute_v1.types.SubnetworksExpandIpCidrRangeRequest): - The body resource for this request + This field is a member of `oneof`_ ``_enable``. + metadata (str): + This field can only be specified for a + particular firewall rule if logging is enabled + for that rule. This field denotes whether to + include or exclude metadata for firewall logs. + Check the Metadata enum for the list of possible + values. + + This field is a member of `oneof`_ ``_metadata``. """ - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) - request_id: str = proto.Field( - proto.STRING, - number=37109963, + class Metadata(proto.Enum): + r"""This field can only be specified for a particular firewall + rule if logging is enabled for that rule. This field denotes + whether to include or exclude metadata for firewall logs. + + Values: + UNDEFINED_METADATA (0): + A value indicating that the enum field is not + set. + EXCLUDE_ALL_METADATA (334519954): + No description available. + INCLUDE_ALL_METADATA (164619908): + No description available. + """ + UNDEFINED_METADATA = 0 + EXCLUDE_ALL_METADATA = 334519954 + INCLUDE_ALL_METADATA = 164619908 + + enable: bool = proto.Field( + proto.BOOL, + number=311764355, optional=True, ) - subnetwork: str = proto.Field( + metadata: str = proto.Field( proto.STRING, - number=307827694, - ) - subnetworks_expand_ip_cidr_range_request_resource: "SubnetworksExpandIpCidrRangeRequest" = proto.Field( - proto.MESSAGE, - number=477014110, - message="SubnetworksExpandIpCidrRangeRequest", + number=86866735, + optional=True, ) -class Expr(proto.Message): - r"""Represents a textual expression in the Common Expression Language - (CEL) syntax. CEL is a C-like expression language. The syntax and - semantics of CEL are documented at - https://github.com/google/cel-spec. Example (Comparison): title: - "Summary size limit" description: "Determines if a summary is less - than 100 chars" expression: "document.summary.size() < 100" Example - (Equality): title: "Requestor is owner" description: "Determines if - requestor is the document owner" expression: "document.owner == - request.auth.claims.email" Example (Logic): title: "Public - documents" description: "Determine whether the document should be - publicly visible" expression: "document.type != 'private' && - document.type != 'internal'" Example (Data Manipulation): title: - "Notification string" description: "Create a notification string - with a timestamp." expression: "'New message received at ' + - string(document.create_time)" The exact variables and functions that - may be referenced within an expression are determined by the service - that evaluates it. See the service documentation for additional - information. +class FirewallParams(proto.Message): + r"""Additional firewall parameters. + + Attributes: + resource_manager_tags (MutableMapping[str, str]): + Tag keys/values directly bound to this resource. Tag keys + and values have the same definition as resource manager + tags. The field is allowed for INSERT only. The keys/values + to set on the resource should be specified in either ID { : + } or Namespaced format { : }. For example the following are + valid inputs: + - {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + "tagValues/456"} + - {"123/environment" : "production", "345/abc" : "xyz"} + Note: + - Invalid combinations of ID & namespaced format is not + supported. For instance: {"123/environment" : + "tagValues/444"} is invalid. + """ - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + resource_manager_tags: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=377671164, + ) - Attributes: - description (str): - Optional. Description of the expression. This - is a longer text which describes the expression, - e.g. when hovered over it in a UI. - This field is a member of `oneof`_ ``_description``. - expression (str): - Textual representation of an expression in - Common Expression Language syntax. +class FirewallPoliciesListAssociationsResponse(proto.Message): + r""" - This field is a member of `oneof`_ ``_expression``. - location (str): - Optional. String indicating the location of - the expression for error reporting, e.g. a file - name and a position in the file. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_location``. - title (str): - Optional. Title for the expression, i.e. a - short string describing its purpose. This can be - used e.g. in UIs which allow to enter the - expression. + Attributes: + associations (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyAssociation]): + A list of associations. + kind (str): + Output only. [Output Only] Type of firewallPolicy + associations. Alwayscompute#FirewallPoliciesListAssociations + for lists of firewallPolicy associations. - This field is a member of `oneof`_ ``_title``. + This field is a member of `oneof`_ ``_kind``. """ - description: str = proto.Field( - proto.STRING, - number=422937596, - optional=True, + associations: MutableSequence["FirewallPolicyAssociation"] = proto.RepeatedField( + proto.MESSAGE, + number=508736530, + message="FirewallPolicyAssociation", ) - expression: str = proto.Field( + kind: str = proto.Field( proto.STRING, - number=352031384, + number=3292052, optional=True, ) - location: str = proto.Field( - proto.STRING, - number=290430901, - optional=True, + + +class FirewallPoliciesScopedList(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + firewall_policies (MutableSequence[google.cloud.compute_v1.types.FirewallPolicy]): + A list of firewall policies contained in this + scope. + warning (google.cloud.compute_v1.types.Warning): + Informational warning which replaces the list + of firewall policies when the list is empty. + + This field is a member of `oneof`_ ``_warning``. + """ + + firewall_policies: MutableSequence["FirewallPolicy"] = proto.RepeatedField( + proto.MESSAGE, + number=392512943, + message="FirewallPolicy", ) - title: str = proto.Field( - proto.STRING, - number=110371416, + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, optional=True, + message="Warning", ) -class ExternalVpnGateway(proto.Message): - r"""Represents an external VPN gateway. External VPN gateway is - the on-premises VPN gateway(s) or another cloud provider's VPN - gateway that connects to your Google Cloud VPN gateway. To - create a highly available VPN from Google Cloud Platform to your - VPN gateway or another cloud provider's VPN gateway, you must - create a external VPN gateway resource with information about - the other gateway. For more information about using external VPN - gateways, see Creating an HA VPN gateway and tunnel pair to a - peer VPN. - +class FirewallPolicy(proto.Message): + r"""Represents a Firewall Policy resource. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + associations (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyAssociation]): + A list of associations that belong to this + firewall policy. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -29392,115 +34070,138 @@ class ExternalVpnGateway(proto.Message): resource. This field is a member of `oneof`_ ``_description``. + display_name (str): + Deprecated, please use short name instead. User-provided + name of the Organization firewall policy. The name should be + unique in the organization in which the firewall policy is + created. This field is not applicable to network firewall + policies. This name must be set on creation and cannot be + changed. The name must be 1-63 characters long, and comply + with RFC1035. Specifically, the name must be 1-63 characters + long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. + + This field is a member of `oneof`_ ``_display_name``. + fingerprint (str): + Specifies a fingerprint for this resource, + which is essentially a hash of the metadata's + contents and used for optimistic locking. The + fingerprint is initially generated by Compute + Engine and changes after every request to modify + or update metadata. You must always provide an + up-to-date fingerprint hash in order to update + or change metadata, otherwise the request will + fail with error412 conditionNotMet. + + To see the latest fingerprint, make get() + request to the firewall policy. + + This field is a member of `oneof`_ ``_fingerprint``. id (int): [Output Only] The unique identifier for the resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. - interfaces (MutableSequence[google.cloud.compute_v1.types.ExternalVpnGatewayInterface]): - A list of interfaces for this external VPN - gateway. If your peer-side gateway is an - on-premises gateway and non-AWS cloud providers' - gateway, at most two interfaces can be provided - for an external VPN gateway. If your peer side - is an AWS virtual private gateway, four - interfaces should be provided for an external - VPN gateway. kind (str): - [Output Only] Type of the resource. Always - compute#externalVpnGateway for externalVpnGateways. + Output only. [Output only] Type of the resource. + Alwayscompute#firewallPolicyfor firewall policies This field is a member of `oneof`_ ``_kind``. - label_fingerprint (str): - A fingerprint for the labels being applied to - this ExternalVpnGateway, which is essentially a - hash of the labels set used for optimistic - locking. The fingerprint is initially generated - by Compute Engine and changes after every - request to modify or update labels. You must - always provide an up-to-date fingerprint hash in - order to update or change labels, otherwise the - request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve an - ExternalVpnGateway. - - This field is a member of `oneof`_ ``_label_fingerprint``. - labels (MutableMapping[str, str]): - Labels for this resource. These can only be - added or modified by the setLabels method. Each - label key/value pair must comply with RFC1035. - Label values may be empty. name (str): - Name of the resource. Provided by the client when the - resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 - characters long and match the regular expression - ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first - character must be a lowercase letter, and all following - characters must be a dash, lowercase letter, or digit, - except the last character, which cannot be a dash. + Name of the resource. For Organization Firewall Policies + it's a [Output Only] numeric ID allocated by Google Cloud + which uniquely identifies the Organization Firewall Policy. This field is a member of `oneof`_ ``_name``. - redundancy_type (str): - Indicates the user-supplied redundancy type - of this external VPN gateway. Check the - RedundancyType enum for the list of possible - values. + packet_mirroring_rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): + A list of packet mirroring rules that belong + to this policy. + parent (str): + Output only. [Output Only] The parent of the firewall + policy. This field is not applicable to network firewall + policies. - This field is a member of `oneof`_ ``_redundancy_type``. + This field is a member of `oneof`_ ``_parent``. + policy_type (str): + The type of the firewall policy. This field can be + eitherVPC_POLICY or RDMA_ROCE_POLICY. + + Note: if not specified then VPC_POLICY will be used. Check + the PolicyType enum for the list of possible values. + + This field is a member of `oneof`_ ``_policy_type``. + region (str): + Output only. [Output Only] URL of the region where the + regional firewall policy resides. This field is not + applicable to global firewall policies. You must specify + this field as part of the HTTP request URL. It is not + settable as a field in the request body. + + This field is a member of `oneof`_ ``_region``. + rule_tuple_count (int): + Output only. [Output Only] Total count of all firewall + policy rule tuples. A firewall policy can not exceed a set + number of tuples. + + This field is a member of `oneof`_ ``_rule_tuple_count``. + rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): + A list of rules that belong to this policy. There must + always be a default rule (rule with priority 2147483647 and + match "\*"). If no rules are provided when creating a + firewall policy, a default rule with action "allow" will be + added. self_link (str): [Output Only] Server-defined URL for the resource. This field is a member of `oneof`_ ``_self_link``. + self_link_with_id (str): + Output only. [Output Only] Server-defined URL for this + resource with the resource id. + + This field is a member of `oneof`_ ``_self_link_with_id``. + short_name (str): + User-provided name of the Organization firewall policy. The + name should be unique in the organization in which the + firewall policy is created. This field is not applicable to + network firewall policies. This name must be set on creation + and cannot be changed. The name must be 1-63 characters + long, and comply with RFC1035. Specifically, the name must + be 1-63 characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. + + This field is a member of `oneof`_ ``_short_name``. """ - class RedundancyType(proto.Enum): - r"""Indicates the user-supplied redundancy type of this external - VPN gateway. + class PolicyType(proto.Enum): + r"""The type of the firewall policy. This field can be eitherVPC_POLICY + or RDMA_ROCE_POLICY. + + Note: if not specified then VPC_POLICY will be used. Values: - UNDEFINED_REDUNDANCY_TYPE (0): + UNDEFINED_POLICY_TYPE (0): A value indicating that the enum field is not set. - FOUR_IPS_REDUNDANCY (520087913): - The external VPN gateway has four public IP addresses; at - the time of writing this API, the AWS virtual private - gateway is an example which has four public IP addresses for - high availability connections; there should be two VPN - connections in the AWS virtual private gateway , each AWS - VPN connection has two public IP addresses; please make sure - to put two public IP addresses from one AWS VPN connection - into interfaces 0 and 1 of this external VPN gateway, and - put the other two public IP addresses from another AWS VPN - connection into interfaces 2 and 3 of this external VPN - gateway. When displaying highly available configuration - status for the VPN tunnels connected to FOUR_IPS_REDUNDANCY - external VPN gateway, Google will always detect whether - interfaces 0 and 1 are connected on one interface of HA - Cloud VPN gateway, and detect whether interfaces 2 and 3 are - connected to another interface of the HA Cloud VPN gateway. - SINGLE_IP_INTERNALLY_REDUNDANT (133914873): - The external VPN gateway has only one public - IP address which internally provide redundancy - or failover. - TWO_IPS_REDUNDANCY (367049635): - The external VPN gateway has two public IP - addresses which are redundant with each other, - the following two types of setup on your - on-premises side would have this type of - redundancy: (1) Two separate on-premises - gateways, each with one public IP address, the - two on-premises gateways are redundant with each - other. (2) A single on-premise gateway with two - public IP addresses that are redundant with - eatch other. + RDMA_ROCE_POLICY (148757145): + No description available. + VPC_POLICY (74319208): + No description available. """ - UNDEFINED_REDUNDANCY_TYPE = 0 - FOUR_IPS_REDUNDANCY = 520087913 - SINGLE_IP_INTERNALLY_REDUNDANT = 133914873 - TWO_IPS_REDUNDANCY = 367049635 + UNDEFINED_POLICY_TYPE = 0 + RDMA_ROCE_POLICY = 148757145 + VPC_POLICY = 74319208 + associations: MutableSequence["FirewallPolicyAssociation"] = proto.RepeatedField( + proto.MESSAGE, + number=508736530, + message="FirewallPolicyAssociation", + ) creation_timestamp: str = proto.Field( proto.STRING, number=30525366, @@ -29511,138 +34212,165 @@ class RedundancyType(proto.Enum): number=422937596, optional=True, ) + display_name: str = proto.Field( + proto.STRING, + number=4473832, + optional=True, + ) + fingerprint: str = proto.Field( + proto.STRING, + number=234678500, + optional=True, + ) id: int = proto.Field( proto.UINT64, number=3355, optional=True, ) - interfaces: MutableSequence["ExternalVpnGatewayInterface"] = proto.RepeatedField( - proto.MESSAGE, - number=12073562, - message="ExternalVpnGatewayInterface", - ) kind: str = proto.Field( proto.STRING, number=3292052, optional=True, ) - label_fingerprint: str = proto.Field( + name: str = proto.Field( proto.STRING, - number=178124825, + number=3373707, optional=True, ) - labels: MutableMapping[str, str] = proto.MapField( - proto.STRING, + packet_mirroring_rules: MutableSequence["FirewallPolicyRule"] = proto.RepeatedField( + proto.MESSAGE, + number=531644356, + message="FirewallPolicyRule", + ) + parent: str = proto.Field( proto.STRING, - number=500195327, + number=78317738, + optional=True, ) - name: str = proto.Field( + policy_type: str = proto.Field( proto.STRING, - number=3373707, + number=18158119, optional=True, ) - redundancy_type: str = proto.Field( + region: str = proto.Field( proto.STRING, - number=271443740, + number=138946292, + optional=True, + ) + rule_tuple_count: int = proto.Field( + proto.INT32, + number=388342037, optional=True, ) + rules: MutableSequence["FirewallPolicyRule"] = proto.RepeatedField( + proto.MESSAGE, + number=108873975, + message="FirewallPolicyRule", + ) self_link: str = proto.Field( proto.STRING, number=456214797, optional=True, ) + self_link_with_id: str = proto.Field( + proto.STRING, + number=44520962, + optional=True, + ) + short_name: str = proto.Field( + proto.STRING, + number=492051566, + optional=True, + ) -class ExternalVpnGatewayInterface(proto.Message): - r"""The interface for the external VPN gateway. +class FirewallPolicyAssociation(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - id (int): - The numeric ID of this interface. The allowed input values - for this id for different redundancy types of external VPN - gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - - TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3 + attachment_target (str): + The target that the firewall policy is + attached to. - This field is a member of `oneof`_ ``_id``. - ip_address (str): - IP address of the interface in the external - VPN gateway. Only IPv4 is supported. This IP - address can be either from your on-premise - gateway or another Cloud provider's VPN gateway, - it cannot be an IP address from Google Compute - Engine. + This field is a member of `oneof`_ ``_attachment_target``. + display_name (str): + [Output Only] Deprecated, please use short name instead. The + display name of the firewall policy of the association. - This field is a member of `oneof`_ ``_ip_address``. - ipv6_address (str): - IPv6 address of the interface in the external - VPN gateway. This IPv6 address can be either - from your on-premise gateway or another Cloud - provider's VPN gateway, it cannot be an IP - address from Google Compute Engine. Must specify - an IPv6 address (not IPV4-mapped) using any - format described in RFC 4291 (e.g. - 2001:db8:0:0:2d9:51:0:0). The output format is - RFC 5952 format (e.g. 2001:db8::2d9:51:0:0). + This field is a member of `oneof`_ ``_display_name``. + firewall_policy_id (str): + Output only. [Output Only] The firewall policy ID of the + association. - This field is a member of `oneof`_ ``_ipv6_address``. + This field is a member of `oneof`_ ``_firewall_policy_id``. + name (str): + The name for an association. + + This field is a member of `oneof`_ ``_name``. + short_name (str): + Output only. [Output Only] The short name of the firewall + policy of the association. + + This field is a member of `oneof`_ ``_short_name``. """ - id: int = proto.Field( - proto.UINT32, - number=3355, + attachment_target: str = proto.Field( + proto.STRING, + number=175773741, optional=True, ) - ip_address: str = proto.Field( + display_name: str = proto.Field( proto.STRING, - number=406272220, + number=4473832, optional=True, ) - ipv6_address: str = proto.Field( + firewall_policy_id: str = proto.Field( proto.STRING, - number=341563804, + number=357211849, + optional=True, + ) + name: str = proto.Field( + proto.STRING, + number=3373707, + optional=True, + ) + short_name: str = proto.Field( + proto.STRING, + number=492051566, optional=True, ) -class ExternalVpnGatewayList(proto.Message): - r"""Response to the list request, and contains a list of - externalVpnGateways. - +class FirewallPolicyList(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - etag (str): - - This field is a member of `oneof`_ ``_etag``. id (str): [Output Only] Unique identifier for the resource; defined by the server. This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.ExternalVpnGateway]): - A list of ExternalVpnGateway resources. + items (MutableSequence[google.cloud.compute_v1.types.FirewallPolicy]): + A list of FirewallPolicy resources. kind (str): - [Output Only] Type of resource. Always - compute#externalVpnGatewayList for lists of - externalVpnGateways. + Output only. [Output Only] Type of resource. + Alwayscompute#firewallPolicyList for listsof + FirewallPolicies This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. - - This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -29653,20 +34381,15 @@ class ExternalVpnGatewayList(proto.Message): def raw_page(self): return self - etag: str = proto.Field( - proto.STRING, - number=3123477, - optional=True, - ) id: str = proto.Field( proto.STRING, number=3355, optional=True, ) - items: MutableSequence["ExternalVpnGateway"] = proto.RepeatedField( + items: MutableSequence["FirewallPolicy"] = proto.RepeatedField( proto.MESSAGE, number=100526016, - message="ExternalVpnGateway", + message="FirewallPolicy", ) kind: str = proto.Field( proto.STRING, @@ -29678,11 +34401,6 @@ def raw_page(self): number=79797525, optional=True, ) - self_link: str = proto.Field( - proto.STRING, - number=456214797, - optional=True, - ) warning: "Warning" = proto.Field( proto.MESSAGE, number=50704284, @@ -29691,278 +34409,145 @@ def raw_page(self): ) -class FileContentBuffer(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - content (str): - The raw content in the secure keys file. - - This field is a member of `oneof`_ ``_content``. - file_type (str): - The file type of source file. - Check the FileType enum for the list of possible - values. - - This field is a member of `oneof`_ ``_file_type``. - """ - - class FileType(proto.Enum): - r"""The file type of source file. - - Values: - UNDEFINED_FILE_TYPE (0): - A value indicating that the enum field is not - set. - BIN (65767): - No description available. - UNDEFINED (137851184): - No description available. - X509 (2674086): - No description available. - """ - UNDEFINED_FILE_TYPE = 0 - BIN = 65767 - UNDEFINED = 137851184 - X509 = 2674086 - - content: str = proto.Field( - proto.STRING, - number=414659705, - optional=True, - ) - file_type: str = proto.Field( - proto.STRING, - number=294346781, - optional=True, - ) - - -class Firewall(proto.Message): - r"""Represents a Firewall Rule resource. Firewall rules allow or - deny ingress traffic to, and egress traffic from your instances. - For more information, read Firewall rules. +class FirewallPolicyRule(proto.Message): + r"""Represents a rule that describes one or more match conditions + along with the action to be taken when traffic matches this + condition (allow or deny). .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - allowed (MutableSequence[google.cloud.compute_v1.types.Allowed]): - The list of ALLOW rules specified by this - firewall. Each rule specifies a protocol and - port-range tuple that describes a permitted - connection. - creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + action (str): + The Action to perform when the client connection triggers + the rule. Valid actions for firewall rules are: "allow", + "deny", "apply_security_profile_group" and "goto_next". + Valid actions for packet mirroring rules are: "mirror", + "do_not_mirror" and "goto_next". - This field is a member of `oneof`_ ``_creation_timestamp``. - denied (MutableSequence[google.cloud.compute_v1.types.Denied]): - The list of DENY rules specified by this - firewall. Each rule specifies a protocol and - port-range tuple that describes a denied - connection. + This field is a member of `oneof`_ ``_action``. description (str): - An optional description of this resource. - Provide this field when you create the resource. + An optional description for this resource. This field is a member of `oneof`_ ``_description``. - destination_ranges (MutableSequence[str]): - If destination ranges are specified, the - firewall rule applies only to traffic that has - destination IP address in these ranges. These - ranges must be expressed in CIDR format. Both - IPv4 and IPv6 are supported. direction (str): - Direction of traffic to which this firewall applies, either - ``INGRESS`` or ``EGRESS``. The default is ``INGRESS``. For - ``EGRESS`` traffic, you cannot specify the sourceTags - fields. Check the Direction enum for the list of possible - values. + The direction in which this rule applies. + Check the Direction enum for the list of + possible values. This field is a member of `oneof`_ ``_direction``. disabled (bool): - Denotes whether the firewall rule is - disabled. When set to true, the firewall rule is - not enforced and the network behaves as if it - did not exist. If this is unspecified, the - firewall rule will be enabled. + Denotes whether the firewall policy rule is + disabled. When set to true, the firewall policy + rule is not enforced and traffic behaves as if + it did not exist. If this is unspecified, the + firewall policy rule will be enabled. This field is a member of `oneof`_ ``_disabled``. - id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + enable_logging (bool): + Denotes whether to enable logging for a particular rule. If + logging is enabled, logs will be exported to the configured + export destination in Stackdriver. Logs may be exported to + BigQuery or Pub/Sub. Note: you cannot enable logging on + "goto_next" rules. - This field is a member of `oneof`_ ``_id``. + This field is a member of `oneof`_ ``_enable_logging``. kind (str): - [Output Only] Type of the resource. Always compute#firewall - for firewall rules. - - This field is a member of `oneof`_ ``_kind``. - log_config (google.cloud.compute_v1.types.FirewallLogConfig): - This field denotes the logging options for a - particular firewall rule. If logging is enabled, - logs will be exported to Cloud Logging. - - This field is a member of `oneof`_ ``_log_config``. - name (str): - Name of the resource; provided by the client when the - resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 - characters long and match the regular expression - ``[a-z]([-a-z0-9]*[a-z0-9])?``. The first character must be - a lowercase letter, and all following characters (except for - the last character) must be a dash, lowercase letter, or - digit. The last character must be a lowercase letter or - digit. - - This field is a member of `oneof`_ ``_name``. - network (str): - URL of the network resource for this firewall - rule. If not specified when creating a firewall - rule, the default network is used: - global/networks/default If you choose to specify - this field, you can specify the network as a - full or partial URL. For example, the following - are all valid URLs: - - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - - projects/myproject/global/networks/my-network - - global/networks/default - - This field is a member of `oneof`_ ``_network``. - params (google.cloud.compute_v1.types.FirewallParams): - Input only. [Input Only] Additional params passed with the - request, but not persisted as part of resource payload. + Output only. [Output only] Type of the resource. + Returnscompute#firewallPolicyRule for firewall rules + andcompute#packetMirroringRule for packet mirroring rules. - This field is a member of `oneof`_ ``_params``. - priority (int): - Priority for this rule. This is an integer between ``0`` and - ``65535``, both inclusive. The default value is ``1000``. - Relative priorities determine which rule takes effect if - multiple rules apply. Lower values indicate higher priority. - For example, a rule with priority ``0`` has higher - precedence than a rule with priority ``1``. DENY rules take - precedence over ALLOW rules if they have equal priority. - Note that VPC networks have implied rules with a priority of - ``65535``. To avoid conflicts with the implied rules, use a - priority number less than ``65535``. + This field is a member of `oneof`_ ``_kind``. + match (google.cloud.compute_v1.types.FirewallPolicyRuleMatcher): + A match condition that incoming traffic is + evaluated against. If it evaluates to true, the + corresponding 'action' is enforced. + + This field is a member of `oneof`_ ``_match``. + priority (int): + An integer indicating the priority of a rule + in the list. The priority must be a positive + value between 0 and 2147483647. Rules are + evaluated from highest to lowest priority where + 0 is the highest priority and 2147483647 is the + lowest priority. This field is a member of `oneof`_ ``_priority``. - self_link (str): - [Output Only] Server-defined URL for the resource. + rule_name (str): + An optional name for the rule. This field is + not a unique identifier and can be updated. - This field is a member of `oneof`_ ``_self_link``. - source_ranges (MutableSequence[str]): - If source ranges are specified, the firewall - rule applies only to traffic that has a source - IP address in these ranges. These ranges must be - expressed in CIDR format. One or both of - sourceRanges and sourceTags may be set. If both - fields are set, the rule applies to traffic that - has a source IP address within sourceRanges OR a - source IP from a resource with a matching tag - listed in the sourceTags field. The connection - does not need to match both fields for the rule - to apply. Both IPv4 and IPv6 are supported. - source_service_accounts (MutableSequence[str]): - If source service accounts are specified, the - firewall rules apply only to traffic originating - from an instance with a service account in this - list. Source service accounts cannot be used to - control traffic to an instance's external IP - address because service accounts are associated - with an instance, not an IP address. - sourceRanges can be set at the same time as - sourceServiceAccounts. If both are set, the - firewall applies to traffic that has a source IP - address within the sourceRanges OR a source IP - that belongs to an instance with service account - listed in sourceServiceAccount. The connection - does not need to match both fields for the - firewall to apply. sourceServiceAccounts cannot - be used at the same time as sourceTags or - targetTags. - source_tags (MutableSequence[str]): - If source tags are specified, the firewall - rule applies only to traffic with source IPs - that match the primary network interfaces of VM - instances that have the tag and are in the same - VPC network. Source tags cannot be used to - control traffic to an instance's external IP - address, it only applies to traffic between - instances in the same virtual network. Because - tags are associated with instances, not IP - addresses. One or both of sourceRanges and - sourceTags may be set. If both fields are set, - the firewall applies to traffic that has a - source IP address within sourceRanges OR a - source IP from a resource with a matching tag - listed in the sourceTags field. The connection - does not need to match both fields for the - firewall to apply. - target_service_accounts (MutableSequence[str]): - A list of service accounts indicating sets of instances - located in the network that may make network connections as - specified in allowed[]. targetServiceAccounts cannot be used - at the same time as targetTags or sourceTags. If neither - targetServiceAccounts nor targetTags are specified, the + This field is a member of `oneof`_ ``_rule_name``. + rule_tuple_count (int): + Output only. [Output Only] Calculation of the complexity of + a single firewall policy rule. + + This field is a member of `oneof`_ ``_rule_tuple_count``. + security_profile_group (str): + A fully-qualified URL of a SecurityProfile resource + instance. Example: + https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group + Must be specified if action is one of + 'apply_security_profile_group' or 'mirror'. Cannot be + specified for other actions. + + This field is a member of `oneof`_ ``_security_profile_group``. + target_resources (MutableSequence[str]): + A list of network resource URLs to which this + rule applies. This field allows you to control + which network's VMs get this rule. If this + field is left blank, all VMs within the + organization will receive the rule. + target_secure_tags (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRuleSecureTag]): + A list of secure tags that controls which instances the + firewall rule applies to. If targetSecureTag are specified, + then the firewall rule applies only to instances in the VPC + network that have one of those EFFECTIVE secure tags, if all + the target_secure_tag are in INEFFECTIVE state, then this + rule will be ignored.targetSecureTag may not be set at the + same time astargetServiceAccounts. If neither + targetServiceAccounts nortargetSecureTag are specified, the firewall rule applies to all instances on the specified - network. - target_tags (MutableSequence[str]): - A list of tags that controls which instances - the firewall rule applies to. If targetTags are - specified, then the firewall rule applies only - to instances in the VPC network that have one of - those tags. If no targetTags are specified, the - firewall rule applies to all instances on the - specified network. + network. Maximum number of target label tags allowed is 256. + target_service_accounts (MutableSequence[str]): + A list of service accounts indicating the + sets of instances that are applied with this + rule. + tls_inspect (bool): + Boolean flag indicating if the traffic should be TLS + decrypted. Can be set only if action = + 'apply_security_profile_group' and cannot be set for other + actions. + + This field is a member of `oneof`_ ``_tls_inspect``. """ class Direction(proto.Enum): - r"""Direction of traffic to which this firewall applies, either - ``INGRESS`` or ``EGRESS``. The default is ``INGRESS``. For - ``EGRESS`` traffic, you cannot specify the sourceTags fields. + r"""The direction in which this rule applies. Values: UNDEFINED_DIRECTION (0): A value indicating that the enum field is not set. EGRESS (432880501): - Indicates that firewall should apply to - outgoing traffic. + No description available. INGRESS (516931221): - Indicates that firewall should apply to - incoming traffic. + No description available. """ UNDEFINED_DIRECTION = 0 EGRESS = 432880501 INGRESS = 516931221 - allowed: MutableSequence["Allowed"] = proto.RepeatedField( - proto.MESSAGE, - number=162398632, - message="Allowed", - ) - creation_timestamp: str = proto.Field( + action: str = proto.Field( proto.STRING, - number=30525366, + number=187661878, optional=True, ) - denied: MutableSequence["Denied"] = proto.RepeatedField( - proto.MESSAGE, - number=275217307, - message="Denied", - ) description: str = proto.Field( proto.STRING, number=422937596, optional=True, ) - destination_ranges: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=305699879, - ) direction: str = proto.Field( proto.STRING, number=111150975, @@ -29973,9 +34558,9 @@ class Direction(proto.Enum): number=270940796, optional=True, ) - id: int = proto.Field( - proto.UINT64, - number=3355, + enable_logging: bool = proto.Field( + proto.BOOL, + number=295396515, optional=True, ) kind: str = proto.Field( @@ -29983,278 +34568,590 @@ class Direction(proto.Enum): number=3292052, optional=True, ) - log_config: "FirewallLogConfig" = proto.Field( + match: "FirewallPolicyRuleMatcher" = proto.Field( proto.MESSAGE, - number=351299741, + number=103668165, optional=True, - message="FirewallLogConfig", + message="FirewallPolicyRuleMatcher", ) - name: str = proto.Field( - proto.STRING, - number=3373707, + priority: int = proto.Field( + proto.INT32, + number=445151652, optional=True, ) - network: str = proto.Field( + rule_name: str = proto.Field( proto.STRING, - number=232872494, - optional=True, - ) - params: "FirewallParams" = proto.Field( - proto.MESSAGE, - number=78313862, + number=55286254, optional=True, - message="FirewallParams", ) - priority: int = proto.Field( + rule_tuple_count: int = proto.Field( proto.INT32, - number=445151652, + number=388342037, optional=True, ) - self_link: str = proto.Field( + security_profile_group: str = proto.Field( proto.STRING, - number=456214797, + number=207411626, optional=True, ) - source_ranges: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=200097658, - ) - source_service_accounts: MutableSequence[str] = proto.RepeatedField( + target_resources: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=105100756, + number=528230647, ) - source_tags: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=452222397, + target_secure_tags: MutableSequence[ + "FirewallPolicyRuleSecureTag" + ] = proto.RepeatedField( + proto.MESSAGE, + number=468132403, + message="FirewallPolicyRuleSecureTag", ) target_service_accounts: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=457639710, ) - target_tags: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=62901767, + tls_inspect: bool = proto.Field( + proto.BOOL, + number=43425488, + optional=True, ) -class FirewallList(proto.Message): - r"""Contains a list of firewalls. +class FirewallPolicyRuleMatcher(proto.Message): + r"""Represents a match condition that incoming traffic is + evaluated against. Exactly one field must be specified. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + dest_address_groups (MutableSequence[str]): + Address groups which should be matched + against the traffic destination. Maximum number + of destination address groups is 10. + dest_fqdns (MutableSequence[str]): + Fully Qualified Domain Name (FQDN) which + should be matched against traffic destination. + Maximum number of destination fqdn allowed is + 100. + dest_ip_ranges (MutableSequence[str]): + CIDR IP address range. + Maximum number of destination CIDR IP ranges + allowed is 5000. + dest_network_type (str): + Network type of the traffic destination. Allowed values are: - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.Firewall]): - A list of Firewall resources. - kind (str): - [Output Only] Type of resource. Always compute#firewallList - for lists of firewalls. + :: - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + - UNSPECIFIED + - INTERNET + - NON_INTERNET - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. + Check the DestNetworkType enum for the list of possible + values. - This field is a member of `oneof`_ ``_self_link``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + This field is a member of `oneof`_ ``_dest_network_type``. + dest_region_codes (MutableSequence[str]): + Region codes whose IP addresses will be used + to match for destination of traffic. Should be + specified as 2 letter country code defined as + per ISO 3166 alpha-2 country codes. ex."US" + Maximum number of dest region codes allowed is + 5000. + dest_threat_intelligences (MutableSequence[str]): + Names of Network Threat Intelligence lists. + The IPs in these lists will be matched against + traffic destination. + layer4_configs (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRuleMatcherLayer4Config]): + Pairs of IP protocols and ports that the rule + should match. + src_address_groups (MutableSequence[str]): + Address groups which should be matched + against the traffic source. Maximum number of + source address groups is 10. + src_fqdns (MutableSequence[str]): + Fully Qualified Domain Name (FQDN) which + should be matched against traffic source. + Maximum number of source fqdn allowed is 100. + src_ip_ranges (MutableSequence[str]): + CIDR IP address range. + Maximum number of source CIDR IP ranges allowed + is 5000. + src_network_type (str): + Network type of the traffic source. Allowed values are: - This field is a member of `oneof`_ ``_warning``. + :: + + - UNSPECIFIED + - INTERNET + - INTRA_VPC + - NON_INTERNET + - VPC_NETWORKS + + Check the SrcNetworkType enum for the list of possible + values. + + This field is a member of `oneof`_ ``_src_network_type``. + src_networks (MutableSequence[str]): + Networks of the traffic source. It can be + either a full or partial url. + src_region_codes (MutableSequence[str]): + Region codes whose IP addresses will be used + to match for source of traffic. Should be + specified as 2 letter country code defined as + per ISO 3166 alpha-2 country codes. ex."US" + Maximum number of source region codes allowed is + 5000. + src_secure_tags (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRuleSecureTag]): + List of secure tag values, which should be + matched at the source of the traffic. + For INGRESS rule, if all the srcSecureTag are + INEFFECTIVE, and there is no srcIpRange, this + rule will be ignored. Maximum number of source + tag values allowed is 256. + src_threat_intelligences (MutableSequence[str]): + Names of Network Threat Intelligence lists. + The IPs in these lists will be matched against + traffic source. """ - @property - def raw_page(self): - return self + class DestNetworkType(proto.Enum): + r"""Network type of the traffic destination. Allowed values are: - id: str = proto.Field( + :: + + - UNSPECIFIED + - INTERNET + - NON_INTERNET + + Additional supported values which may be not listed in the enum + directly due to technical reasons: INTERNET INTRA_VPC NON_INTERNET + UNSPECIFIED VPC_NETWORKS + + Values: + UNDEFINED_DEST_NETWORK_TYPE (0): + A value indicating that the enum field is not + set. + """ + UNDEFINED_DEST_NETWORK_TYPE = 0 + + class SrcNetworkType(proto.Enum): + r"""Network type of the traffic source. Allowed values are: + + :: + + - UNSPECIFIED + - INTERNET + - INTRA_VPC + - NON_INTERNET + - VPC_NETWORKS + + Additional supported values which may be not listed in the enum + directly due to technical reasons: INTERNET INTRA_VPC NON_INTERNET + UNSPECIFIED VPC_NETWORKS + + Values: + UNDEFINED_SRC_NETWORK_TYPE (0): + A value indicating that the enum field is not + set. + """ + UNDEFINED_SRC_NETWORK_TYPE = 0 + + dest_address_groups: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=3355, + number=468760508, + ) + dest_fqdns: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=370712737, + ) + dest_ip_ranges: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=337357713, + ) + dest_network_type: str = proto.Field( + proto.STRING, + number=409853224, optional=True, ) - items: MutableSequence["Firewall"] = proto.RepeatedField( + dest_region_codes: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=199120280, + ) + dest_threat_intelligences: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=119896492, + ) + layer4_configs: MutableSequence[ + "FirewallPolicyRuleMatcherLayer4Config" + ] = proto.RepeatedField( proto.MESSAGE, - number=100526016, - message="Firewall", + number=373534261, + message="FirewallPolicyRuleMatcherLayer4Config", ) - kind: str = proto.Field( + src_address_groups: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=3292052, - optional=True, + number=436423738, ) - next_page_token: str = proto.Field( + src_fqdns: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=79797525, - optional=True, + number=435906147, ) - self_link: str = proto.Field( + src_ip_ranges: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=456214797, + number=432128083, + ) + src_network_type: str = proto.Field( + proto.STRING, + number=309819686, optional=True, ) - warning: "Warning" = proto.Field( + src_networks: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=247119872, + ) + src_region_codes: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=99086742, + ) + src_secure_tags: MutableSequence[ + "FirewallPolicyRuleSecureTag" + ] = proto.RepeatedField( proto.MESSAGE, - number=50704284, + number=508791302, + message="FirewallPolicyRuleSecureTag", + ) + src_threat_intelligences: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=323631018, + ) + + +class FirewallPolicyRuleMatcherLayer4Config(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + ip_protocol (str): + The IP protocol to which this rule applies. + The protocol type is required when creating a + firewall rule. This value can either be one of + the following well known protocol strings + (tcp,udp, icmp, esp,ah, ipip, sctp), or the IP + protocol number. + + This field is a member of `oneof`_ ``_ip_protocol``. + ports (MutableSequence[str]): + An optional list of ports to which this rule applies. This + field is only applicable for UDP or TCP protocol. Each entry + must be either an integer or a range. If not specified, this + rule applies to connections through any port. + + Example inputs include: ["22"],["80","443"], and + ["12345-12349"]. + """ + + ip_protocol: str = proto.Field( + proto.STRING, + number=475958960, optional=True, - message="Warning", + ) + ports: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=106854418, ) -class FirewallLogConfig(proto.Message): - r"""The available logging options for a firewall rule. +class FirewallPolicyRuleSecureTag(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - enable (bool): - This field denotes whether to enable logging - for a particular firewall rule. + name (str): + Name of the secure tag, created with + TagManager's TagValue API. - This field is a member of `oneof`_ ``_enable``. - metadata (str): - This field can only be specified for a - particular firewall rule if logging is enabled - for that rule. This field denotes whether to - include or exclude metadata for firewall logs. - Check the Metadata enum for the list of possible + This field is a member of `oneof`_ ``_name``. + state (str): + Output only. [Output Only] State of the secure tag, either + ``EFFECTIVE`` or ``INEFFECTIVE``. A secure tag is + ``INEFFECTIVE`` when it is deleted or its network is + deleted. Check the State enum for the list of possible values. - This field is a member of `oneof`_ ``_metadata``. + This field is a member of `oneof`_ ``_state``. """ - class Metadata(proto.Enum): - r"""This field can only be specified for a particular firewall - rule if logging is enabled for that rule. This field denotes - whether to include or exclude metadata for firewall logs. + class State(proto.Enum): + r"""Output only. [Output Only] State of the secure tag, either + ``EFFECTIVE`` or ``INEFFECTIVE``. A secure tag is ``INEFFECTIVE`` + when it is deleted or its network is deleted. Values: - UNDEFINED_METADATA (0): + UNDEFINED_STATE (0): A value indicating that the enum field is not set. - EXCLUDE_ALL_METADATA (334519954): + EFFECTIVE (244201863): No description available. - INCLUDE_ALL_METADATA (164619908): + INEFFECTIVE (304458242): No description available. """ - UNDEFINED_METADATA = 0 - EXCLUDE_ALL_METADATA = 334519954 - INCLUDE_ALL_METADATA = 164619908 + UNDEFINED_STATE = 0 + EFFECTIVE = 244201863 + INEFFECTIVE = 304458242 - enable: bool = proto.Field( - proto.BOOL, - number=311764355, + name: str = proto.Field( + proto.STRING, + number=3373707, optional=True, ) - metadata: str = proto.Field( + state: str = proto.Field( proto.STRING, - number=86866735, + number=109757585, optional=True, ) -class FirewallParams(proto.Message): - r"""Additional firewall parameters. +class FixedOrPercent(proto.Message): + r"""Encapsulates numeric value that can be either absolute or + relative. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - resource_manager_tags (MutableMapping[str, str]): - Tag keys/values directly bound to this resource. Tag keys - and values have the same definition as resource manager - tags. The field is allowed for INSERT only. The keys/values - to set on the resource should be specified in either ID { : - } or Namespaced format { : }. For example the following are - valid inputs: \* {"tagKeys/333" : "tagValues/444", - "tagKeys/123" : "tagValues/456"} \* {"123/environment" : - "production", "345/abc" : "xyz"} Note: \* Invalid - combinations of ID & namespaced format is not supported. For - instance: {"123/environment" : "tagValues/444"} is invalid. + calculated (int): + Output only. [Output Only] Absolute value of VM instances + calculated based on the specific mode. + + :: + + - If the value is fixed, then the calculated + value is equal to the fixed value. + - If the value is a percent, then the + calculated + value is percent/100 * targetSize. For example, + the calculated value of a 80% of a managed instance group + with 150 instances would be (80/100 * 150) = 120 VM instances. If there + is a remainder, the number is rounded. + + This field is a member of `oneof`_ ``_calculated``. + fixed (int): + Specifies a fixed number of VM instances. + This must be a positive integer. + + This field is a member of `oneof`_ ``_fixed``. + percent (int): + Specifies a percentage of instances between 0 + to 100%, inclusive. For example, specify 80 for + 80%. + + This field is a member of `oneof`_ ``_percent``. """ - resource_manager_tags: MutableMapping[str, str] = proto.MapField( - proto.STRING, - proto.STRING, - number=377671164, + calculated: int = proto.Field( + proto.INT32, + number=472082878, + optional=True, + ) + fixed: int = proto.Field( + proto.INT32, + number=97445748, + optional=True, + ) + percent: int = proto.Field( + proto.INT32, + number=394814533, + optional=True, ) -class FirewallPoliciesListAssociationsResponse(proto.Message): - r""" +class FlexibleTimeRange(proto.Message): + r"""A flexible specification of a time range that has 3 points of + flexibility: (1) a flexible start time, (2) a flexible end time, + (3) a flexible duration. + + It is possible to specify a contradictory time range that cannot + be matched by any Interval. This causes a validation error. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - associations (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyAssociation]): - A list of associations. - kind (str): - [Output Only] Type of firewallPolicy associations. Always - compute#FirewallPoliciesListAssociations for lists of - firewallPolicy associations. + max_duration (str): - This field is a member of `oneof`_ ``_kind``. + This field is a member of `oneof`_ ``_max_duration``. + min_duration (str): + + This field is a member of `oneof`_ ``_min_duration``. + start_time_not_earlier_than (str): + + This field is a member of `oneof`_ ``_start_time_not_earlier_than``. + start_time_not_later_than (str): + + This field is a member of `oneof`_ ``_start_time_not_later_than``. """ - associations: MutableSequence["FirewallPolicyAssociation"] = proto.RepeatedField( - proto.MESSAGE, - number=508736530, - message="FirewallPolicyAssociation", + max_duration: str = proto.Field( + proto.STRING, + number=39954959, + optional=True, ) - kind: str = proto.Field( + min_duration: str = proto.Field( proto.STRING, - number=3292052, + number=514381025, + optional=True, + ) + start_time_not_earlier_than: str = proto.Field( + proto.STRING, + number=490386497, + optional=True, + ) + start_time_not_later_than: str = proto.Field( + proto.STRING, + number=212764853, optional=True, ) -class FirewallPoliciesScopedList(proto.Message): - r""" +class ForwardingRule(proto.Message): + r"""Represents a Forwarding Rule resource. + + Forwarding rule resources in Google Cloud can be either regional or + global in scope: + + - `Global `__ + - `Regional `__ + + A forwarding rule and its corresponding IP address represent the + frontend configuration of a Google Cloud load balancer. Forwarding + rules can also reference target instances and Cloud VPN Classic + gateways (targetVpnGateway). + + For more information, read Forwarding rule concepts and Using + protocol forwarding. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - firewall_policies (MutableSequence[google.cloud.compute_v1.types.FirewallPolicy]): - A list of firewall policies contained in this - scope. - warning (google.cloud.compute_v1.types.Warning): - Informational warning which replaces the list - of firewall policies when the list is empty. + I_p_address (str): + IP address for which this forwarding rule accepts traffic. + When a client sends traffic to this IP address, the + forwarding rule directs the traffic to the referenced target + or backendService. While creating a forwarding rule, + specifying an IPAddress is required under the following + circumstances: - This field is a member of `oneof`_ ``_warning``. - """ + :: - firewall_policies: MutableSequence["FirewallPolicy"] = proto.RepeatedField( - proto.MESSAGE, - number=392512943, - message="FirewallPolicy", - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, - optional=True, - message="Warning", - ) + - When the target is set to targetGrpcProxy andvalidateForProxyless is set to true, theIPAddress should be set to 0.0.0.0. + - When the target is a Private Service Connect Google APIs + bundle, you must specify an IPAddress. + Otherwise, you can optionally specify an IP address that + references an existing static (reserved) IP address + resource. When omitted, Google Cloud assigns an ephemeral IP + address. -class FirewallPolicy(proto.Message): - r"""Represents a Firewall Policy resource. + Use one of the following formats to specify an IP address + while creating a forwarding rule: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + - IP address number, as in ``100.1.2.3`` - Attributes: - associations (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyAssociation]): - A list of associations that belong to this - firewall policy. + - IPv6 address range, as in ``2600:1234::/96`` + + - Full resource URL, as + inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name + + - Partial URL or by name, as in: + + - projects/project_id/regions/region/addresses/address-name + - regions/region/addresses/address-name + - global/addresses/address-name + - address-name + + The forwarding rule's target or backendService, and in most + cases, also the loadBalancingScheme, determine the type of + IP address that you can use. For detailed information, see + `IP address + specifications `__. + + When reading an IPAddress, the API always returns the IP + address number. + + This field is a member of `oneof`_ ``_I_p_address``. + I_p_protocol (str): + The IP protocol to which this rule applies. + + For protocol forwarding, valid options are TCP, UDP, ESP,AH, + SCTP, ICMP andL3_DEFAULT. + + The valid IP protocols are different for different load + balancing products as described in `Load balancing + features `__. + Check the IPProtocolEnum enum for the list of possible + values. + + This field is a member of `oneof`_ ``_I_p_protocol``. + all_ports (bool): + The ports, portRange, and allPorts fields are mutually + exclusive. Only packets addressed to ports in the specified + range will be forwarded to the backends configured with this + forwarding rule. + + The allPorts field has the following limitations: + + :: + + - It requires that the forwarding rule IPProtocol be TCP, + UDP, SCTP, or L3_DEFAULT. + - It's applicable only to the following products: internal passthrough + Network Load Balancers, backend service-based external passthrough Network + Load Balancers, and internal and external protocol forwarding. + - Set this field to true to allow packets addressed to any port or + packets lacking destination port information (for example, UDP fragments + after the first fragment) to be forwarded to the backends configured with + this forwarding rule. The L3_DEFAULT protocol requiresallPorts be set to true. + + This field is a member of `oneof`_ ``_all_ports``. + allow_global_access (bool): + If set to true, clients can access the internal passthrough + Network Load Balancers, the regional internal Application + Load Balancer, and the regional internal proxy Network Load + Balancer from all regions. If false, only allows access from + the local region the load balancer is located at. Note that + for INTERNAL_MANAGED forwarding rules, this field cannot be + changed after the forwarding rule is created. + + This field is a member of `oneof`_ ``_allow_global_access``. + allow_psc_global_access (bool): + This is used in PSC consumer ForwardingRule + to control whether the PSC endpoint can be + accessed from another region. + + This field is a member of `oneof`_ ``_allow_psc_global_access``. + backend_service (str): + Identifies the backend service to which the + forwarding rule sends traffic. Required for + internal and external passthrough Network Load + Balancers; must be omitted for all other load + balancer types. + + This field is a member of `oneof`_ ``_backend_service``. + base_forwarding_rule (str): + Output only. [Output Only] The URL for the corresponding + base forwarding rule. By base forwarding rule, we mean the + forwarding rule that has the same IP address, protocol, and + port settings with the current forwarding rule, but without + sourceIPRanges specified. Always empty if the current + forwarding rule does not have sourceIPRanges specified. + + This field is a member of `oneof`_ ``_base_forwarding_rule``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -30263,33 +35160,54 @@ class FirewallPolicy(proto.Message): resource. This field is a member of `oneof`_ ``_description``. - display_name (str): - Deprecated, please use short name instead. User-provided - name of the Organization firewall policy. The name should be - unique in the organization in which the firewall policy is - created. This field is not applicable to network firewall - policies. This name must be set on creation and cannot be - changed. The name must be 1-63 characters long, and comply - with RFC1035. Specifically, the name must be 1-63 characters - long and match the regular expression - ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first - character must be a lowercase letter, and all following - characters must be a dash, lowercase letter, or digit, - except the last character, which cannot be a dash. + external_managed_backend_bucket_migration_state (str): + Specifies the canary migration state for the backend buckets + attached to this forwarding rule. Possible values are + PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. - This field is a member of `oneof`_ ``_display_name``. + To begin the migration from EXTERNAL to EXTERNAL_MANAGED, + the state must be changed to PREPARE. The state must be + changed to TEST_ALL_TRAFFIC before the loadBalancingScheme + can be changed to EXTERNAL_MANAGED. Optionally, the + TEST_BY_PERCENTAGE state can be used to migrate traffic to + backend buckets attached to this forwarding rule by + percentage using + externalManagedBackendBucketMigrationTestingPercentage. + + Rolling back a migration requires the states to be set in + reverse order. So changing the scheme from EXTERNAL_MANAGED + to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC + at the same time. Optionally, the TEST_BY_PERCENTAGE state + can be used to migrate some traffic back to EXTERNAL or + PREPARE can be used to migrate all traffic back to EXTERNAL. + Check the ExternalManagedBackendBucketMigrationState enum + for the list of possible values. + + This field is a member of `oneof`_ ``_external_managed_backend_bucket_migration_state``. + external_managed_backend_bucket_migration_testing_percentage (float): + Determines the fraction of requests to backend buckets that + should be processed by the global external Application Load + Balancer. + + The value of this field must be in the range [0, 100]. + + This value can only be set if the loadBalancingScheme in the + BackendService is set to EXTERNAL (when using the classic + Application Load Balancer) and the migration state is + TEST_BY_PERCENTAGE. + + This field is a member of `oneof`_ ``_external_managed_backend_bucket_migration_testing_percentage``. fingerprint (str): - Specifies a fingerprint for this resource, - which is essentially a hash of the metadata's - contents and used for optimistic locking. The - fingerprint is initially generated by Compute - Engine and changes after every request to modify - or update metadata. You must always provide an - up-to-date fingerprint hash in order to update - or change metadata, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make get() request to the - firewall policy. + Fingerprint of this resource. A hash of the + contents stored in this object. This field is + used in optimistic locking. This field will be + ignored when inserting a ForwardingRule. Include + the fingerprint in patch request to ensure that + you do not overwrite changes that were applied + from another concurrent request. + + To see the latest fingerprint, make a get() + request to retrieve a ForwardingRule. This field is a member of `oneof`_ ``_fingerprint``. id (int): @@ -30297,427 +35215,588 @@ class FirewallPolicy(proto.Message): identifier is defined by the server. This field is a member of `oneof`_ ``_id``. + ip_collection (str): + Resource reference of a PublicDelegatedPrefix. The PDP must + be a sub-PDP in EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. + + Use one of the following formats to specify a sub-PDP when + creating an IPv6 NetLB forwarding rule using BYOIP: Full + resource URL, as + inhttps://www.googleapis.com/compute/v1/projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name + Partial URL, as in: + + :: + + - projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name + - regions/region/publicDelegatedPrefixes/sub-pdp-name + + This field is a member of `oneof`_ ``_ip_collection``. + ip_version (str): + The IP Version that will be used by this + forwarding rule. Valid options are IPV4 or + IPV6. Check the IpVersion enum for the list of + possible values. + + This field is a member of `oneof`_ ``_ip_version``. + is_mirroring_collector (bool): + Indicates whether or not this load balancer + can be used as a collector for packet mirroring. + To prevent mirroring loops, instances behind + this load balancer will not have their traffic + mirrored even if aPacketMirroring rule applies + to them. This can only be set to true for load + balancers that have theirloadBalancingScheme set + to INTERNAL. + + This field is a member of `oneof`_ ``_is_mirroring_collector``. kind (str): - [Output only] Type of the resource. Always - compute#firewallPolicyfor firewall policies + Output only. [Output Only] Type of the resource. + Alwayscompute#forwardingRule for forwarding rule resources. This field is a member of `oneof`_ ``_kind``. + label_fingerprint (str): + A fingerprint for the labels being applied to + this resource, which is essentially a hash of + the labels set used for optimistic locking. The + fingerprint is initially generated by Compute + Engine and changes after every request to modify + or update labels. You must always provide an + up-to-date fingerprint hash in order to update + or change labels, otherwise the request will + fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a ForwardingRule. + + This field is a member of `oneof`_ ``_label_fingerprint``. + labels (MutableMapping[str, str]): + Labels for this resource. These can only be + added or modified by thesetLabels method. Each + label key/value pair must comply withRFC1035. + Label values may be empty. + load_balancing_scheme (str): + Specifies the forwarding rule type. + + For more information about forwarding rules, + refer to Forwarding rule concepts. + Check the LoadBalancingScheme enum for the list + of possible values. + + This field is a member of `oneof`_ ``_load_balancing_scheme``. + metadata_filters (MutableSequence[google.cloud.compute_v1.types.MetadataFilter]): + Opaque filter criteria used by load balancer to restrict + routing configuration to a limited set of xDS compliant + clients. In their xDS requests to load balancer, xDS clients + present node metadata. When there is a match, the relevant + configuration is made available to those proxies. Otherwise, + all the resources (e.g.TargetHttpProxy, UrlMap) referenced + by the ForwardingRule are not visible to those proxies. + + For each metadataFilter in this list, if + itsfilterMatchCriteria is set to MATCH_ANY, at least one of + thefilterLabels must match the corresponding label provided + in the metadata. If its filterMatchCriteria is set to + MATCH_ALL, then all of its filterLabels must match with + corresponding labels provided in the metadata. If + multiplemetadataFilters are specified, all of them need to + be satisfied in order to be considered a match. + + metadataFilters specified here will be applifed before those + specified in the UrlMap that thisForwardingRule references. + + metadataFilters only applies to Loadbalancers that have + their loadBalancingScheme set toINTERNAL_SELF_MANAGED. name (str): - Name of the resource. For Organization Firewall Policies - it's a [Output Only] numeric ID allocated by Google Cloud - which uniquely identifies the Organization Firewall Policy. + Name of the resource; provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. + + For Private Service Connect forwarding rules that forward + traffic to Google APIs, the forwarding rule name must be a + 1-20 characters string with lowercase letters and numbers + and must start with a letter. This field is a member of `oneof`_ ``_name``. - packet_mirroring_rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): - A list of packet mirroring rules that belong - to this policy. - parent (str): - [Output Only] The parent of the firewall policy. This field - is not applicable to network firewall policies. + network (str): + This field is not used for global external + load balancing. + For internal passthrough Network Load Balancers, + this field identifies the network that the load + balanced IP should belong to for this forwarding + rule. + If the subnetwork is specified, the network of + the subnetwork will be used. If neither + subnetwork nor this field is specified, the + default network will be used. - This field is a member of `oneof`_ ``_parent``. + For Private Service Connect forwarding rules + that forward traffic to Google APIs, a network + must be provided. + + This field is a member of `oneof`_ ``_network``. + network_tier (str): + This signifies the networking tier used for + configuring this load balancer and can only take + the following values:PREMIUM, STANDARD. + + For regional ForwardingRule, the valid values + are PREMIUM andSTANDARD. For + GlobalForwardingRule, the valid value isPREMIUM. + + If this field is not specified, it is assumed to + be PREMIUM. If IPAddress is specified, this + value must be equal to the networkTier of the + Address. + Check the NetworkTier enum for the list of + possible values. + + This field is a member of `oneof`_ ``_network_tier``. + no_automate_dns_zone (bool): + This is used in PSC consumer ForwardingRule + to control whether it should try to + auto-generate a DNS zone or not. Non-PSC + forwarding rules do not use this field. Once + set, this field is not mutable. + + This field is a member of `oneof`_ ``_no_automate_dns_zone``. + port_range (str): + The ports, portRange, and allPorts fields are mutually + exclusive. Only packets addressed to ports in the specified + range will be forwarded to the backends configured with this + forwarding rule. + + The portRange field has the following limitations: + + :: + + - It requires that the forwarding rule IPProtocol be TCP, + UDP, or SCTP, and + - It's applicable only to the following products: external passthrough + Network Load Balancers, internal and external proxy Network Load Balancers, + internal and external Application Load Balancers, external protocol + forwarding, and Classic VPN. + - Some products have restrictions on what ports can be used. See + port specifications for details. + + For external forwarding rules, two or more forwarding rules + cannot use the same [IPAddress, IPProtocol] pair, and cannot + have overlappingportRanges. + + For internal forwarding rules within the same VPC network, + two or more forwarding rules cannot use the same [IPAddress, + IPProtocol] pair, and cannot have overlapping portRanges. + + @pattern: \\d+(?:-\\d+)? + + This field is a member of `oneof`_ ``_port_range``. + ports (MutableSequence[str]): + The ports, portRange, and allPorts fields are mutually + exclusive. Only packets addressed to ports in the specified + range will be forwarded to the backends configured with this + forwarding rule. + + The ports field has the following limitations: + + :: + + - It requires that the forwarding rule IPProtocol be TCP, + UDP, or SCTP, and + - It's applicable only to the following products: internal passthrough + Network Load Balancers, backend service-based external passthrough Network + Load Balancers, and internal protocol forwarding. + - You can specify a list of up to five ports by number, separated by + commas. The ports can be contiguous or discontiguous. + + For external forwarding rules, two or more forwarding rules + cannot use the same [IPAddress, IPProtocol] pair if they + share at least one port number. + + For internal forwarding rules within the same VPC network, + two or more forwarding rules cannot use the same [IPAddress, + IPProtocol] pair if they share at least one port number. + + @pattern: \\d+(?:-\\d+)? + psc_connection_id (int): + [Output Only] The PSC connection id of the PSC forwarding + rule. + + This field is a member of `oneof`_ ``_psc_connection_id``. + psc_connection_status (str): + Check the PscConnectionStatus enum for the + list of possible values. + + This field is a member of `oneof`_ ``_psc_connection_status``. region (str): - [Output Only] URL of the region where the regional firewall - policy resides. This field is not applicable to global - firewall policies. You must specify this field as part of - the HTTP request URL. It is not settable as a field in the - request body. + Output only. [Output Only] URL of the region where the + regional forwarding rule resides. This field is not + applicable to global forwarding rules. You must specify this + field as part of the HTTP request URL. It is not settable as + a field in the request body. This field is a member of `oneof`_ ``_region``. - rule_tuple_count (int): - [Output Only] Total count of all firewall policy rule - tuples. A firewall policy can not exceed a set number of - tuples. - - This field is a member of `oneof`_ ``_rule_tuple_count``. - rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): - A list of rules that belong to this policy. There must - always be a default rule (rule with priority 2147483647 and - match "\*"). If no rules are provided when creating a - firewall policy, a default rule with action "allow" will be - added. self_link (str): [Output Only] Server-defined URL for the resource. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Output only. [Output Only] Server-defined URL for this + resource with the resource id. This field is a member of `oneof`_ ``_self_link_with_id``. - short_name (str): - User-provided name of the Organization firewall policy. The - name should be unique in the organization in which the - firewall policy is created. This field is not applicable to - network firewall policies. This name must be set on creation - and cannot be changed. The name must be 1-63 characters - long, and comply with RFC1035. Specifically, the name must - be 1-63 characters long and match the regular expression + service_directory_registrations (MutableSequence[google.cloud.compute_v1.types.ForwardingRuleServiceDirectoryRegistration]): + Service Directory resources to register this + forwarding rule with. Currently, only supports a + single Service Directory resource. + service_label (str): + An optional prefix to the service name for this forwarding + rule. If specified, the prefix is the first label of the + fully qualified service name. + + The label must be 1-63 characters long, and comply + withRFC1035. Specifically, the label must be 1-63 characters + long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - This field is a member of `oneof`_ ``_short_name``. + This field is only used for internal load balancing. + + This field is a member of `oneof`_ ``_service_label``. + service_name (str): + [Output Only] The internal fully qualified service name for + this forwarding rule. + + This field is only used for internal load balancing. + + This field is a member of `oneof`_ ``_service_name``. + source_ip_ranges (MutableSequence[str]): + If not empty, this forwarding rule will only forward the + traffic when the source IP address matches one of the IP + addresses or CIDR ranges set here. Note that a forwarding + rule can only have up to 64 source IP ranges, and this field + can only be used with a regional forwarding rule whose + scheme isEXTERNAL. Each source_ip_range entry should be + either an IP address (for example, 1.2.3.4) or a CIDR range + (for example, 1.2.3.0/24). + subnetwork (str): + This field identifies the subnetwork that the + load balanced IP should belong to for this + forwarding rule, used with internal load + balancers and external passthrough Network Load + Balancers with IPv6. + + If the network specified is in auto subnet mode, + this field is optional. However, a subnetwork + must be specified if the network is in custom + subnet mode or when creating external forwarding + rule with IPv6. + + This field is a member of `oneof`_ ``_subnetwork``. + target (str): + The URL of the target resource to receive the matched + traffic. For regional forwarding rules, this target must be + in the same region as the forwarding rule. For global + forwarding rules, this target must be a global load + balancing resource. + + The forwarded traffic must be of a type appropriate to the + target object. + + :: + + - For load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). + - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: + + + - vpc-sc - APIs that support VPC Service Controls. + - all-apis - All supported Google APIs. + + + - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. The target is not mutable once set as a service attachment. + + This field is a member of `oneof`_ ``_target``. """ - associations: MutableSequence["FirewallPolicyAssociation"] = proto.RepeatedField( - proto.MESSAGE, - number=508736530, - message="FirewallPolicyAssociation", - ) - creation_timestamp: str = proto.Field( - proto.STRING, - number=30525366, - optional=True, - ) - description: str = proto.Field( - proto.STRING, - number=422937596, - optional=True, - ) - display_name: str = proto.Field( - proto.STRING, - number=4473832, - optional=True, - ) - fingerprint: str = proto.Field( - proto.STRING, - number=234678500, - optional=True, - ) - id: int = proto.Field( - proto.UINT64, - number=3355, - optional=True, - ) - kind: str = proto.Field( - proto.STRING, - number=3292052, - optional=True, - ) - name: str = proto.Field( - proto.STRING, - number=3373707, - optional=True, - ) - packet_mirroring_rules: MutableSequence["FirewallPolicyRule"] = proto.RepeatedField( - proto.MESSAGE, - number=531644356, - message="FirewallPolicyRule", - ) - parent: str = proto.Field( - proto.STRING, - number=78317738, - optional=True, - ) - region: str = proto.Field( - proto.STRING, - number=138946292, - optional=True, - ) - rule_tuple_count: int = proto.Field( - proto.INT32, - number=388342037, - optional=True, - ) - rules: MutableSequence["FirewallPolicyRule"] = proto.RepeatedField( - proto.MESSAGE, - number=108873975, - message="FirewallPolicyRule", - ) - self_link: str = proto.Field( - proto.STRING, - number=456214797, - optional=True, - ) - self_link_with_id: str = proto.Field( - proto.STRING, - number=44520962, - optional=True, - ) - short_name: str = proto.Field( - proto.STRING, - number=492051566, - optional=True, - ) + class ExternalManagedBackendBucketMigrationState(proto.Enum): + r"""Specifies the canary migration state for the backend buckets + attached to this forwarding rule. Possible values are PREPARE, + TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. + + To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state + must be changed to PREPARE. The state must be changed to + TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to + EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be + used to migrate traffic to backend buckets attached to this + forwarding rule by percentage using + externalManagedBackendBucketMigrationTestingPercentage. + + Rolling back a migration requires the states to be set in reverse + order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL + requires the state to be set to TEST_ALL_TRAFFIC at the same time. + Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some + traffic back to EXTERNAL or PREPARE can be used to migrate all + traffic back to EXTERNAL. + + Values: + UNDEFINED_EXTERNAL_MANAGED_BACKEND_BUCKET_MIGRATION_STATE (0): + A value indicating that the enum field is not + set. + PREPARE (399612135): + No description available. + TEST_ALL_TRAFFIC (79728882): + No description available. + TEST_BY_PERCENTAGE (513738389): + No description available. + """ + UNDEFINED_EXTERNAL_MANAGED_BACKEND_BUCKET_MIGRATION_STATE = 0 + PREPARE = 399612135 + TEST_ALL_TRAFFIC = 79728882 + TEST_BY_PERCENTAGE = 513738389 + + class IPProtocolEnum(proto.Enum): + r"""The IP protocol to which this rule applies. + + For protocol forwarding, valid options are TCP, UDP, ESP,AH, SCTP, + ICMP andL3_DEFAULT. + + The valid IP protocols are different for different load balancing + products as described in `Load balancing + features `__. + + Values: + UNDEFINED_I_P_PROTOCOL_ENUM (0): + A value indicating that the enum field is not + set. + AH (2087): + No description available. + ESP (68962): + No description available. + ICMP (2241597): + No description available. + L3_DEFAULT (48151369): + No description available. + SCTP (2539724): + No description available. + TCP (82881): + No description available. + UDP (83873): + No description available. + """ + UNDEFINED_I_P_PROTOCOL_ENUM = 0 + AH = 2087 + ESP = 68962 + ICMP = 2241597 + L3_DEFAULT = 48151369 + SCTP = 2539724 + TCP = 82881 + UDP = 83873 + + class IpVersion(proto.Enum): + r"""The IP Version that will be used by this forwarding rule. + Valid options are IPV4 or IPV6. + Values: + UNDEFINED_IP_VERSION (0): + A value indicating that the enum field is not + set. + IPV4 (2254341): + No description available. + IPV6 (2254343): + No description available. + UNSPECIFIED_VERSION (21850000): + No description available. + """ + UNDEFINED_IP_VERSION = 0 + IPV4 = 2254341 + IPV6 = 2254343 + UNSPECIFIED_VERSION = 21850000 -class FirewallPolicyAssociation(proto.Message): - r""" + class LoadBalancingScheme(proto.Enum): + r"""Specifies the forwarding rule type. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + For more information about forwarding rules, refer to Forwarding + rule concepts. - Attributes: - attachment_target (str): - The target that the firewall policy is - attached to. + Values: + UNDEFINED_LOAD_BALANCING_SCHEME (0): + A value indicating that the enum field is not + set. + EXTERNAL (35607499): + No description available. + EXTERNAL_MANAGED (512006923): + No description available. + INTERNAL (279295677): + No description available. + INTERNAL_MANAGED (37350397): + No description available. + INTERNAL_SELF_MANAGED (236211150): + No description available. + INVALID (530283991): + No description available. + """ + UNDEFINED_LOAD_BALANCING_SCHEME = 0 + EXTERNAL = 35607499 + EXTERNAL_MANAGED = 512006923 + INTERNAL = 279295677 + INTERNAL_MANAGED = 37350397 + INTERNAL_SELF_MANAGED = 236211150 + INVALID = 530283991 - This field is a member of `oneof`_ ``_attachment_target``. - display_name (str): - [Output Only] Deprecated, please use short name instead. The - display name of the firewall policy of the association. + class NetworkTier(proto.Enum): + r"""This signifies the networking tier used for configuring + this load balancer and can only take the following + values:PREMIUM, STANDARD. - This field is a member of `oneof`_ ``_display_name``. - firewall_policy_id (str): - [Output Only] The firewall policy ID of the association. + For regional ForwardingRule, the valid values are PREMIUM + andSTANDARD. For GlobalForwardingRule, the valid value + isPREMIUM. - This field is a member of `oneof`_ ``_firewall_policy_id``. - name (str): - The name for an association. + If this field is not specified, it is assumed to be PREMIUM. If + IPAddress is specified, this value must be equal to the + networkTier of the Address. - This field is a member of `oneof`_ ``_name``. - short_name (str): - [Output Only] The short name of the firewall policy of the - association. + Values: + UNDEFINED_NETWORK_TIER (0): + A value indicating that the enum field is not + set. + FIXED_STANDARD (310464328): + Public internet quality with fixed bandwidth. + PREMIUM (399530551): + High quality, Google-grade network tier, + support for all networking products. + STANDARD (484642493): + Public internet quality, only limited support + for other networking products. + STANDARD_OVERRIDES_FIXED_STANDARD (465847234): + (Output only) Temporary tier for FIXED_STANDARD when fixed + standard tier is expired or not configured. + """ + UNDEFINED_NETWORK_TIER = 0 + FIXED_STANDARD = 310464328 + PREMIUM = 399530551 + STANDARD = 484642493 + STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 - This field is a member of `oneof`_ ``_short_name``. - """ + class PscConnectionStatus(proto.Enum): + r""" - attachment_target: str = proto.Field( + Values: + UNDEFINED_PSC_CONNECTION_STATUS (0): + A value indicating that the enum field is not + set. + ACCEPTED (246714279): + The connection has been accepted by the + producer. + CLOSED (380163436): + The connection has been closed by the + producer and will not serve traffic going + forward. + NEEDS_ATTENTION (344491452): + The connection has been accepted by the + producer, but the producer needs to take further + action before the forwarding rule can serve + traffic. + PENDING (35394935): + The connection is pending acceptance by the + producer. + REJECTED (174130302): + The connection has been rejected by the + producer. + STATUS_UNSPECIFIED (42133066): + No description available. + """ + UNDEFINED_PSC_CONNECTION_STATUS = 0 + ACCEPTED = 246714279 + CLOSED = 380163436 + NEEDS_ATTENTION = 344491452 + PENDING = 35394935 + REJECTED = 174130302 + STATUS_UNSPECIFIED = 42133066 + + I_p_address: str = proto.Field( proto.STRING, - number=175773741, + number=42976943, optional=True, ) - display_name: str = proto.Field( + I_p_protocol: str = proto.Field( proto.STRING, - number=4473832, + number=488094525, optional=True, ) - firewall_policy_id: str = proto.Field( - proto.STRING, - number=357211849, + all_ports: bool = proto.Field( + proto.BOOL, + number=445175796, optional=True, ) - name: str = proto.Field( - proto.STRING, - number=3373707, + allow_global_access: bool = proto.Field( + proto.BOOL, + number=499409674, optional=True, ) - short_name: str = proto.Field( + allow_psc_global_access: bool = proto.Field( + proto.BOOL, + number=263471819, + optional=True, + ) + backend_service: str = proto.Field( proto.STRING, - number=492051566, + number=306946058, optional=True, ) - - -class FirewallPolicyList(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. - - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.FirewallPolicy]): - A list of FirewallPolicy resources. - kind (str): - [Output Only] Type of resource. Always - compute#firewallPolicyList for listsof FirewallPolicies - - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. - - This field is a member of `oneof`_ ``_next_page_token``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. - - This field is a member of `oneof`_ ``_warning``. - """ - - @property - def raw_page(self): - return self - - id: str = proto.Field( + base_forwarding_rule: str = proto.Field( proto.STRING, - number=3355, + number=524873104, optional=True, ) - items: MutableSequence["FirewallPolicy"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="FirewallPolicy", + creation_timestamp: str = proto.Field( + proto.STRING, + number=30525366, + optional=True, ) - kind: str = proto.Field( + description: str = proto.Field( proto.STRING, - number=3292052, + number=422937596, optional=True, ) - next_page_token: str = proto.Field( + external_managed_backend_bucket_migration_state: str = proto.Field( proto.STRING, - number=79797525, + number=107811370, optional=True, ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, + external_managed_backend_bucket_migration_testing_percentage: float = proto.Field( + proto.FLOAT, + number=105676592, optional=True, - message="Warning", ) - - -class FirewallPolicyRule(proto.Message): - r"""Represents a rule that describes one or more match conditions - along with the action to be taken when traffic matches this - condition (allow or deny). - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - action (str): - The Action to perform when the client connection triggers - the rule. Valid actions for firewall rules are: "allow", - "deny", "apply_security_profile_group" and "goto_next". - Valid actions for packet mirroring rules are: "mirror", - "do_not_mirror" and "goto_next". - - This field is a member of `oneof`_ ``_action``. - description (str): - An optional description for this resource. - - This field is a member of `oneof`_ ``_description``. - direction (str): - The direction in which this rule applies. - Check the Direction enum for the list of - possible values. - - This field is a member of `oneof`_ ``_direction``. - disabled (bool): - Denotes whether the firewall policy rule is - disabled. When set to true, the firewall policy - rule is not enforced and traffic behaves as if - it did not exist. If this is unspecified, the - firewall policy rule will be enabled. - - This field is a member of `oneof`_ ``_disabled``. - enable_logging (bool): - Denotes whether to enable logging for a particular rule. If - logging is enabled, logs will be exported to the configured - export destination in Stackdriver. Logs may be exported to - BigQuery or Pub/Sub. Note: you cannot enable logging on - "goto_next" rules. - - This field is a member of `oneof`_ ``_enable_logging``. - kind (str): - [Output only] Type of the resource. Returns - compute#firewallPolicyRule for firewall rules and - compute#packetMirroringRule for packet mirroring rules. - - This field is a member of `oneof`_ ``_kind``. - match (google.cloud.compute_v1.types.FirewallPolicyRuleMatcher): - A match condition that incoming traffic is - evaluated against. If it evaluates to true, the - corresponding 'action' is enforced. - - This field is a member of `oneof`_ ``_match``. - priority (int): - An integer indicating the priority of a rule - in the list. The priority must be a positive - value between 0 and 2147483647. Rules are - evaluated from highest to lowest priority where - 0 is the highest priority and 2147483647 is the - lowest priority. - - This field is a member of `oneof`_ ``_priority``. - rule_name (str): - An optional name for the rule. This field is - not a unique identifier and can be updated. - - This field is a member of `oneof`_ ``_rule_name``. - rule_tuple_count (int): - [Output Only] Calculation of the complexity of a single - firewall policy rule. - - This field is a member of `oneof`_ ``_rule_tuple_count``. - security_profile_group (str): - A fully-qualified URL of a SecurityProfile resource - instance. Example: - https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group - Must be specified if action is one of - 'apply_security_profile_group' or 'mirror'. Cannot be - specified for other actions. - - This field is a member of `oneof`_ ``_security_profile_group``. - target_resources (MutableSequence[str]): - A list of network resource URLs to which this - rule applies. This field allows you to control - which network's VMs get this rule. If this field - is left blank, all VMs within the organization - will receive the rule. - target_secure_tags (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRuleSecureTag]): - A list of secure tags that controls which instances the - firewall rule applies to. If targetSecureTag are specified, - then the firewall rule applies only to instances in the VPC - network that have one of those EFFECTIVE secure tags, if all - the target_secure_tag are in INEFFECTIVE state, then this - rule will be ignored. targetSecureTag may not be set at the - same time as targetServiceAccounts. If neither - targetServiceAccounts nor targetSecureTag are specified, the - firewall rule applies to all instances on the specified - network. Maximum number of target label tags allowed is 256. - target_service_accounts (MutableSequence[str]): - A list of service accounts indicating the - sets of instances that are applied with this - rule. - tls_inspect (bool): - Boolean flag indicating if the traffic should be TLS - decrypted. Can be set only if action = - 'apply_security_profile_group' and cannot be set for other - actions. - - This field is a member of `oneof`_ ``_tls_inspect``. - """ - - class Direction(proto.Enum): - r"""The direction in which this rule applies. - - Values: - UNDEFINED_DIRECTION (0): - A value indicating that the enum field is not - set. - EGRESS (432880501): - No description available. - INGRESS (516931221): - No description available. - """ - UNDEFINED_DIRECTION = 0 - EGRESS = 432880501 - INGRESS = 516931221 - - action: str = proto.Field( + fingerprint: str = proto.Field( proto.STRING, - number=187661878, + number=234678500, optional=True, ) - description: str = proto.Field( - proto.STRING, - number=422937596, + id: int = proto.Field( + proto.UINT64, + number=3355, optional=True, ) - direction: str = proto.Field( + ip_collection: str = proto.Field( proto.STRING, - number=111150975, + number=176818358, optional=True, ) - disabled: bool = proto.Field( - proto.BOOL, - number=270940796, + ip_version: str = proto.Field( + proto.STRING, + number=294959552, optional=True, ) - enable_logging: bool = proto.Field( + is_mirroring_collector: bool = proto.Field( proto.BOOL, - number=295396515, + number=119255164, optional=True, ) kind: str = proto.Field( @@ -30725,1209 +35804,1391 @@ class Direction(proto.Enum): number=3292052, optional=True, ) - match: "FirewallPolicyRuleMatcher" = proto.Field( - proto.MESSAGE, - number=103668165, + label_fingerprint: str = proto.Field( + proto.STRING, + number=178124825, optional=True, - message="FirewallPolicyRuleMatcher", ) - priority: int = proto.Field( - proto.INT32, - number=445151652, - optional=True, + labels: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=500195327, ) - rule_name: str = proto.Field( + load_balancing_scheme: str = proto.Field( proto.STRING, - number=55286254, + number=363890244, optional=True, ) - rule_tuple_count: int = proto.Field( - proto.INT32, - number=388342037, - optional=True, + metadata_filters: MutableSequence["MetadataFilter"] = proto.RepeatedField( + proto.MESSAGE, + number=464725739, + message="MetadataFilter", ) - security_profile_group: str = proto.Field( + name: str = proto.Field( proto.STRING, - number=207411626, + number=3373707, optional=True, ) - target_resources: MutableSequence[str] = proto.RepeatedField( + network: str = proto.Field( proto.STRING, - number=528230647, - ) - target_secure_tags: MutableSequence[ - "FirewallPolicyRuleSecureTag" - ] = proto.RepeatedField( - proto.MESSAGE, - number=468132403, - message="FirewallPolicyRuleSecureTag", + number=232872494, + optional=True, ) - target_service_accounts: MutableSequence[str] = proto.RepeatedField( + network_tier: str = proto.Field( proto.STRING, - number=457639710, + number=517397843, + optional=True, ) - tls_inspect: bool = proto.Field( + no_automate_dns_zone: bool = proto.Field( proto.BOOL, - number=43425488, + number=64546991, optional=True, ) - - -class FirewallPolicyRuleMatcher(proto.Message): - r"""Represents a match condition that incoming traffic is - evaluated against. Exactly one field must be specified. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - dest_address_groups (MutableSequence[str]): - Address groups which should be matched - against the traffic destination. Maximum number - of destination address groups is 10. - dest_fqdns (MutableSequence[str]): - Fully Qualified Domain Name (FQDN) which - should be matched against traffic destination. - Maximum number of destination fqdn allowed is - 100. - dest_ip_ranges (MutableSequence[str]): - CIDR IP address range. Maximum number of - destination CIDR IP ranges allowed is 5000. - dest_network_type (str): - Network type of the traffic destination. Allowed values are: - - UNSPECIFIED - INTERNET - NON_INTERNET Check the - DestNetworkType enum for the list of possible values. - - This field is a member of `oneof`_ ``_dest_network_type``. - dest_region_codes (MutableSequence[str]): - Region codes whose IP addresses will be used - to match for destination of traffic. Should be - specified as 2 letter country code defined as - per ISO 3166 alpha-2 country codes. ex."US" - Maximum number of dest region codes allowed is - 5000. - dest_threat_intelligences (MutableSequence[str]): - Names of Network Threat Intelligence lists. - The IPs in these lists will be matched against - traffic destination. - layer4_configs (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRuleMatcherLayer4Config]): - Pairs of IP protocols and ports that the rule - should match. - src_address_groups (MutableSequence[str]): - Address groups which should be matched - against the traffic source. Maximum number of - source address groups is 10. - src_fqdns (MutableSequence[str]): - Fully Qualified Domain Name (FQDN) which - should be matched against traffic source. - Maximum number of source fqdn allowed is 100. - src_ip_ranges (MutableSequence[str]): - CIDR IP address range. Maximum number of - source CIDR IP ranges allowed is 5000. - src_network_type (str): - Network type of the traffic source. Allowed values are: - - UNSPECIFIED - INTERNET - INTRA_VPC - NON_INTERNET - - VPC_NETWORKS Check the SrcNetworkType enum for the list of - possible values. - - This field is a member of `oneof`_ ``_src_network_type``. - src_networks (MutableSequence[str]): - Networks of the traffic source. It can be - either a full or partial url. - src_region_codes (MutableSequence[str]): - Region codes whose IP addresses will be used - to match for source of traffic. Should be - specified as 2 letter country code defined as - per ISO 3166 alpha-2 country codes. ex."US" - Maximum number of source region codes allowed is - 5000. - src_secure_tags (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRuleSecureTag]): - List of secure tag values, which should be - matched at the source of the traffic. For - INGRESS rule, if all the srcSecureTag are - INEFFECTIVE, and there is no srcIpRange, this - rule will be ignored. Maximum number of source - tag values allowed is 256. - src_threat_intelligences (MutableSequence[str]): - Names of Network Threat Intelligence lists. - The IPs in these lists will be matched against - traffic source. - """ - - class DestNetworkType(proto.Enum): - r"""Network type of the traffic destination. Allowed values are: - - UNSPECIFIED - INTERNET - NON_INTERNET Additional supported values - which may be not listed in the enum directly due to technical - reasons: INTERNET INTRA_VPC NON_INTERNET UNSPECIFIED VPC_NETWORKS - - Values: - UNDEFINED_DEST_NETWORK_TYPE (0): - A value indicating that the enum field is not - set. - """ - UNDEFINED_DEST_NETWORK_TYPE = 0 - - class SrcNetworkType(proto.Enum): - r"""Network type of the traffic source. Allowed values are: - - UNSPECIFIED - INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS - Additional supported values which may be not listed in the enum - directly due to technical reasons: INTERNET INTRA_VPC NON_INTERNET - UNSPECIFIED VPC_NETWORKS - - Values: - UNDEFINED_SRC_NETWORK_TYPE (0): - A value indicating that the enum field is not - set. - """ - UNDEFINED_SRC_NETWORK_TYPE = 0 - - dest_address_groups: MutableSequence[str] = proto.RepeatedField( + port_range: str = proto.Field( proto.STRING, - number=468760508, + number=217518079, + optional=True, ) - dest_fqdns: MutableSequence[str] = proto.RepeatedField( + ports: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=370712737, + number=106854418, + ) + psc_connection_id: int = proto.Field( + proto.UINT64, + number=292082397, + optional=True, ) - dest_ip_ranges: MutableSequence[str] = proto.RepeatedField( + psc_connection_status: str = proto.Field( proto.STRING, - number=337357713, + number=184149172, + optional=True, ) - dest_network_type: str = proto.Field( + region: str = proto.Field( proto.STRING, - number=409853224, + number=138946292, optional=True, ) - dest_region_codes: MutableSequence[str] = proto.RepeatedField( + self_link: str = proto.Field( proto.STRING, - number=199120280, + number=456214797, + optional=True, ) - dest_threat_intelligences: MutableSequence[str] = proto.RepeatedField( + self_link_with_id: str = proto.Field( proto.STRING, - number=119896492, + number=44520962, + optional=True, ) - layer4_configs: MutableSequence[ - "FirewallPolicyRuleMatcherLayer4Config" + service_directory_registrations: MutableSequence[ + "ForwardingRuleServiceDirectoryRegistration" ] = proto.RepeatedField( proto.MESSAGE, - number=373534261, - message="FirewallPolicyRuleMatcherLayer4Config", + number=223549694, + message="ForwardingRuleServiceDirectoryRegistration", ) - src_address_groups: MutableSequence[str] = proto.RepeatedField( + service_label: str = proto.Field( proto.STRING, - number=436423738, + number=417008874, + optional=True, ) - src_fqdns: MutableSequence[str] = proto.RepeatedField( + service_name: str = proto.Field( proto.STRING, - number=435906147, + number=359880149, + optional=True, ) - src_ip_ranges: MutableSequence[str] = proto.RepeatedField( + source_ip_ranges: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=432128083, + number=111563210, ) - src_network_type: str = proto.Field( + subnetwork: str = proto.Field( proto.STRING, - number=309819686, + number=307827694, optional=True, ) - src_networks: MutableSequence[str] = proto.RepeatedField( + target: str = proto.Field( proto.STRING, - number=247119872, + number=192835985, + optional=True, ) - src_region_codes: MutableSequence[str] = proto.RepeatedField( + + +class ForwardingRuleAggregatedList(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. + + This field is a member of `oneof`_ ``_id``. + items (MutableMapping[str, google.cloud.compute_v1.types.ForwardingRulesScopedList]): + A list of ForwardingRulesScopedList + resources. + kind (str): + Output only. [Output Only] Type of resource. + Alwayscompute#forwardingRuleAggregatedList for lists of + forwarding rules. + + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. + + This field is a member of `oneof`_ ``_self_link``. + unreachables (MutableSequence[str]): + Output only. [Output Only] Unreachable resources. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. + """ + + @property + def raw_page(self): + return self + + id: str = proto.Field( proto.STRING, - number=99086742, + number=3355, + optional=True, ) - src_secure_tags: MutableSequence[ - "FirewallPolicyRuleSecureTag" - ] = proto.RepeatedField( + items: MutableMapping[str, "ForwardingRulesScopedList"] = proto.MapField( + proto.STRING, proto.MESSAGE, - number=508791302, - message="FirewallPolicyRuleSecureTag", + number=100526016, + message="ForwardingRulesScopedList", ) - src_threat_intelligences: MutableSequence[str] = proto.RepeatedField( + kind: str = proto.Field( proto.STRING, - number=323631018, + number=3292052, + optional=True, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + unreachables: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=243372063, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", ) -class FirewallPolicyRuleMatcherLayer4Config(proto.Message): - r""" +class ForwardingRuleList(proto.Message): + r"""Contains a list of ForwardingRule resources. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - ip_protocol (str): - The IP protocol to which this rule applies. - The protocol type is required when creating a - firewall rule. This value can either be one of - the following well known protocol strings (tcp, - udp, icmp, esp, ah, ipip, sctp), or the IP - protocol number. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. - This field is a member of `oneof`_ ``_ip_protocol``. - ports (MutableSequence[str]): - An optional list of ports to which this rule applies. This - field is only applicable for UDP or TCP protocol. Each entry - must be either an integer or a range. If not specified, this - rule applies to connections through any port. Example inputs - include: ["22"], ["80","443"], and ["12345-12349"]. + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.ForwardingRule]): + A list of ForwardingRule resources. + kind (str): + Output only. Type of resource. + + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. + + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. """ - ip_protocol: str = proto.Field( + @property + def raw_page(self): + return self + + id: str = proto.Field( proto.STRING, - number=475958960, + number=3355, optional=True, ) - ports: MutableSequence[str] = proto.RepeatedField( + items: MutableSequence["ForwardingRule"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="ForwardingRule", + ) + kind: str = proto.Field( proto.STRING, - number=106854418, + number=3292052, + optional=True, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", ) -class FirewallPolicyRuleSecureTag(proto.Message): +class ForwardingRuleReference(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - name (str): - Name of the secure tag, created with - TagManager's TagValue API. - - This field is a member of `oneof`_ ``_name``. - state (str): - [Output Only] State of the secure tag, either ``EFFECTIVE`` - or ``INEFFECTIVE``. A secure tag is ``INEFFECTIVE`` when it - is deleted or its network is deleted. Check the State enum - for the list of possible values. + forwarding_rule (str): - This field is a member of `oneof`_ ``_state``. + This field is a member of `oneof`_ ``_forwarding_rule``. """ - class State(proto.Enum): - r"""[Output Only] State of the secure tag, either ``EFFECTIVE`` or - ``INEFFECTIVE``. A secure tag is ``INEFFECTIVE`` when it is deleted - or its network is deleted. - - Values: - UNDEFINED_STATE (0): - A value indicating that the enum field is not - set. - EFFECTIVE (244201863): - No description available. - INEFFECTIVE (304458242): - No description available. - """ - UNDEFINED_STATE = 0 - EFFECTIVE = 244201863 - INEFFECTIVE = 304458242 - - name: str = proto.Field( - proto.STRING, - number=3373707, - optional=True, - ) - state: str = proto.Field( + forwarding_rule: str = proto.Field( proto.STRING, - number=109757585, + number=269964030, optional=True, ) -class FixedOrPercent(proto.Message): - r"""Encapsulates numeric value that can be either absolute or - relative. +class ForwardingRuleServiceDirectoryRegistration(proto.Message): + r"""Describes the auto-registration of the forwarding rule to + Service Directory. The region and project of the Service + Directory resource generated from this registration will be the + same as this forwarding rule. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - calculated (int): - [Output Only] Absolute value of VM instances calculated - based on the specific mode. - If the value is fixed, then - the calculated value is equal to the fixed value. - If the - value is a percent, then the calculated value is percent/100 - \* targetSize. For example, the calculated value of a 80% of - a managed instance group with 150 instances would be (80/100 - \* 150) = 120 VM instances. If there is a remainder, the - number is rounded. + namespace (str): + Service Directory namespace to register the + forwarding rule under. - This field is a member of `oneof`_ ``_calculated``. - fixed (int): - Specifies a fixed number of VM instances. - This must be a positive integer. + This field is a member of `oneof`_ ``_namespace``. + service (str): + Service Directory service to register the + forwarding rule under. - This field is a member of `oneof`_ ``_fixed``. - percent (int): - Specifies a percentage of instances between 0 - to 100%, inclusive. For example, specify 80 for - 80%. + This field is a member of `oneof`_ ``_service``. + service_directory_region (str): + [Optional] Service Directory region to register this global + forwarding rule under. Default to "us-central1". Only used + for PSC for Google APIs. All PSC for Google APIs forwarding + rules on the same network should use the same Service + Directory region. - This field is a member of `oneof`_ ``_percent``. + This field is a member of `oneof`_ ``_service_directory_region``. """ - calculated: int = proto.Field( - proto.INT32, - number=472082878, + namespace: str = proto.Field( + proto.STRING, + number=178476379, optional=True, ) - fixed: int = proto.Field( - proto.INT32, - number=97445748, + service: str = proto.Field( + proto.STRING, + number=373540533, optional=True, ) - percent: int = proto.Field( - proto.INT32, - number=394814533, + service_directory_region: str = proto.Field( + proto.STRING, + number=74030416, optional=True, ) -class ForwardingRule(proto.Message): - r"""Represents a Forwarding Rule resource. Forwarding rule resources in - Google Cloud can be either regional or global in scope: \* - `Global `__ - \* - `Regional `__ - A forwarding rule and its corresponding IP address represent the - frontend configuration of a Google Cloud load balancer. Forwarding - rules can also reference target instances and Cloud VPN Classic - gateways (targetVpnGateway). For more information, read Forwarding - rule concepts and Using protocol forwarding. - +class ForwardingRulesScopedList(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - I_p_address (str): - IP address for which this forwarding rule accepts traffic. - When a client sends traffic to this IP address, the - forwarding rule directs the traffic to the referenced target - or backendService. While creating a forwarding rule, - specifying an IPAddress is required under the following - circumstances: - When the target is set to targetGrpcProxy - and validateForProxyless is set to true, the IPAddress - should be set to 0.0.0.0. - When the target is a Private - Service Connect Google APIs bundle, you must specify an - IPAddress. Otherwise, you can optionally specify an IP - address that references an existing static (reserved) IP - address resource. When omitted, Google Cloud assigns an - ephemeral IP address. Use one of the following formats to - specify an IP address while creating a forwarding rule: \* - IP address number, as in ``100.1.2.3`` \* IPv6 address - range, as in ``2600:1234::/96`` \* Full resource URL, as in - https://www.googleapis.com/compute/v1/projects/ - project_id/regions/region/addresses/address-name \* Partial - URL or by name, as in: - - projects/project_id/regions/region/addresses/address-name - - regions/region/addresses/address-name - - global/addresses/address-name - address-name The forwarding - rule's target or backendService, and in most cases, also the - loadBalancingScheme, determine the type of IP address that - you can use. For detailed information, see `IP address - specifications `__. - When reading an IPAddress, the API always returns the IP - address number. + forwarding_rules (MutableSequence[google.cloud.compute_v1.types.ForwardingRule]): + A list of forwarding rules contained in this + scope. + warning (google.cloud.compute_v1.types.Warning): + Informational warning which replaces the list + of forwarding rules when the list is empty. - This field is a member of `oneof`_ ``_I_p_address``. - I_p_protocol (str): - The IP protocol to which this rule applies. For protocol - forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP - and L3_DEFAULT. The valid IP protocols are different for - different load balancing products as described in `Load - balancing - features `__. - Check the IPProtocolEnum enum for the list of possible - values. + This field is a member of `oneof`_ ``_warning``. + """ - This field is a member of `oneof`_ ``_I_p_protocol``. - all_ports (bool): - The ports, portRange, and allPorts fields are mutually - exclusive. Only packets addressed to ports in the specified - range will be forwarded to the backends configured with this - forwarding rule. The allPorts field has the following - limitations: - It requires that the forwarding rule - IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's - applicable only to the following products: internal - passthrough Network Load Balancers, backend service-based - external passthrough Network Load Balancers, and internal - and external protocol forwarding. - Set this field to true - to allow packets addressed to any port or packets lacking - destination port information (for example, UDP fragments - after the first fragment) to be forwarded to the backends - configured with this forwarding rule. The L3_DEFAULT - protocol requires allPorts be set to true. + forwarding_rules: MutableSequence["ForwardingRule"] = proto.RepeatedField( + proto.MESSAGE, + number=315821365, + message="ForwardingRule", + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) - This field is a member of `oneof`_ ``_all_ports``. - allow_global_access (bool): - If set to true, clients can access the internal passthrough - Network Load Balancers, the regional internal Application - Load Balancer, and the regional internal proxy Network Load - Balancer from all regions. If false, only allows access from - the local region the load balancer is located at. Note that - for INTERNAL_MANAGED forwarding rules, this field cannot be - changed after the forwarding rule is created. - This field is a member of `oneof`_ ``_allow_global_access``. - allow_psc_global_access (bool): - This is used in PSC consumer ForwardingRule - to control whether the PSC endpoint can be - accessed from another region. +class FutureReservation(proto.Message): + r""" - This field is a member of `oneof`_ ``_allow_psc_global_access``. - backend_service (str): - Identifies the backend service to which the - forwarding rule sends traffic. Required for - internal and external passthrough Network Load - Balancers; must be omitted for all other load - balancer types. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_backend_service``. - base_forwarding_rule (str): - [Output Only] The URL for the corresponding base forwarding - rule. By base forwarding rule, we mean the forwarding rule - that has the same IP address, protocol, and port settings - with the current forwarding rule, but without sourceIPRanges - specified. Always empty if the current forwarding rule does - not have sourceIPRanges specified. + Attributes: + aggregate_reservation (google.cloud.compute_v1.types.AllocationAggregateReservation): + Aggregate reservation details for the future + reservation. - This field is a member of `oneof`_ ``_base_forwarding_rule``. + This field is a member of `oneof`_ ``_aggregate_reservation``. + auto_created_reservations_delete_time (str): + Future timestamp when the FR auto-created + reservations will be deleted by Compute Engine. + Format of this field must be a valid + href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 + value. + + This field is a member of `oneof`_ ``_auto_created_reservations_delete_time``. + auto_created_reservations_duration (google.cloud.compute_v1.types.Duration): + Specifies the duration of auto-created reservations. It + represents relative time to future reservation start_time + when auto-created reservations will be automatically deleted + by Compute Engine. Duration time unit is represented as a + count of seconds and fractions of seconds at nanosecond + resolution. + + This field is a member of `oneof`_ ``_auto_created_reservations_duration``. + auto_delete_auto_created_reservations (bool): + Setting for enabling or disabling automatic deletion for + auto-created reservation. If set to true, auto-created + reservations will be deleted at Future Reservation's end + time (default) or at user's defined timestamp if any of the + [auto_created_reservations_delete_time, + auto_created_reservations_duration] values is specified. For + keeping auto-created reservation indefinitely, this value + should be set to false. + + This field is a member of `oneof`_ ``_auto_delete_auto_created_reservations``. + commitment_info (google.cloud.compute_v1.types.FutureReservationCommitmentInfo): + If not present, then FR will not deliver a + new commitment or update an existing commitment. + + This field is a member of `oneof`_ ``_commitment_info``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] The creation timestamp for this + future reservation inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. + deployment_type (str): + Type of the deployment requested as part of + future reservation. Check the DeploymentType + enum for the list of possible values. + + This field is a member of `oneof`_ ``_deployment_type``. description (str): An optional description of this resource. - Provide this property when you create the - resource. + Provide this property when you create the future + reservation. This field is a member of `oneof`_ ``_description``. - external_managed_backend_bucket_migration_state (str): - Specifies the canary migration state for the backend buckets - attached to this forwarding rule. Possible values are - PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin - the migration from EXTERNAL to EXTERNAL_MANAGED, the state - must be changed to PREPARE. The state must be changed to - TEST_ALL_TRAFFIC before the loadBalancingScheme can be - changed to EXTERNAL_MANAGED. Optionally, the - TEST_BY_PERCENTAGE state can be used to migrate traffic to - backend buckets attached to this forwarding rule by - percentage using - externalManagedBackendBucketMigrationTestingPercentage. - Rolling back a migration requires the states to be set in - reverse order. So changing the scheme from EXTERNAL_MANAGED - to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC - at the same time. Optionally, the TEST_BY_PERCENTAGE state - can be used to migrate some traffic back to EXTERNAL or - PREPARE can be used to migrate all traffic back to EXTERNAL. - Check the ExternalManagedBackendBucketMigrationState enum - for the list of possible values. - - This field is a member of `oneof`_ ``_external_managed_backend_bucket_migration_state``. - external_managed_backend_bucket_migration_testing_percentage (float): - Determines the fraction of requests to backend buckets that - should be processed by the global external Application Load - Balancer. The value of this field must be in the range [0, - 100]. This value can only be set if the loadBalancingScheme - in the BackendService is set to EXTERNAL (when using the - classic Application Load Balancer) and the migration state - is TEST_BY_PERCENTAGE. - - This field is a member of `oneof`_ ``_external_managed_backend_bucket_migration_testing_percentage``. - fingerprint (str): - Fingerprint of this resource. A hash of the - contents stored in this object. This field is - used in optimistic locking. This field will be - ignored when inserting a ForwardingRule. Include - the fingerprint in patch request to ensure that - you do not overwrite changes that were applied - from another concurrent request. To see the - latest fingerprint, make a get() request to - retrieve a ForwardingRule. + enable_emergent_maintenance (bool): + Indicates if this group of VMs have emergent + maintenance enabled. - This field is a member of `oneof`_ ``_fingerprint``. + This field is a member of `oneof`_ ``_enable_emergent_maintenance``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] A unique identifier for this + future reservation. The server defines this identifier. This field is a member of `oneof`_ ``_id``. - ip_collection (str): - Resource reference of a PublicDelegatedPrefix. The PDP must - be a sub-PDP in EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Use one of the following formats to specify a sub-PDP when - creating an IPv6 NetLB forwarding rule using BYOIP: Full - resource URL, as in - https://www.googleapis.com/compute/v1/projects/project_id/regions/region - /publicDelegatedPrefixes/sub-pdp-name Partial URL, as in: - - projects/project_id/regions/region/publicDelegatedPrefixes/sub-pdp-name - - regions/region/publicDelegatedPrefixes/sub-pdp-name - - This field is a member of `oneof`_ ``_ip_collection``. - ip_version (str): - The IP Version that will be used by this - forwarding rule. Valid options are IPV4 or IPV6. - Check the IpVersion enum for the list of - possible values. - - This field is a member of `oneof`_ ``_ip_version``. - is_mirroring_collector (bool): - Indicates whether or not this load balancer - can be used as a collector for packet mirroring. - To prevent mirroring loops, instances behind - this load balancer will not have their traffic - mirrored even if a PacketMirroring rule applies - to them. This can only be set to true for load - balancers that have their loadBalancingScheme - set to INTERNAL. - - This field is a member of `oneof`_ ``_is_mirroring_collector``. kind (str): - [Output Only] Type of the resource. Always - compute#forwardingRule for forwarding rule resources. + Output only. [Output Only] Type of the resource. + Alwayscompute#futureReservation for future reservations. This field is a member of `oneof`_ ``_kind``. - label_fingerprint (str): - A fingerprint for the labels being applied to - this resource, which is essentially a hash of - the labels set used for optimistic locking. The - fingerprint is initially generated by Compute - Engine and changes after every request to modify - or update labels. You must always provide an - up-to-date fingerprint hash in order to update - or change labels, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make a get() request to - retrieve a ForwardingRule. - - This field is a member of `oneof`_ ``_label_fingerprint``. - labels (MutableMapping[str, str]): - Labels for this resource. These can only be - added or modified by the setLabels method. Each - label key/value pair must comply with RFC1035. - Label values may be empty. - load_balancing_scheme (str): - Specifies the forwarding rule type. For more - information about forwarding rules, refer to - Forwarding rule concepts. Check the - LoadBalancingScheme enum for the list of - possible values. - - This field is a member of `oneof`_ ``_load_balancing_scheme``. - metadata_filters (MutableSequence[google.cloud.compute_v1.types.MetadataFilter]): - Opaque filter criteria used by load balancer to restrict - routing configuration to a limited set of xDS compliant - clients. In their xDS requests to load balancer, xDS clients - present node metadata. When there is a match, the relevant - configuration is made available to those proxies. Otherwise, - all the resources (e.g. TargetHttpProxy, UrlMap) referenced - by the ForwardingRule are not visible to those proxies. For - each metadataFilter in this list, if its filterMatchCriteria - is set to MATCH_ANY, at least one of the filterLabels must - match the corresponding label provided in the metadata. If - its filterMatchCriteria is set to MATCH_ALL, then all of its - filterLabels must match with corresponding labels provided - in the metadata. If multiple metadataFilters are specified, - all of them need to be satisfied in order to be considered a - match. metadataFilters specified here will be applifed - before those specified in the UrlMap that this - ForwardingRule references. metadataFilters only applies to - Loadbalancers that have their loadBalancingScheme set to - INTERNAL_SELF_MANAGED. name (str): - Name of the resource; provided by the client when the - resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 - characters long and match the regular expression - ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first - character must be a lowercase letter, and all following - characters must be a dash, lowercase letter, or digit, - except the last character, which cannot be a dash. For - Private Service Connect forwarding rules that forward - traffic to Google APIs, the forwarding rule name must be a - 1-20 characters string with lowercase letters and numbers - and must start with a letter. + The name of the resource, provided by the client when + initially creating the resource. The resource name must be + 1-63 characters long, and comply withRFC1035. Specifically, + the name must be 1-63 characters long and match the regular + expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the + first character must be a lowercase letter, and all + following characters must be a dash, lowercase letter, or + digit, except the last character, which cannot be a dash. This field is a member of `oneof`_ ``_name``. - network (str): - This field is not used for global external - load balancing. For internal passthrough Network - Load Balancers, this field identifies the - network that the load balanced IP should belong - to for this forwarding rule. If the subnetwork - is specified, the network of the subnetwork will - be used. If neither subnetwork nor this field is - specified, the default network will be used. For - Private Service Connect forwarding rules that - forward traffic to Google APIs, a network must - be provided. - - This field is a member of `oneof`_ ``_network``. - network_tier (str): - This signifies the networking tier used for - configuring this load balancer and can only take - the following values: PREMIUM, STANDARD. For - regional ForwardingRule, the valid values are - PREMIUM and STANDARD. For GlobalForwardingRule, - the valid value is PREMIUM. If this field is not - specified, it is assumed to be PREMIUM. If - IPAddress is specified, this value must be equal - to the networkTier of the Address. Check the - NetworkTier enum for the list of possible - values. - - This field is a member of `oneof`_ ``_network_tier``. - no_automate_dns_zone (bool): - This is used in PSC consumer ForwardingRule - to control whether it should try to - auto-generate a DNS zone or not. Non-PSC - forwarding rules do not use this field. Once - set, this field is not mutable. - - This field is a member of `oneof`_ ``_no_automate_dns_zone``. - port_range (str): - The ports, portRange, and allPorts fields are mutually - exclusive. Only packets addressed to ports in the specified - range will be forwarded to the backends configured with this - forwarding rule. The portRange field has the following - limitations: - It requires that the forwarding rule - IPProtocol be TCP, UDP, or SCTP, and - It's applicable only - to the following products: external passthrough Network Load - Balancers, internal and external proxy Network Load - Balancers, internal and external Application Load Balancers, - external protocol forwarding, and Classic VPN. - Some - products have restrictions on what ports can be used. See - port specifications for details. For external forwarding - rules, two or more forwarding rules cannot use the same - [IPAddress, IPProtocol] pair, and cannot have overlapping - portRanges. For internal forwarding rules within the same - VPC network, two or more forwarding rules cannot use the - same [IPAddress, IPProtocol] pair, and cannot have - overlapping portRanges. @pattern: \\d+(?:-\\d+)? - - This field is a member of `oneof`_ ``_port_range``. - ports (MutableSequence[str]): - The ports, portRange, and allPorts fields are mutually - exclusive. Only packets addressed to ports in the specified - range will be forwarded to the backends configured with this - forwarding rule. The ports field has the following - limitations: - It requires that the forwarding rule - IPProtocol be TCP, UDP, or SCTP, and - It's applicable only - to the following products: internal passthrough Network Load - Balancers, backend service-based external passthrough - Network Load Balancers, and internal protocol forwarding. - - You can specify a list of up to five ports by number, - separated by commas. The ports can be contiguous or - discontiguous. For external forwarding rules, two or more - forwarding rules cannot use the same [IPAddress, IPProtocol] - pair if they share at least one port number. For internal - forwarding rules within the same VPC network, two or more - forwarding rules cannot use the same [IPAddress, IPProtocol] - pair if they share at least one port number. @pattern: - \\d+(?:-\\d+)? - psc_connection_id (int): - [Output Only] The PSC connection id of the PSC forwarding - rule. + name_prefix (str): + Name prefix for the reservations to be + created at the time of delivery. The name prefix + must comply with RFC1035. Maximum allowed length + for name prefix is 20. Automatically created + reservations name format will be -date-####. + + This field is a member of `oneof`_ ``_name_prefix``. + planning_status (str): + Planning state before being submitted for + evaluation Check the PlanningStatus enum for the + list of possible values. - This field is a member of `oneof`_ ``_psc_connection_id``. - psc_connection_status (str): - Check the PscConnectionStatus enum for the + This field is a member of `oneof`_ ``_planning_status``. + reservation_mode (str): + The reservation mode which determines + reservation-termination behavior and expected + pricing. Check the ReservationMode enum for the list of possible values. - This field is a member of `oneof`_ ``_psc_connection_status``. - region (str): - [Output Only] URL of the region where the regional - forwarding rule resides. This field is not applicable to - global forwarding rules. You must specify this field as part - of the HTTP request URL. It is not settable as a field in - the request body. + This field is a member of `oneof`_ ``_reservation_mode``. + reservation_name (str): + Name of reservations where the capacity is provisioned at + the time of delivery of future reservations. If the + reservation with the given name does not exist already, it + is created automatically at the time of Approval with + INACTIVE state till specified start-time. Either provide the + reservation_name or a name_prefix. - This field is a member of `oneof`_ ``_region``. + This field is a member of `oneof`_ ``_reservation_name``. + scheduling_type (str): + Maintenance information for this reservation + Check the SchedulingType enum for the list of + possible values. + + This field is a member of `oneof`_ ``_scheduling_type``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined fully-qualified + URL for this resource. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Output only. [Output Only] Server-defined URL for this + resource with the resource id. This field is a member of `oneof`_ ``_self_link_with_id``. - service_directory_registrations (MutableSequence[google.cloud.compute_v1.types.ForwardingRuleServiceDirectoryRegistration]): - Service Directory resources to register this - forwarding rule with. Currently, only supports a - single Service Directory resource. - service_label (str): - An optional prefix to the service name for this forwarding - rule. If specified, the prefix is the first label of the - fully qualified service name. The label must be 1-63 - characters long, and comply with RFC1035. Specifically, the - label must be 1-63 characters long and match the regular - expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the - first character must be a lowercase letter, and all - following characters must be a dash, lowercase letter, or - digit, except the last character, which cannot be a dash. - This field is only used for internal load balancing. + share_settings (google.cloud.compute_v1.types.ShareSettings): + List of Projects/Folders to share with. - This field is a member of `oneof`_ ``_service_label``. - service_name (str): - [Output Only] The internal fully qualified service name for - this forwarding rule. This field is only used for internal - load balancing. + This field is a member of `oneof`_ ``_share_settings``. + specific_reservation_required (bool): + Indicates whether the auto-created + reservation can be consumed by VMs with affinity + for "any" reservation. If the field is set, then + only VMs that target the reservation by name can + consume from the delivered reservation. - This field is a member of `oneof`_ ``_service_name``. - source_ip_ranges (MutableSequence[str]): - If not empty, this forwarding rule will only forward the - traffic when the source IP address matches one of the IP - addresses or CIDR ranges set here. Note that a forwarding - rule can only have up to 64 source IP ranges, and this field - can only be used with a regional forwarding rule whose - scheme is EXTERNAL. Each source_ip_range entry should be - either an IP address (for example, 1.2.3.4) or a CIDR range - (for example, 1.2.3.0/24). - subnetwork (str): - This field identifies the subnetwork that the - load balanced IP should belong to for this - forwarding rule, used with internal load - balancers and external passthrough Network Load - Balancers with IPv6. If the network specified is - in auto subnet mode, this field is optional. - However, a subnetwork must be specified if the - network is in custom subnet mode or when - creating external forwarding rule with IPv6. + This field is a member of `oneof`_ ``_specific_reservation_required``. + specific_sku_properties (google.cloud.compute_v1.types.FutureReservationSpecificSKUProperties): + Future Reservation configuration to indicate + instance properties and total count. - This field is a member of `oneof`_ ``_subnetwork``. - target (str): - The URL of the target resource to receive the matched - traffic. For regional forwarding rules, this target must be - in the same region as the forwarding rule. For global - forwarding rules, this target must be a global load - balancing resource. The forwarded traffic must be of a type - appropriate to the target object. - For load balancers, see - the "Target" column in `Port - specifications `__. - - For Private Service Connect forwarding rules that forward - traffic to Google APIs, provide the name of a supported - Google API bundle: - vpc-sc - APIs that support VPC Service - Controls. - all-apis - All supported Google APIs. - For - Private Service Connect forwarding rules that forward - traffic to managed services, the target must be a service - attachment. The target is not mutable once set as a service - attachment. + This field is a member of `oneof`_ ``_specific_sku_properties``. + status (google.cloud.compute_v1.types.FutureReservationStatus): + Output only. [Output only] Status of the Future Reservation - This field is a member of `oneof`_ ``_target``. - """ + This field is a member of `oneof`_ ``_status``. + time_window (google.cloud.compute_v1.types.FutureReservationTimeWindow): + Time window for this Future Reservation. - class ExternalManagedBackendBucketMigrationState(proto.Enum): - r"""Specifies the canary migration state for the backend buckets - attached to this forwarding rule. Possible values are PREPARE, - TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration - from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to - PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the - loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, - the TEST_BY_PERCENTAGE state can be used to migrate traffic to - backend buckets attached to this forwarding rule by percentage using - externalManagedBackendBucketMigrationTestingPercentage. Rolling back - a migration requires the states to be set in reverse order. So - changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the - state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, - the TEST_BY_PERCENTAGE state can be used to migrate some traffic - back to EXTERNAL or PREPARE can be used to migrate all traffic back - to EXTERNAL. + This field is a member of `oneof`_ ``_time_window``. + zone (str): + Output only. [Output Only] URL of the Zone where this future + reservation resides. - Values: - UNDEFINED_EXTERNAL_MANAGED_BACKEND_BUCKET_MIGRATION_STATE (0): - A value indicating that the enum field is not - set. - PREPARE (399612135): - No description available. - TEST_ALL_TRAFFIC (79728882): - No description available. - TEST_BY_PERCENTAGE (513738389): - No description available. - """ - UNDEFINED_EXTERNAL_MANAGED_BACKEND_BUCKET_MIGRATION_STATE = 0 - PREPARE = 399612135 - TEST_ALL_TRAFFIC = 79728882 - TEST_BY_PERCENTAGE = 513738389 + This field is a member of `oneof`_ ``_zone``. + """ - class IPProtocolEnum(proto.Enum): - r"""The IP protocol to which this rule applies. For protocol forwarding, - valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The - valid IP protocols are different for different load balancing - products as described in `Load balancing - features `__. + class DeploymentType(proto.Enum): + r"""Type of the deployment requested as part of future + reservation. Values: - UNDEFINED_I_P_PROTOCOL_ENUM (0): + UNDEFINED_DEPLOYMENT_TYPE (0): A value indicating that the enum field is not set. - AH (2087): - No description available. - ESP (68962): - No description available. - ICMP (2241597): - No description available. - L3_DEFAULT (48151369): - No description available. - SCTP (2539724): - No description available. - TCP (82881): - No description available. - UDP (83873): + DENSE (64932607): + The reserved capacity is made up of densely + deployed reservation blocks. + DEPLOYMENT_TYPE_UNSPECIFIED (234847180): No description available. """ - UNDEFINED_I_P_PROTOCOL_ENUM = 0 - AH = 2087 - ESP = 68962 - ICMP = 2241597 - L3_DEFAULT = 48151369 - SCTP = 2539724 - TCP = 82881 - UDP = 83873 + UNDEFINED_DEPLOYMENT_TYPE = 0 + DENSE = 64932607 + DEPLOYMENT_TYPE_UNSPECIFIED = 234847180 - class IpVersion(proto.Enum): - r"""The IP Version that will be used by this forwarding rule. - Valid options are IPV4 or IPV6. + class PlanningStatus(proto.Enum): + r"""Planning state before being submitted for evaluation Values: - UNDEFINED_IP_VERSION (0): + UNDEFINED_PLANNING_STATUS (0): A value indicating that the enum field is not set. - IPV4 (2254341): - No description available. - IPV6 (2254343): - No description available. - UNSPECIFIED_VERSION (21850000): + DRAFT (65307009): + Future Reservation is being drafted. + PLANNING_STATUS_UNSPECIFIED (252728940): No description available. + SUBMITTED (450918619): + Future Reservation has been submitted for + evaluation by GCP. """ - UNDEFINED_IP_VERSION = 0 - IPV4 = 2254341 - IPV6 = 2254343 - UNSPECIFIED_VERSION = 21850000 + UNDEFINED_PLANNING_STATUS = 0 + DRAFT = 65307009 + PLANNING_STATUS_UNSPECIFIED = 252728940 + SUBMITTED = 450918619 - class LoadBalancingScheme(proto.Enum): - r"""Specifies the forwarding rule type. For more information - about forwarding rules, refer to Forwarding rule concepts. + class ReservationMode(proto.Enum): + r"""The reservation mode which determines reservation-termination + behavior and expected pricing. Values: - UNDEFINED_LOAD_BALANCING_SCHEME (0): + UNDEFINED_RESERVATION_MODE (0): A value indicating that the enum field is not set. - EXTERNAL (35607499): - No description available. - EXTERNAL_MANAGED (512006923): - No description available. - INTERNAL (279295677): - No description available. - INTERNAL_MANAGED (37350397): - No description available. - INTERNAL_SELF_MANAGED (236211150): - No description available. - INVALID (530283991): + CALENDAR (67431230): + The delivered reservations will delivered at + specified start time and terminated at specified + end time along with terminating the VMs running + on it. + DEFAULT (115302945): + The delivered reservations do not terminate + VMs at the end of reservations. This is default + mode. + RESERVATION_MODE_UNSPECIFIED (233810606): No description available. """ - UNDEFINED_LOAD_BALANCING_SCHEME = 0 - EXTERNAL = 35607499 - EXTERNAL_MANAGED = 512006923 - INTERNAL = 279295677 - INTERNAL_MANAGED = 37350397 - INTERNAL_SELF_MANAGED = 236211150 - INVALID = 530283991 - - class NetworkTier(proto.Enum): - r"""This signifies the networking tier used for configuring this - load balancer and can only take the following values: PREMIUM, - STANDARD. For regional ForwardingRule, the valid values are - PREMIUM and STANDARD. For GlobalForwardingRule, the valid value - is PREMIUM. If this field is not specified, it is assumed to be - PREMIUM. If IPAddress is specified, this value must be equal to - the networkTier of the Address. - - Values: - UNDEFINED_NETWORK_TIER (0): - A value indicating that the enum field is not - set. - FIXED_STANDARD (310464328): - Public internet quality with fixed bandwidth. - PREMIUM (399530551): - High quality, Google-grade network tier, - support for all networking products. - STANDARD (484642493): - Public internet quality, only limited support - for other networking products. - STANDARD_OVERRIDES_FIXED_STANDARD (465847234): - (Output only) Temporary tier for FIXED_STANDARD when fixed - standard tier is expired or not configured. - """ - UNDEFINED_NETWORK_TIER = 0 - FIXED_STANDARD = 310464328 - PREMIUM = 399530551 - STANDARD = 484642493 - STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 + UNDEFINED_RESERVATION_MODE = 0 + CALENDAR = 67431230 + DEFAULT = 115302945 + RESERVATION_MODE_UNSPECIFIED = 233810606 - class PscConnectionStatus(proto.Enum): - r""" + class SchedulingType(proto.Enum): + r"""Maintenance information for this reservation Values: - UNDEFINED_PSC_CONNECTION_STATUS (0): + UNDEFINED_SCHEDULING_TYPE (0): A value indicating that the enum field is not set. - ACCEPTED (246714279): - The connection has been accepted by the - producer. - CLOSED (380163436): - The connection has been closed by the - producer and will not serve traffic going - forward. - NEEDS_ATTENTION (344491452): - The connection has been accepted by the - producer, but the producer needs to take further - action before the forwarding rule can serve - traffic. - PENDING (35394935): - The connection is pending acceptance by the - producer. - REJECTED (174130302): - The connection has been rejected by the - producer. - STATUS_UNSPECIFIED (42133066): - No description available. + GROUPED (474540862): + Maintenance on all reserved instances in the + reservation is synchronized. + GROUP_MAINTENANCE_TYPE_UNSPECIFIED (447183678): + Unknown maintenance type. + INDEPENDENT (127011674): + Maintenance is not synchronized for this + reservation. Instead, each instance has its own + maintenance window. """ - UNDEFINED_PSC_CONNECTION_STATUS = 0 - ACCEPTED = 246714279 - CLOSED = 380163436 - NEEDS_ATTENTION = 344491452 - PENDING = 35394935 - REJECTED = 174130302 - STATUS_UNSPECIFIED = 42133066 + UNDEFINED_SCHEDULING_TYPE = 0 + GROUPED = 474540862 + GROUP_MAINTENANCE_TYPE_UNSPECIFIED = 447183678 + INDEPENDENT = 127011674 - I_p_address: str = proto.Field( - proto.STRING, - number=42976943, + aggregate_reservation: "AllocationAggregateReservation" = proto.Field( + proto.MESSAGE, + number=291567948, optional=True, + message="AllocationAggregateReservation", ) - I_p_protocol: str = proto.Field( + auto_created_reservations_delete_time: str = proto.Field( proto.STRING, - number=488094525, + number=242855120, optional=True, ) - all_ports: bool = proto.Field( - proto.BOOL, - number=445175796, + auto_created_reservations_duration: "Duration" = proto.Field( + proto.MESSAGE, + number=496244741, optional=True, + message="Duration", ) - allow_global_access: bool = proto.Field( + auto_delete_auto_created_reservations: bool = proto.Field( proto.BOOL, - number=499409674, + number=491352490, optional=True, ) - allow_psc_global_access: bool = proto.Field( - proto.BOOL, - number=263471819, + commitment_info: "FutureReservationCommitmentInfo" = proto.Field( + proto.MESSAGE, + number=164362136, optional=True, + message="FutureReservationCommitmentInfo", ) - backend_service: str = proto.Field( + creation_timestamp: str = proto.Field( proto.STRING, - number=306946058, + number=30525366, optional=True, ) - base_forwarding_rule: str = proto.Field( + deployment_type: str = proto.Field( proto.STRING, - number=524873104, + number=396722292, optional=True, ) - creation_timestamp: str = proto.Field( + description: str = proto.Field( proto.STRING, - number=30525366, + number=422937596, optional=True, ) - description: str = proto.Field( + enable_emergent_maintenance: bool = proto.Field( + proto.BOOL, + number=353759497, + optional=True, + ) + id: int = proto.Field( + proto.UINT64, + number=3355, + optional=True, + ) + kind: str = proto.Field( proto.STRING, - number=422937596, + number=3292052, optional=True, ) - external_managed_backend_bucket_migration_state: str = proto.Field( + name: str = proto.Field( proto.STRING, - number=107811370, + number=3373707, optional=True, ) - external_managed_backend_bucket_migration_testing_percentage: float = proto.Field( - proto.FLOAT, - number=105676592, + name_prefix: str = proto.Field( + proto.STRING, + number=236409542, optional=True, ) - fingerprint: str = proto.Field( + planning_status: str = proto.Field( proto.STRING, - number=234678500, + number=19714836, optional=True, ) - id: int = proto.Field( - proto.UINT64, - number=3355, + reservation_mode: str = proto.Field( + proto.STRING, + number=277294646, optional=True, ) - ip_collection: str = proto.Field( + reservation_name: str = proto.Field( proto.STRING, - number=176818358, + number=277311262, optional=True, ) - ip_version: str = proto.Field( + scheduling_type: str = proto.Field( proto.STRING, - number=294959552, + number=199835397, optional=True, ) - is_mirroring_collector: bool = proto.Field( + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + self_link_with_id: str = proto.Field( + proto.STRING, + number=44520962, + optional=True, + ) + share_settings: "ShareSettings" = proto.Field( + proto.MESSAGE, + number=266668163, + optional=True, + message="ShareSettings", + ) + specific_reservation_required: bool = proto.Field( proto.BOOL, - number=119255164, + number=226550687, optional=True, ) - kind: str = proto.Field( + specific_sku_properties: "FutureReservationSpecificSKUProperties" = proto.Field( + proto.MESSAGE, + number=108887106, + optional=True, + message="FutureReservationSpecificSKUProperties", + ) + status: "FutureReservationStatus" = proto.Field( + proto.MESSAGE, + number=181260274, + optional=True, + message="FutureReservationStatus", + ) + time_window: "FutureReservationTimeWindow" = proto.Field( + proto.MESSAGE, + number=422983074, + optional=True, + message="FutureReservationTimeWindow", + ) + zone: str = proto.Field( proto.STRING, - number=3292052, + number=3744684, optional=True, ) - label_fingerprint: str = proto.Field( + + +class FutureReservationCommitmentInfo(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + commitment_name (str): + name of the commitment where capacity is + being delivered to. + + This field is a member of `oneof`_ ``_commitment_name``. + commitment_plan (str): + Indicates if a Commitment needs to be created + as part of FR delivery. If this field is not + present, then no commitment needs to be created. + Check the CommitmentPlan enum for the list of + possible values. + + This field is a member of `oneof`_ ``_commitment_plan``. + previous_commitment_terms (str): + Only applicable if FR is delivering to the + same reservation. If set, all parent commitments + will be extended to match the end date of the + plan for this commitment. + Check the PreviousCommitmentTerms enum for the + list of possible values. + + This field is a member of `oneof`_ ``_previous_commitment_terms``. + """ + + class CommitmentPlan(proto.Enum): + r"""Indicates if a Commitment needs to be created as part of FR + delivery. If this field is not present, then no + commitment needs to be created. + + Values: + UNDEFINED_COMMITMENT_PLAN (0): + A value indicating that the enum field is not + set. + INVALID (530283991): + No description available. + THIRTY_SIX_MONTH (266295942): + No description available. + TWELVE_MONTH (173083962): + No description available. + """ + UNDEFINED_COMMITMENT_PLAN = 0 + INVALID = 530283991 + THIRTY_SIX_MONTH = 266295942 + TWELVE_MONTH = 173083962 + + class PreviousCommitmentTerms(proto.Enum): + r"""Only applicable if FR is delivering to the same reservation. + If set, all parent commitments will be extended to match the end + date of the plan for this commitment. + + Values: + UNDEFINED_PREVIOUS_COMMITMENT_TERMS (0): + A value indicating that the enum field is not + set. + EXTEND (448639770): + All associated parent Committed Used Discount(s) + end-date/term will be extended to the end-time of this + future reservation. Default is to extend previous + commitment(s) time to the end_time of the reservation. + PREVIOUSCOMMITMENTTERM_UNSPECIFIED (98482448): + No changes to associated parents Committed + Used Discount(s) terms. + """ + UNDEFINED_PREVIOUS_COMMITMENT_TERMS = 0 + EXTEND = 448639770 + PREVIOUSCOMMITMENTTERM_UNSPECIFIED = 98482448 + + commitment_name: str = proto.Field( proto.STRING, - number=178124825, + number=164498805, optional=True, ) - labels: MutableMapping[str, str] = proto.MapField( + commitment_plan: str = proto.Field( proto.STRING, + number=164568595, + optional=True, + ) + previous_commitment_terms: str = proto.Field( proto.STRING, - number=500195327, + number=447490085, + optional=True, ) - load_balancing_scheme: str = proto.Field( + + +class FutureReservationSpecificSKUProperties(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instance_properties (google.cloud.compute_v1.types.AllocationSpecificSKUAllocationReservedInstanceProperties): + Properties of the SKU instances being + reserved. + + This field is a member of `oneof`_ ``_instance_properties``. + source_instance_template (str): + The instance template that will be used to + populate the ReservedInstanceProperties of the + future reservation + + This field is a member of `oneof`_ ``_source_instance_template``. + total_count (int): + Total number of instances for which capacity + assurance is requested at a future time period. + + This field is a member of `oneof`_ ``_total_count``. + """ + + instance_properties: "AllocationSpecificSKUAllocationReservedInstanceProperties" = ( + proto.Field( + proto.MESSAGE, + number=215355165, + optional=True, + message="AllocationSpecificSKUAllocationReservedInstanceProperties", + ) + ) + source_instance_template: str = proto.Field( proto.STRING, - number=363890244, + number=332423616, optional=True, ) - metadata_filters: MutableSequence["MetadataFilter"] = proto.RepeatedField( - proto.MESSAGE, - number=464725739, - message="MetadataFilter", + total_count: int = proto.Field( + proto.INT64, + number=129109076, + optional=True, ) - name: str = proto.Field( + + +class FutureReservationStatus(proto.Message): + r"""[Output only] Represents status related to the future reservation. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + amendment_status (str): + Output only. [Output Only] The current status of the + requested amendment. Check the AmendmentStatus enum for the + list of possible values. + + This field is a member of `oneof`_ ``_amendment_status``. + auto_created_reservations (MutableSequence[str]): + Output only. Fully qualified urls of the automatically + created reservations at start_time. + existing_matching_usage_info (google.cloud.compute_v1.types.FutureReservationStatusExistingMatchingUsageInfo): + Output only. [Output Only] Represents the existing matching + usage for the future reservation. + + This field is a member of `oneof`_ ``_existing_matching_usage_info``. + fulfilled_count (int): + Output only. This count indicates the + fulfilled capacity so far. This is set during + "PROVISIONING" state. This count also includes + capacity delivered as part of existing matching + reservations. + + This field is a member of `oneof`_ ``_fulfilled_count``. + last_known_good_state (google.cloud.compute_v1.types.FutureReservationStatusLastKnownGoodState): + Output only. [Output Only] This field represents the future + reservation before an amendment was requested. If the + amendment is declined, the Future Reservation will be + reverted to the last known good state. The last known good + state is not set when updating a future reservation whose + Procurement Status is DRAFTING. + + This field is a member of `oneof`_ ``_last_known_good_state``. + lock_time (str): + Output only. Time when Future Reservation would become + LOCKED, after which no modifications to Future Reservation + will be allowed. Applicable only after the Future + Reservation is in the APPROVED state. The lock_time is an + RFC3339 string. The procurement_status will transition to + PROCURING state at this time. + + This field is a member of `oneof`_ ``_lock_time``. + procurement_status (str): + Output only. Current state of this Future + Reservation Check the ProcurementStatus enum for + the list of possible values. + + This field is a member of `oneof`_ ``_procurement_status``. + specific_sku_properties (google.cloud.compute_v1.types.FutureReservationStatusSpecificSKUProperties): + + This field is a member of `oneof`_ ``_specific_sku_properties``. + """ + + class AmendmentStatus(proto.Enum): + r"""Output only. [Output Only] The current status of the requested + amendment. + + Values: + UNDEFINED_AMENDMENT_STATUS (0): + A value indicating that the enum field is not + set. + AMENDMENT_APPROVED (150573001): + The requested amendment to the Future + Resevation has been approved and applied by GCP. + AMENDMENT_DECLINED (70395200): + The requested amendment to the Future + Reservation has been declined by GCP and the + original state was restored. + AMENDMENT_IN_REVIEW (25830624): + The requested amendment to the Future + Reservation is currently being reviewd by GCP. + AMENDMENT_STATUS_UNSPECIFIED (412250332): + No description available. + """ + UNDEFINED_AMENDMENT_STATUS = 0 + AMENDMENT_APPROVED = 150573001 + AMENDMENT_DECLINED = 70395200 + AMENDMENT_IN_REVIEW = 25830624 + AMENDMENT_STATUS_UNSPECIFIED = 412250332 + + class ProcurementStatus(proto.Enum): + r"""Output only. Current state of this Future Reservation + + Values: + UNDEFINED_PROCUREMENT_STATUS (0): + A value indicating that the enum field is not + set. + APPROVED (357258935): + Future reservation is approved by GCP. + CANCELLED (41957681): + Future reservation is cancelled by the + customer. + COMMITTED (221710172): + Future reservation is committed by the + customer. + DECLINED (277081134): + Future reservation is rejected by GCP. + DRAFTING (477863585): + Related status for PlanningStatus.Draft. Transitions to + PENDING_APPROVAL upon user submitting FR. + FAILED (455706685): + Future reservation failed. No additional + reservations were provided. + FAILED_PARTIALLY_FULFILLED (14455212): + Future reservation is partially fulfilled. Additional + reservations were provided but did not reach total_count + reserved instance slots. + FULFILLED (409958655): + Future reservation is fulfilled completely. + PENDING_AMENDMENT_APPROVAL (510150429): + An Amendment to the Future Reservation has + been requested. If the Amendment is declined, + the Future Reservation will be restored to the + last known good state. + PENDING_APPROVAL (209692683): + Future reservation is pending approval by + GCP. + PROCUREMENT_STATUS_UNSPECIFIED (45807705): + No description available. + PROCURING (95959663): + Future reservation is being procured by GCP. + Beyond this point, Future reservation is locked + and no further modifications are allowed. + PROVISIONING (290896621): + Future reservation capacity is being provisioned. This state + will be entered after start_time, while reservations are + being created to provide total_count reserved instance + slots. This state will not persist past start_time + 24h. + """ + UNDEFINED_PROCUREMENT_STATUS = 0 + APPROVED = 357258935 + CANCELLED = 41957681 + COMMITTED = 221710172 + DECLINED = 277081134 + DRAFTING = 477863585 + FAILED = 455706685 + FAILED_PARTIALLY_FULFILLED = 14455212 + FULFILLED = 409958655 + PENDING_AMENDMENT_APPROVAL = 510150429 + PENDING_APPROVAL = 209692683 + PROCUREMENT_STATUS_UNSPECIFIED = 45807705 + PROCURING = 95959663 + PROVISIONING = 290896621 + + amendment_status: str = proto.Field( proto.STRING, - number=3373707, + number=250270052, optional=True, ) - network: str = proto.Field( + auto_created_reservations: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=232872494, + number=140217006, + ) + existing_matching_usage_info: "FutureReservationStatusExistingMatchingUsageInfo" = ( + proto.Field( + proto.MESSAGE, + number=509920602, + optional=True, + message="FutureReservationStatusExistingMatchingUsageInfo", + ) + ) + fulfilled_count: int = proto.Field( + proto.INT64, + number=319392239, optional=True, ) - network_tier: str = proto.Field( + last_known_good_state: "FutureReservationStatusLastKnownGoodState" = proto.Field( + proto.MESSAGE, + number=192819092, + optional=True, + message="FutureReservationStatusLastKnownGoodState", + ) + lock_time: str = proto.Field( proto.STRING, - number=517397843, + number=143772001, optional=True, ) - no_automate_dns_zone: bool = proto.Field( - proto.BOOL, - number=64546991, + procurement_status: str = proto.Field( + proto.STRING, + number=224718945, optional=True, ) - port_range: str = proto.Field( + specific_sku_properties: "FutureReservationStatusSpecificSKUProperties" = ( + proto.Field( + proto.MESSAGE, + number=108887106, + optional=True, + message="FutureReservationStatusSpecificSKUProperties", + ) + ) + + +class FutureReservationStatusExistingMatchingUsageInfo(proto.Message): + r"""[Output Only] Represents the existing matching usage for the future + reservation. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + count (int): + Output only. Count to represent min(FR total_count, + matching_reserved_capacity+matching_unreserved_instances) + + This field is a member of `oneof`_ ``_count``. + timestamp (str): + Output only. Timestamp when the matching + usage was calculated + + This field is a member of `oneof`_ ``_timestamp``. + """ + + count: int = proto.Field( + proto.INT64, + number=94851343, + optional=True, + ) + timestamp: str = proto.Field( proto.STRING, - number=217518079, + number=55126294, optional=True, ) - ports: MutableSequence[str] = proto.RepeatedField( + + +class FutureReservationStatusLastKnownGoodState(proto.Message): + r"""The state that the future reservation will be reverted to + should the amendment be declined. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + description (str): + Output only. [Output Only] The description of the + FutureReservation before an amendment was requested. + + This field is a member of `oneof`_ ``_description``. + existing_matching_usage_info (google.cloud.compute_v1.types.FutureReservationStatusExistingMatchingUsageInfo): + Output only. [Output Only] Represents the matching usage for + the future reservation before an amendment was requested. + + This field is a member of `oneof`_ ``_existing_matching_usage_info``. + future_reservation_specs (google.cloud.compute_v1.types.FutureReservationStatusLastKnownGoodStateFutureReservationSpecs): + + This field is a member of `oneof`_ ``_future_reservation_specs``. + lock_time (str): + Output only. [Output Only] The lock time of the + FutureReservation before an amendment was requested. + + This field is a member of `oneof`_ ``_lock_time``. + name_prefix (str): + Output only. [Output Only] The name prefix of the Future + Reservation before an amendment was requested. + + This field is a member of `oneof`_ ``_name_prefix``. + procurement_status (str): + Output only. [Output Only] The status of the last known good + state for the Future Reservation. Check the + ProcurementStatus enum for the list of possible values. + + This field is a member of `oneof`_ ``_procurement_status``. + """ + + class ProcurementStatus(proto.Enum): + r"""Output only. [Output Only] The status of the last known good state + for the Future Reservation. + + Values: + UNDEFINED_PROCUREMENT_STATUS (0): + A value indicating that the enum field is not + set. + APPROVED (357258935): + Future reservation is approved by GCP. + CANCELLED (41957681): + Future reservation is cancelled by the + customer. + COMMITTED (221710172): + Future reservation is committed by the + customer. + DECLINED (277081134): + Future reservation is rejected by GCP. + DRAFTING (477863585): + Related status for PlanningStatus.Draft. Transitions to + PENDING_APPROVAL upon user submitting FR. + FAILED (455706685): + Future reservation failed. No additional + reservations were provided. + FAILED_PARTIALLY_FULFILLED (14455212): + Future reservation is partially fulfilled. Additional + reservations were provided but did not reach total_count + reserved instance slots. + FULFILLED (409958655): + Future reservation is fulfilled completely. + PENDING_AMENDMENT_APPROVAL (510150429): + An Amendment to the Future Reservation has + been requested. If the Amendment is declined, + the Future Reservation will be restored to the + last known good state. + PENDING_APPROVAL (209692683): + Future reservation is pending approval by + GCP. + PROCUREMENT_STATUS_UNSPECIFIED (45807705): + No description available. + PROCURING (95959663): + Future reservation is being procured by GCP. + Beyond this point, Future reservation is locked + and no further modifications are allowed. + PROVISIONING (290896621): + Future reservation capacity is being provisioned. This state + will be entered after start_time, while reservations are + being created to provide total_count reserved instance + slots. This state will not persist past start_time + 24h. + """ + UNDEFINED_PROCUREMENT_STATUS = 0 + APPROVED = 357258935 + CANCELLED = 41957681 + COMMITTED = 221710172 + DECLINED = 277081134 + DRAFTING = 477863585 + FAILED = 455706685 + FAILED_PARTIALLY_FULFILLED = 14455212 + FULFILLED = 409958655 + PENDING_AMENDMENT_APPROVAL = 510150429 + PENDING_APPROVAL = 209692683 + PROCUREMENT_STATUS_UNSPECIFIED = 45807705 + PROCURING = 95959663 + PROVISIONING = 290896621 + + description: str = proto.Field( proto.STRING, - number=106854418, + number=422937596, + optional=True, + ) + existing_matching_usage_info: "FutureReservationStatusExistingMatchingUsageInfo" = ( + proto.Field( + proto.MESSAGE, + number=509920602, + optional=True, + message="FutureReservationStatusExistingMatchingUsageInfo", + ) ) - psc_connection_id: int = proto.Field( - proto.UINT64, - number=292082397, + future_reservation_specs: "FutureReservationStatusLastKnownGoodStateFutureReservationSpecs" = proto.Field( + proto.MESSAGE, + number=82528873, optional=True, + message="FutureReservationStatusLastKnownGoodStateFutureReservationSpecs", ) - psc_connection_status: str = proto.Field( + lock_time: str = proto.Field( proto.STRING, - number=184149172, + number=143772001, optional=True, ) - region: str = proto.Field( + name_prefix: str = proto.Field( proto.STRING, - number=138946292, + number=236409542, optional=True, ) - self_link: str = proto.Field( + procurement_status: str = proto.Field( proto.STRING, - number=456214797, + number=224718945, optional=True, ) - self_link_with_id: str = proto.Field( - proto.STRING, - number=44520962, + + +class FutureReservationStatusLastKnownGoodStateFutureReservationSpecs(proto.Message): + r"""The properties of the last known good state for the Future + Reservation. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + share_settings (google.cloud.compute_v1.types.ShareSettings): + Output only. [Output Only] The previous share settings of + the Future Reservation. + + This field is a member of `oneof`_ ``_share_settings``. + specific_sku_properties (google.cloud.compute_v1.types.FutureReservationSpecificSKUProperties): + Output only. [Output Only] The previous instance related + properties of the Future Reservation. + + This field is a member of `oneof`_ ``_specific_sku_properties``. + time_window (google.cloud.compute_v1.types.FutureReservationTimeWindow): + Output only. [Output Only] The previous time window of the + Future Reservation. + + This field is a member of `oneof`_ ``_time_window``. + """ + + share_settings: "ShareSettings" = proto.Field( + proto.MESSAGE, + number=266668163, optional=True, + message="ShareSettings", ) - service_directory_registrations: MutableSequence[ - "ForwardingRuleServiceDirectoryRegistration" - ] = proto.RepeatedField( + specific_sku_properties: "FutureReservationSpecificSKUProperties" = proto.Field( proto.MESSAGE, - number=223549694, - message="ForwardingRuleServiceDirectoryRegistration", + number=108887106, + optional=True, + message="FutureReservationSpecificSKUProperties", ) - service_label: str = proto.Field( - proto.STRING, - number=417008874, + time_window: "FutureReservationTimeWindow" = proto.Field( + proto.MESSAGE, + number=422983074, optional=True, + message="FutureReservationTimeWindow", ) - service_name: str = proto.Field( + + +class FutureReservationStatusSpecificSKUProperties(proto.Message): + r"""Properties to be set for the Future Reservation. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + source_instance_template_id (str): + ID of the instance template used to populate + the Future Reservation properties. + + This field is a member of `oneof`_ ``_source_instance_template_id``. + """ + + source_instance_template_id: str = proto.Field( proto.STRING, - number=359880149, + number=111196154, optional=True, ) - source_ip_ranges: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=111563210, + + +class FutureReservationTimeWindow(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + duration (google.cloud.compute_v1.types.Duration): + + This field is a member of `oneof`_ ``_duration``. + end_time (str): + + This field is a member of `oneof`_ ``_end_time``. + start_time (str): + Start time of the Future Reservation. The start_time is an + RFC3339 string. + + This field is a member of `oneof`_ ``_start_time``. + """ + + duration: "Duration" = proto.Field( + proto.MESSAGE, + number=155471252, + optional=True, + message="Duration", ) - subnetwork: str = proto.Field( + end_time: str = proto.Field( proto.STRING, - number=307827694, + number=114938801, optional=True, ) - target: str = proto.Field( + start_time: str = proto.Field( proto.STRING, - number=192835985, + number=37467274, optional=True, ) -class ForwardingRuleAggregatedList(proto.Message): - r""" +class FutureReservationsAggregatedListResponse(proto.Message): + r"""Contains a list of future reservations. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + etag (str): + + This field is a member of `oneof`_ ``_etag``. id (str): [Output Only] Unique identifier for the resource; defined by the server. This field is a member of `oneof`_ ``_id``. - items (MutableMapping[str, google.cloud.compute_v1.types.ForwardingRulesScopedList]): - A list of ForwardingRulesScopedList - resources. + items (MutableMapping[str, google.cloud.compute_v1.types.FutureReservationsScopedList]): + A list of Future reservation resources. kind (str): - [Output Only] Type of resource. Always - compute#forwardingRuleAggregatedList for lists of forwarding - rules. + Output only. [Output Only] Type of resource. + Alwayscompute#futureReservationsAggregatedListResponse for + future resevation aggregated list response. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -31938,16 +37199,21 @@ class ForwardingRuleAggregatedList(proto.Message): def raw_page(self): return self + etag: str = proto.Field( + proto.STRING, + number=3123477, + optional=True, + ) id: str = proto.Field( proto.STRING, number=3355, optional=True, ) - items: MutableMapping[str, "ForwardingRulesScopedList"] = proto.MapField( + items: MutableMapping[str, "FutureReservationsScopedList"] = proto.MapField( proto.STRING, proto.MESSAGE, number=100526016, - message="ForwardingRulesScopedList", + message="FutureReservationsScopedList", ) kind: str = proto.Field( proto.STRING, @@ -31976,36 +37242,44 @@ def raw_page(self): ) -class ForwardingRuleList(proto.Message): - r"""Contains a list of ForwardingRule resources. +class FutureReservationsListResponse(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + etag (str): + + This field is a member of `oneof`_ ``_etag``. id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + [Output Only] The unique identifier for the resource. This + identifier is defined by the server. This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.ForwardingRule]): - A list of ForwardingRule resources. + items (MutableSequence[google.cloud.compute_v1.types.FutureReservation]): + [Output Only] A list of future reservation resources. kind (str): - Type of resource. + Output only. [Output Only] Type of + resource.Alwayscompute#FutureReservationsListResponse for + lists of reservations This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. + unreachables (MutableSequence[str]): + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -32016,15 +37290,20 @@ class ForwardingRuleList(proto.Message): def raw_page(self): return self + etag: str = proto.Field( + proto.STRING, + number=3123477, + optional=True, + ) id: str = proto.Field( proto.STRING, number=3355, optional=True, ) - items: MutableSequence["ForwardingRule"] = proto.RepeatedField( + items: MutableSequence["FutureReservation"] = proto.RepeatedField( proto.MESSAGE, number=100526016, - message="ForwardingRule", + message="FutureReservation", ) kind: str = proto.Field( proto.STRING, @@ -32041,6 +37320,10 @@ def raw_page(self): number=456214797, optional=True, ) + unreachables: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=243372063, + ) warning: "Warning" = proto.Field( proto.MESSAGE, number=50704284, @@ -32049,97 +37332,553 @@ def raw_page(self): ) -class ForwardingRuleReference(proto.Message): +class FutureReservationsScopedList(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - forwarding_rule (str): + future_reservations (MutableSequence[google.cloud.compute_v1.types.FutureReservation]): + A list of future reservations contained in + this scope. + warning (google.cloud.compute_v1.types.Warning): + Informational warning which replaces the list + of future reservations when the list is empty. - This field is a member of `oneof`_ ``_forwarding_rule``. + This field is a member of `oneof`_ ``_warning``. """ - forwarding_rule: str = proto.Field( + future_reservations: MutableSequence["FutureReservation"] = proto.RepeatedField( + proto.MESSAGE, + number=131778339, + message="FutureReservation", + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + +class FutureResourcesRecommendation(proto.Message): + r"""Recommendation for single resources specification, to be + created in the future. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + end_time (str): + + This field is a member of `oneof`_ ``_end_time``. + location (str): + The advised location for resource usage. When a zone, in + format 'zones/'. If not set, it means that no location is + recommended - see other_locations for details. + + This field is a member of `oneof`_ ``_location``. + other_locations (MutableMapping[str, google.cloud.compute_v1.types.FutureResourcesRecommendationOtherLocation]): + List of locations in the request scope that + were not recommended. Keys of the map are zones, + in format 'zones/'. The values are status + information indicating the recommendation + status. + recommendation_id (str): + Unique id of the recommendation, a UUID + string generated by the API. + + This field is a member of `oneof`_ ``_recommendation_id``. + recommendation_type (str): + Type of recommendation. Currently only FUTURE_RESERVATION is + supported. Check the RecommendationType enum for the list of + possible values. + + This field is a member of `oneof`_ ``_recommendation_type``. + start_time (str): + + This field is a member of `oneof`_ ``_start_time``. + """ + + class RecommendationType(proto.Enum): + r"""Type of recommendation. Currently only FUTURE_RESERVATION is + supported. + + Values: + UNDEFINED_RECOMMENDATION_TYPE (0): + A value indicating that the enum field is not + set. + FUTURE_RESERVATION (41036592): + A Future Reservation is recommended. + RECOMMENDATION_TYPE_UNSPECIFIED (140641624): + Default value, unused. + """ + UNDEFINED_RECOMMENDATION_TYPE = 0 + FUTURE_RESERVATION = 41036592 + RECOMMENDATION_TYPE_UNSPECIFIED = 140641624 + + end_time: str = proto.Field( proto.STRING, - number=269964030, + number=114938801, + optional=True, + ) + location: str = proto.Field( + proto.STRING, + number=290430901, + optional=True, + ) + other_locations: MutableMapping[ + str, "FutureResourcesRecommendationOtherLocation" + ] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=179322095, + message="FutureResourcesRecommendationOtherLocation", + ) + recommendation_id: str = proto.Field( + proto.STRING, + number=474540897, + optional=True, + ) + recommendation_type: str = proto.Field( + proto.STRING, + number=230749184, + optional=True, + ) + start_time: str = proto.Field( + proto.STRING, + number=37467274, optional=True, ) -class ForwardingRuleServiceDirectoryRegistration(proto.Message): - r"""Describes the auto-registration of the forwarding rule to - Service Directory. The region and project of the Service - Directory resource generated from this registration will be the - same as this forwarding rule. +class FutureResourcesRecommendationOtherLocation(proto.Message): + r"""Information about recommendation status for locations + that were allowed but not used by the response. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - namespace (str): - Service Directory namespace to register the - forwarding rule under. + details (str): + Details (human readable) describing the situation. For + example, if status is CONDITION_NOT_MET, then details + contain information about the parameters of the time window + that did not meet the required conditions. - This field is a member of `oneof`_ ``_namespace``. - service (str): - Service Directory service to register the - forwarding rule under. + This field is a member of `oneof`_ ``_details``. + status (str): + Status of recommendation in this location. + Check the Status enum for the list of possible + values. - This field is a member of `oneof`_ ``_service``. - service_directory_region (str): - [Optional] Service Directory region to register this global - forwarding rule under. Default to "us-central1". Only used - for PSC for Google APIs. All PSC for Google APIs forwarding - rules on the same network should use the same Service - Directory region. + This field is a member of `oneof`_ ``_status``. + """ - This field is a member of `oneof`_ ``_service_directory_region``. + class Status(proto.Enum): + r"""Status of recommendation in this location. + + Values: + UNDEFINED_STATUS (0): + A value indicating that the enum field is not + set. + CONDITIONS_NOT_MET (363628457): + The requested resources are offered in this + location but the requested time window is does + not meet the required conditions. + NOT_SUPPORTED (317950466): + The requested resources are not offered in + this location. Retrying the request will not + change this status. + NO_CAPACITY (274240888): + The requested resources are offered in this + location and the requested time window is + accepted but there is no capacity within the + requested time window. + OTHER_LOCATION_STATUS_UNDEFINED (222662622): + Default value, unused. + RECOMMENDED (369652283): + The requested resources are offered in this + location and it is possible to request them. + However, another location was better and was + recommended. + """ + UNDEFINED_STATUS = 0 + CONDITIONS_NOT_MET = 363628457 + NOT_SUPPORTED = 317950466 + NO_CAPACITY = 274240888 + OTHER_LOCATION_STATUS_UNDEFINED = 222662622 + RECOMMENDED = 369652283 + + details: str = proto.Field( + proto.STRING, + number=483979842, + optional=True, + ) + status: str = proto.Field( + proto.STRING, + number=181260274, + optional=True, + ) + + +class FutureResourcesSpec(proto.Message): + r"""Specification of resources to be created at some time in the + future within an optionally specified set of locations, and + within the specified time range. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + deployment_type (str): + Indicates if the reservation allocation + strategy is static (DENSE) or dynamic + (STANDARD). Defaults to DENSE. Check the + DeploymentType enum for the list of possible + values. + + This field is a member of `oneof`_ ``_deployment_type``. + location_policy (google.cloud.compute_v1.types.FutureResourcesSpecLocationPolicy): + Optional location policy allowing to exclude + some zone(s) in which the resources must not be + created. + + This field is a member of `oneof`_ ``_location_policy``. + target_resources (google.cloud.compute_v1.types.FutureResourcesSpecTargetResources): + Specification of the reserved resources. + + This field is a member of `oneof`_ ``_target_resources``. + time_range_spec (google.cloud.compute_v1.types.FlexibleTimeRange): + Specification of a time range in which the + resources may be created. The time range + specifies start of resource use and planned end + of resource use. + + This field is a member of `oneof`_ ``_time_range_spec``. """ - namespace: str = proto.Field( + class DeploymentType(proto.Enum): + r"""Indicates if the reservation allocation strategy is static + (DENSE) or dynamic (STANDARD). Defaults to DENSE. + + Values: + UNDEFINED_DEPLOYMENT_TYPE (0): + A value indicating that the enum field is not + set. + DENSE (64932607): + The reserved capacity is made up of densely + deployed reservation blocks. + DEPLOYMENT_TYPE_UNSPECIFIED (234847180): + No description available. + """ + UNDEFINED_DEPLOYMENT_TYPE = 0 + DENSE = 64932607 + DEPLOYMENT_TYPE_UNSPECIFIED = 234847180 + + deployment_type: str = proto.Field( proto.STRING, - number=178476379, + number=396722292, optional=True, ) - service: str = proto.Field( + location_policy: "FutureResourcesSpecLocationPolicy" = proto.Field( + proto.MESSAGE, + number=465689852, + optional=True, + message="FutureResourcesSpecLocationPolicy", + ) + target_resources: "FutureResourcesSpecTargetResources" = proto.Field( + proto.MESSAGE, + number=528230647, + optional=True, + message="FutureResourcesSpecTargetResources", + ) + time_range_spec: "FlexibleTimeRange" = proto.Field( + proto.MESSAGE, + number=116516399, + optional=True, + message="FlexibleTimeRange", + ) + + +class FutureResourcesSpecAggregateResources(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + accelerator_count (int): + Size of the request, in accelerator (chip) + count. + + This field is a member of `oneof`_ ``_accelerator_count``. + vm_family (str): + The VM family that all instances scheduled + against this reservation must belong to. Use for + TPU reservations. Check the VmFamily enum for + the list of possible values. + + This field is a member of `oneof`_ ``_vm_family``. + workload_type (str): + Workload type. Use for TPU reservations. + Check the WorkloadType enum for the list of + possible values. + + This field is a member of `oneof`_ ``_workload_type``. + """ + + class VmFamily(proto.Enum): + r"""The VM family that all instances scheduled against this + reservation must belong to. Use for TPU reservations. + + Values: + UNDEFINED_VM_FAMILY (0): + A value indicating that the enum field is not + set. + VM_FAMILY_CLOUD_TPU_DEVICE_CT3 (42845948): + No description available. + VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L (108020067): + No description available. + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP (18705267): + No description available. + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E (398926997): + No description available. + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P (517384376): + No description available. + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P (517384407): + No description available. + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P (517384438): + No description available. + VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X (485271888): + No description available. + """ + UNDEFINED_VM_FAMILY = 0 + VM_FAMILY_CLOUD_TPU_DEVICE_CT3 = 42845948 + VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L = 108020067 + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP = 18705267 + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E = 398926997 + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P = 517384376 + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 517384407 + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 517384438 + VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X = 485271888 + + class WorkloadType(proto.Enum): + r"""Workload type. Use for TPU reservations. + + Values: + UNDEFINED_WORKLOAD_TYPE (0): + A value indicating that the enum field is not + set. + BATCH (62971674): + Reserved resources will be optimized for + BATCH workloads, such as ML training. + SERVING (17781740): + Reserved resources will be optimized for + SERVING workloads, such as ML inference. + UNSPECIFIED (526786327): + No description available. + """ + UNDEFINED_WORKLOAD_TYPE = 0 + BATCH = 62971674 + SERVING = 17781740 + UNSPECIFIED = 526786327 + + accelerator_count: int = proto.Field( + proto.INT64, + number=504879675, + optional=True, + ) + vm_family: str = proto.Field( proto.STRING, - number=373540533, + number=125017580, optional=True, ) - service_directory_region: str = proto.Field( + workload_type: str = proto.Field( proto.STRING, - number=74030416, + number=273432322, optional=True, ) -class ForwardingRulesScopedList(proto.Message): +class FutureResourcesSpecLocalSsdPartition(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - forwarding_rules (MutableSequence[google.cloud.compute_v1.types.ForwardingRule]): - A list of forwarding rules contained in this - scope. - warning (google.cloud.compute_v1.types.Warning): - Informational warning which replaces the list - of forwarding rules when the list is empty. + disk_interface (str): + Disk interface. Defaults to SCSI. + Check the DiskInterface enum for the list of + possible values. - This field is a member of `oneof`_ ``_warning``. + This field is a member of `oneof`_ ``_disk_interface``. + disk_size_gb (int): + The size of the disk in GB. + + This field is a member of `oneof`_ ``_disk_size_gb``. """ - forwarding_rules: MutableSequence["ForwardingRule"] = proto.RepeatedField( + class DiskInterface(proto.Enum): + r"""Disk interface. Defaults to SCSI. + + Values: + UNDEFINED_DISK_INTERFACE (0): + A value indicating that the enum field is not + set. + NVME (2408800): + No description available. + SCSI (2539686): + No description available. + """ + UNDEFINED_DISK_INTERFACE = 0 + NVME = 2408800 + SCSI = 2539686 + + disk_interface: str = proto.Field( + proto.STRING, + number=66770199, + optional=True, + ) + disk_size_gb: int = proto.Field( + proto.INT64, + number=316263735, + optional=True, + ) + + +class FutureResourcesSpecLocationPolicy(proto.Message): + r"""Specification of locations to create resources in. + + Attributes: + locations (MutableMapping[str, google.cloud.compute_v1.types.FutureResourcesSpecLocationPolicyLocation]): + Preferences for specified locations. + Keys of the map are locations - zones, in format + of 'zones/'. Values are preferences for the + zones. + If a zone is not specified in this map, it is + ALLOWed. + """ + + locations: MutableMapping[ + str, "FutureResourcesSpecLocationPolicyLocation" + ] = proto.MapField( + proto.STRING, proto.MESSAGE, - number=315821365, - message="ForwardingRule", + number=413423454, + message="FutureResourcesSpecLocationPolicyLocation", ) - warning: "Warning" = proto.Field( + + +class FutureResourcesSpecLocationPolicyLocation(proto.Message): + r"""Preference for a single specified location. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + preference (str): + Preference for this location. + Check the Preference enum for the list of + possible values. + + This field is a member of `oneof`_ ``_preference``. + """ + + class Preference(proto.Enum): + r"""Preference for this location. + + Values: + UNDEFINED_PREFERENCE (0): + A value indicating that the enum field is not + set. + ALLOW (62368553): + Location is allowed for use. + DENY (2094604): + Location is prohibited. + PREFERENCE_UNSPECIFIED (496219571): + Default value, unused. + """ + UNDEFINED_PREFERENCE = 0 + ALLOW = 62368553 + DENY = 2094604 + PREFERENCE_UNSPECIFIED = 496219571 + + preference: str = proto.Field( + proto.STRING, + number=150781147, + optional=True, + ) + + +class FutureResourcesSpecSpecificSKUResources(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instance_count (int): + Size of the request, in instance count. + + This field is a member of `oneof`_ ``_instance_count``. + local_ssd_partitions (MutableSequence[google.cloud.compute_v1.types.FutureResourcesSpecLocalSsdPartition]): + Local SSD partitions. You do not have to + include SSD partitions that are built in the + machine type. + machine_type (str): + The machine type to use for instances that + will use the reservation. This field only + accepts machine type names. e.g. n2-standard-4 + and does not accept machine type full or partial + url. e.g. + projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4. + Use for GPU reservations. + + This field is a member of `oneof`_ ``_machine_type``. + """ + + instance_count: int = proto.Field( + proto.INT64, + number=77317349, + optional=True, + ) + local_ssd_partitions: MutableSequence[ + "FutureResourcesSpecLocalSsdPartition" + ] = proto.RepeatedField( proto.MESSAGE, - number=50704284, + number=470688568, + message="FutureResourcesSpecLocalSsdPartition", + ) + machine_type: str = proto.Field( + proto.STRING, + number=227711026, optional=True, - message="Warning", + ) + + +class FutureResourcesSpecTargetResources(proto.Message): + r"""Specification of reserved resources. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + aggregate_resources (google.cloud.compute_v1.types.FutureResourcesSpecAggregateResources): + + This field is a member of `oneof`_ ``_aggregate_resources``. + specific_sku_resources (google.cloud.compute_v1.types.FutureResourcesSpecSpecificSKUResources): + + This field is a member of `oneof`_ ``_specific_sku_resources``. + """ + + aggregate_resources: "FutureResourcesSpecAggregateResources" = proto.Field( + proto.MESSAGE, + number=180868005, + optional=True, + message="FutureResourcesSpecAggregateResources", + ) + specific_sku_resources: "FutureResourcesSpecSpecificSKUResources" = proto.Field( + proto.MESSAGE, + number=267071798, + optional=True, + message="FutureResourcesSpecSpecificSKUResources", ) @@ -32152,11 +37891,15 @@ class GRPCHealthCheck(proto.Message): grpc_service_name (str): The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following - meanings by convention: - Empty service_name means the - overall status of all services at the backend. - Non-empty - service_name means the health of that gRPC service, as - defined by the owner of the service. The grpc_service_name - can only be ASCII. + meanings by convention: + + - Empty service_name means the overall status of all + services at the backend. + + - Non-empty service_name means the health of that gRPC + service, as defined by the owner of the service. + + The grpc_service_name can only be ASCII. This field is a member of `oneof`_ ``_grpc_service_name``. port (int): @@ -32172,7 +37915,7 @@ class GRPCHealthCheck(proto.Message): port_specification (str): Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a - port number explicitly using the port field in the health + port number explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all @@ -32185,14 +37928,16 @@ class GRPCHealthCheck(proto.Message): service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports - all backends that can be health checked; for example, - GCE_VM_IP_PORT network endpoint groups and instance group - backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified - for each endpoint in the network endpoint group. For - instance group backends, the health check uses the port - number determined by looking up the backend service's named - port in the instance group's list of named ports. Check the + all backends that can be health checked; for + example,GCE_VM_IP_PORT network endpoint groups and instance + group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the + health check uses the port number specified for each + endpoint in the network endpoint group. For instance group + backends, the health check uses the port number determined + by looking up the backend service's named port in the + instance group's list of named ports. Check the PortSpecification enum for the list of possible values. This field is a member of `oneof`_ ``_port_specification``. @@ -32201,7 +37946,7 @@ class GRPCHealthCheck(proto.Message): class PortSpecification(proto.Enum): r"""Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number - explicitly using the port field in the health check. Supported by + explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service @@ -32213,13 +37958,14 @@ class PortSpecification(proto.Enum): supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health - checked; for example, GCE_VM_IP_PORT network endpoint groups and - instance group backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified for each - endpoint in the network endpoint group. For instance group backends, - the health check uses the port number determined by looking up the - backend service's named port in the instance group's list of named - ports. + checked; for example,GCE_VM_IP_PORT network endpoint groups and + instance group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the health check + uses the port number specified for each endpoint in the network + endpoint group. For instance group backends, the health check uses + the port number determined by looking up the backend service's named + port in the instance group's list of named ports. Values: UNDEFINED_PORT_SPECIFICATION (0): @@ -32267,6 +38013,128 @@ class PortSpecification(proto.Enum): ) +class GRPCTLSHealthCheck(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + grpc_service_name (str): + The gRPC service name for the health check. This field is + optional. The value of grpc_service_name has the following + meanings by convention: + + - Empty service_name means the overall status of all + services at the backend. + + - Non-empty service_name means the health of that gRPC + service, as defined by the owner of the service. + + The grpc_service_name can only be ASCII. + + This field is a member of `oneof`_ ``_grpc_service_name``. + port (int): + The TCP port number to which the health check + prober sends packets. Valid values are 1 through + 65535. + + This field is a member of `oneof`_ ``_port``. + port_specification (str): + Specifies how a port is selected for health checking. Can be + one of the following values: USE_FIXED_PORT: Specifies a + port number explicitly using theport field in the health + check. Supported by backend services for passthrough load + balancers and backend services for proxy load balancers. Not + supported by target pools. The health check supports all + backends supported by the backend service provided the + backend can be health checked. For example, GCE_VM_IP + network endpoint groups, GCE_VM_IP_PORT network endpoint + groups, and instance group backends. USE_NAMED_PORT: Not + supported. USE_SERVING_PORT: Provides an indirect method of + specifying the health check port by referring to the backend + service. Only supported by backend services for proxy load + balancers. Not supported by target pools. Not supported by + backend services for passthrough load balancers. Supports + all backends that can be health checked; for + example,GCE_VM_IP_PORT network endpoint groups and instance + group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the + health check uses the port number specified for each + endpoint in the network endpoint group. For instance group + backends, the health check uses the port number determined + by looking up the backend service's named port in the + instance group's list of named ports. Check the + PortSpecification enum for the list of possible values. + + This field is a member of `oneof`_ ``_port_specification``. + """ + + class PortSpecification(proto.Enum): + r"""Specifies how a port is selected for health checking. Can be one of + the following values: USE_FIXED_PORT: Specifies a port number + explicitly using theport field in the health check. Supported by + backend services for passthrough load balancers and backend services + for proxy load balancers. Not supported by target pools. The health + check supports all backends supported by the backend service + provided the backend can be health checked. For example, GCE_VM_IP + network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and + instance group backends. USE_NAMED_PORT: Not supported. + USE_SERVING_PORT: Provides an indirect method of specifying the + health check port by referring to the backend service. Only + supported by backend services for proxy load balancers. Not + supported by target pools. Not supported by backend services for + passthrough load balancers. Supports all backends that can be health + checked; for example,GCE_VM_IP_PORT network endpoint groups and + instance group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the health check + uses the port number specified for each endpoint in the network + endpoint group. For instance group backends, the health check uses + the port number determined by looking up the backend service's named + port in the instance group's list of named ports. + + Values: + UNDEFINED_PORT_SPECIFICATION (0): + A value indicating that the enum field is not + set. + USE_FIXED_PORT (190235748): + The port number in the health check's port is + used for health checking. Applies to network + endpoint group and instance group backends. + USE_NAMED_PORT (349300671): + Not supported. + USE_SERVING_PORT (362637516): + For network endpoint group backends, the + health check uses the port number specified on + each endpoint in the network endpoint group. For + instance group backends, the health check uses + the port number specified for the backend + service's named port defined in the instance + group's named ports. + """ + UNDEFINED_PORT_SPECIFICATION = 0 + USE_FIXED_PORT = 190235748 + USE_NAMED_PORT = 349300671 + USE_SERVING_PORT = 362637516 + + grpc_service_name: str = proto.Field( + proto.STRING, + number=136533078, + optional=True, + ) + port: int = proto.Field( + proto.INT32, + number=3446913, + optional=True, + ) + port_specification: str = proto.Field( + proto.STRING, + number=51590597, + optional=True, + ) + + class GetAcceleratorTypeRequest(proto.Message): r"""A request message for AcceleratorTypes.Get. See the method description for details. @@ -32527,6 +38395,27 @@ class GetBackendServiceRequest(proto.Message): ) +class GetCrossSiteNetworkRequest(proto.Message): + r"""A request message for CrossSiteNetworks.Get. See the method + description for details. + + Attributes: + cross_site_network (str): + Name of the cross-site network to return. + project (str): + Project ID for this request. + """ + + cross_site_network: str = proto.Field( + proto.STRING, + number=108192469, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + + class GetDiagnosticsInterconnectRequest(proto.Message): r"""A request message for Interconnects.GetDiagnostics. See the method description for details. @@ -32823,6 +38712,35 @@ class GetFromFamilyImageRequest(proto.Message): ) +class GetFutureReservationRequest(proto.Message): + r"""A request message for FutureReservations.Get. See the method + description for details. + + Attributes: + future_reservation (str): + Name of the future reservation to retrieve. + Name should conform to RFC1035. + project (str): + Project ID for this request. + zone (str): + Name of the zone for this request. Name + should conform to RFC1035. + """ + + future_reservation: str = proto.Field( + proto.STRING, + number=56206160, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + class GetGlobalAddressRequest(proto.Message): r"""A request message for GlobalAddresses.Get. See the method description for details. @@ -33296,9 +39214,154 @@ class GetIamPolicyImageRequest(proto.Message): ) -class GetIamPolicyInstanceRequest(proto.Message): - r"""A request message for Instances.GetIamPolicy. See the method - description for details. +class GetIamPolicyInstanceRequest(proto.Message): + r"""A request message for Instances.GetIamPolicy. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + options_requested_policy_version (int): + Requested IAM Policy version. + + This field is a member of `oneof`_ ``_options_requested_policy_version``. + project (str): + Project ID for this request. + resource (str): + Name or id of the resource for this request. + zone (str): + The name of the zone for this request. + """ + + options_requested_policy_version: int = proto.Field( + proto.INT32, + number=499220029, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + +class GetIamPolicyInstanceTemplateRequest(proto.Message): + r"""A request message for InstanceTemplates.GetIamPolicy. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + options_requested_policy_version (int): + Requested IAM Policy version. + + This field is a member of `oneof`_ ``_options_requested_policy_version``. + project (str): + Project ID for this request. + resource (str): + Name or id of the resource for this request. + """ + + options_requested_policy_version: int = proto.Field( + proto.INT32, + number=499220029, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + + +class GetIamPolicyInstantSnapshotRequest(proto.Message): + r"""A request message for InstantSnapshots.GetIamPolicy. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + options_requested_policy_version (int): + Requested IAM Policy version. + + This field is a member of `oneof`_ ``_options_requested_policy_version``. + project (str): + Project ID for this request. + resource (str): + Name or id of the resource for this request. + zone (str): + The name of the zone for this request. + """ + + options_requested_policy_version: int = proto.Field( + proto.INT32, + number=499220029, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + +class GetIamPolicyInterconnectAttachmentGroupRequest(proto.Message): + r"""A request message for + InterconnectAttachmentGroups.GetIamPolicy. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + options_requested_policy_version (int): + Requested IAM Policy version. + + This field is a member of `oneof`_ ``_options_requested_policy_version``. + project (str): + Project ID for this request. + resource (str): + Name or id of the resource for this request. + """ + + options_requested_policy_version: int = proto.Field( + proto.INT32, + number=499220029, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + + +class GetIamPolicyInterconnectGroupRequest(proto.Message): + r"""A request message for InterconnectGroups.GetIamPolicy. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33312,8 +39375,6 @@ class GetIamPolicyInstanceRequest(proto.Message): Project ID for this request. resource (str): Name or id of the resource for this request. - zone (str): - The name of the zone for this request. """ options_requested_policy_version: int = proto.Field( @@ -33329,15 +39390,11 @@ class GetIamPolicyInstanceRequest(proto.Message): proto.STRING, number=195806222, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class GetIamPolicyInstanceTemplateRequest(proto.Message): - r"""A request message for InstanceTemplates.GetIamPolicy. See the - method description for details. +class GetIamPolicyLicenseRequest(proto.Message): + r"""A request message for Licenses.GetIamPolicy. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33368,8 +39425,8 @@ class GetIamPolicyInstanceTemplateRequest(proto.Message): ) -class GetIamPolicyInstantSnapshotRequest(proto.Message): - r"""A request message for InstantSnapshots.GetIamPolicy. See the +class GetIamPolicyMachineImageRequest(proto.Message): + r"""A request message for MachineImages.GetIamPolicy. See the method description for details. @@ -33384,8 +39441,6 @@ class GetIamPolicyInstantSnapshotRequest(proto.Message): Project ID for this request. resource (str): Name or id of the resource for this request. - zone (str): - The name of the zone for this request. """ options_requested_policy_version: int = proto.Field( @@ -33401,16 +39456,11 @@ class GetIamPolicyInstantSnapshotRequest(proto.Message): proto.STRING, number=195806222, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class GetIamPolicyInterconnectAttachmentGroupRequest(proto.Message): - r"""A request message for - InterconnectAttachmentGroups.GetIamPolicy. See the method - description for details. +class GetIamPolicyNetworkAttachmentRequest(proto.Message): + r"""A request message for NetworkAttachments.GetIamPolicy. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33422,6 +39472,8 @@ class GetIamPolicyInterconnectAttachmentGroupRequest(proto.Message): This field is a member of `oneof`_ ``_options_requested_policy_version``. project (str): Project ID for this request. + region (str): + The name of the region for this request. resource (str): Name or id of the resource for this request. """ @@ -33435,15 +39487,19 @@ class GetIamPolicyInterconnectAttachmentGroupRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) resource: str = proto.Field( proto.STRING, number=195806222, ) -class GetIamPolicyInterconnectGroupRequest(proto.Message): - r"""A request message for InterconnectGroups.GetIamPolicy. See - the method description for details. +class GetIamPolicyNetworkFirewallPolicyRequest(proto.Message): + r"""A request message for NetworkFirewallPolicies.GetIamPolicy. + See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33474,8 +39530,8 @@ class GetIamPolicyInterconnectGroupRequest(proto.Message): ) -class GetIamPolicyLicenseRequest(proto.Message): - r"""A request message for Licenses.GetIamPolicy. See the method +class GetIamPolicyNodeGroupRequest(proto.Message): + r"""A request message for NodeGroups.GetIamPolicy. See the method description for details. @@ -33490,6 +39546,8 @@ class GetIamPolicyLicenseRequest(proto.Message): Project ID for this request. resource (str): Name or id of the resource for this request. + zone (str): + The name of the zone for this request. """ options_requested_policy_version: int = proto.Field( @@ -33505,44 +39563,15 @@ class GetIamPolicyLicenseRequest(proto.Message): proto.STRING, number=195806222, ) - - -class GetIamPolicyMachineImageRequest(proto.Message): - r"""A request message for MachineImages.GetIamPolicy. See the - method description for details. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - options_requested_policy_version (int): - Requested IAM Policy version. - - This field is a member of `oneof`_ ``_options_requested_policy_version``. - project (str): - Project ID for this request. - resource (str): - Name or id of the resource for this request. - """ - - options_requested_policy_version: int = proto.Field( - proto.INT32, - number=499220029, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - resource: str = proto.Field( + zone: str = proto.Field( proto.STRING, - number=195806222, + number=3744684, ) -class GetIamPolicyNetworkAttachmentRequest(proto.Message): - r"""A request message for NetworkAttachments.GetIamPolicy. See - the method description for details. +class GetIamPolicyNodeTemplateRequest(proto.Message): + r"""A request message for NodeTemplates.GetIamPolicy. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33579,9 +39608,9 @@ class GetIamPolicyNetworkAttachmentRequest(proto.Message): ) -class GetIamPolicyNetworkFirewallPolicyRequest(proto.Message): - r"""A request message for NetworkFirewallPolicies.GetIamPolicy. - See the method description for details. +class GetIamPolicyRegionBackendServiceRequest(proto.Message): + r"""A request message for RegionBackendServices.GetIamPolicy. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33593,6 +39622,8 @@ class GetIamPolicyNetworkFirewallPolicyRequest(proto.Message): This field is a member of `oneof`_ ``_options_requested_policy_version``. project (str): Project ID for this request. + region (str): + The name of the region for this request. resource (str): Name or id of the resource for this request. """ @@ -33606,53 +39637,18 @@ class GetIamPolicyNetworkFirewallPolicyRequest(proto.Message): proto.STRING, number=227560217, ) - resource: str = proto.Field( - proto.STRING, - number=195806222, - ) - - -class GetIamPolicyNodeGroupRequest(proto.Message): - r"""A request message for NodeGroups.GetIamPolicy. See the method - description for details. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - options_requested_policy_version (int): - Requested IAM Policy version. - - This field is a member of `oneof`_ ``_options_requested_policy_version``. - project (str): - Project ID for this request. - resource (str): - Name or id of the resource for this request. - zone (str): - The name of the zone for this request. - """ - - options_requested_policy_version: int = proto.Field( - proto.INT32, - number=499220029, - optional=True, - ) - project: str = proto.Field( + region: str = proto.Field( proto.STRING, - number=227560217, + number=138946292, ) resource: str = proto.Field( proto.STRING, number=195806222, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class GetIamPolicyNodeTemplateRequest(proto.Message): - r"""A request message for NodeTemplates.GetIamPolicy. See the +class GetIamPolicyRegionDiskRequest(proto.Message): + r"""A request message for RegionDisks.GetIamPolicy. See the method description for details. @@ -33690,9 +39686,9 @@ class GetIamPolicyNodeTemplateRequest(proto.Message): ) -class GetIamPolicyRegionBackendServiceRequest(proto.Message): - r"""A request message for RegionBackendServices.GetIamPolicy. See - the method description for details. +class GetIamPolicyRegionInstantSnapshotRequest(proto.Message): + r"""A request message for RegionInstantSnapshots.GetIamPolicy. + See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33729,9 +39725,10 @@ class GetIamPolicyRegionBackendServiceRequest(proto.Message): ) -class GetIamPolicyRegionDiskRequest(proto.Message): - r"""A request message for RegionDisks.GetIamPolicy. See the - method description for details. +class GetIamPolicyRegionNetworkFirewallPolicyRequest(proto.Message): + r"""A request message for + RegionNetworkFirewallPolicies.GetIamPolicy. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33768,9 +39765,9 @@ class GetIamPolicyRegionDiskRequest(proto.Message): ) -class GetIamPolicyRegionInstantSnapshotRequest(proto.Message): - r"""A request message for RegionInstantSnapshots.GetIamPolicy. - See the method description for details. +class GetIamPolicyReservationBlockRequest(proto.Message): + r"""A request message for ReservationBlocks.GetIamPolicy. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33780,12 +39777,15 @@ class GetIamPolicyRegionInstantSnapshotRequest(proto.Message): Requested IAM Policy version. This field is a member of `oneof`_ ``_options_requested_policy_version``. + parent_resource (str): + Name or id of parent resource of the resource + for this request. project (str): Project ID for this request. - region (str): - The name of the region for this request. resource (str): Name or id of the resource for this request. + zone (str): + The name of the zone for this request. """ options_requested_policy_version: int = proto.Field( @@ -33793,24 +39793,27 @@ class GetIamPolicyRegionInstantSnapshotRequest(proto.Message): number=499220029, optional=True, ) - project: str = proto.Field( + parent_resource: str = proto.Field( proto.STRING, - number=227560217, + number=18091011, ) - region: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=138946292, + number=227560217, ) resource: str = proto.Field( proto.STRING, number=195806222, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class GetIamPolicyRegionNetworkFirewallPolicyRequest(proto.Message): - r"""A request message for - RegionNetworkFirewallPolicies.GetIamPolicy. See the method - description for details. +class GetIamPolicyReservationRequest(proto.Message): + r"""A request message for Reservations.GetIamPolicy. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33822,10 +39825,10 @@ class GetIamPolicyRegionNetworkFirewallPolicyRequest(proto.Message): This field is a member of `oneof`_ ``_options_requested_policy_version``. project (str): Project ID for this request. - region (str): - The name of the region for this request. resource (str): Name or id of the resource for this request. + zone (str): + The name of the zone for this request. """ options_requested_policy_version: int = proto.Field( @@ -33837,19 +39840,19 @@ class GetIamPolicyRegionNetworkFirewallPolicyRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) resource: str = proto.Field( proto.STRING, number=195806222, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class GetIamPolicyReservationRequest(proto.Message): - r"""A request message for Reservations.GetIamPolicy. See the - method description for details. +class GetIamPolicyReservationSubBlockRequest(proto.Message): + r"""A request message for ReservationSubBlocks.GetIamPolicy. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -33859,6 +39862,9 @@ class GetIamPolicyReservationRequest(proto.Message): Requested IAM Policy version. This field is a member of `oneof`_ ``_options_requested_policy_version``. + parent_resource (str): + Name or id of parent resource of the resource + for this request. project (str): Project ID for this request. resource (str): @@ -33872,6 +39878,10 @@ class GetIamPolicyReservationRequest(proto.Message): number=499220029, optional=True, ) + parent_resource: str = proto.Field( + proto.STRING, + number=18091011, + ) project: str = proto.Field( proto.STRING, number=227560217, @@ -34133,7 +40143,7 @@ class GetInstanceGroupManagerRequest(proto.Message): project (str): Project ID for this request. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -34157,13 +40167,15 @@ class GetInstanceGroupManagerResizeRequestRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. Name - should conform to RFC1035 or be a resource ID. + The name of the managed instance group. + Name should conform to RFC1035 or be a resource + ID. project (str): Project ID for this request. resize_request (str): - The name of the resize request. Name should - conform to RFC1035 or be a resource ID. + The name of the resize request. + Name should conform to RFC1035 or be a resource + ID. zone (str): Name of the href="/compute/docs/regions-zones/#available">zone @@ -34199,8 +40211,8 @@ class GetInstanceGroupRequest(proto.Message): project (str): Project ID for this request. zone (str): - The name of the zone where the instance group - is located. + The name of the zone + where the instance group is located. """ instance_group: str = proto.Field( @@ -34620,42 +40632,69 @@ class GetNatMappingInfoRoutersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -34677,13 +40716,17 @@ class GetNatMappingInfoRoutersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -34700,10 +40743,11 @@ class GetNatMappingInfoRoutersRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -34823,9 +40867,9 @@ class GetNetworkEndpointGroupRequest(proto.Message): project (str): Project ID for this request. zone (str): - The name of the zone where the network - endpoint group is located. It should comply with - RFC1035. + The name of the zone where + the network endpoint group is located. It should + comply with RFC1035. """ network_endpoint_group: str = proto.Field( @@ -35511,9 +41555,9 @@ class GetRegionNetworkEndpointGroupRequest(proto.Message): project (str): Project ID for this request. region (str): - The name of the region where the network - endpoint group is located. It should comply with - RFC1035. + The name of the region where + the network endpoint group is located. It should + comply with RFC1035. """ network_endpoint_group: str = proto.Field( @@ -35840,11 +41884,13 @@ class GetReservationBlockRequest(proto.Message): project (str): Project ID for this request. reservation (str): - The name of the reservation. Name should - conform to RFC1035 or be a resource ID. + The name of the reservation. + Name should conform to RFC1035 or be a resource + ID. reservation_block (str): - The name of the reservation block. Name - should conform to RFC1035 or be a resource ID. + The name of the reservation block. + Name should conform to RFC1035 or be a resource + ID. view (str): View of the Block. Check the View enum for the list of possible @@ -35931,6 +41977,9 @@ class GetReservationSubBlockRequest(proto.Message): r"""A request message for ReservationSubBlocks.Get. See the method description for details. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: parent_name (str): The name of the parent reservation and parent block. In the @@ -35939,13 +41988,41 @@ class GetReservationSubBlockRequest(proto.Message): project (str): Project ID for this request. reservation_sub_block (str): - The name of the reservation subBlock. Name - should conform to RFC1035 or be a resource ID. + The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource + ID. + view (str): + View of the subBlock. + Check the View enum for the list of possible + values. + + This field is a member of `oneof`_ ``_view``. zone (str): Name of the zone for this request. Zone name should conform to RFC1035. """ + class View(proto.Enum): + r"""View of the subBlock. + + Values: + UNDEFINED_VIEW (0): + A value indicating that the enum field is not + set. + SUB_BLOCK_VIEW_BASIC (236009797): + This view includes basic information about + the reservation sub block + SUB_BLOCK_VIEW_FULL (440711800): + Includes detailed topology view. + SUB_BLOCK_VIEW_UNSPECIFIED (246642446): + The default / unset value. The API will + default to the BASIC view. + """ + UNDEFINED_VIEW = 0 + SUB_BLOCK_VIEW_BASIC = 236009797 + SUB_BLOCK_VIEW_FULL = 440711800 + SUB_BLOCK_VIEW_UNSPECIFIED = 246642446 + parent_name: str = proto.Field( proto.STRING, number=478151936, @@ -35958,6 +42035,11 @@ class GetReservationSubBlockRequest(proto.Message): proto.STRING, number=22750491, ) + view: str = proto.Field( + proto.STRING, + number=3619493, + optional=True, + ) zone: str = proto.Field( proto.STRING, number=3744684, @@ -36386,21 +42468,23 @@ class GetSerialPortOutputInstanceRequest(proto.Message): start (int): Specifies the starting byte position of the output to return. To start with the first byte of output to the - specified port, omit this field or set it to ``0``. If the - output for that byte position is available, this field - matches the ``start`` parameter sent with the request. If - the amount of serial console output exceeds the size of the - buffer (1 MB), the oldest output is discarded and is no + specified port, omit this field or set it to ``0``. + + If the output for that byte position is available, this + field matches the ``start`` parameter sent with the request. + If the amount of serial console output exceeds the size of + the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start - position is returned as the ``start`` property value. You - can also provide a negative start position, which translates - to the most recent number of bytes written to the serial - port. For example, -3 is interpreted as the most recent 3 - bytes written to the serial console. Note that the negative - start is bounded by the retained buffer size, and the - returned serial console output will not exceed the max + position is returned as the ``start`` property value. + + You can also provide a negative start position, which + translates to the most recent number of bytes written to the + serial port. For example, -3 is interpreted as the most + recent 3 bytes written to the serial console. Note that the + negative start is bounded by the retained buffer size, and + the returned serial console output will not exceed the max buffer size. This field is a member of `oneof`_ ``_start``. @@ -36679,17 +42763,26 @@ class GetSubnetworkRequest(proto.Message): Name of the Subnetwork resource to return. views (str): Defines the extra views returned back in the subnetwork - resource. Supported values: - WITH_UTILIZATION: Utilization - data is included in the response. Check the Views enum for - the list of possible values. + resource. Supported values: + + :: + + - WITH_UTILIZATION: Utilization data is included in the + response. + + Check the Views enum for the list of possible values. This field is a member of `oneof`_ ``_views``. """ class Views(proto.Enum): r"""Defines the extra views returned back in the subnetwork resource. - Supported values: - WITH_UTILIZATION: Utilization data is included - in the response. + Supported values: + + :: + + - WITH_UTILIZATION: Utilization data is included in the + response. Values: UNDEFINED_VIEWS (0): @@ -36990,6 +43083,33 @@ class GetVpnTunnelRequest(proto.Message): ) +class GetWireGroupRequest(proto.Message): + r"""A request message for WireGroups.Get. See the method + description for details. + + Attributes: + cross_site_network (str): + + project (str): + Project ID for this request. + wire_group (str): + Name of the wire group resource to return. + """ + + cross_site_network: str = proto.Field( + proto.STRING, + number=108192469, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + wire_group: str = proto.Field( + proto.STRING, + number=122540613, + ) + + class GetXpnHostProjectRequest(proto.Message): r"""A request message for Projects.GetXpnHost. See the method description for details. @@ -37019,42 +43139,69 @@ class GetXpnResourcesProjectsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -37069,13 +43216,17 @@ class GetXpnResourcesProjectsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -37090,10 +43241,11 @@ class GetXpnResourcesProjectsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -37194,13 +43346,16 @@ class GlobalAddressesMoveRequest(proto.Message): The URL of the destination address to move to. This can be a full or partial URL. For example, the following are all valid URLs to a - address: - - https://www.googleapis.com/compute/v1/projects/project - /global/addresses/address - - projects/project/global/addresses/address Note - that destination project must be different from - the source project. So /global/addresses/address - is not valid partial url. + address: + + - + https://www.googleapis.com/compute/v1/projects/project/global/addresses/address + - projects/project/global/addresses/address + + Note that destination project must be different + from the source project. + So/global/addresses/address is not valid partial + url. This field is a member of `oneof`_ ``_destination_address``. """ @@ -37305,17 +43460,17 @@ class GlobalSetLabelsRequest(proto.Message): or update labels. You must always provide an up-to-date fingerprint hash when updating or changing labels, otherwise the request will fail - with error 412 conditionNotMet. Make a get() + with error412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): A list of labels to apply for this resource. - Each label must comply with the requirements for - labels. For example, "webserver-frontend": - "images". A label value can also be empty (e.g. - "my-label": ""). + Each label must comply with the + requirements for labels. For + example,"webserver-frontend": "images". A label + value can also be empty (e.g. "my-label": ""). """ label_fingerprint: str = proto.Field( @@ -37419,11 +43574,12 @@ class GroupMaintenanceInfo(proto.Message): This field is a member of `oneof`_ ``_subblock_infra_maintenance_ongoing_count``. subblock_infra_maintenance_pending_count (int): Describes number of subblock Infrastructure - that has pending maintenance. Here, Subblock + that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream - hardware contained in the Subblock that is - necessary for a VM Family (e.g. NVLink Domains). - Not all VM Families will support this field. + hardware contained in the Subblock that is + necessary for a VM Family (e.g. NVLink + Domains). Not all VM Families will support this + field. This field is a member of `oneof`_ ``_subblock_infra_maintenance_pending_count``. upcoming_group_maintenance (google.cloud.compute_v1.types.UpcomingMaintenance): @@ -37504,8 +43660,8 @@ class GuestAttributes(proto.Message): Attributes: kind (str): - [Output Only] Type of the resource. Always - compute#guestAttributes for guest attributes entry. + Output only. [Output Only] Type of the resource. + Alwayscompute#guestAttributes for guest attributes entry. This field is a member of `oneof`_ ``_kind``. query_path (str): @@ -37515,11 +43671,13 @@ class GuestAttributes(proto.Message): This field is a member of `oneof`_ ``_query_path``. query_value (google.cloud.compute_v1.types.GuestAttributesValue): - [Output Only] The value of the requested queried path. + Output only. [Output Only] The value of the requested + queried path. This field is a member of `oneof`_ ``_query_value``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. variable_key (str): @@ -37527,7 +43685,8 @@ class GuestAttributes(proto.Message): This field is a member of `oneof`_ ``_variable_key``. variable_value (str): - [Output Only] The value found for the requested key. + Output only. [Output Only] The value found for the requested + key. This field is a member of `oneof`_ ``_variable_value``. """ @@ -37626,11 +43785,24 @@ class GuestOsFeature(proto.Message): type_ (str): The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the - following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE_V2 - - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - SNP_SVSM_CAPABLE For - more information, see Enabling guest operating system + following values: + + :: + + - VIRTIO_SCSI_MULTIQUEUE + - WINDOWS + - MULTI_IP_SUBNET + - UEFI_COMPATIBLE + - GVNIC + - SEV_CAPABLE + - SUSPEND_RESUME_COMPATIBLE + - SEV_LIVE_MIGRATABLE_V2 + - SEV_SNP_CAPABLE + - TDX_CAPABLE + - IDPF + - SNP_SVSM_CAPABLE + + For more information, see Enabling guest operating system features. Check the Type enum for the list of possible values. @@ -37639,12 +43811,24 @@ class GuestOsFeature(proto.Message): class Type(proto.Enum): r"""The ID of a supported feature. To add multiple values, use commas to - separate values. Set to one or more of the following values: - - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - - SEV_LIVE_MIGRATABLE_V2 - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF - - SNP_SVSM_CAPABLE For more information, see Enabling guest operating - system features. + separate values. Set to one or more of the following values: + + :: + + - VIRTIO_SCSI_MULTIQUEUE + - WINDOWS + - MULTI_IP_SUBNET + - UEFI_COMPATIBLE + - GVNIC + - SEV_CAPABLE + - SUSPEND_RESUME_COMPATIBLE + - SEV_LIVE_MIGRATABLE_V2 + - SEV_SNP_CAPABLE + - TDX_CAPABLE + - IDPF + - SNP_SVSM_CAPABLE + + For more information, see Enabling guest operating system features. Values: UNDEFINED_TYPE (0): @@ -37719,13 +43903,14 @@ class HTTP2HealthCheck(proto.Message): packets are sent. The destination IP address depends on the type of load balancer. For details, see: + https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest This field is a member of `oneof`_ ``_host``. port (int): The TCP port number to which the health check prober sends packets. The default value is 443. - Valid values are 1 through 65535. + Valid values are 1 through65535. This field is a member of `oneof`_ ``_port``. port_name (str): @@ -37735,7 +43920,7 @@ class HTTP2HealthCheck(proto.Message): port_specification (str): Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a - port number explicitly using the port field in the health + port number explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all @@ -37748,14 +43933,16 @@ class HTTP2HealthCheck(proto.Message): service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports - all backends that can be health checked; for example, - GCE_VM_IP_PORT network endpoint groups and instance group - backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified - for each endpoint in the network endpoint group. For - instance group backends, the health check uses the port - number determined by looking up the backend service's named - port in the instance group's list of named ports. Check the + all backends that can be health checked; for + example,GCE_VM_IP_PORT network endpoint groups and instance + group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the + health check uses the port number specified for each + endpoint in the network endpoint group. For instance group + backends, the health check uses the port number determined + by looking up the backend service's named port in the + instance group's list of named ports. Check the PortSpecification enum for the list of possible values. This field is a member of `oneof`_ ``_port_specification``. @@ -37768,8 +43955,8 @@ class HTTP2HealthCheck(proto.Message): This field is a member of `oneof`_ ``_proxy_header``. request_path (str): The request path of the HTTP/2 health check - request. The default value is /. Must comply - with RFC3986. + request. The default value is/. Must comply + withRFC3986. This field is a member of `oneof`_ ``_request_path``. response (str): @@ -37779,6 +43966,7 @@ class HTTP2HealthCheck(proto.Message): only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http This field is a member of `oneof`_ ``_response``. @@ -37787,7 +43975,7 @@ class HTTP2HealthCheck(proto.Message): class PortSpecification(proto.Enum): r"""Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number - explicitly using the port field in the health check. Supported by + explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service @@ -37799,13 +43987,14 @@ class PortSpecification(proto.Enum): supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health - checked; for example, GCE_VM_IP_PORT network endpoint groups and - instance group backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified for each - endpoint in the network endpoint group. For instance group backends, - the health check uses the port number determined by looking up the - backend service's named port in the instance group's list of named - ports. + checked; for example,GCE_VM_IP_PORT network endpoint groups and + instance group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the health check + uses the port number specified for each endpoint in the network + endpoint group. For instance group backends, the health check uses + the port number determined by looking up the backend service's named + port in the instance group's list of named ports. Values: UNDEFINED_PORT_SPECIFICATION (0): @@ -37899,13 +44088,14 @@ class HTTPHealthCheck(proto.Message): packets are sent. The destination IP address depends on the type of load balancer. For details, see: + https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest This field is a member of `oneof`_ ``_host``. port (int): The TCP port number to which the health check prober sends packets. The default value is 80. - Valid values are 1 through 65535. + Valid values are 1 through65535. This field is a member of `oneof`_ ``_port``. port_name (str): @@ -37915,13 +44105,13 @@ class HTTPHealthCheck(proto.Message): port_specification (str): Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a - port number explicitly using the port field in the health + port number explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health - checked. For example, GCE_VM_IP network endpoint groups, + checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check @@ -37929,15 +44119,16 @@ class HTTPHealthCheck(proto.Message): backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can - be health checked; for example, GCE_VM_IP_PORT network - endpoint groups and instance group backends. For - GCE_VM_IP_PORT network endpoint group backends, the health - check uses the port number specified for each endpoint in - the network endpoint group. For instance group backends, the - health check uses the port number determined by looking up - the backend service's named port in the instance group's - list of named ports. Check the PortSpecification enum for - the list of possible values. + be health checked; for example,GCE_VM_IP_PORT network + endpoint groups and instance group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the + health check uses the port number specified for each + endpoint in the network endpoint group. For instance group + backends, the health check uses the port number determined + by looking up the backend service's named port in the + instance group's list of named ports. Check the + PortSpecification enum for the list of possible values. This field is a member of `oneof`_ ``_port_specification``. proxy_header (str): @@ -37949,8 +44140,8 @@ class HTTPHealthCheck(proto.Message): This field is a member of `oneof`_ ``_proxy_header``. request_path (str): The request path of the HTTP health check - request. The default value is /. Must comply - with RFC3986. + request. The default value is/. Must comply + withRFC3986. This field is a member of `oneof`_ ``_request_path``. response (str): @@ -37960,6 +44151,7 @@ class HTTPHealthCheck(proto.Message): only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http This field is a member of `oneof`_ ``_response``. @@ -37968,21 +44160,22 @@ class HTTPHealthCheck(proto.Message): class PortSpecification(proto.Enum): r"""Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number - explicitly using the port field in the health check. Supported by + explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health - checked. For example, GCE_VM_IP network endpoint groups, + checked. For example,GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all - backends that can be health checked; for example, GCE_VM_IP_PORT - network endpoint groups and instance group backends. For - GCE_VM_IP_PORT network endpoint group backends, the health check + backends that can be health checked; for example,GCE_VM_IP_PORT + network endpoint groups and instance group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named @@ -38080,13 +44273,14 @@ class HTTPSHealthCheck(proto.Message): packets are sent. The destination IP address depends on the type of load balancer. For details, see: + https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest This field is a member of `oneof`_ ``_host``. port (int): The TCP port number to which the health check prober sends packets. The default value is 443. - Valid values are 1 through 65535. + Valid values are 1 through65535. This field is a member of `oneof`_ ``_port``. port_name (str): @@ -38096,7 +44290,7 @@ class HTTPSHealthCheck(proto.Message): port_specification (str): Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a - port number explicitly using the port field in the health + port number explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all @@ -38109,14 +44303,16 @@ class HTTPSHealthCheck(proto.Message): service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports - all backends that can be health checked; for example, - GCE_VM_IP_PORT network endpoint groups and instance group - backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified - for each endpoint in the network endpoint group. For - instance group backends, the health check uses the port - number determined by looking up the backend service's named - port in the instance group's list of named ports. Check the + all backends that can be health checked; for + example,GCE_VM_IP_PORT network endpoint groups and instance + group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the + health check uses the port number specified for each + endpoint in the network endpoint group. For instance group + backends, the health check uses the port number determined + by looking up the backend service's named port in the + instance group's list of named ports. Check the PortSpecification enum for the list of possible values. This field is a member of `oneof`_ ``_port_specification``. @@ -38129,8 +44325,8 @@ class HTTPSHealthCheck(proto.Message): This field is a member of `oneof`_ ``_proxy_header``. request_path (str): The request path of the HTTPS health check - request. The default value is /. Must comply - with RFC3986. + request. The default value is/. Must comply + withRFC3986. This field is a member of `oneof`_ ``_request_path``. response (str): @@ -38140,6 +44336,7 @@ class HTTPSHealthCheck(proto.Message): only when the backend sends this specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see: + https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http This field is a member of `oneof`_ ``_response``. @@ -38148,7 +44345,7 @@ class HTTPSHealthCheck(proto.Message): class PortSpecification(proto.Enum): r"""Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number - explicitly using the port field in the health check. Supported by + explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service @@ -38160,13 +44357,14 @@ class PortSpecification(proto.Enum): supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health - checked; for example, GCE_VM_IP_PORT network endpoint groups and - instance group backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified for each - endpoint in the network endpoint group. For instance group backends, - the health check uses the port number determined by looking up the - backend service's named port in the instance group's list of named - ports. + checked; for example,GCE_VM_IP_PORT network endpoint groups and + instance group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the health check + uses the port number specified for each endpoint in the network + endpoint group. For instance group backends, the health check uses + the port number determined by looking up the backend service's named + port in the instance group's list of named ports. Values: UNDEFINED_PORT_SPECIFICATION (0): @@ -38247,20 +44445,30 @@ class ProxyHeader(proto.Enum): class HealthCheck(proto.Message): - r"""Represents a health check resource. Google Compute Engine has two - health check resources: \* - `Regional `__ \* - `Global `__ These - health check resources can be used for load balancing and for - autohealing VMs in a managed instance group (MIG). **Load - balancing** Health check requirements vary depending on the type of - load balancer. For details about the type of health check supported - for each load balancer and corresponding backend type, see Health - checks overview: Load balancer guide. **Autohealing in MIGs** The - health checks that you use for autohealing VMs in a MIG can be + r"""Represents a health check resource. + + Google Compute Engine has two health check resources: + + - `Regional `__ + - `Global `__ + + These health check resources can be used for load balancing and for + autohealing VMs in a managed instance group (MIG). + + **Load balancing** + + Health check requirements vary depending on the type of load + balancer. For details about the type of health check supported for + each load balancer and corresponding backend type, see Health checks + overview: Load balancer guide. + + **Autohealing in MIGs** + + The health checks that you use for autohealing VMs in a MIG can be either regional or global. For more information, see Set up an - application health check and autohealing. For more information, see - Health checks overview. + application health check and autohealing. + + For more information, seeHealth checks overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -38272,7 +44480,8 @@ class HealthCheck(proto.Message): This field is a member of `oneof`_ ``_check_interval_sec``. creation_timestamp (str): - [Output Only] Creation timestamp in 3339 text format. + Output only. [Output Only] Creation timestamp in3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -38284,6 +44493,9 @@ class HealthCheck(proto.Message): grpc_health_check (google.cloud.compute_v1.types.GRPCHealthCheck): This field is a member of `oneof`_ ``_grpc_health_check``. + grpc_tls_health_check (google.cloud.compute_v1.types.GRPCTLSHealthCheck): + + This field is a member of `oneof`_ ``_grpc_tls_health_check``. healthy_threshold (int): A so-far unhealthy instance will be marked healthy after this many consecutive successes. @@ -38305,7 +44517,7 @@ class HealthCheck(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - Type of the resource. + Output only. Type of the resource. This field is a member of `oneof`_ ``_kind``. log_config (google.cloud.compute_v1.types.HealthCheckLogConfig): @@ -38315,7 +44527,7 @@ class HealthCheck(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. For example, a name that is 1-63 + and comply withRFC1035. For example, a name that is 1-63 characters long, matches the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?``, and otherwise complies with RFC1035. This regular expression describes a name where the @@ -38325,8 +44537,8 @@ class HealthCheck(proto.Message): This field is a member of `oneof`_ ``_name``. region (str): - [Output Only] Region where the health check resides. Not - applicable to global health checks. + Output only. [Output Only] Region where the health check + resides. Not applicable to global health checks. This field is a member of `oneof`_ ``_region``. self_link (str): @@ -38342,15 +44554,18 @@ class HealthCheck(proto.Message): for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what - other resources can use this health check: - - SSL, HTTP2, and GRPC protocols are not - supported. - The TCP request field is not - supported. - The proxyHeader field for HTTP, - HTTPS, and TCP is not supported. - The - checkIntervalSec field must be at least 30. - - The health check cannot be used with - BackendService nor with managed instance group - auto-healing. + other resources can use this health check: + + - SSL, HTTP2, and GRPC protocols are not + supported. + - The TCP request field is not supported. + - The proxyHeader field for HTTP, HTTPS, and + TCP is not supported. + - The checkIntervalSec field must be at least + 30. + - The health check cannot be used with + BackendService nor with managed instance + group auto-healing. ssl_health_check (google.cloud.compute_v1.types.SSLHealthCheck): This field is a member of `oneof`_ ``_ssl_health_check``. @@ -38366,9 +44581,9 @@ class HealthCheck(proto.Message): This field is a member of `oneof`_ ``_timeout_sec``. type_ (str): Specifies the type of the healthCheck, either - TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly - one of the protocol-specific health check fields - must be specified, which must match type field. + TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC. Exactly one + of the protocol-specific health check fields + must be specified, which must matchtype field. Check the Type enum for the list of possible values. @@ -38382,10 +44597,9 @@ class HealthCheck(proto.Message): """ class Type(proto.Enum): - r"""Specifies the type of the healthCheck, either TCP, SSL, HTTP, - HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific - health check fields must be specified, which must match type - field. + r"""Specifies the type of the healthCheck, either TCP,SSL, HTTP, + HTTPS,HTTP2 or GRPC. Exactly one of the protocol-specific health + check fields must be specified, which must matchtype field. Values: UNDEFINED_TYPE (0): @@ -38393,6 +44607,8 @@ class Type(proto.Enum): set. GRPC (2196510): No description available. + GRPC_WITH_TLS (268089571): + No description available. HTTP (2228360): No description available. HTTP2 (69079210): @@ -38408,6 +44624,7 @@ class Type(proto.Enum): """ UNDEFINED_TYPE = 0 GRPC = 2196510 + GRPC_WITH_TLS = 268089571 HTTP = 2228360 HTTP2 = 69079210 HTTPS = 69079243 @@ -38436,6 +44653,12 @@ class Type(proto.Enum): optional=True, message="GRPCHealthCheck", ) + grpc_tls_health_check: "GRPCTLSHealthCheck" = proto.Field( + proto.MESSAGE, + number=267273258, + optional=True, + message="GRPCTLSHealthCheck", + ) healthy_threshold: int = proto.Field( proto.INT32, number=403212361, @@ -38537,20 +44760,21 @@ class HealthCheckList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.HealthCheck]): A list of HealthCheck resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -38621,10 +44845,12 @@ class HealthCheckLogConfig(proto.Message): class HealthCheckReference(proto.Message): r"""A full or valid partial URL to a health check. For example, - the following are valid URLs: - - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check - - projects/project-id/global/httpHealthChecks/health-check - - global/httpHealthChecks/health-check + the following are valid URLs: + + - + https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check + - projects/project-id/global/httpHealthChecks/health-check + - global/httpHealthChecks/health-check .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -38649,7 +44875,8 @@ class HealthCheckService(proto.Message): Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -38673,44 +44900,47 @@ class HealthCheckService(proto.Message): This field is a member of `oneof`_ ``_fingerprint``. health_checks (MutableSequence[str]): A list of URLs to the HealthCheck resources. Must have at - least one HealthCheck, and not more than 10 for regional - HealthCheckService, and not more than 1 for global - HealthCheckService. HealthCheck resources must have - portSpecification=USE_SERVING_PORT or - portSpecification=USE_FIXED_PORT. For regional - HealthCheckService, the HealthCheck must be regional and in - the same region. For global HealthCheckService, HealthCheck - must be global. Mix of regional and global HealthChecks is - not supported. Multiple regional HealthChecks must belong to - the same region. Regional HealthChecks must belong to the - same region as zones of NetworkEndpointGroups. For global - HealthCheckService using global INTERNET_IP_PORT + least one HealthCheck, and not more than 10 for + regionalHealthCheckService, and not more than 1 for + globalHealthCheckService.HealthCheck resources must + haveportSpecification=USE_SERVING_PORT + orportSpecification=USE_FIXED_PORT. For regional + HealthCheckService, theHealthCheck must be regional and in + the same region. For global HealthCheckService,HealthCheck + must be global. Mix of regional and globalHealthChecks is + not supported. Multiple regionalHealthChecks must belong to + the same region. RegionalHealthChecks must belong to the + same region as zones ofNetworkEndpointGroups. For + globalHealthCheckService using globalINTERNET_IP_PORT NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks that specify sourceRegions - can only be used with global INTERNET_IP_PORT - NetworkEndpointGroups. + can only be used with global + INTERNET_IP_PORTNetworkEndpointGroups. health_status_aggregation_policy (str): Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to - NO_AGGREGATION if unspecified. - NO_AGGREGATION. An - EndpointHealth message is returned for each pair in the - health check service. - AND. If any health check of an - endpoint reports UNHEALTHY, then UNHEALTHY is the - HealthState of the endpoint. If all health checks report - HEALTHY, the HealthState of the endpoint is HEALTHY. . This - is only allowed with regional HealthCheckService. Check the - HealthStatusAggregationPolicy enum for the list of possible - values. + NO_AGGREGATION if unspecified. + + :: + + - NO_AGGREGATION. An EndpointHealth message is + returned for each pair in the health check + service. + - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. + + . This is only allowed with regional HealthCheckService. + Check the HealthStatusAggregationPolicy enum for the list of + possible values. This field is a member of `oneof`_ ``_health_status_aggregation_policy``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output only] Type of the resource. Always - compute#healthCheckServicefor health check services. + Output only. [Output only] Type of the resource. + Alwayscompute#healthCheckServicefor health check services. This field is a member of `oneof`_ ``_kind``. name (str): @@ -38725,29 +44955,30 @@ class HealthCheckService(proto.Message): This field is a member of `oneof`_ ``_name``. network_endpoint_groups (MutableSequence[str]): A list of URLs to the NetworkEndpointGroup resources. Must - not have more than 100. For regional HealthCheckService, - NEGs must be in zones in the region of the - HealthCheckService. For global HealthCheckServices, the - NetworkEndpointGroups must be global INTERNET_IP_PORT. + not have more than 100. For regionalHealthCheckService, NEGs + must be in zones in the region of the HealthCheckService. + For globalHealthCheckServices, the NetworkEndpointGroups + must be global INTERNET_IP_PORT. notification_endpoints (MutableSequence[str]): A list of URLs to the NotificationEndpoint - resources. Must not have more than 10. A list of - endpoints for receiving notifications of change - in health status. For regional - HealthCheckService, NotificationEndpoint must be - regional and in the same region. For global - HealthCheckService, NotificationEndpoint must be - global. + resources. Must not have more than 10. A list + of endpoints for receiving notifications of + change in health status. For + regionalHealthCheckService,NotificationEndpoint + must be regional and in the same region. For + global HealthCheckService,NotificationEndpoint + must be global. region (str): - [Output Only] URL of the region where the health check - service resides. This field is not applicable to global - health check services. You must specify this field as part - of the HTTP request URL. It is not settable as a field in - the request body. + Output only. [Output Only] URL of the region where the + health check service resides. This field is not applicable + to global health check services. You must specify this field + as part of the HTTP request URL. It is not settable as a + field in the request body. This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. """ @@ -38755,12 +44986,16 @@ class HealthCheckService(proto.Message): class HealthStatusAggregationPolicy(proto.Enum): r"""Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if - unspecified. - NO_AGGREGATION. An EndpointHealth message is returned - for each pair in the health check service. - AND. If any health - check of an endpoint reports UNHEALTHY, then UNHEALTHY is the - HealthState of the endpoint. If all health checks report HEALTHY, - the HealthState of the endpoint is HEALTHY. . This is only allowed - with regional HealthCheckService. + unspecified. + + :: + + - NO_AGGREGATION. An EndpointHealth message is + returned for each pair in the health check + service. + - AND. If any health check of an endpoint reportsUNHEALTHY, then UNHEALTHY is theHealthState of the endpoint. If all health checks reportHEALTHY, the HealthState of the endpoint isHEALTHY. + + . This is only allowed with regional HealthCheckService. Values: UNDEFINED_HEALTH_STATUS_AGGREGATION_POLICY (0): @@ -38771,7 +45006,7 @@ class HealthStatusAggregationPolicy(proto.Enum): UNHEALTHY, then UNHEALTHY is the HealthState of the entire health check service. If all backend's are healthy, the HealthState of the - health check service is HEALTHY. + health check service isHEALTHY. NO_AGGREGATION (426445124): An EndpointHealth message is returned for each backend in the health check service. @@ -38841,11 +45076,13 @@ class HealthStatusAggregationPolicy(proto.Enum): class HealthCheckServiceReference(proto.Message): r"""A full or valid partial URL to a health check service. For - example, the following are valid URLs: - - https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/healthCheckServices/health-check-service - - - projects/project-id/regions/us-west1/healthCheckServices/health-check-service - - regions/us-west1/healthCheckServices/health-check-service + example, the following are valid URLs: + + - + https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/healthCheckServices/health-check-service + - + projects/project-id/regions/us-west1/healthCheckServices/health-check-service + - regions/us-west1/healthCheckServices/health-check-service .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -38870,29 +45107,31 @@ class HealthCheckServicesList(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.HealthCheckService]): - A list of HealthCheckService resources. + Output only. A list of HealthCheckService + resources. kind (str): - [Output Only] Type of the resource. Always - compute#healthCheckServicesList for lists of + Output only. [Output Only] Type of the resource. + Alwayscompute#healthCheckServicesList for lists of HealthCheckServices. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -38952,24 +45191,25 @@ class HealthChecksAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.HealthChecksScopedList]): A list of HealthChecksScopedList resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -39285,8 +45525,9 @@ class HealthStatusForNetworkEndpoint(proto.Message): class HealthState(proto.Enum): r"""Health state of the network endpoint determined based on the - health checks configured. Additional supported values which may - be not listed in the enum directly due to technical reasons: + health checks configured. + Additional supported values which may be not listed in the enum + directly due to technical reasons: DRAINING HEALTHY @@ -39314,8 +45555,9 @@ class HealthState(proto.Enum): class Ipv6HealthState(proto.Enum): r"""Health state of the ipv6 network endpoint determined based on - the health checks configured. Additional supported values which - may be not listed in the enum directly due to technical reasons: + the health checks configured. + Additional supported values which may be not listed in the enum + directly due to technical reasons: DRAINING HEALTHY @@ -39367,10 +45609,11 @@ class Ipv6HealthState(proto.Enum): class Help(proto.Message): r"""Provides links to documentation or for performing an out of - band action. For example, if a quota check failed with an error - indicating the calling project hasn't enabled the accessed - service, this can contain a URL pointing directly to the right - place in the developer console to flip the bit. + band action. + For example, if a quota check failed with an error indicating + the calling project hasn't enabled the accessed service, this + can contain a URL pointing directly to the right place in the + developer console to flip the bit. Attributes: links (MutableSequence[google.cloud.compute_v1.types.HelpLink]): @@ -39414,8 +45657,9 @@ class HelpLink(proto.Message): class HostRule(proto.Message): - r"""UrlMaps A host-matching rule for a URL. If matched, will use - the named PathMatcher to select the BackendService. + r"""UrlMaps + A host-matching rule for a URL. If matched, will use the + namedPathMatcher to select the BackendService. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -39430,12 +45674,14 @@ class HostRule(proto.Message): hosts (MutableSequence[str]): The list of host patterns to match. They must be valid hostnames with optional port numbers in the format - host:port. \* matches any string of ([a-z0-9-.]\*). In that + host:port.\* matches any string of ([a-z0-9-.]\*). In that case, \* must be the first character, and if followed by anything, the immediate following character must be either - - or .. \* based matching is not supported when the URL map is - bound to a target gRPC proxy that has the - validateForProxyless field set to true. + or .. + + - based matching is not supported when the URL map is bound + to a target gRPC proxy that has the validateForProxyless + field set to true. path_matcher (str): The name of the PathMatcher to use to match the path portion of the URL if the hostRule @@ -39470,19 +45716,22 @@ class HttpFaultAbort(proto.Message): Attributes: http_status (int): The HTTP status code used to abort the - request. The value must be from 200 to 599 - inclusive. For gRPC protocol, the gRPC status - code is mapped to HTTP status code according to - this mapping table. HTTP status 200 is mapped to - gRPC status UNKNOWN. Injecting an OK status is + request. + The value must be from 200 to 599 inclusive. + + For gRPC protocol, the gRPC status code is + mapped to HTTP status code according to this + mapping table. HTTP status 200 is mapped to gRPC + status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director. This field is a member of `oneof`_ ``_http_status``. percentage (float): The percentage of traffic for connections, operations, or requests that is aborted as part - of fault injection. The value must be from 0.0 - to 100.0 inclusive. + of fault injection. + + The value must be from 0.0 to 100.0 inclusive. This field is a member of `oneof`_ ``_percentage``. """ @@ -39516,8 +45765,9 @@ class HttpFaultDelay(proto.Message): percentage (float): The percentage of traffic for connections, operations, or requests for which a delay is - introduced as part of fault injection. The value - must be from 0.0 to 100.0 inclusive. + introduced as part of fault injection. + + The value must be from 0.0 to 100.0 inclusive. This field is a member of `oneof`_ ``_percentage``. """ @@ -39583,7 +45833,7 @@ class HttpHeaderAction(proto.Message): Attributes: request_headers_to_add (MutableSequence[google.cloud.compute_v1.types.HttpHeaderOption]): Headers to add to a matching request before - forwarding the request to the backendService. + forwarding the request to thebackendService. request_headers_to_remove (MutableSequence[str]): A list of header names for headers that need to be removed from the request before forwarding @@ -39625,22 +45875,28 @@ class HttpHeaderMatch(proto.Message): Attributes: exact_match (str): The value should exactly match contents of - exactMatch. Only one of exactMatch, prefixMatch, - suffixMatch, regexMatch, presentMatch or - rangeMatch must be set. + exactMatch. + Only one of exactMatch, prefixMatch,suffixMatch, + regexMatch,presentMatch or rangeMatch must be + set. This field is a member of `oneof`_ ``_exact_match``. header_name (str): - The name of the HTTP header to match. For matching against - the HTTP request's authority, use a headerMatch with the - header name ":authority". For matching a request's method, - use the headerName ":method". When the URL map is bound to a - target gRPC proxy that has the validateForProxyless field - set to true, only non-binary user-specified custom metadata - and the ``content-type`` header are supported. The following - transport-level headers cannot be used in header matching - rules: ``:authority``, ``:method``, ``:path``, ``:scheme``, - ``user-agent``, ``accept-encoding``, ``content-encoding``, + The name of the HTTP header to match. + + For matching against the HTTP request's authority, use a + headerMatch with the header name ":authority". + + For matching a request's method, use the headerName + ":method". + + When the URL map is bound to a target gRPC proxy that has + the validateForProxyless field set to true, only non-binary + user-specified custom metadata and the ``content-type`` + header are supported. The following transport-level headers + cannot be used in header matching rules: ``:authority``, + ``:method``, ``:path``, ``:scheme``, ``user-agent``, + ``accept-encoding``, ``content-encoding``, ``grpc-accept-encoding``, ``grpc-encoding``, ``grpc-previous-rpc-attempts``, ``grpc-tags-bin``, ``grpc-timeout`` and ``grpc-trace-bin``. @@ -39651,56 +45907,74 @@ class HttpHeaderMatch(proto.Message): considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the - preceding match criteria are NOT met. The - default setting is false. + preceding match criteria are NOT met. + + The default setting is false. This field is a member of `oneof`_ ``_invert_match``. prefix_match (str): The value of the header must start with the - contents of prefixMatch. Only one of exactMatch, - prefixMatch, suffixMatch, regexMatch, - presentMatch or rangeMatch must be set. + contents ofprefixMatch. + Only one of exactMatch, prefixMatch,suffixMatch, + regexMatch,presentMatch or rangeMatch must be + set. This field is a member of `oneof`_ ``_prefix_match``. present_match (bool): A header with the contents of headerName must exist. The match takes place whether or not the - request's header has a value. Only one of - exactMatch, prefixMatch, suffixMatch, - regexMatch, presentMatch or rangeMatch must be + request's header has a value. + + Only one of exactMatch, prefixMatch,suffixMatch, + regexMatch,presentMatch or rangeMatch must be set. This field is a member of `oneof`_ ``_present_match``. range_match (google.cloud.compute_v1.types.Int64RangeMatch): The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not - contain an integer, number or is empty, the match fails. For - example for a range [-5, 0] - -3 will match. - 0 will not - match. - 0.25 will not match. - -3someString will not match. - Only one of exactMatch, prefixMatch, suffixMatch, - regexMatch, presentMatch or rangeMatch must be set. + contain an integer, number or is empty, the match fails. + + For example for a range [-5, 0] + + :: + + - -3 will match. + - 0 will not match. + - 0.25 will not match. + - -3someString will not match. + + Only one of exactMatch, prefixMatch,suffixMatch, + regexMatch,presentMatch or rangeMatch must be set. + rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL. This field is a member of `oneof`_ ``_range_match``. regex_match (str): The value of the header must match the regular expression - specified in regexMatch. For more information about regular - expression syntax, see Syntax. For matching against a port - specified in the HTTP request, use a headerMatch with - headerName set to PORT and a regular expression that - satisfies the RFC2616 Host header's port specifier. Only one - of exactMatch, prefixMatch, suffixMatch, regexMatch, - presentMatch or rangeMatch must be set. Regular expressions - can only be used when the loadBalancingScheme is set to - INTERNAL_SELF_MANAGED. + specified inregexMatch. For more information about regular + expression syntax, see Syntax. + + For matching against a port specified in the HTTP request, + use a headerMatch with headerName set to PORT and a regular + expression that satisfies the RFC2616 Host header's port + specifier. + + Only one of exactMatch, prefixMatch,suffixMatch, + regexMatch,presentMatch or rangeMatch must be set. + + Regular expressions can only be used when the + loadBalancingScheme is set to INTERNAL_SELF_MANAGED, + EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. This field is a member of `oneof`_ ``_regex_match``. suffix_match (str): The value of the header must end with the - contents of suffixMatch. Only one of exactMatch, - prefixMatch, suffixMatch, regexMatch, - presentMatch or rangeMatch must be set. + contents ofsuffixMatch. + Only one of exactMatch, prefixMatch,suffixMatch, + regexMatch,presentMatch or rangeMatch must be + set. This field is a member of `oneof`_ ``_suffix_match``. """ @@ -39766,12 +46040,15 @@ class HttpHeaderOption(proto.Message): This field is a member of `oneof`_ ``_header_value``. replace (bool): If false, headerValue is appended to any - values that already exist for the header. If - true, headerValue is set for the header, - discarding any values that were set for that - header. The default value is true, unless a - variable is present in headerValue, in which - case the default value is false. . + values that already + exist for the header. If true, headerValue is + set for the header, discarding any values that + were set for that header. + + The default value is true, + unless a variable is present in headerValue, + in which case the default value is false. + . This field is a member of `oneof`_ ``_replace``. """ @@ -39802,8 +46079,10 @@ class HttpQueryParameterMatch(proto.Message): exact_match (str): The queryParameterMatch matches if the value of the parameter exactly matches the contents of - exactMatch. Only one of presentMatch, - exactMatch, or regexMatch must be set. + exactMatch. + + Only one of presentMatch, exactMatch, + orregexMatch must be set. This field is a member of `oneof`_ ``_exact_match``. name (str): @@ -39816,18 +46095,24 @@ class HttpQueryParameterMatch(proto.Message): Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter - has a value or not. Only one of presentMatch, - exactMatch, or regexMatch must be set. + has a value or not. + + Only one of presentMatch, exactMatch, + orregexMatch must be set. This field is a member of `oneof`_ ``_present_match``. regex_match (str): The queryParameterMatch matches if the value of the - parameter matches the regular expression specified by - regexMatch. For more information about regular expression - syntax, see Syntax. Only one of presentMatch, exactMatch, or - regexMatch must be set. Regular expressions can only be used - when the loadBalancingScheme is set to - INTERNAL_SELF_MANAGED. + parameter matches the regular expression specified + byregexMatch. For more information about regular expression + syntax, see Syntax. + + Only one of presentMatch, exactMatch, orregexMatch must be + set. + + Regular expressions can only be used when the + loadBalancingScheme is set to INTERNAL_SELF_MANAGED, + EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. This field is a member of `oneof`_ ``_regex_match``. """ @@ -39863,28 +46148,36 @@ class HttpRedirectAction(proto.Message): host_redirect (str): The host that is used in the redirect response instead of the one that was supplied in - the request. The value must be from 1 to 255 + the request. + + The value must be from 1 to 255 characters. This field is a member of `oneof`_ ``_host_redirect``. https_redirect (bool): If set to true, the URL scheme in the - redirected request is set to HTTPS. If set to - false, the URL scheme of the redirected request - remains the same as that of the request. This - must only be set for URL maps used in - TargetHttpProxys. Setting this true for - TargetHttpsProxy is not permitted. The default - is set to false. + redirected request is set to HTTPS. + If set to false, the URL scheme of the + redirected request remains the same as that of + the request. + + This must only be set for URL maps used + inTargetHttpProxys. Setting this true + forTargetHttpsProxy is not permitted. + + The default is set to false. This field is a member of `oneof`_ ``_https_redirect``. path_redirect (str): The path that is used in the redirect response instead of the one that was supplied in - the request. pathRedirect cannot be supplied - together with prefixRedirect. Supply one alone - or neither. If neither is supplied, the path of - the original request is used for the redirect. + the request. + + pathRedirect cannot be supplied together + withprefixRedirect. Supply one alone or neither. + If neither is supplied, the path of the original + request is used for the redirect. + The value must be from 1 to 1024 characters. This field is a member of `oneof`_ ``_path_redirect``. @@ -39892,44 +46185,63 @@ class HttpRedirectAction(proto.Message): The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before - redirecting the request. prefixRedirect cannot - be supplied together with pathRedirect. Supply - one alone or neither. If neither is supplied, - the path of the original request is used for the - redirect. The value must be from 1 to 1024 - characters. + redirecting the request. + + prefixRedirect cannot be supplied together + withpathRedirect. Supply one alone or neither. + If neither is supplied, the path of the original + request is used for the redirect. + + The value must be from 1 to 1024 characters. This field is a member of `oneof`_ ``_prefix_redirect``. redirect_response_code (str): The HTTP Status code to use for this RedirectAction. - Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is - the default value and corresponds to 301. - FOUND, which - corresponds to 302. - SEE_OTHER which corresponds to 303. - - TEMPORARY_REDIRECT, which corresponds to 307. In this case, - the request method is retained. - PERMANENT_REDIRECT, which - corresponds to 308. In this case, the request method is - retained. Check the RedirectResponseCode enum for the list - of possible values. + + Supported values are: + + :: + + - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds + to 301. + - FOUND, which corresponds to 302. + - SEE_OTHER which corresponds to 303. + - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request + method is retained. + - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request + method is retained. + + Check the RedirectResponseCode enum for the list of possible + values. This field is a member of `oneof`_ ``_redirect_response_code``. strip_query (bool): If set to true, any accompanying query - portion of the original URL is removed before - redirecting the request. If set to false, the - query portion of the original URL is retained. + portion of the original URL is + removed before redirecting the request. If set + to false, the query portion of the original URL + is retained. + The default is set to false. This field is a member of `oneof`_ ``_strip_query``. """ class RedirectResponseCode(proto.Enum): - r"""The HTTP Status code to use for this RedirectAction. Supported - values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value - and corresponds to 301. - FOUND, which corresponds to 302. - - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which - corresponds to 307. In this case, the request method is retained. - - PERMANENT_REDIRECT, which corresponds to 308. In this case, the - request method is retained. + r"""The HTTP Status code to use for this RedirectAction. + + Supported values are: + + :: + + - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds + to 301. + - FOUND, which corresponds to 302. + - SEE_OTHER which corresponds to 303. + - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request + method is retained. + - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request + method is retained. Values: UNDEFINED_REDIRECT_RESPONSE_CODE (0): @@ -40001,46 +46313,62 @@ class HttpRetryPolicy(proto.Message): This field is a member of `oneof`_ ``_num_retries``. per_try_timeout (google.cloud.compute_v1.types.Duration): Specifies a non-zero timeout per retry - attempt. If not specified, will use the timeout - set in the HttpRouteAction field. If timeout in - the HttpRouteAction field is not set, this field - uses the largest timeout among all backend - services associated with the route. Not - supported when the URL map is bound to a target - gRPC proxy that has the validateForProxyless - field set to true. + attempt. + If not specified, will use the timeout set in + theHttpRouteAction field. If timeout in the + HttpRouteAction field is not set, this field + uses the largest timeout + among all backend services associated with the + route. + + Not supported when the URL map is bound to a + target gRPC proxy that has the + validateForProxyless field set to true. This field is a member of `oneof`_ ``_per_try_timeout``. retry_conditions (MutableSequence[str]): Specifies one or more conditions when this retry policy - applies. Valid values are: - 5xx: retry is attempted if the - instance or endpoint responds with any 5xx response code, or - if the instance or endpoint does not respond at all. For - example, disconnects, reset, read timeout, connection - failure, and refused streams. - gateway-error: Similar to - 5xx, but only applies to response codes 502, 503 or 504. - - connect-failure: a retry is attempted on failures connecting - to the instance or endpoint. For example, connection - timeouts. - retriable-4xx: a retry is attempted if the - instance or endpoint responds with a 4xx response code. The - only error that you can retry is error code 409. - - refused-stream: a retry is attempted if the instance or - endpoint resets the stream with a REFUSED_STREAM error code. - This reset type indicates that it is safe to retry. - - cancelled: a retry is attempted if the gRPC status code in - the response header is set to cancelled. - - deadline-exceeded: a retry is attempted if the gRPC status - code in the response header is set to deadline-exceeded. - - internal: a retry is attempted if the gRPC status code in - the response header is set to internal. - - resource-exhausted: a retry is attempted if the gRPC status - code in the response header is set to resource-exhausted. - - unavailable: a retry is attempted if the gRPC status code in - the response header is set to unavailable. Only the - following codes are supported when the URL map is bound to - target gRPC proxy that has validateForProxyless field set to - true. - cancelled - deadline-exceeded - internal - - resource-exhausted - unavailable + applies. Valid values are: + + :: + + - 5xx: retry is attempted if the instance or endpoint + responds with any 5xx response code, or if the instance or + endpoint does not respond at all. For example, disconnects, reset, read + timeout, connection failure, and refused streams. + - gateway-error: Similar to 5xx, but only + applies to response codes 502, 503 or504. + - connect-failure: a retry is attempted on failures + connecting to the instance or endpoint. For example, connection + timeouts. + - retriable-4xx: a retry is attempted if the instance + or endpoint responds with a 4xx response code. + The only error that you can retry is error code 409. + - refused-stream: a retry is attempted if the instance + or endpoint resets the stream with a REFUSED_STREAM error + code. This reset type indicates that it is safe to retry. + - cancelled: a retry is attempted if the gRPC status + code in the response header is set to cancelled. + - deadline-exceeded: a retry is attempted if the gRPC + status code in the response header is set todeadline-exceeded. + - internal: a retry is attempted if the gRPC + status code in the response header is set tointernal. + - resource-exhausted: a retry is attempted if the gRPC + status code in the response header is set toresource-exhausted. + - unavailable: a retry is attempted if the gRPC + status code in the response header is set tounavailable. + + Only the following codes are supported when the URL map is + bound to target gRPC proxy that has validateForProxyless + field set to true. + + :: + + - cancelled + - deadline-exceeded + - internal + - resource-exhausted + - unavailable """ num_retries: int = proto.Field( @@ -40071,8 +46399,10 @@ class HttpRouteAction(proto.Message): cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living - Standard. Not supported when the URL map is - bound to a target gRPC proxy. + Standard. + + Not supported when the URL map is bound to a + target gRPC proxy. This field is a member of `oneof`_ ``_cors_policy``. fault_injection_policy (google.cloud.compute_v1.types.HttpFaultInjection): @@ -40083,29 +46413,34 @@ class HttpRouteAction(proto.Message): load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a - percentage of requests. timeout and retry_policy is ignored + percentage of requests.timeout and retry_policy is ignored by clients that are configured with a fault_injection_policy - if: 1. The traffic is generated by fault injection AND 2. - The fault injection is not a delay fault injection. Fault - injection is not supported with the classic Application Load - Balancer . To see which load balancers support fault - injection, see Load balancing: Routing and traffic - management features. + if: + + 1. The traffic is generated by fault injection AND + 2. The fault injection is not a delay fault injection. Fault + injection is not supported with the classic Application + Load Balancer . To see which load balancers support fault + injection, see Load balancing: Routing and traffic + management features. This field is a member of `oneof`_ ``_fault_injection_policy``. max_stream_duration (google.cloud.compute_v1.types.Duration): Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout field where the timeout duration starts from the time the request has been fully - processed (known as *end-of-stream*), the duration in this + processed (known as\ *end-of-stream*), the duration in this field is computed from the beginning of the stream until the response has been processed, including all retries. A stream - that does not complete in this duration is closed. If not - specified, this field uses the maximum maxStreamDuration - value among all backend services associated with the route. + that does not complete in this duration is closed. + + If not specified, this field uses the + maximummaxStreamDuration value among all backend services + associated with the route. + This field is only allowed if the Url map is used with - backend services with loadBalancingScheme set to - INTERNAL_SELF_MANAGED. + backend services with loadBalancingScheme set + toINTERNAL_SELF_MANAGED. This field is a member of `oneof`_ ``_max_stream_duration``. request_mirror_policy (google.cloud.compute_v1.types.RequestMirrorPolicy): @@ -40115,9 +46450,11 @@ class HttpRouteAction(proto.Message): balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is - suffixed with -shadow. Not supported when the - URL map is bound to a target gRPC proxy that has - the validateForProxyless field set to true. + suffixed with-shadow. + + Not supported when the URL map is bound to a + target gRPC proxy that has the + validateForProxyless field set to true. This field is a member of `oneof`_ ``_request_mirror_policy``. retry_policy (google.cloud.compute_v1.types.HttpRetryPolicy): @@ -40129,20 +46466,25 @@ class HttpRouteAction(proto.Message): Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as *end-of-stream*) up until the response has been - processed. Timeout includes all retries. If not specified, - this field uses the largest timeout among all backend - services associated with the route. Not supported when the - URL map is bound to a target gRPC proxy that has - validateForProxyless field set to true. + processed. Timeout includes all retries. + + If not specified, this field uses the largest timeout among + all backend services associated with the route. + + Not supported when the URL map is bound to a target gRPC + proxy that has validateForProxyless field set to true. This field is a member of `oneof`_ ``_timeout``. url_rewrite (google.cloud.compute_v1.types.UrlRewrite): The spec to modify the URL of the request, before forwarding the request to the matched - service. urlRewrite is the only action supported - in UrlMaps for classic Application Load - Balancers. Not supported when the URL map is - bound to a target gRPC proxy that has the + service. + + urlRewrite is the only action supported in + UrlMaps for classic Application Load Balancers. + + Not supported when the URL map is bound to a + target gRPC proxy that has the validateForProxyless field set to true. This field is a member of `oneof`_ ``_url_rewrite``. @@ -40152,10 +46494,11 @@ class HttpRouteAction(proto.Message): weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend - service, there must be one - weightedBackendService with weight set to a - non-zero number. After a backend service is - identified and before forwarding the request to + service, there must be oneweightedBackendService + with weight set to a non-zero number. + + After a backend service is identified and before + forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings @@ -40224,83 +46567,104 @@ class HttpRouteRule(proto.Message): Attributes: custom_error_response_policy (google.cloud.compute_v1.types.CustomErrorResponsePolicy): customErrorResponsePolicy specifies how the Load Balancer - returns error responses when BackendServiceor BackendBucket - responds with an error. If a policy for an error code is not - configured for the RouteRule, a policy for the error code - configured in pathMatcher.defaultCustomErrorResponsePolicy - is applied. If one is not specified in - pathMatcher.defaultCustomErrorResponsePolicy, the policy + returns error responses when BackendServiceorBackendBucket + responds with an error. + + If a policy for an error code is not configured for the + RouteRule, a policy for the error code configured + inpathMatcher.defaultCustomErrorResponsePolicy is applied. + If one is not specified + inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in UrlMap.defaultCustomErrorResponsePolicy takes - effect. For example, consider a UrlMap with the following - configuration: - UrlMap.defaultCustomErrorResponsePolicy are - configured with policies for 5xx and 4xx errors - A - RouteRule for /coming_soon/ is configured for the error code - 404. If the request is for www.myotherdomain.com and a 404 - is encountered, the policy under - UrlMap.defaultCustomErrorResponsePolicy takes effect. If a - 404 response is encountered for the request - www.example.com/current_events/, the pathMatcher's policy - takes effect. If however, the request for - www.example.com/coming_soon/ encounters a 404, the policy in - RouteRule.customErrorResponsePolicy takes effect. If any of - the requests in this example encounter a 500 error code, the - policy at UrlMap.defaultCustomErrorResponsePolicy takes - effect. When used in conjunction with - routeRules.routeAction.retryPolicy, retries take precedence. - Only once all retries are exhausted, the - customErrorResponsePolicy is applied. While attempting a + effect. + + For example, consider a UrlMap with the following + configuration: + + :: + + - UrlMap.defaultCustomErrorResponsePolicy are configured + with policies for 5xx and 4xx errors + - A RouteRule for /coming_soon/ is configured for the + error code 404. + + If the request is for www.myotherdomain.com and a404 is + encountered, the policy + underUrlMap.defaultCustomErrorResponsePolicy takes effect. + If a404 response is encountered for the + requestwww.example.com/current_events/, the pathMatcher's + policy takes effect. If however, the request + forwww.example.com/coming_soon/ encounters a 404, the policy + in RouteRule.customErrorResponsePolicy takes effect. If any + of the requests in this example encounter a 500 error code, + the policy atUrlMap.defaultCustomErrorResponsePolicy takes + effect. + + When used in conjunction + withrouteRules.routeAction.retryPolicy, retries take + precedence. Only once all retries are exhausted, + thecustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the customErrorResponsePolicy is ignored and the response from the service is returned to the client. + customErrorResponsePolicy is supported only for global external Application Load Balancers. This field is a member of `oneof`_ ``_custom_error_response_policy``. description (str): The short description conveying the intent of - this routeRule. The description can have a - maximum length of 1024 characters. + this routeRule. + + The description can have a maximum length of + 1024 characters. This field is a member of `oneof`_ ``_description``. header_action (google.cloud.compute_v1.types.HttpHeaderAction): Specifies changes to request and response headers that need - to take effect for the selected backendService. The - headerAction value specified here is applied before the - matching pathMatchers[].headerAction and after - pathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction + to take effect for the selected backendService. + + The headerAction value specified here is applied before the + matching pathMatchers[].headerAction and + afterpathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction + HeaderAction is not supported for load balancers that have - their loadBalancingScheme set to EXTERNAL. Not supported - when the URL map is bound to a target gRPC proxy that has - validateForProxyless field set to true. + their loadBalancingScheme set to EXTERNAL. + + Not supported when the URL map is bound to a target gRPC + proxy that has validateForProxyless field set to true. This field is a member of `oneof`_ ``_header_action``. match_rules (MutableSequence[google.cloud.compute_v1.types.HttpRouteRuleMatch]): The list of criteria for matching attributes - of a request to this routeRule. This list has OR + of a request to thisrouteRule. This list has OR semantics: the request matches this routeRule - when any of the matchRules are satisfied. - However predicates within a given matchRule have - AND semantics. All predicates within a matchRule + when any of thematchRules are satisfied. However + predicates within a given matchRule have AND + semantics. All predicates within a matchRule must match for the request to match the rule. priority (int): For routeRules within a given pathMatcher, priority determines the order in which a load - balancer interprets routeRules. RouteRules are + balancer interpretsrouteRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is - applied. You cannot configure two or more - routeRules with the same priority. Priority for - each rule must be set to a number from 0 to - 2147483647 inclusive. Priority numbers can have - gaps, which enable you to add or remove rules in - the future without affecting the rest of the - rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is - a valid series of priority numbers to which you - could add rules numbered from 6 to 8, 10 to 11, - and 13 to 15 in the future without any impact on - existing rules. + applied. + + You cannot configure two or more routeRules with + the same priority. Priority for each rule must + be set to a number from 0 to 2147483647 + inclusive. + + Priority numbers can have gaps, which enable you + to add or remove rules in the future without + affecting the rest of the rules. For example, 1, + 2, 3, 4, 5, 9, 12, 16 is a valid series of + priority numbers to which you could add rules + numbered from 6 to 8, 10 to 11, and 13 to 15 in + the future without any impact on existing rules. This field is a member of `oneof`_ ``_priority``. route_action (google.cloud.compute_v1.types.HttpRouteAction): @@ -40308,11 +46672,14 @@ class HttpRouteRule(proto.Message): balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected - backend. Only one of urlRedirect, service or - routeAction.weightedBackendService can be set. + backend. + + Only one of urlRedirect, service + orrouteAction.weightedBackendService can be set. + URL maps for classic Application Load Balancers only support the urlRewrite action within a - route rule's routeAction. + route rule'srouteAction. This field is a member of `oneof`_ ``_route_action``. service (str): @@ -40321,16 +46688,19 @@ class HttpRouteRule(proto.Message): this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request - to the backend. Only one of urlRedirect, service - or routeAction.weightedBackendService can be - set. + to the backend. + + Only one of urlRedirect, service + orrouteAction.weightedBackendService can be set. This field is a member of `oneof`_ ``_service``. url_redirect (google.cloud.compute_v1.types.HttpRedirectAction): When this rule is matched, the request is redirected to a URL specified by urlRedirect. - Only one of urlRedirect, service or - routeAction.weightedBackendService can be set. + + Only one of urlRedirect, service + orrouteAction.weightedBackendService can be set. + Not supported when the URL map is bound to a target gRPC proxy. @@ -40393,13 +46763,15 @@ class HttpRouteRuleMatch(proto.Message): Attributes: full_path_match (str): - For satisfying the matchRule condition, the - path of the request must exactly match the value - specified in fullPathMatch after removing any - query parameters and anchor that may be part of - the original URL. fullPathMatch must be from 1 - to 1024 characters. Only one of prefixMatch, - fullPathMatch or regexMatch must be specified. + For satisfying the matchRule condition, the path of the + request must exactly match the value specified + infullPathMatch after removing any query parameters and + anchor that may be part of the original URL. + + fullPathMatch must be from 1 to 1024 characters. + + Only one of prefixMatch, fullPathMatch,regexMatch or + path_template_match must be specified. This field is a member of `oneof`_ ``_full_path_match``. header_matches (MutableSequence[google.cloud.compute_v1.types.HttpHeaderMatch]): @@ -40408,10 +46780,14 @@ class HttpRouteRuleMatch(proto.Message): the request. ignore_case (bool): Specifies that prefixMatch and fullPathMatch - matches are case sensitive. The default value is - false. ignoreCase must not be used with - regexMatch. Not supported when the URL map is - bound to a target gRPC proxy. + matches are case sensitive. + + The default value is false. + + ignoreCase must not be used with regexMatch. + + Not supported when the URL map is bound to a + target gRPC proxy. This field is a member of `oneof`_ ``_ignore_case``. metadata_filters (MutableSequence[google.cloud.compute_v1.types.MetadataFilter]): @@ -40420,56 +46796,82 @@ class HttpRouteRuleMatch(proto.Message): clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those - proxies. For each metadataFilter in this list, if its - filterMatchCriteria is set to MATCH_ANY, at least one of the - filterLabels must match the corresponding label provided in - the metadata. If its filterMatchCriteria is set to + proxies. + + For each metadataFilter in this list, if + itsfilterMatchCriteria is set to MATCH_ANY, at least one of + thefilterLabels must match the corresponding label provided + in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be - satisfied in order to be considered a match. metadataFilters - specified here is applied after those specified in - ForwardingRule that refers to the UrlMap this - HttpRouteRuleMatch belongs to. metadataFilters only applies - to load balancers that have loadBalancingScheme set to - INTERNAL_SELF_MANAGED. Not supported when the URL map is - bound to a target gRPC proxy that has validateForProxyless - field set to true. + satisfied in order to be considered a match. + + metadataFilters specified here is applied after those + specified in ForwardingRule that refers to theUrlMap this + HttpRouteRuleMatch belongs to. + + metadataFilters only applies to load balancers that + haveloadBalancingScheme set toINTERNAL_SELF_MANAGED. + + Not supported when the URL map is bound to a target gRPC + proxy that has validateForProxyless field set to true. path_template_match (str): - If specified, the route is a pattern match expression that - must match the :path header once the query string is - removed. A pattern match allows you to match - The value - must be between 1 and 1024 characters - The pattern must - start with a leading slash ("/") - There may be no more than - 5 operators in pattern Precisely one of prefix_match, - full_path_match, regex_match or path_template_match must be - set. + If specified, this field defines a path template pattern + that must match the :path header after the query string is + removed. + + A path template pattern can include variables and wildcards. + Variables are enclosed in curly braces, for + example{variable_name}. Wildcards include \* that matches a + single path segment, and \*\* that matches zero or more path + segments. The pattern must follow these rules: + + :: + + - The value must be between 1 and 1024 characters. + - The pattern must start with a leading slash ("/"). + - No more than 5 operators (variables or wildcards) may appear in + the pattern. + + Precisely one ofprefixMatch, fullPathMatch,regexMatch, or + pathTemplateMatch must be set. This field is a member of `oneof`_ ``_path_template_match``. prefix_match (str): - For satisfying the matchRule condition, the - request's path must begin with the specified - prefixMatch. prefixMatch must begin with a /. + For satisfying the matchRule condition, the request's path + must begin with the specified prefixMatch.prefixMatch must + begin with a /. + The value must be from 1 to 1024 characters. - Only one of prefixMatch, fullPathMatch or - regexMatch must be specified. + + The \* character inside a prefix match is treated as a + literal character, not as a wildcard. + + Only one of prefixMatch, fullPathMatch,regexMatch or + path_template_match can be used within a matchRule. This field is a member of `oneof`_ ``_prefix_match``. query_parameter_matches (MutableSequence[google.cloud.compute_v1.types.HttpQueryParameterMatch]): Specifies a list of query parameter match criteria, all of which must match corresponding - query parameters in the request. Not supported - when the URL map is bound to a target gRPC - proxy. + query parameters in the request. + + Not supported when the URL map is bound to a + target gRPC proxy. regex_match (str): For satisfying the matchRule condition, the path of the - request must satisfy the regular expression specified in - regexMatch after removing any query parameters and anchor + request must satisfy the regular expression specified + inregexMatch after removing any query parameters and anchor supplied with the original URL. For more information about - regular expression syntax, see Syntax. Only one of - prefixMatch, fullPathMatch or regexMatch must be specified. + regular expression syntax, see Syntax. + + Only one of prefixMatch, fullPathMatch,regexMatch or + path_template_match must be specified. + Regular expressions can only be used when the - loadBalancingScheme is set to INTERNAL_SELF_MANAGED. + loadBalancingScheme is set to INTERNAL_SELF_MANAGED, + EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED. This field is a member of `oneof`_ ``_regex_match``. """ @@ -40519,9 +46921,10 @@ class HttpRouteRuleMatch(proto.Message): class Image(proto.Message): - r"""Represents an Image resource. You can use images to create - boot disks for your VM instances. For more information, read - Images. + r"""Represents an Image resource. + + You can use images to create boot disks for your VM instances. + For more information, read Images. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -40539,12 +46942,13 @@ class Image(proto.Message): This field is a member of `oneof`_ ``_archive_size_bytes``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. deprecated (google.cloud.compute_v1.types.DeprecationStatus): - The deprecation status associated with this - image. + Output only. The deprecation status + associated with this image. This field is a member of `oneof`_ ``_deprecated``. description (str): @@ -40559,9 +46963,9 @@ class Image(proto.Message): This field is a member of `oneof`_ ``_disk_size_gb``. enable_confidential_compute (bool): - Whether this image is created from a confidential compute - mode disk. [Output Only]: This field is not set by user, but - from source disk. + Output only. Whether this image is created from a + confidential compute mode disk. [Output Only]: This field is + not set by user, but from source disk. This field is a member of `oneof`_ ``_enable_confidential_compute``. family (str): @@ -40569,9 +46973,11 @@ class Image(proto.Message): image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family - you create. For example, centos-stream-9 is a + you create. For example,centos-stream-9 is a publicly available image family. For more - information, see Image family best practices. + information, see Image + family best practices. + When creating disks, you can specify an image family instead of a specific image name. The image family always returns its latest image @@ -40582,29 +46988,34 @@ class Image(proto.Message): guest_os_features (MutableSequence[google.cloud.compute_v1.types.GuestOsFeature]): A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of - available options, see the guestOSfeatures[].type parameter. + available options, see theguestOSfeatures[].type parameter. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. image_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - Encrypts the image using a customer-supplied - encryption key. After you encrypt an image with - a customer-supplied key, you must provide the - same key if you use the image later (e.g. to - create a disk from the image). Customer-supplied - encryption keys do not protect access to - metadata of the disk. If you do not provide an - encryption key when creating the image, then the - disk will be encrypted using an automatically - generated key and you do not need to provide a - key to use the image later. + Encrypts the image using acustomer-supplied + encryption key. + + After you encrypt an image with a + customer-supplied key, you must provide the same + key if you use the image later (e.g. to create a + disk from the image). + + Customer-supplied encryption keys do not protect + access to metadata of the disk. + + If you do not provide an encryption key when + creating the image, then the disk will be + encrypted using an automatically generated key + and you do not need to provide a key to use the + image later. This field is a member of `oneof`_ ``_image_encryption_key``. kind (str): - [Output Only] Type of the resource. Always compute#image for - images. + Output only. [Output Only] Type of the resource. Always + compute#image for images. This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -40616,9 +47027,10 @@ class Image(proto.Message): or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make a get() request to - retrieve an image. + fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve an image. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): @@ -40632,7 +47044,7 @@ class Image(proto.Message): name (str): Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -40654,11 +47066,12 @@ class Image(proto.Message): This field is a member of `oneof`_ ``_satisfies_pzi``. satisfies_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. shielded_instance_initial_state (google.cloud.compute_v1.types.InitialStateConfig): @@ -40669,40 +47082,55 @@ class Image(proto.Message): source_disk (str): URL of the source disk used to create this image. For example, the following are valid - values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /disks/disk - - projects/project/zones/zone/disks/disk - - zones/zone/disks/disk In order to create an - image, you must provide the full or partial URL - of one of the following: - The rawDisk.source - URL - The sourceDisk URL - The sourceImage URL - - The sourceSnapshot URL + values: + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + - projects/project/zones/zone/disks/disk + - zones/zone/disks/disk + + In order to create an image, you must provide + the full or partial URL of one of the following: + + - The rawDisk.source URL + - The sourceDisk URL + - The sourceImage URL + - The sourceSnapshot URL This field is a member of `oneof`_ ``_source_disk``. source_disk_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - The customer-supplied encryption key of the - source disk. Required if the source disk is - protected by a customer-supplied encryption key. + Thecustomer-supplied + encryption key of the source disk. Required if + the source disk is protected by a + customer-supplied encryption key. This field is a member of `oneof`_ ``_source_disk_encryption_key``. source_disk_id (str): - [Output Only] The ID value of the disk used to create this - image. This value may be used to determine whether the image - was taken from the current or a previous instance of a given - disk name. + Output only. [Output Only] The ID value of the disk used to + create this image. This value may be used to determine + whether the image was taken from the current or a previous + instance of a given disk name. This field is a member of `oneof`_ ``_source_disk_id``. source_image (str): URL of the source image used to create this image. The - following are valid formats for the URL: - - https://www.googleapis.com/compute/v1/projects/project_id/global/ - images/image_name - - projects/project_id/global/images/image_name In order to - create an image, you must provide the full or partial URL of - one of the following: - The rawDisk.source URL - The - sourceDisk URL - The sourceImage URL - The sourceSnapshot - URL + following are valid formats for the URL: + + :: + + - https://www.googleapis.com/compute/v1/projects/project_id/global/ + images/image_name + - projects/project_id/global/images/image_name + + In order to create an image, you must provide the full or + partial URL of one of the following: + + :: + + - The rawDisk.source URL + - The sourceDisk URL + - The sourceImage URL + - The sourceSnapshot URL This field is a member of `oneof`_ ``_source_image``. source_image_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): @@ -40712,22 +47140,31 @@ class Image(proto.Message): This field is a member of `oneof`_ ``_source_image_encryption_key``. source_image_id (str): - [Output Only] The ID value of the image used to create this - image. This value may be used to determine whether the image - was taken from the current or a previous instance of a given - image name. + Output only. [Output Only] The ID value of the image used to + create this image. This value may be used to determine + whether the image was taken from the current or a previous + instance of a given image name. This field is a member of `oneof`_ ``_source_image_id``. source_snapshot (str): URL of the source snapshot used to create this image. The - following are valid formats for the URL: - - https://www.googleapis.com/compute/v1/projects/project_id/global/ - snapshots/snapshot_name - - projects/project_id/global/snapshots/snapshot_name In order - to create an image, you must provide the full or partial URL - of one of the following: - The rawDisk.source URL - The - sourceDisk URL - The sourceImage URL - The sourceSnapshot - URL + following are valid formats for the URL: + + :: + + - https://www.googleapis.com/compute/v1/projects/project_id/global/ + snapshots/snapshot_name + - projects/project_id/global/snapshots/snapshot_name + + In order to create an image, you must provide the full or + partial URL of one of the following: + + :: + + - The rawDisk.source URL + - The sourceDisk URL + - The sourceImage URL + - The sourceSnapshot URL This field is a member of `oneof`_ ``_source_snapshot``. source_snapshot_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): @@ -40738,10 +47175,10 @@ class Image(proto.Message): This field is a member of `oneof`_ ``_source_snapshot_encryption_key``. source_snapshot_id (str): - [Output Only] The ID value of the snapshot used to create - this image. This value may be used to determine whether the - snapshot was taken from the current or a previous instance - of a given snapshot name. + Output only. [Output Only] The ID value of the snapshot used + to create this image. This value may be used to determine + whether the snapshot was taken from the current or a + previous instance of a given snapshot name. This field is a member of `oneof`_ ``_source_snapshot_id``. source_type (str): @@ -40752,11 +47189,12 @@ class Image(proto.Message): This field is a member of `oneof`_ ``_source_type``. status (str): - [Output Only] The status of the image. An image can be used - to create other resources, such as instances, only after the - image has been successfully created and the status is set to - READY. Possible values are FAILED, PENDING, or READY. Check - the Status enum for the list of possible values. + Output only. [Output Only] The status of the image. An image + can be used to create other resources, such as instances, + only after the image has been successfully created and the + status is set to READY. Possible values are FAILED, PENDING, + orREADY. Check the Status enum for the list of possible + values. This field is a member of `oneof`_ ``_status``. storage_locations (MutableSequence[str]): @@ -40785,8 +47223,8 @@ class Architecture(proto.Enum): X86_64 = 425300551 class SourceType(proto.Enum): - r"""The type of the image used to create this disk. The default - and only valid value is RAW. + r"""The type of the image used to create this disk. The + default and only valid value is RAW. Values: UNDEFINED_SOURCE_TYPE (0): @@ -40799,10 +47237,10 @@ class SourceType(proto.Enum): RAW = 80904 class Status(proto.Enum): - r"""[Output Only] The status of the image. An image can be used to - create other resources, such as instances, only after the image has - been successfully created and the status is set to READY. Possible - values are FAILED, PENDING, or READY. + r"""Output only. [Output Only] The status of the image. An image can be + used to create other resources, such as instances, only after the + image has been successfully created and the status is set to READY. + Possible values are FAILED, PENDING, orREADY. Values: UNDEFINED_STATUS (0): @@ -41041,20 +47479,21 @@ class ImageList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Image]): A list of Image resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -41107,9 +47546,12 @@ class ImageParams(proto.Message): resource_manager_tags (MutableMapping[str, str]): Resource manager tags to be bound to the image. Tag keys and values have the same definition as resource manager tags. - Keys must be in the format ``tagKeys/{tag_key_id}``, and - values are in the format ``tagValues/456``. The field is - ignored (both PUT & PATCH) when empty. + Keys and values can be either in numeric format, such as + ``tagKeys/{tag_key_id}`` and ``tagValues/456`` or in + namespaced format such as + ``{org_id|project_id}/{tag_key_short_name}`` and + ``{tag_value_short_name}``. The field is ignored (both PUT & + PATCH) when empty. """ resource_manager_tags: MutableMapping[str, str] = proto.MapField( @@ -41120,8 +47562,8 @@ class ImageParams(proto.Message): class InitialStateConfig(proto.Message): - r"""Initial State for shielded instance, these are public keys - which are safe to store in public + r"""Initial State for shielded instance, + these are public keys which are safe to store in public .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -41181,17 +47623,21 @@ class InsertAddressRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41233,17 +47679,21 @@ class InsertAutoscalerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -41287,17 +47737,21 @@ class InsertBackendBucketRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41335,17 +47789,21 @@ class InsertBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41366,6 +47824,65 @@ class InsertBackendServiceRequest(proto.Message): ) +class InsertCrossSiteNetworkRequest(proto.Message): + r"""A request message for CrossSiteNetworks.Insert. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + cross_site_network_resource (google.cloud.compute_v1.types.CrossSiteNetwork): + The body resource for this request + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. Specify a + unique request ID so that if you must retry your request, + the server will know to ignore the request if it has already + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + + This field is a member of `oneof`_ ``_request_id``. + validate_only (bool): + [Input Only] Validate the new configuration, but don't + create it. + + This field is a member of `oneof`_ ``_validate_only``. + """ + + cross_site_network_resource: "CrossSiteNetwork" = proto.Field( + proto.MESSAGE, + number=30896696, + message="CrossSiteNetwork", + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + validate_only: bool = proto.Field( + proto.BOOL, + number=242744629, + optional=True, + ) + + class InsertDiskRequest(proto.Message): r"""A request message for Disks.Insert. See the method description for details. @@ -41383,17 +47900,21 @@ class InsertDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. source_image (str): @@ -41447,17 +47968,21 @@ class InsertExternalVpnGatewayRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41498,17 +48023,21 @@ class InsertFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41546,17 +48075,21 @@ class InsertFirewallRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41596,17 +48129,21 @@ class InsertForwardingRuleRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41631,6 +48168,65 @@ class InsertForwardingRuleRequest(proto.Message): ) +class InsertFutureReservationRequest(proto.Message): + r"""A request message for FutureReservations.Insert. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + future_reservation_resource (google.cloud.compute_v1.types.FutureReservation): + The body resource for this request + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + zone (str): + Name of the zone for this request. Name + should conform to RFC1035. + """ + + future_reservation_resource: "FutureReservation" = proto.Field( + proto.MESSAGE, + number=466750493, + message="FutureReservation", + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + class InsertGlobalAddressRequest(proto.Message): r"""A request message for GlobalAddresses.Insert. See the method description for details. @@ -41648,17 +48244,21 @@ class InsertGlobalAddressRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41696,17 +48296,21 @@ class InsertGlobalForwardingRuleRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41744,17 +48348,21 @@ class InsertGlobalNetworkEndpointGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41792,17 +48400,21 @@ class InsertGlobalPublicDelegatedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41840,17 +48452,21 @@ class InsertHealthCheckRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41892,17 +48508,21 @@ class InsertImageRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -41945,22 +48565,27 @@ class InsertInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where you want to create - the managed instance group. + The name of the zone + where you want to create the managed instance + group. """ instance_group_manager_resource: "InstanceGroupManager" = proto.Field( @@ -41994,8 +48619,9 @@ class InsertInstanceGroupManagerResizeRequestRequest(proto.Message): Attributes: instance_group_manager (str): The name of the managed instance group to - which the resize request will be added. Name - should conform to RFC1035 or be a resource ID. + which the resize request will be added. + Name should conform to RFC1035 or be a resource + ID. instance_group_manager_resize_request_resource (google.cloud.compute_v1.types.InstanceGroupManagerResizeRequest): The body resource for this request project (str): @@ -42005,21 +48631,25 @@ class InsertInstanceGroupManagerResizeRequestRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located and where the resize request will be created. Name should conform to RFC1035. @@ -42066,22 +48696,26 @@ class InsertInstanceGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where you want to create - the instance group. + The name of the zone + where you want to create the instance group. """ instance_group_resource: "InstanceGroup" = proto.Field( @@ -42121,40 +48755,52 @@ class InsertInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. source_instance_template (str): Specifies instance template to create the - instance. This field is optional. It can be a - full or partial URL. For example, the following - are all valid URLs to an instance template: - - https://www.googleapis.com/compute/v1/projects/project - /global/instanceTemplates/instanceTemplate - - projects/project/global/instanceTemplates/instanceTemplate - - global/instanceTemplates/instanceTemplate + instance. + This field is optional. It can be a full or + partial URL. For example, the following are all + valid URLs to an instance template: + + + - + https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + - + projects/project/global/instanceTemplates/instanceTemplate + - + global/instanceTemplates/instanceTemplate This field is a member of `oneof`_ ``_source_instance_template``. source_machine_image (str): Specifies the machine image to use to create - the instance. This field is optional. It can be - a full or partial URL. For example, the - following are all valid URLs to a machine image: - - - https://www.googleapis.com/compute/v1/projects/project/global/global - /machineImages/machineImage - - projects/project/global/global/machineImages/machineImage - - global/machineImages/machineImage + the instance. + This field is optional. It can be a full or + partial URL. For example, the following are all + valid URLs to a machine image: + + + - + https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage + - + projects/project/global/global/machineImages/machineImage + - global/machineImages/machineImage This field is a member of `oneof`_ ``_source_machine_image``. zone (str): @@ -42208,17 +48854,21 @@ class InsertInstanceTemplateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -42256,17 +48906,21 @@ class InsertInstantSnapshotRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -42309,15 +48963,18 @@ class InsertInterconnectAttachmentGroupRequest(proto.Message): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -42358,17 +49015,21 @@ class InsertInterconnectAttachmentRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. validate_only (bool): @@ -42418,15 +49079,18 @@ class InsertInterconnectGroupRequest(proto.Message): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -42465,17 +49129,21 @@ class InsertInterconnectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -42513,17 +49181,21 @@ class InsertLicenseRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -42561,17 +49233,21 @@ class InsertMachineImageRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. source_instance (str): @@ -42620,15 +49296,18 @@ class InsertNetworkAttachmentRequest(proto.Message): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -42673,17 +49352,21 @@ class InsertNetworkEdgeSecurityServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. validate_only (bool): @@ -42734,23 +49417,27 @@ class InsertNetworkEndpointGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where you want to create - the network endpoint group. It should comply - with RFC1035. + The name of the zone where + you want to create the network endpoint group. + It should comply with RFC1035. """ network_endpoint_group_resource: "NetworkEndpointGroup" = proto.Field( @@ -42790,17 +49477,21 @@ class InsertNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -42838,17 +49529,21 @@ class InsertNetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -42888,17 +49583,21 @@ class InsertNodeGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -42948,17 +49647,21 @@ class InsertNodeTemplateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43003,17 +49706,21 @@ class InsertOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy_resource (google.cloud.compute_v1.types.SecurityPolicy): @@ -43056,17 +49763,21 @@ class InsertPacketMirroringRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43108,17 +49819,21 @@ class InsertPublicAdvertisedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43158,17 +49873,21 @@ class InsertPublicDelegatedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43212,17 +49931,21 @@ class InsertRegionAutoscalerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43266,17 +49989,21 @@ class InsertRegionBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43320,17 +50047,21 @@ class InsertRegionCommitmentRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43374,17 +50105,21 @@ class InsertRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. source_image (str): @@ -43438,17 +50173,21 @@ class InsertRegionHealthCheckRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43492,17 +50231,21 @@ class InsertRegionHealthCheckServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43546,17 +50289,21 @@ class InsertRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43600,17 +50347,21 @@ class InsertRegionInstanceTemplateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43654,17 +50405,21 @@ class InsertRegionInstantSnapshotRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43702,25 +50457,29 @@ class InsertRegionNetworkEndpointGroupRequest(proto.Message): project (str): Project ID for this request. region (str): - The name of the region where you want to - create the network endpoint group. It should - comply with RFC1035. + The name of the region where + you want to create the network endpoint group. + It should comply with RFC1035. request_id (str): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43764,17 +50523,21 @@ class InsertRegionNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43818,17 +50581,21 @@ class InsertRegionNotificationEndpointRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -43870,17 +50637,21 @@ class InsertRegionSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy_resource (google.cloud.compute_v1.types.SecurityPolicy): @@ -43933,17 +50704,21 @@ class InsertRegionSslCertificateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_certificate_resource (google.cloud.compute_v1.types.SslCertificate): @@ -43987,17 +50762,21 @@ class InsertRegionSslPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_policy_resource (google.cloud.compute_v1.types.SslPolicy): @@ -44041,17 +50820,21 @@ class InsertRegionTargetHttpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_http_proxy_resource (google.cloud.compute_v1.types.TargetHttpProxy): @@ -44095,17 +50878,21 @@ class InsertRegionTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxy_resource (google.cloud.compute_v1.types.TargetHttpsProxy): @@ -44149,17 +50936,21 @@ class InsertRegionTargetTcpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_tcp_proxy_resource (google.cloud.compute_v1.types.TargetTcpProxy): @@ -44242,17 +51033,21 @@ class InsertReservationRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. reservation_resource (google.cloud.compute_v1.types.Reservation): @@ -44298,17 +51093,21 @@ class InsertResourcePolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource_policy_resource (google.cloud.compute_v1.types.ResourcePolicy): @@ -44350,17 +51149,21 @@ class InsertRouteRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. route_resource (google.cloud.compute_v1.types.Route): @@ -44400,17 +51203,21 @@ class InsertRouterRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. router_resource (google.cloud.compute_v1.types.Router): @@ -44452,17 +51259,21 @@ class InsertSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy_resource (google.cloud.compute_v1.types.SecurityPolicy): @@ -44511,17 +51322,21 @@ class InsertServiceAttachmentRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. service_attachment_resource (google.cloud.compute_v1.types.ServiceAttachment): @@ -44563,17 +51378,21 @@ class InsertSnapshotRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. snapshot_resource (google.cloud.compute_v1.types.Snapshot): @@ -44611,17 +51430,21 @@ class InsertSslCertificateRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_certificate_resource (google.cloud.compute_v1.types.SslCertificate): @@ -44659,17 +51482,21 @@ class InsertSslPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_policy_resource (google.cloud.compute_v1.types.SslPolicy): @@ -44707,17 +51534,21 @@ class InsertStoragePoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. storage_pool_resource (google.cloud.compute_v1.types.StoragePool): @@ -44763,17 +51594,21 @@ class InsertSubnetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. subnetwork_resource (google.cloud.compute_v1.types.Subnetwork): @@ -44815,17 +51650,21 @@ class InsertTargetGrpcProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_grpc_proxy_resource (google.cloud.compute_v1.types.TargetGrpcProxy): @@ -44863,17 +51702,21 @@ class InsertTargetHttpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_http_proxy_resource (google.cloud.compute_v1.types.TargetHttpProxy): @@ -44911,17 +51754,21 @@ class InsertTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxy_resource (google.cloud.compute_v1.types.TargetHttpsProxy): @@ -44959,17 +51806,21 @@ class InsertTargetInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_instance_resource (google.cloud.compute_v1.types.TargetInstance): @@ -45015,17 +51866,21 @@ class InsertTargetPoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_pool_resource (google.cloud.compute_v1.types.TargetPool): @@ -45067,17 +51922,21 @@ class InsertTargetSslProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_ssl_proxy_resource (google.cloud.compute_v1.types.TargetSslProxy): @@ -45115,17 +51974,21 @@ class InsertTargetTcpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_tcp_proxy_resource (google.cloud.compute_v1.types.TargetTcpProxy): @@ -45165,17 +52028,21 @@ class InsertTargetVpnGatewayRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_vpn_gateway_resource (google.cloud.compute_v1.types.TargetVpnGateway): @@ -45217,17 +52084,21 @@ class InsertUrlMapRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. url_map_resource (google.cloud.compute_v1.types.UrlMap): @@ -45267,17 +52138,21 @@ class InsertVpnGatewayRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. vpn_gateway_resource (google.cloud.compute_v1.types.VpnGateway): @@ -45321,17 +52196,21 @@ class InsertVpnTunnelRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. vpn_tunnel_resource (google.cloud.compute_v1.types.VpnTunnel): @@ -45358,10 +52237,76 @@ class InsertVpnTunnelRequest(proto.Message): ) +class InsertWireGroupRequest(proto.Message): + r"""A request message for WireGroups.Insert. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + cross_site_network (str): + + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. Specify a + unique request ID so that if you must retry your request, + the server will know to ignore the request if it has already + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + + This field is a member of `oneof`_ ``_request_id``. + validate_only (bool): + [Input Only] Validate the new configuration, but don't + create it. + + This field is a member of `oneof`_ ``_validate_only``. + wire_group_resource (google.cloud.compute_v1.types.WireGroup): + The body resource for this request + """ + + cross_site_network: str = proto.Field( + proto.STRING, + number=108192469, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + validate_only: bool = proto.Field( + proto.BOOL, + number=242744629, + optional=True, + ) + wire_group_resource: "WireGroup" = proto.Field( + proto.MESSAGE, + number=117104840, + message="WireGroup", + ) + + class Instance(proto.Message): - r"""Represents an Instance resource. An instance is a virtual - machine that is hosted on Google Cloud Platform. For more - information, read Virtual Machine Instances. + r"""Represents an Instance resource. + + An instance is a virtual machine that is hosted on Google Cloud + Platform. For more information, readVirtual Machine Instances. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -45377,18 +52322,20 @@ class Instance(proto.Message): packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more - information, see Enabling IP Forwarding . + information, seeEnabling IP Forwarding. This field is a member of `oneof`_ ``_can_ip_forward``. confidential_instance_config (google.cloud.compute_v1.types.ConfidentialInstanceConfig): This field is a member of `oneof`_ ``_confidential_instance_config``. cpu_platform (str): - [Output Only] The CPU platform used by this instance. + Output only. [Output Only] The CPU platform used by this + instance. This field is a member of `oneof`_ ``_cpu_platform``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. deletion_protection (bool): @@ -45418,8 +52365,10 @@ class Instance(proto.Message): Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to - update the instance. To see the latest - fingerprint, make get() request to the instance. + update the instance. + + To see the latest fingerprint, make get() + request to the instance. This field is a member of `oneof`_ ``_fingerprint``. guest_accelerators (MutableSequence[google.cloud.compute_v1.types.AcceleratorConfig]): @@ -45436,19 +52385,22 @@ class Instance(proto.Message): This field is a member of `oneof`_ ``_hostname``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. instance_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): Encrypts suspended data for an instance with - a customer-managed encryption key. If you are - creating a new instance, this field will encrypt - the local SSD and in-memory contents of the - instance during the suspend operation. If you do - not provide an encryption key when creating the - instance, then the local SSD and in-memory - contents will be encrypted using an + acustomer-managed encryption key. + + If you are creating a new instance, this field + will encrypt the local SSD and in-memory + contents of the instance during the suspend + operation. + + If you do not provide an encryption key when + creating the instance, then the local SSD and + in-memory contents will be encrypted using an automatically generated key during the suspend operation. @@ -45462,8 +52414,8 @@ class Instance(proto.Message): This field is a member of `oneof`_ ``_key_revocation_action_type``. kind (str): - [Output Only] Type of the resource. Always compute#instance - for instances. + Output only. [Output Only] Type of the resource. Always + compute#instance for instances. This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -45474,66 +52426,77 @@ class Instance(proto.Message): changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change - labels. To see the latest fingerprint, make - get() request to the instance. + labels. + + To see the latest fingerprint, make get() + request to the instance. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): Labels to apply to this instance. These can be later modified by the setLabels method. last_start_timestamp (str): - [Output Only] Last start timestamp in RFC3339 text format. + Output only. [Output Only] Last start timestamp inRFC3339 + text format. This field is a member of `oneof`_ ``_last_start_timestamp``. last_stop_timestamp (str): - [Output Only] Last stop timestamp in RFC3339 text format. + Output only. [Output Only] Last stop timestamp inRFC3339 + text format. This field is a member of `oneof`_ ``_last_stop_timestamp``. last_suspended_timestamp (str): - [Output Only] Last suspended timestamp in RFC3339 text - format. + Output only. [Output Only] Last suspended timestamp + inRFC3339 text format. This field is a member of `oneof`_ ``_last_suspended_timestamp``. machine_type (str): Full or partial URL of the machine type resource to use for this instance, in the - format: zones/zone/machineTypes/machine-type. + format:zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a - valid partial url to a predefined machine type: + valid partial url to a predefined + machine type: + zones/us-central1-f/machineTypes/n1-standard-1 - To create a custom machine type, provide a URL - to a machine type in the following format, where - CPUS is 1 or an even number up to 32 (2, 4, 6, - ... 24, etc), and MEMORY is the total memory for - this instance. Memory must be a multiple of 256 - MB and must be supplied in MB (e.g. 5 GB of - memory is 5120 MB): - zones/zone/machineTypes/custom-CPUS-MEMORY For - example: + + To create acustom + machine type, provide a URL to a machine type in + the following format, where CPUS is 1 or an even + number up to 32 (2, 4, 6, ... 24, etc), and + MEMORY is the total + memory for this instance. Memory must be a + multiple of 256 MB and must be supplied in MB + (e.g. 5 GB of memory is 5120 MB): + + zones/zone/machineTypes/custom-CPUS-MEMORY + + For example: zones/us-central1-f/machineTypes/custom-4-5120 - For a full list of restrictions, read the - Specifications for custom machine types. + For a full list of restrictions, read + theSpecifications for custom machine types. This field is a member of `oneof`_ ``_machine_type``. metadata (google.cloud.compute_v1.types.Metadata): - The metadata key/value pairs assigned to this - instance. This includes metadata keys that were - explicitly defined for the instance. + The metadata key/value pairs assigned + to this instance. This includes metadata keys + that were explicitly defined for the instance. This field is a member of `oneof`_ ``_metadata``. min_cpu_platform (str): - Specifies a minimum CPU platform for the VM - instance. Applicable values are the friendly - names of CPU platforms, such as minCpuPlatform: - "Intel Haswell" or minCpuPlatform: "Intel Sandy + Specifies aminimum CPU + platform for the VM instance. Applicable values + are the friendly names of CPU platforms, such as + minCpuPlatform: "Intel Haswell" or + minCpuPlatform: "Intel Sandy Bridge". This field is a member of `oneof`_ ``_min_cpu_platform``. name (str): The name of the resource, provided by the client when initially creating the resource. The resource name must be - 1-63 characters long, and comply with RFC1035. Specifically, + 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all @@ -45570,17 +52533,17 @@ class Instance(proto.Message): resource_policies (MutableSequence[str]): Resource policies applied to this instance. resource_status (google.cloud.compute_v1.types.ResourceStatus): - [Output Only] Specifies values set for instance attributes - as compared to the values requested by user in the - corresponding input only field. + Output only. [Output Only] Specifies values set for instance + attributes as compared to the values requested by user in + the corresponding input only field. This field is a member of `oneof`_ ``_resource_status``. satisfies_pzi (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzi``. satisfies_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. scheduling (google.cloud.compute_v1.types.Scheduling): @@ -45589,18 +52552,21 @@ class Instance(proto.Message): This field is a member of `oneof`_ ``_scheduling``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. service_accounts (MutableSequence[google.cloud.compute_v1.types.ServiceAccount]): A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is - supported. Service accounts generate access - tokens that can be accessed through the metadata - server and used to authenticate applications on - the instance. See Service Accounts for more - information. + supported. + + Service accounts generate access tokens that can + be accessed through the metadata server and used + to authenticate applications on the instance. + SeeService Accounts + for more information. shielded_instance_config (google.cloud.compute_v1.types.ShieldedInstanceConfig): This field is a member of `oneof`_ ``_shielded_instance_config``. @@ -45617,22 +52583,23 @@ class Instance(proto.Message): This field is a member of `oneof`_ ``_source_machine_image_encryption_key``. start_restricted (bool): - [Output Only] Whether a VM has been restricted for start - because Compute Engine has detected suspicious activity. + Output only. [Output Only] Whether a VM has been restricted + for start because Compute Engine has detected suspicious + activity. This field is a member of `oneof`_ ``_start_restricted``. status (str): - [Output Only] The status of the instance. One of the - following values: PROVISIONING, STAGING, RUNNING, STOPPING, - SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more - information about the status of the instance, see Instance - life cycle. Check the Status enum for the list of possible - values. + Output only. [Output Only] The status of the instance. One + of the following values: PROVISIONING, STAGING,RUNNING, + STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. + For more information about the status of the instance, see + Instance life cycle. Check the Status enum for the list of + possible values. This field is a member of `oneof`_ ``_status``. status_message (str): - [Output Only] An optional, human-readable explanation of the - status. + Output only. [Output Only] An optional, human-readable + explanation of the status. This field is a member of `oneof`_ ``_status_message``. tags (google.cloud.compute_v1.types.Tags): @@ -45641,14 +52608,15 @@ class Instance(proto.Message): firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within - the list must comply with RFC1035. Multiple tags + the list must comply withRFC1035. Multiple tags can be specified via the 'tags.items' field. This field is a member of `oneof`_ ``_tags``. zone (str): - [Output Only] URL of the zone where the instance resides. - You must specify this field as part of the HTTP request URL. - It is not settable as a field in the request body. + Output only. [Output Only] URL of the zone where the + instance resides. You must specify this field as part of the + HTTP request URL. It is not settable as a field in the + request body. This field is a member of `oneof`_ ``_zone``. """ @@ -45705,10 +52673,10 @@ class PrivateIpv6GoogleAccess(proto.Enum): INHERIT_FROM_SUBNETWORK = 530256959 class Status(proto.Enum): - r"""[Output Only] The status of the instance. One of the following - values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, - SUSPENDED, REPAIRING, and TERMINATED. For more information about the - status of the instance, see Instance life cycle. + r"""Output only. [Output Only] The status of the instance. One of the + following values: PROVISIONING, STAGING,RUNNING, STOPPING, + SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For more information + about the status of the instance, see Instance life cycle. Values: UNDEFINED_STATUS (0): @@ -46018,26 +52986,27 @@ class InstanceAggregatedList(proto.Message): An object that contains a list of instances scoped by zone. kind (str): - [Output Only] Type of resource. Always - compute#instanceAggregatedList for aggregated lists of + Output only. [Output Only] Type of resource. + Alwayscompute#instanceAggregatedList for aggregated lists of Instance resources. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -46093,11 +53062,13 @@ class InstanceConsumptionData(proto.Message): Attributes: consumption_info (google.cloud.compute_v1.types.InstanceConsumptionInfo): - Resources consumed by the instance. + Output only. Resources consumed by the + instance. This field is a member of `oneof`_ ``_consumption_info``. instance (str): - Server-defined URL for the instance. + Output only. Server-defined URL for the + instance. This field is a member of `oneof`_ ``_instance``. """ @@ -46122,23 +53093,23 @@ class InstanceConsumptionInfo(proto.Message): Attributes: guest_cpus (int): - The number of virtual CPUs that are available - to the instance. + Output only. The number of virtual CPUs that + are available to the instance. This field is a member of `oneof`_ ``_guest_cpus``. local_ssd_gb (int): - The amount of local SSD storage available to - the instance, defined in GiB. + Output only. The amount of local SSD storage + available to the instance, defined in GiB. This field is a member of `oneof`_ ``_local_ssd_gb``. memory_mb (int): - The amount of physical memory available to - the instance, defined in MiB. + Output only. The amount of physical memory + available to the instance, defined in MiB. This field is a member of `oneof`_ ``_memory_mb``. min_node_cpus (int): - The minimal guaranteed number of virtual CPUs - that are reserved. + Output only. The minimal guaranteed number of + virtual CPUs that are reserved. This field is a member of `oneof`_ ``_min_node_cpus``. """ @@ -46166,23 +53137,32 @@ class InstanceConsumptionInfo(proto.Message): class InstanceGroup(proto.Message): - r"""Represents an Instance Group resource. Instance Groups can be - used to configure a target for load balancing. Instance groups - can either be managed or unmanaged. To create managed instance - groups, use the instanceGroupManager or - regionInstanceGroupManager resource instead. Use zonal unmanaged - instance groups if you need to apply load balancing to groups of - heterogeneous instances or if you need to manage the instances - yourself. You cannot create regional unmanaged instance groups. - For more information, read Instance groups. + r"""Represents an Instance Group resource. + + Instance Groups can be used to configure a target forload + balancing. + + Instance groups can either be managed or unmanaged. + + To create + managed instance groups, use the instanceGroupManager + orregionInstanceGroupManager resource instead. + + Use zonal unmanaged instance groups if you need to applyload + balancing to groups of heterogeneous instances or if you need to + manage the instances yourself. You cannot create regional + unmanaged instance groups. + + For more information, readInstance + groups. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] The creation timestamp for this instance group - in RFC3339 text format. + Output only. [Output Only] The creation timestamp for this + instance group inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -46192,35 +53172,36 @@ class InstanceGroup(proto.Message): This field is a member of `oneof`_ ``_description``. fingerprint (str): - [Output Only] The fingerprint of the named ports. The system - uses this fingerprint to detect conflicts when multiple - users change the named ports concurrently. + Output only. [Output Only] The fingerprint of the named + ports. The system uses this fingerprint to detect conflicts + when multiple users change the named ports concurrently. This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] A unique identifier for this instance group, - generated by the server. + Output only. [Output Only] A unique identifier for this + instance group, generated by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] The resource type, which is always - compute#instanceGroup for instance groups. + Output only. [Output Only] The resource type, which is + alwayscompute#instanceGroup for instance groups. This field is a member of `oneof`_ ``_kind``. name (str): The name of the instance group. The name must - be 1-63 characters long, and comply with - RFC1035. + be 1-63 characters long, and comply withRFC1035. This field is a member of `oneof`_ ``_name``. named_ports (MutableSequence[google.cloud.compute_v1.types.NamedPort]): - Optional. Assigns a name to a port number. For example: - {name: "http", port: 80} This allows the system to reference - ports by the assigned name instead of a port number. Named - ports can also contain multiple ports. For example: [{name: - "app1", port: 8080}, {name: "app1", port: 8081}, {name: - "app2", port: 8082}] Named ports apply to all instances in - this instance group. + Optional. Assigns a name to a port number. For + example:{name: "http", port: 80} + + This allows the system to reference ports by the assigned + name instead of a port number. Named ports can also contain + multiple ports. For example:[{name: "app1", port: 8080}, + {name: "app1", port: 8081}, {name: "app2", port: 8082}] + + Named ports apply to all instances in this instance group. network (str): [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple @@ -46230,31 +53211,31 @@ class InstanceGroup(proto.Message): This field is a member of `oneof`_ ``_network``. region (str): - [Output Only] The URL of the region where the instance group - is located (for regional resources). + Output only. [Output Only] The URL of theregion where the + instance group is located (for regional resources). This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] The URL for this instance group. The server - generates this URL. + Output only. [Output Only] The URL for this instance group. + The server generates this URL. This field is a member of `oneof`_ ``_self_link``. size (int): - [Output Only] The total number of instances in the instance - group. + Output only. [Output Only] The total number of instances in + the instance group. This field is a member of `oneof`_ ``_size``. subnetwork (str): - [Output Only] The URL of the subnetwork to which all - instances in the instance group belong. If your instance has - multiple network interfaces, then the network and subnetwork - fields only refer to the network and subnet used by your - primary interface (nic0). + Output only. [Output Only] The URL of the subnetwork to + which all instances in the instance group belong. If your + instance has multiple network interfaces, then the network + and subnetwork fields only refer to the network and subnet + used by your primary interface (nic0). This field is a member of `oneof`_ ``_subnetwork``. zone (str): - [Output Only] The URL of the zone where the instance group - is located (for zonal resources). + Output only. [Output Only] The URL of thezone where the + instance group is located (for zonal resources). This field is a member of `oneof`_ ``_zone``. """ @@ -46333,35 +53314,36 @@ class InstanceGroupAggregatedList(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableMapping[str, google.cloud.compute_v1.types.InstanceGroupsScopedList]): A list of InstanceGroupsScopedList resources. kind (str): - [Output Only] The resource type, which is always - compute#instanceGroupAggregatedList for aggregated lists of - instance groups. + Output only. [Output Only] The resource type, which is + alwayscompute#instanceGroupAggregatedList for aggregated + lists of instance groups. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -46415,32 +53397,33 @@ class InstanceGroupList(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.InstanceGroup]): A list of InstanceGroup resources. kind (str): - [Output Only] The resource type, which is always - compute#instanceGroupList for instance group lists. + Output only. [Output Only] The resource type, which is + alwayscompute#instanceGroupList for instance group lists. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -46483,12 +53466,17 @@ def raw_page(self): class InstanceGroupManager(proto.Message): - r"""Represents a Managed Instance Group resource. An instance - group is a collection of VM instances that you can manage as a - single entity. For more information, read Instance groups. For - zonal Managed Instance Group, use the instanceGroupManagers - resource. For regional Managed Instance Group, use the - regionInstanceGroupManagers resource. + r"""Represents a Managed Instance Group resource. + + An instance group is a collection of VM instances that you can + manage as a single entity. For more information, readInstance + groups. + + For zonal Managed Instance Group, use the instanceGroupManagers + resource. + + For regional Managed Instance Group, use + theregionInstanceGroupManagers resource. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -46506,6 +53494,7 @@ class InstanceGroupManager(proto.Message): The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. The maximum character length is 58 and the name must comply with RFC1035 format. + When a VM is created in the group, the MIG appends a hyphen and a random four-character string to the base instance name. If you want the MIG to assign sequential numbers @@ -46518,14 +53507,14 @@ class InstanceGroupManager(proto.Message): This field is a member of `oneof`_ ``_base_instance_name``. creation_timestamp (str): - [Output Only] The creation timestamp for this managed - instance group in RFC3339 text format. + Output only. [Output Only] The creation timestamp for this + managed instance group inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. current_actions (google.cloud.compute_v1.types.InstanceGroupManagerActionsSummary): - [Output Only] The list of instance actions and the number of - instances in this managed instance group that are scheduled - for each of those actions. + Output only. [Output Only] The list of instance actions and + the number of instances in this managed instance group that + are scheduled for each of those actions. This field is a member of `oneof`_ ``_current_actions``. description (str): @@ -46544,26 +53533,28 @@ class InstanceGroupManager(proto.Message): ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager, - otherwise the request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve an - InstanceGroupManager. + otherwise the request will fail with error412 + conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve an InstanceGroupManager. This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] A unique identifier for this resource type. - The server generates this identifier. + Output only. [Output Only] A unique identifier for this + resource type. The server generates this identifier. This field is a member of `oneof`_ ``_id``. instance_flexibility_policy (google.cloud.compute_v1.types.InstanceGroupManagerInstanceFlexibilityPolicy): Instance flexibility allowing MIG to create - VMs from multiple types of machines. Instance - flexibility configuration on MIG overrides - instance template configuration. + VMs from multiple types of machines. + Instance flexibility configuration on MIG + overrides instance template configuration. This field is a member of `oneof`_ ``_instance_flexibility_policy``. instance_group (str): - [Output Only] The URL of the Instance Group resource. + Output only. [Output Only] The URL of the Instance Group + resource. This field is a member of `oneof`_ ``_instance_group``. instance_lifecycle_policy (google.cloud.compute_v1.types.InstanceGroupManagerInstanceLifecyclePolicy): @@ -46577,14 +53568,15 @@ class InstanceGroupManager(proto.Message): group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do - not change unless you run recreateInstances, run - applyUpdatesToInstances, or set the group's - updatePolicy.type to PROACTIVE. + not change unless you run recreateInstances, + runapplyUpdatesToInstances, or set the + group'supdatePolicy.type to PROACTIVE. This field is a member of `oneof`_ ``_instance_template``. kind (str): - [Output Only] The resource type, which is always - compute#instanceGroupManager for managed instance groups. + Output only. [Output Only] The resource type, which is + alwayscompute#instanceGroupManager for managed instance + groups. This field is a member of `oneof`_ ``_kind``. list_managed_instances_results (str): @@ -46598,15 +53590,15 @@ class InstanceGroupManager(proto.Message): name (str): The name of the managed instance group. The name must be 1-63 characters long, and comply - with RFC1035. + withRFC1035. This field is a member of `oneof`_ ``_name``. named_ports (MutableSequence[google.cloud.compute_v1.types.NamedPort]): [Output Only] Named ports configured on the Instance Groups complementary to this Instance Group Manager. region (str): - [Output Only] The URL of the region where the managed - instance group resides (for regional resources). + Output only. [Output Only] The URL of theregion where the + managed instance group resides (for regional resources). This field is a member of `oneof`_ ``_region``. resource_policies (google.cloud.compute_v1.types.InstanceGroupManagerResourcePolicies): @@ -46615,16 +53607,16 @@ class InstanceGroupManager(proto.Message): This field is a member of `oneof`_ ``_resource_policies``. satisfies_pzi (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzi``. satisfies_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. self_link (str): - [Output Only] The URL for this managed instance group. The - server defines this URL. + Output only. [Output Only] The URL for this managed instance + group. The server defines this URL. This field is a member of `oneof`_ ``_self_link``. standby_policy (google.cloud.compute_v1.types.InstanceGroupManagerStandbyPolicy): @@ -46638,12 +53630,13 @@ class InstanceGroupManager(proto.Message): This field is a member of `oneof`_ ``_stateful_policy``. status (google.cloud.compute_v1.types.InstanceGroupManagerStatus): - [Output Only] The status of this managed instance group. + Output only. [Output Only] The status of this managed + instance group. This field is a member of `oneof`_ ``_status``. target_pools (MutableSequence[str]): The URLs for all TargetPool resources to - which instances in the instanceGroup field are + which instances in theinstanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. @@ -46658,20 +53651,25 @@ class InstanceGroupManager(proto.Message): target_stopped_size (int): The target number of stopped instances for this managed instance group. This number changes - when you: - Stop instance using the - stopInstances method or start instances using - the startInstances method. - Manually change the - targetStoppedSize using the update method. + when you: + + - Stop instance using the stopInstances + method or start instances using the + startInstances method. + - Manually change the targetStoppedSize using + the update method. This field is a member of `oneof`_ ``_target_stopped_size``. target_suspended_size (int): The target number of suspended instances for this managed instance group. This number changes - when you: - Suspend instance using the - suspendInstances method or resume instances - using the resumeInstances method. - Manually - change the targetSuspendedSize using the update - method. + when you: + + - Suspend instance using the suspendInstances + method or resume instances using the + resumeInstances method. + - Manually change the targetSuspendedSize + using the update method. This field is a member of `oneof`_ ``_target_suspended_size``. update_policy (google.cloud.compute_v1.types.InstanceGroupManagerUpdatePolicy): @@ -46681,19 +53679,20 @@ class InstanceGroupManager(proto.Message): This field is a member of `oneof`_ ``_update_policy``. versions (MutableSequence[google.cloud.compute_v1.types.InstanceGroupManagerVersion]): Specifies the instance templates used by this - managed instance group to create instances. Each - version is defined by an instanceTemplate and a - name. Every version can appear at most once per - instance group. This field overrides the + managed instance group to create instances. + + Each version is defined by an instanceTemplate + and aname. Every version can appear at most once + per instance group. This field overrides the top-level instanceTemplate field. Read more - about the relationships between these fields. - Exactly one version must leave the targetSize - field unset. That version will be applied to all - remaining instances. For more information, read - about canary updates. + about therelationships + between these fields. Exactly one version must + leave thetargetSize field unset. That version + will be applied to all remaining instances. For + more information, read aboutcanary updates. zone (str): - [Output Only] The URL of a zone where the managed instance - group is located (for zonal resources). + Output only. [Output Only] The URL of azone where the + managed instance group is located (for zonal resources). This field is a member of `oneof`_ ``_zone``. """ @@ -46708,7 +53707,7 @@ class ListManagedInstancesResults(proto.Enum): set. PAGELESS (32183464): (Default) Pagination is disabled for the - group's listManagedInstances API method. + group'slistManagedInstances API method. maxResults and pageToken query parameters are ignored and all instances are returned in a single response. @@ -46905,91 +53904,94 @@ class InstanceGroupManagerActionsSummary(proto.Message): Attributes: abandoning (int): - [Output Only] The total number of instances in the managed - instance group that are scheduled to be abandoned. - Abandoning an instance removes it from the managed instance - group without deleting it. + Output only. [Output Only] The total number of instances in + the managed instance group that are scheduled to be + abandoned. Abandoning an instance removes it from the + managed instance group without deleting it. This field is a member of `oneof`_ ``_abandoning``. creating (int): - [Output Only] The number of instances in the managed - instance group that are scheduled to be created or are - currently being created. If the group fails to create any of - these instances, it tries again until it creates the - instance successfully. If you have disabled creation - retries, this field will not be populated; instead, the - creatingWithoutRetries field will be populated. + Output only. [Output Only] The number of instances in the + managed instance group that are scheduled to be created or + are currently being created. If the group fails to create + any of these instances, it tries again until it creates the + instance successfully. + + If you have disabled creation retries, this field will not + be populated; instead, the creatingWithoutRetries field will + be populated. This field is a member of `oneof`_ ``_creating``. creating_without_retries (int): - [Output Only] The number of instances that the managed - instance group will attempt to create. The group attempts to - create each instance only once. If the group fails to create - any of these instances, it decreases the group's targetSize - value accordingly. + Output only. [Output Only] The number of instances that the + managed instance group will attempt to create. The group + attempts to create each instance only once. If the group + fails to create any of these instances, it decreases the + group's targetSize value accordingly. This field is a member of `oneof`_ ``_creating_without_retries``. deleting (int): - [Output Only] The number of instances in the managed - instance group that are scheduled to be deleted or are - currently being deleted. + Output only. [Output Only] The number of instances in the + managed instance group that are scheduled to be deleted or + are currently being deleted. This field is a member of `oneof`_ ``_deleting``. none (int): - [Output Only] The number of instances in the managed - instance group that are running and have no scheduled - actions. + Output only. [Output Only] The number of instances in the + managed instance group that are running and have no + scheduled actions. This field is a member of `oneof`_ ``_none``. recreating (int): - [Output Only] The number of instances in the managed - instance group that are scheduled to be recreated or are - currently being being recreated. Recreating an instance + Output only. [Output Only] The number of instances in the + managed instance group that are scheduled to be recreated or + are currently being being recreated. Recreating an instance deletes the existing root persistent disk and creates a new disk from the image that is defined in the instance template. This field is a member of `oneof`_ ``_recreating``. refreshing (int): - [Output Only] The number of instances in the managed - instance group that are being reconfigured with properties - that do not require a restart or a recreate action. For - example, setting or removing target pools for the instance. + Output only. [Output Only] The number of instances in the + managed instance group that are being reconfigured with + properties that do not require a restart or a recreate + action. For example, setting or removing target pools for + the instance. This field is a member of `oneof`_ ``_refreshing``. restarting (int): - [Output Only] The number of instances in the managed - instance group that are scheduled to be restarted or are - currently being restarted. + Output only. [Output Only] The number of instances in the + managed instance group that are scheduled to be restarted or + are currently being restarted. This field is a member of `oneof`_ ``_restarting``. resuming (int): - [Output Only] The number of instances in the managed - instance group that are scheduled to be resumed or are - currently being resumed. + Output only. [Output Only] The number of instances in the + managed instance group that are scheduled to be resumed or + are currently being resumed. This field is a member of `oneof`_ ``_resuming``. starting (int): - [Output Only] The number of instances in the managed - instance group that are scheduled to be started or are - currently being started. + Output only. [Output Only] The number of instances in the + managed instance group that are scheduled to be started or + are currently being started. This field is a member of `oneof`_ ``_starting``. stopping (int): - [Output Only] The number of instances in the managed - instance group that are scheduled to be stopped or are - currently being stopped. + Output only. [Output Only] The number of instances in the + managed instance group that are scheduled to be stopped or + are currently being stopped. This field is a member of `oneof`_ ``_stopping``. suspending (int): - [Output Only] The number of instances in the managed - instance group that are scheduled to be suspended or are - currently being suspended. + Output only. [Output Only] The number of instances in the + managed instance group that are scheduled to be suspended or + are currently being suspended. This field is a member of `oneof`_ ``_suspending``. verifying (int): - [Output Only] The number of instances in the managed - instance group that are being verified. See the + Output only. [Output Only] The number of instances in the + managed instance group that are being verified. See the managedInstances[].currentAction property in the listManagedInstances method documentation. @@ -47070,36 +54072,37 @@ class InstanceGroupManagerAggregatedList(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableMapping[str, google.cloud.compute_v1.types.InstanceGroupManagersScopedList]): A list of InstanceGroupManagersScopedList resources. kind (str): - [Output Only] The resource type, which is always - compute#instanceGroupManagerAggregatedList for an aggregated - list of managed instance groups. + Output only. [Output Only] The resource type, which is + alwayscompute#instanceGroupManagerAggregatedList for an + aggregated list of managed instance groups. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -47154,11 +54157,12 @@ class InstanceGroupManagerAllInstancesConfig(proto.Message): Attributes: properties (google.cloud.compute_v1.types.InstancePropertiesPatch): Properties to set on all instances in the - group. You can add or modify properties using - the instanceGroupManagers.patch or - regionInstanceGroupManagers.patch. After setting - allInstancesConfig on the group, you must update - the group's instances to apply the + group. + You can add or modify properties using + theinstanceGroupManagers.patch + orregionInstanceGroupManagers.patch. After + settingallInstancesConfig on the group, you must + update the group's instances to apply the configuration. To apply the configuration, set the group's updatePolicy.type field to use proactive updates or use the @@ -47276,26 +54280,38 @@ class InstanceGroupManagerInstanceLifecyclePolicy(proto.Message): default_action_on_failure (str): The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running - on that VM fails a health check. Valid values are - REPAIR - (default): MIG automatically repairs a failed or an - unhealthy VM by recreating it. For more information, see - About repairing VMs in a MIG. - DO_NOTHING: MIG does not - repair a failed or an unhealthy VM. Check the - DefaultActionOnFailure enum for the list of possible values. + on that VM fails a health check. Valid values are + + :: + + - REPAIR (default): MIG automatically repairs a failed or + an unhealthy VM by recreating it. For more information, see About + repairing VMs in a MIG. + - DO_NOTHING: MIG does not repair a failed or an unhealthy + VM. + + Check the DefaultActionOnFailure enum for the list of + possible values. This field is a member of `oneof`_ ``_default_action_on_failure``. force_update_on_repair (str): A bit indicating whether to forcefully apply the group's latest configuration when repairing - a VM. Valid options are: - NO (default): If - configuration updates are available, they are - not forcefully applied during repair. Instead, - configuration updates are applied according to - the group's update policy. - YES: If - configuration updates are available, they are - applied during repair. Check the - ForceUpdateOnRepair enum for the list of - possible values. + a VM. Valid options are: + + + + - NO (default): If configuration updates + are available, they are not forcefully + applied during repair. Instead, configuration + updates are applied according to the + group's update policy. + + - YES: If configuration updates are + available, they are applied during + repair. + Check the ForceUpdateOnRepair enum for the list + of possible values. This field is a member of `oneof`_ ``_force_update_on_repair``. """ @@ -47303,10 +54319,15 @@ class InstanceGroupManagerInstanceLifecyclePolicy(proto.Message): class DefaultActionOnFailure(proto.Enum): r"""The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails - a health check. Valid values are - REPAIR (default): MIG - automatically repairs a failed or an unhealthy VM by recreating it. - For more information, see About repairing VMs in a MIG. - - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. + a health check. Valid values are + + :: + + - REPAIR (default): MIG automatically repairs a failed or + an unhealthy VM by recreating it. For more information, see About + repairing VMs in a MIG. + - DO_NOTHING: MIG does not repair a failed or an unhealthy + VM. Values: UNDEFINED_DEFAULT_ACTION_ON_FAILURE (0): @@ -47326,12 +54347,17 @@ class DefaultActionOnFailure(proto.Enum): class ForceUpdateOnRepair(proto.Enum): r"""A bit indicating whether to forcefully apply the group's - latest configuration when repairing a VM. Valid options are: - - NO (default): If configuration updates are available, they are - not forcefully applied during repair. Instead, configuration - updates are applied according to the group's update policy. - - YES: If configuration updates are available, they are applied - during repair. + latest configuration when repairing a VM. Valid options are: + + + + - NO (default): If configuration updates are available, + they are not forcefully applied during repair. Instead, + configuration updates are applied according to the + group's update policy. + + - YES: If configuration updates are available, they are + applied during repair. Values: UNDEFINED_FORCE_UPDATE_ON_REPAIR (0): @@ -47365,33 +54391,34 @@ class InstanceGroupManagerList(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.InstanceGroupManager]): A list of InstanceGroupManager resources. kind (str): - [Output Only] The resource type, which is always - compute#instanceGroupManagerList for a list of managed - instance groups. + Output only. [Output Only] The resource type, which is + always compute#instanceGroupManagerList for a list of + managed instance groups. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -47445,8 +54472,8 @@ class InstanceGroupManagerResizeRequest(proto.Message): Attributes: creation_timestamp (str): - [Output Only] The creation timestamp for this resize request - in RFC3339 text format. + Output only. [Output Only] The creation timestamp for this + resize request inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -47454,20 +54481,20 @@ class InstanceGroupManagerResizeRequest(proto.Message): This field is a member of `oneof`_ ``_description``. id (int): - [Output Only] A unique identifier for this resource type. - The server generates this identifier. + Output only. [Output Only] A unique identifier for this + resource type. The server generates this identifier. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] The resource type, which is always - compute#instanceGroupManagerResizeRequest for resize + Output only. [Output Only] The resource type, which is + alwayscompute#instanceGroupManagerResizeRequest for resize requests. This field is a member of `oneof`_ ``_kind``. name (str): The name of this resize request. The name - must be 1-63 characters long, and comply with - RFC1035. + must be 1-63 characters long, and comply + withRFC1035. This field is a member of `oneof`_ ``_name``. requested_run_duration (google.cloud.compute_v1.types.Duration): @@ -47484,33 +54511,34 @@ class InstanceGroupManagerResizeRequest(proto.Message): This field is a member of `oneof`_ ``_resize_by``. self_link (str): - [Output Only] The URL for this resize request. The server - defines this URL. + Output only. [Output Only] The URL for this resize request. + The server defines this URL. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Output only. [Output Only] Server-defined URL for this + resource with the resource id. This field is a member of `oneof`_ ``_self_link_with_id``. state (str): - [Output only] Current state of the request. Check the State - enum for the list of possible values. + Output only. [Output only] Current state of the request. + Check the State enum for the list of possible values. This field is a member of `oneof`_ ``_state``. status (google.cloud.compute_v1.types.InstanceGroupManagerResizeRequestStatus): - [Output only] Status of the request. + Output only. [Output only] Status of the request. This field is a member of `oneof`_ ``_status``. zone (str): - [Output Only] The URL of a zone where the resize request is - located. Populated only for zonal resize requests. + Output only. [Output Only] The URL of azone where the resize + request is located. Populated only for zonal resize + requests. This field is a member of `oneof`_ ``_zone``. """ class State(proto.Enum): - r"""[Output only] Current state of the request. + r"""Output only. [Output only] Current state of the request. Values: UNDEFINED_STATE (0): @@ -47616,23 +54644,25 @@ class InstanceGroupManagerResizeRequestStatus(proto.Message): Attributes: error (google.cloud.compute_v1.types.Error): - [Output only] Fatal errors encountered during the queueing - or provisioning phases of the ResizeRequest that caused the - transition to the FAILED state. Contrary to the last_attempt - errors, this field is final and errors are never removed - from here, as the ResizeRequest is not going to retry. + Output only. [Output only] Fatal errors encountered during + the queueing or provisioning phases of the ResizeRequest + that caused the transition to the FAILED state. Contrary to + the last_attempt errors, this field is final and errors are + never removed from here, as the ResizeRequest is not going + to retry. This field is a member of `oneof`_ ``_error``. last_attempt (google.cloud.compute_v1.types.InstanceGroupManagerResizeRequestStatusLastAttempt): - [Output only] Information about the last attempt to fulfill - the request. The value is temporary since the ResizeRequest - can retry, as long as it's still active and the last attempt - value can either be cleared or replaced with a different - error. Since ResizeRequest retries infrequently, the value - may be stale and no longer show an active problem. The value - is cleared when ResizeRequest transitions to the final state - (becomes inactive). If the final state is FAILED the error - describing it will be storred in the "error" field only. + Output only. [Output only] Information about the last + attempt to fulfill the request. The value is temporary since + the ResizeRequest can retry, as long as it's still active + and the last attempt value can either be cleared or replaced + with a different error. Since ResizeRequest retries + infrequently, the value may be stale and no longer show an + active problem. The value is cleared when ResizeRequest + transitions to the final state (becomes inactive). If the + final state is FAILED the error describing it will be + storred in the "error" field only. This field is a member of `oneof`_ ``_last_attempt``. """ @@ -47658,8 +54688,8 @@ class InstanceGroupManagerResizeRequestStatusLastAttempt(proto.Message): Attributes: error (google.cloud.compute_v1.types.Error): - Errors that prevented the ResizeRequest to be - fulfilled. + Output only. Errors that prevented the + ResizeRequest to be fulfilled. This field is a member of `oneof`_ ``_error``. """ @@ -47679,33 +54709,34 @@ class InstanceGroupManagerResizeRequestsListResponse(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.InstanceGroupManagerResizeRequest]): A list of resize request resources. kind (str): - [Output Only] Type of the resource. Always - compute#instanceGroupManagerResizeRequestList for a list of - resize requests. + Output only. [Output Only] Type of the resource. + Alwayscompute#instanceGroupManagerResizeRequestList for a + list of resize requests. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -47755,14 +54786,18 @@ class InstanceGroupManagerResourcePolicies(proto.Message): Attributes: workload_policy (str): The URL of the workload policy that is - specified for this managed instance group. It - can be a full or partial URL. For example, the - following are all valid URLs to a workload - policy: - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /resourcePolicies/resourcePolicy - - projects/project/regions/region/resourcePolicies/resourcePolicy - - regions/region/resourcePolicies/resourcePolicy + specified for this managed instance group. + It can be a full or partial URL. For example, + the following are all valid URLs to a workload + policy: + + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy + - + projects/project/regions/region/resourcePolicies/resourcePolicy + - + regions/region/resourcePolicies/resourcePolicy This field is a member of `oneof`_ ``_workload_policy``. """ @@ -47838,34 +54873,34 @@ class InstanceGroupManagerStatus(proto.Message): Attributes: all_instances_config (google.cloud.compute_v1.types.InstanceGroupManagerStatusAllInstancesConfig): - [Output only] Status of all-instances configuration on the - group. + Output only. [Output only] Status of all-instances + configuration on the group. This field is a member of `oneof`_ ``_all_instances_config``. autoscaler (str): - [Output Only] The URL of the Autoscaler that targets this - instance group manager. + Output only. [Output Only] The URL of theAutoscaler that + targets this instance group manager. This field is a member of `oneof`_ ``_autoscaler``. is_stable (bool): - [Output Only] A bit indicating whether the managed instance - group is in a stable state. A stable state means that: none - of the instances in the managed instance group is currently - undergoing any type of change (for example, creation, - restart, or deletion); no future changes are scheduled for - instances in the managed instance group; and the managed - instance group itself is not being modified. + Output only. [Output Only] A bit indicating whether the + managed instance group is in a stable state. A stable state + means that: none of the instances in the managed instance + group is currently undergoing any type of change (for + example, creation, restart, or deletion); no future changes + are scheduled for instances in the managed instance group; + and the managed instance group itself is not being modified. This field is a member of `oneof`_ ``_is_stable``. stateful (google.cloud.compute_v1.types.InstanceGroupManagerStatusStateful): - [Output Only] Stateful status of the given Instance Group - Manager. + Output only. [Output Only] Stateful status of the given + Instance Group Manager. This field is a member of `oneof`_ ``_stateful``. version_target (google.cloud.compute_v1.types.InstanceGroupManagerStatusVersionTarget): - [Output Only] A status of consistency of Instances' versions - with their target version specified by version field on - Instance Group Manager. + Output only. [Output Only] A status of consistency of + Instances' versions with their target version specified by + version field on Instance Group Manager. This field is a member of `oneof`_ ``_version_target``. """ @@ -47907,13 +54942,15 @@ class InstanceGroupManagerStatusAllInstancesConfig(proto.Message): Attributes: current_revision (str): - [Output Only] Current all-instances configuration revision. - This value is in RFC3339 text format. + Output only. [Output Only] Current all-instances + configuration revision. This value is in RFC3339 text + format. This field is a member of `oneof`_ ``_current_revision``. effective (bool): - [Output Only] A bit indicating whether this configuration - has been applied to all managed instances in the group. + Output only. [Output Only] A bit indicating whether this + configuration has been applied to all managed instances in + the group. This field is a member of `oneof`_ ``_effective``. """ @@ -47937,18 +54974,18 @@ class InstanceGroupManagerStatusStateful(proto.Message): Attributes: has_stateful_config (bool): - [Output Only] A bit indicating whether the managed instance - group has stateful configuration, that is, if you have - configured any items in a stateful policy or in per-instance - configs. The group might report that it has no stateful - configuration even when there is still some preserved state - on a managed instance, for example, if you have deleted all - PICs but not yet applied those deletions. + Output only. [Output Only] A bit indicating whether the + managed instance group has stateful configuration, that is, + if you have configured any items in a stateful policy or in + per-instance configs. The group might report that it has no + stateful configuration even when there is still some + preserved state on a managed instance, for example, if you + have deleted all PICs but not yet applied those deletions. This field is a member of `oneof`_ ``_has_stateful_config``. per_instance_configs (google.cloud.compute_v1.types.InstanceGroupManagerStatusStatefulPerInstanceConfigs): - [Output Only] Status of per-instance configurations on the - instances. + Output only. [Output Only] Status of per-instance + configurations on the instances. This field is a member of `oneof`_ ``_per_instance_configs``. """ @@ -47975,9 +55012,9 @@ class InstanceGroupManagerStatusStatefulPerInstanceConfigs(proto.Message): Attributes: all_effective (bool): - A bit indicating if all of the group's - per-instance configurations (listed in the - output of a listPerInstanceConfigs API call) + Output only. A bit indicating if all of the + group's per-instance configurations (listed in + the output of a listPerInstanceConfigs API call) have status EFFECTIVE or there are no per-instance-configs. @@ -47998,10 +55035,10 @@ class InstanceGroupManagerStatusVersionTarget(proto.Message): Attributes: is_reached (bool): - [Output Only] A bit indicating whether version target has - been reached in this managed instance group, i.e. all - instances are in their target version. Instances' target - version are specified by version field on Instance Group + Output only. [Output Only] A bit indicating whether version + target has been reached in this managed instance group, i.e. + all instances are in their target version. Instances' target + version are specified byversion field on Instance Group Manager. This field is a member of `oneof`_ ``_is_reached``. @@ -48021,28 +55058,31 @@ class InstanceGroupManagerUpdatePolicy(proto.Message): Attributes: instance_redistribution_type (str): - The instance redistribution policy for - regional managed instance groups. Valid values - are: - PROACTIVE (default): The group attempts - to maintain an even distribution of VM instances - across zones in the region. - NONE: For - non-autoscaled groups, proactive redistribution - is disabled. Check the - InstanceRedistributionType enum for the list of - possible values. + The + instance redistribution policy for regional + managed instance groups. Valid values are: + + - PROACTIVE (default): The group attempts to + maintain an even distribution of VM + instances across zones in the region. + - NONE: For non-autoscaled groups, proactive + redistribution is disabled. + Check the InstanceRedistributionType enum for + the list of possible values. This field is a member of `oneof`_ ``_instance_redistribution_type``. max_surge (google.cloud.compute_v1.types.FixedOrPercent): The maximum number of instances that can be - created above the specified targetSize during - the update process. This value can be either a - fixed number or, if the group has 10 or more + created above the specifiedtargetSize during the + update process. This value can be either a fixed + number or, if the group has 10 or more instances, a percentage. If you set a percentage, the number of instances is rounded - if necessary. The default value for maxSurge is + if necessary. The default value for maxSurge is a fixed value equal to the number of zones in - which the managed instance group operates. At - least one of either maxSurge or maxUnavailable + which the managed instance group operates. + + At least one of either maxSurge ormaxUnavailable must be greater than 0. Learn more about maxSurge. @@ -48051,40 +55091,53 @@ class InstanceGroupManagerUpdatePolicy(proto.Message): The maximum number of instances that can be unavailable during the update process. An instance is considered available if all of the - following conditions are satisfied: - The - instance's status is RUNNING. - If there is a - health check on the instance group, the - instance's health check status must be HEALTHY - at least once. If there is no health check on + following conditions are satisfied: + + + + - The instance's status is + RUNNING. + - If there is a health + check on the instance group, the instance's + health check status must be HEALTHY at + least once. If there is no health check on the group, then the instance only needs to have - a status of RUNNING to be considered available. + a status of RUNNING to be considered + available. + This value can be either a fixed number or, if the group has 10 or more instances, a percentage. If you set a percentage, the number of instances is rounded if necessary. The - default value for maxUnavailable is a fixed - value equal to the number of zones in which the - managed instance group operates. At least one of - either maxSurge or maxUnavailable must be - greater than 0. Learn more about maxUnavailable. + default value formaxUnavailable is a fixed value + equal to the number of zones in which the + managed instance group operates. + + At least one of either maxSurge ormaxUnavailable + must be greater than 0. Learn more about + maxUnavailable. This field is a member of `oneof`_ ``_max_unavailable``. minimal_action (str): Minimal action to be taken on an instance. Use this option to minimize disruption as much as possible or to apply a more disruptive action - than is necessary. - To limit disruption as much - as possible, set the minimal action to REFRESH. - If your update requires a more disruptive - action, Compute Engine performs the necessary - action to execute the update. - To apply a more - disruptive action than is strictly necessary, - set the minimal action to RESTART or REPLACE. - For example, Compute Engine does not need to - restart a VM to change its metadata. But if your - application reads instance metadata only when a - VM is restarted, you can set the minimal action - to RESTART in order to pick up metadata changes. + than is necessary. + + - To limit disruption as much as possible, + set the minimal action toREFRESH. If your + update requires a more disruptive action, + Compute Engine performs the necessary action + to execute the update. + - To apply a more disruptive action than is + strictly necessary, set the minimal action + to RESTART or REPLACE. For + example, Compute Engine does not need to + restart a VM to change its metadata. But if + your application reads instance metadata only + when a VM is restarted, you can set the + minimal action to RESTART in order to pick up + metadata changes. Check the MinimalAction enum for the list of possible values. @@ -48092,7 +55145,7 @@ class InstanceGroupManagerUpdatePolicy(proto.Message): most_disruptive_allowed_action (str): Most disruptive action that is allowed to be taken on an instance. You can specify either - NONE to forbid any actions, REFRESH to avoid + NONE to forbid any actions,REFRESH to avoid restarting the VM and to limit disruption as much as possible. RESTART to allow actions that can be applied without instance replacing or @@ -48112,24 +55165,29 @@ class InstanceGroupManagerUpdatePolicy(proto.Message): This field is a member of `oneof`_ ``_replacement_method``. type_ (str): - The type of update process. You can specify - either PROACTIVE so that the MIG automatically - updates VMs to the latest configurations or - OPPORTUNISTIC so that you can select the VMs - that you want to update. Check the Type enum for - the list of possible values. + The type + of update process. You can specify either + PROACTIVE so that the MIG automatically updates + VMs to the latest configurations orOPPORTUNISTIC + so that you can select the VMs that you want to + update. + Check the Type enum for the list of possible + values. This field is a member of `oneof`_ ``_type``. """ class InstanceRedistributionType(proto.Enum): - r"""The instance redistribution policy for regional managed - instance groups. Valid values are: - PROACTIVE (default): The - group attempts to maintain an even distribution of VM instances - across zones in the region. - NONE: For non-autoscaled groups, - proactive redistribution is disabled. Additional supported - values which may be not listed in the enum directly due to - technical reasons: + r"""The + instance redistribution policy for regional managed instance + groups. Valid values are: + + - PROACTIVE (default): The group attempts to maintain an + even distribution of VM instances across zones in the region. + - NONE: For non-autoscaled groups, proactive + redistribution is disabled. + Additional supported values which may be not listed in the enum + directly due to technical reasons: NONE PROACTIVE @@ -48144,17 +55202,21 @@ class InstanceRedistributionType(proto.Enum): class MinimalAction(proto.Enum): r"""Minimal action to be taken on an instance. Use this option to minimize disruption as much as possible or to apply a more - disruptive action than is necessary. - To limit disruption as - much as possible, set the minimal action to REFRESH. If your - update requires a more disruptive action, Compute Engine - performs the necessary action to execute the update. - To apply - a more disruptive action than is strictly necessary, set the - minimal action to RESTART or REPLACE. For example, Compute - Engine does not need to restart a VM to change its metadata. But - if your application reads instance metadata only when a VM is - restarted, you can set the minimal action to RESTART in order to - pick up metadata changes. Additional supported values which may - be not listed in the enum directly due to technical reasons: + disruptive action than is necessary. + + - To limit disruption as much as possible, set the minimal + action toREFRESH. If your update requires a more disruptive + action, Compute Engine performs the necessary action to + execute the update. + - To apply a more disruptive action than is strictly + necessary, set the minimal action to RESTART or REPLACE. + For + example, Compute Engine does not need to restart a VM to + change its metadata. But if your application reads instance + metadata only when a VM is restarted, you can set the minimal + action to RESTART in order to pick up metadata changes. + Additional supported values which may be not listed in the enum + directly due to technical reasons: NONE REFRESH @@ -48170,13 +55232,14 @@ class MinimalAction(proto.Enum): class MostDisruptiveAllowedAction(proto.Enum): r"""Most disruptive action that is allowed to be taken on an - instance. You can specify either NONE to forbid any actions, - REFRESH to avoid restarting the VM and to limit disruption as - much as possible. RESTART to allow actions that can be applied - without instance replacing or REPLACE to allow all possible - actions. If the Updater determines that the minimal update - action needed is more disruptive than most disruptive allowed - action you specify it will not perform the update at all. + instance. You can specify either NONE to forbid any + actions,REFRESH to avoid restarting the VM and to limit + disruption as much as possible. RESTART to allow actions that + can be applied without instance replacing or REPLACE to allow + all possible actions. If the Updater determines that the minimal + update action needed is more disruptive than most disruptive + allowed action you specify it will not perform the update at + all. Additional supported values which may be not listed in the enum directly due to technical reasons: @@ -48212,11 +55275,13 @@ class ReplacementMethod(proto.Enum): SUBSTITUTE = 280924314 class Type(proto.Enum): - r"""The type of update process. You can specify either PROACTIVE - so that the MIG automatically updates VMs to the latest - configurations or OPPORTUNISTIC so that you can select the VMs - that you want to update. Additional supported values which may - be not listed in the enum directly due to technical reasons: + r"""The type + of update process. You can specify either PROACTIVE so that the + MIG automatically updates VMs to the latest configurations + orOPPORTUNISTIC so that you can select the VMs that you want to + update. + Additional supported values which may be not listed in the enum + directly due to technical reasons: PROACTIVE @@ -48225,9 +55290,9 @@ class Type(proto.Enum): A value indicating that the enum field is not set. OPPORTUNISTIC (429530089): - MIG will apply new configurations to existing - VMs only when you selectively target specific or - all VMs to be updated. + MIG will apply new configurations + to existing VMs only when you selectively target + specific or all VMs to be updated. """ UNDEFINED_TYPE = 0 OPPORTUNISTIC = 429530089 @@ -48283,8 +55348,8 @@ class InstanceGroupManagerVersion(proto.Message): create new instances in the managed instance group until the ``targetSize`` for this version is reached. The templates for existing instances in the group do not change unless you - run recreateInstances, run applyUpdatesToInstances, or set - the group's updatePolicy.type to PROACTIVE; in those cases, + run recreateInstances, runapplyUpdatesToInstances, or set + the group'supdatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the ``targetSize`` for this version is reached. @@ -48297,15 +55362,22 @@ class InstanceGroupManagerVersion(proto.Message): This field is a member of `oneof`_ ``_name``. target_size (google.cloud.compute_v1.types.FixedOrPercent): Specifies the intended number of instances to be created - from the instanceTemplate. The final number of instances - created from the template will be equal to: - If expressed - as a fixed number, the minimum of either targetSize.fixed or - instanceGroupManager.targetSize is used. - if expressed as a - percent, the targetSize would be (targetSize.percent/100 \* - InstanceGroupManager.targetSize) If there is a remainder, - the number is rounded. If unset, this version will update - any remaining instances not updated by another version. Read - Starting a canary update for more information. + from theinstanceTemplate. The final number of instances + created from the template will be equal to: + + :: + + - If expressed as a fixed number, the minimum of either + targetSize.fixed or + instanceGroupManager.targetSize is used. + - if expressed as a percent, the targetSize + would be (targetSize.percent/100 * + InstanceGroupManager.targetSize) If there is a remainder, the + number is rounded. + + If unset, this version will update any remaining instances + not updated by another version. ReadStarting a canary update + for more information. This field is a member of `oneof`_ ``_target_size``. """ @@ -48320,843 +55392,1824 @@ class InstanceGroupManagerVersion(proto.Message): number=3373707, optional=True, ) - target_size: "FixedOrPercent" = proto.Field( - proto.MESSAGE, - number=62880239, - optional=True, - message="FixedOrPercent", + target_size: "FixedOrPercent" = proto.Field( + proto.MESSAGE, + number=62880239, + optional=True, + message="FixedOrPercent", + ) + + +class InstanceGroupManagersAbandonInstancesRequest(proto.Message): + r""" + + Attributes: + instances (MutableSequence[str]): + The URLs of one or more instances to abandon. This can be a + full URL or a partial URL, such as + zones/[ZONE]/instances/[INSTANCE_NAME]. + """ + + instances: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=29097598, + ) + + +class InstanceGroupManagersApplyUpdatesRequest(proto.Message): + r"""InstanceGroupManagers.applyUpdatesToInstances + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + all_instances (bool): + Flag to update all instances instead of + specified list of “instances”. If the flag is + set to true then the instances may not be + specified in the request. + + This field is a member of `oneof`_ ``_all_instances``. + instances (MutableSequence[str]): + The list of URLs of one or more instances for which you want + to apply updates. Each URL can be a full URL or a partial + URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. + minimal_action (str): + The minimal action that you want to perform + on each instance during the update: + + + - REPLACE: At minimum, delete the instance + and create it again. + - RESTART: Stop the instance and start it + again. + - REFRESH: Do not stop the instance and limit + disruption as much as possible. + - NONE: Do not + disrupt the instance at all. + + By default, the minimum action is NONE. If your + update requires a more disruptive action than + you set with this flag, the necessary action is + performed to execute the update. Check the + MinimalAction enum for the list of possible + values. + + This field is a member of `oneof`_ ``_minimal_action``. + most_disruptive_allowed_action (str): + The most disruptive action that you want to + perform on each instance during the update: + + + - REPLACE: Delete the instance and create + it again. + - RESTART: Stop the instance and start it + again. + - REFRESH: Do not stop the instance and + limit disruption as much as possible. + - NONE: Do not disrupt the + instance at all. + + By default, the most disruptive allowed action + is REPLACE. If your update requires a more + disruptive action than you set with this flag, + the update request will fail. + Check the MostDisruptiveAllowedAction enum for + the list of possible values. + + This field is a member of `oneof`_ ``_most_disruptive_allowed_action``. + """ + + class MinimalAction(proto.Enum): + r"""The minimal action that you want to perform on each instance + during the update: + + + - REPLACE: At minimum, delete the instance and create it + again. + - RESTART: Stop the instance and start it + again. + - REFRESH: Do not stop the instance and limit + disruption as much as possible. + - NONE: Do not + disrupt the instance at all. + + By default, the minimum action is NONE. If your update requires + a more disruptive action than you set with this flag, the + necessary action is performed to execute the update. Additional + supported values which may be not listed in the enum directly + due to technical reasons: + + NONE + REFRESH + REPLACE + RESTART + + Values: + UNDEFINED_MINIMAL_ACTION (0): + A value indicating that the enum field is not + set. + """ + UNDEFINED_MINIMAL_ACTION = 0 + + class MostDisruptiveAllowedAction(proto.Enum): + r"""The most disruptive action that you want to perform on each + instance during the update: + + + - REPLACE: Delete the instance and create it again. + - RESTART: Stop the instance and start it again. + - REFRESH: Do not stop the instance and limit disruption + as much as possible. + - NONE: Do not disrupt the + instance at all. + + By default, the most disruptive allowed action is REPLACE. If + your update requires a more disruptive action than you set with + this flag, the update request will fail. + Additional supported values which may be not listed in the enum + directly due to technical reasons: + + NONE + REFRESH + REPLACE + RESTART + + Values: + UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION (0): + A value indicating that the enum field is not + set. + """ + UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0 + + all_instances: bool = proto.Field( + proto.BOOL, + number=403676512, + optional=True, + ) + instances: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=29097598, + ) + minimal_action: str = proto.Field( + proto.STRING, + number=270567060, + optional=True, + ) + most_disruptive_allowed_action: str = proto.Field( + proto.STRING, + number=66103053, + optional=True, + ) + + +class InstanceGroupManagersCreateInstancesRequest(proto.Message): + r"""InstanceGroupManagers.createInstances + + Attributes: + instances (MutableSequence[google.cloud.compute_v1.types.PerInstanceConfig]): + [Required] List of specifications of per-instance configs. + """ + + instances: MutableSequence["PerInstanceConfig"] = proto.RepeatedField( + proto.MESSAGE, + number=29097598, + message="PerInstanceConfig", + ) + + +class InstanceGroupManagersDeleteInstancesRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instances (MutableSequence[str]): + The URLs of one or more instances to delete. This can be a + full URL or a partial URL, such as + zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do + not have URL and can be deleted only by name. One cannot + specify both URLs and names in a single request. + skip_instances_on_validation_error (bool): + Specifies whether the request should proceed despite the + inclusion of instances that are not members of the group or + that are already in the process of being deleted or + abandoned. If this field is set to ``false`` and such an + instance is specified in the request, the operation fails. + The operation always fails if the request contains a + malformed instance URL or a reference to an instance that + exists in a zone or region other than the group's zone or + region. + + This field is a member of `oneof`_ ``_skip_instances_on_validation_error``. + """ + + instances: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=29097598, + ) + skip_instances_on_validation_error: bool = proto.Field( + proto.BOOL, + number=40631073, + optional=True, + ) + + +class InstanceGroupManagersDeletePerInstanceConfigsReq(proto.Message): + r"""InstanceGroupManagers.deletePerInstanceConfigs + + Attributes: + names (MutableSequence[str]): + The list of instance names for which we want + to delete per-instance configs on this managed + instance group. + """ + + names: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=104585032, + ) + + +class InstanceGroupManagersListErrorsResponse(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + items (MutableSequence[google.cloud.compute_v1.types.InstanceManagedByIgmError]): + Output only. [Output Only] The list of errors of the managed + instance group. + next_page_token (str): + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + """ + + @property + def raw_page(self): + return self + + items: MutableSequence["InstanceManagedByIgmError"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="InstanceManagedByIgmError", + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + + +class InstanceGroupManagersListManagedInstancesResponse(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + managed_instances (MutableSequence[google.cloud.compute_v1.types.ManagedInstance]): + Output only. [Output Only] The list of instances in the + managed instance group. + next_page_token (str): + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + """ + + @property + def raw_page(self): + return self + + managed_instances: MutableSequence["ManagedInstance"] = proto.RepeatedField( + proto.MESSAGE, + number=336219614, + message="ManagedInstance", + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + + +class InstanceGroupManagersListPerInstanceConfigsResp(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + items (MutableSequence[google.cloud.compute_v1.types.PerInstanceConfig]): + Output only. [Output Only] The list of PerInstanceConfig. + next_page_token (str): + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + warning (google.cloud.compute_v1.types.Warning): + Output only. [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. + """ + + @property + def raw_page(self): + return self + + items: MutableSequence["PerInstanceConfig"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="PerInstanceConfig", + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + +class InstanceGroupManagersPatchPerInstanceConfigsReq(proto.Message): + r"""InstanceGroupManagers.patchPerInstanceConfigs + + Attributes: + per_instance_configs (MutableSequence[google.cloud.compute_v1.types.PerInstanceConfig]): + The list of per-instance configurations to + insert or patch on this managed instance group. + """ + + per_instance_configs: MutableSequence["PerInstanceConfig"] = proto.RepeatedField( + proto.MESSAGE, + number=526265001, + message="PerInstanceConfig", + ) + + +class InstanceGroupManagersRecreateInstancesRequest(proto.Message): + r""" + + Attributes: + instances (MutableSequence[str]): + The URLs of one or more instances to recreate. This can be a + full URL or a partial URL, such as + zones/[ZONE]/instances/[INSTANCE_NAME]. + """ + + instances: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=29097598, + ) + + +class InstanceGroupManagersResumeInstancesRequest(proto.Message): + r""" + + Attributes: + instances (MutableSequence[str]): + The URLs of one or more instances to resume. This can be a + full URL or a partial URL, such as + zones/[ZONE]/instances/[INSTANCE_NAME]. + """ + + instances: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=29097598, + ) + + +class InstanceGroupManagersScopedList(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instance_group_managers (MutableSequence[google.cloud.compute_v1.types.InstanceGroupManager]): + Output only. [Output Only] The list of managed instance + groups that are contained in the specified project and zone. + warning (google.cloud.compute_v1.types.Warning): + Output only. [Output Only] The warning that replaces the + list of managed instance groups when the list is empty. + + This field is a member of `oneof`_ ``_warning``. + """ + + instance_group_managers: MutableSequence[ + "InstanceGroupManager" + ] = proto.RepeatedField( + proto.MESSAGE, + number=214072592, + message="InstanceGroupManager", + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + +class InstanceGroupManagersSetInstanceTemplateRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instance_template (str): + The URL of the instance template that is + specified for this managed instance group. The + group uses this template to create all new + instances in the managed instance group. The + templates for existing instances in the group do + not change unless you run recreateInstances, + runapplyUpdatesToInstances, or set the + group'supdatePolicy.type to PROACTIVE. + + This field is a member of `oneof`_ ``_instance_template``. + """ + + instance_template: str = proto.Field( + proto.STRING, + number=309248228, + optional=True, + ) + + +class InstanceGroupManagersSetTargetPoolsRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + fingerprint (str): + The fingerprint of the target pools + information. Use this optional property to + prevent conflicts when multiple users change the + target pools settings concurrently. Obtain the + fingerprint with theinstanceGroupManagers.get + method. Then, include the fingerprint in your + request to ensure that you do not overwrite + changes that were applied from another + concurrent request. + + This field is a member of `oneof`_ ``_fingerprint``. + target_pools (MutableSequence[str]): + The list of target pool URLs that instances + in this managed instance group belong to. The + managed instance group applies these target + pools to all of the instances in the group. + Existing instances and new instances in the + group all receive these target pool settings. + """ + + fingerprint: str = proto.Field( + proto.STRING, + number=234678500, + optional=True, + ) + target_pools: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=336072617, + ) + + +class InstanceGroupManagersStartInstancesRequest(proto.Message): + r""" + + Attributes: + instances (MutableSequence[str]): + The URLs of one or more instances to start. This can be a + full URL or a partial URL, such as + zones/[ZONE]/instances/[INSTANCE_NAME]. + """ + + instances: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=29097598, + ) + + +class InstanceGroupManagersStopInstancesRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + force_stop (bool): + If this flag is set to true, the Instance + Group Manager will proceed to stop the + instances, skipping initialization on them. + + This field is a member of `oneof`_ ``_force_stop``. + instances (MutableSequence[str]): + The URLs of one or more instances to stop. This can be a + full URL or a partial URL, such as + zones/[ZONE]/instances/[INSTANCE_NAME]. + """ + + force_stop: bool = proto.Field( + proto.BOOL, + number=134762710, + optional=True, + ) + instances: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=29097598, ) -class InstanceGroupManagersAbandonInstancesRequest(proto.Message): +class InstanceGroupManagersSuspendInstancesRequest(proto.Message): r""" + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: + force_suspend (bool): + If this flag is set to true, the Instance + Group Manager will proceed to suspend the + instances, skipping initialization on them. + + This field is a member of `oneof`_ ``_force_suspend``. instances (MutableSequence[str]): - The URLs of one or more instances to abandon. This can be a + The URLs of one or more instances to suspend. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. """ + force_suspend: bool = proto.Field( + proto.BOOL, + number=27637480, + optional=True, + ) instances: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=29097598, ) -class InstanceGroupManagersApplyUpdatesRequest(proto.Message): - r"""InstanceGroupManagers.applyUpdatesToInstances - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields +class InstanceGroupManagersUpdatePerInstanceConfigsReq(proto.Message): + r"""InstanceGroupManagers.updatePerInstanceConfigs Attributes: - all_instances (bool): - Flag to update all instances instead of - specified list of “instances”. If the flag is - set to true then the instances may not be - specified in the request. + per_instance_configs (MutableSequence[google.cloud.compute_v1.types.PerInstanceConfig]): + The list of per-instance configurations to + insert or patch on this managed instance group. + """ - This field is a member of `oneof`_ ``_all_instances``. - instances (MutableSequence[str]): - The list of URLs of one or more instances for which you want - to apply updates. Each URL can be a full URL or a partial - URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. - minimal_action (str): - The minimal action that you want to perform - on each instance during the update: - REPLACE: - At minimum, delete the instance and create it - again. - RESTART: Stop the instance and start it - again. - REFRESH: Do not stop the instance and - limit disruption as much as possible. - NONE: Do - not disrupt the instance at all. By default, the - minimum action is NONE. If your update requires - a more disruptive action than you set with this - flag, the necessary action is performed to - execute the update. Check the MinimalAction enum - for the list of possible values. + per_instance_configs: MutableSequence["PerInstanceConfig"] = proto.RepeatedField( + proto.MESSAGE, + number=526265001, + message="PerInstanceConfig", + ) - This field is a member of `oneof`_ ``_minimal_action``. - most_disruptive_allowed_action (str): - The most disruptive action that you want to - perform on each instance during the update: - - REPLACE: Delete the instance and create it - again. - RESTART: Stop the instance and start it - again. - REFRESH: Do not stop the instance and - limit disruption as much as possible. - NONE: Do - not disrupt the instance at all. By default, the - most disruptive allowed action is REPLACE. If - your update requires a more disruptive action - than you set with this flag, the update request - will fail. Check the MostDisruptiveAllowedAction - enum for the list of possible values. - This field is a member of `oneof`_ ``_most_disruptive_allowed_action``. +class InstanceGroupsAddInstancesRequest(proto.Message): + r""" + + Attributes: + instances (MutableSequence[google.cloud.compute_v1.types.InstanceReference]): + The list of instances to add to the instance + group. """ - class MinimalAction(proto.Enum): - r"""The minimal action that you want to perform on each instance - during the update: - REPLACE: At minimum, delete the instance - and create it again. - RESTART: Stop the instance and start it - again. - REFRESH: Do not stop the instance and limit disruption - as much as possible. - NONE: Do not disrupt the instance at all. - By default, the minimum action is NONE. If your update requires - a more disruptive action than you set with this flag, the - necessary action is performed to execute the update. Additional - supported values which may be not listed in the enum directly - due to technical reasons: + instances: MutableSequence["InstanceReference"] = proto.RepeatedField( + proto.MESSAGE, + number=29097598, + message="InstanceReference", + ) - NONE - REFRESH - REPLACE - RESTART - Values: - UNDEFINED_MINIMAL_ACTION (0): - A value indicating that the enum field is not - set. - """ - UNDEFINED_MINIMAL_ACTION = 0 +class InstanceGroupsListInstances(proto.Message): + r""" - class MostDisruptiveAllowedAction(proto.Enum): - r"""The most disruptive action that you want to perform on each - instance during the update: - REPLACE: Delete the instance and - create it again. - RESTART: Stop the instance and start it - again. - REFRESH: Do not stop the instance and limit disruption - as much as possible. - NONE: Do not disrupt the instance at all. - By default, the most disruptive allowed action is REPLACE. If - your update requires a more disruptive action than you set with - this flag, the update request will fail. Additional supported - values which may be not listed in the enum directly due to - technical reasons: + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - NONE - REFRESH - REPLACE - RESTART + Attributes: + id (str): + Output only. [Output Only] Unique identifier for the + resource; defined by the server. - Values: - UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION (0): - A value indicating that the enum field is not - set. - """ - UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACTION = 0 + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.InstanceWithNamedPorts]): + A list of InstanceWithNamedPorts resources. + kind (str): + Output only. [Output Only] The resource type, which is + alwayscompute#instanceGroupsListInstances for the list of + instances in the specified instance group. - all_instances: bool = proto.Field( - proto.BOOL, - number=403676512, + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. + + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + Output only. [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. + """ + + @property + def raw_page(self): + return self + + id: str = proto.Field( + proto.STRING, + number=3355, optional=True, ) - instances: MutableSequence[str] = proto.RepeatedField( + items: MutableSequence["InstanceWithNamedPorts"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="InstanceWithNamedPorts", + ) + kind: str = proto.Field( proto.STRING, - number=29097598, + number=3292052, + optional=True, ) - minimal_action: str = proto.Field( + next_page_token: str = proto.Field( proto.STRING, - number=270567060, + number=79797525, optional=True, ) - most_disruptive_allowed_action: str = proto.Field( + self_link: str = proto.Field( proto.STRING, - number=66103053, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, optional=True, + message="Warning", ) -class InstanceGroupManagersCreateInstancesRequest(proto.Message): - r"""InstanceGroupManagers.createInstances +class InstanceGroupsListInstancesRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - instances (MutableSequence[google.cloud.compute_v1.types.PerInstanceConfig]): - [Required] List of specifications of per-instance configs. + instance_state (str): + A filter for the state of the instances in + the instance group. Valid options are ALL or + RUNNING. If you do not specify this parameter + the list includes all instances regardless of + their state. Check the InstanceState enum for + the list of possible values. + + This field is a member of `oneof`_ ``_instance_state``. """ - instances: MutableSequence["PerInstanceConfig"] = proto.RepeatedField( + class InstanceState(proto.Enum): + r"""A filter for the state of the instances in the instance + group. Valid options are ALL or RUNNING. If you do not specify + this parameter the list includes all instances regardless of + their state. + + Values: + UNDEFINED_INSTANCE_STATE (0): + A value indicating that the enum field is not + set. + ALL (64897): + Includes all instances in the generated list + regardless of their state. + RUNNING (121282975): + Includes instances in the generated list only + if they have a RUNNING state. + """ + UNDEFINED_INSTANCE_STATE = 0 + ALL = 64897 + RUNNING = 121282975 + + instance_state: str = proto.Field( + proto.STRING, + number=92223591, + optional=True, + ) + + +class InstanceGroupsRemoveInstancesRequest(proto.Message): + r""" + + Attributes: + instances (MutableSequence[google.cloud.compute_v1.types.InstanceReference]): + The list of instances to remove from the + instance group. + """ + + instances: MutableSequence["InstanceReference"] = proto.RepeatedField( proto.MESSAGE, number=29097598, - message="PerInstanceConfig", + message="InstanceReference", ) -class InstanceGroupManagersDeleteInstancesRequest(proto.Message): +class InstanceGroupsScopedList(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - instances (MutableSequence[str]): - The URLs of one or more instances to delete. This can be a - full URL or a partial URL, such as - zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do - not have URL and can be deleted only by name. One cannot - specify both URLs and names in a single request. - skip_instances_on_validation_error (bool): - Specifies whether the request should proceed despite the - inclusion of instances that are not members of the group or - that are already in the process of being deleted or - abandoned. If this field is set to ``false`` and such an - instance is specified in the request, the operation fails. - The operation always fails if the request contains a - malformed instance URL or a reference to an instance that - exists in a zone or region other than the group's zone or - region. + instance_groups (MutableSequence[google.cloud.compute_v1.types.InstanceGroup]): + Output only. [Output Only] The list ofinstance groups that + are contained in this scope. + warning (google.cloud.compute_v1.types.Warning): + Output only. [Output Only] An informational warning that + replaces the list of instance groups when the list is empty. - This field is a member of `oneof`_ ``_skip_instances_on_validation_error``. + This field is a member of `oneof`_ ``_warning``. """ - instances: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=29097598, + instance_groups: MutableSequence["InstanceGroup"] = proto.RepeatedField( + proto.MESSAGE, + number=366469310, + message="InstanceGroup", ) - skip_instances_on_validation_error: bool = proto.Field( - proto.BOOL, - number=40631073, + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, optional=True, + message="Warning", ) -class InstanceGroupManagersDeletePerInstanceConfigsReq(proto.Message): - r"""InstanceGroupManagers.deletePerInstanceConfigs +class InstanceGroupsSetNamedPortsRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - names (MutableSequence[str]): - The list of instance names for which we want - to delete per-instance configs on this managed + fingerprint (str): + The fingerprint of the named ports + information for this instance group. Use this + optional property to prevent conflicts when + multiple users change the named ports settings + concurrently. Obtain the fingerprint with + theinstanceGroups.get method. Then, include the + fingerprint in your request to ensure that you + do not overwrite changes that were applied from + another concurrent request. A request with an + incorrect fingerprint will fail with error412 + conditionNotMet. + + This field is a member of `oneof`_ ``_fingerprint``. + named_ports (MutableSequence[google.cloud.compute_v1.types.NamedPort]): + The list of named ports to set for this instance group. """ - names: MutableSequence[str] = proto.RepeatedField( + fingerprint: str = proto.Field( proto.STRING, - number=104585032, + number=234678500, + optional=True, + ) + named_ports: MutableSequence["NamedPort"] = proto.RepeatedField( + proto.MESSAGE, + number=427598732, + message="NamedPort", ) -class InstanceGroupManagersListErrorsResponse(proto.Message): - r""" +class InstanceList(proto.Message): + r"""Contains a list of instances. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - items (MutableSequence[google.cloud.compute_v1.types.InstanceManagedByIgmError]): - [Output Only] The list of errors of the managed instance - group. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. + + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.Instance]): + A list of Instance resources. + kind (str): + Output only. [Output Only] Type of resource. Always + compute#instanceList for lists of Instance resources. + + This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. + + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. """ @property def raw_page(self): return self - items: MutableSequence["InstanceManagedByIgmError"] = proto.RepeatedField( + id: str = proto.Field( + proto.STRING, + number=3355, + optional=True, + ) + items: MutableSequence["Instance"] = proto.RepeatedField( proto.MESSAGE, number=100526016, - message="InstanceManagedByIgmError", + message="Instance", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, ) next_page_token: str = proto.Field( proto.STRING, number=79797525, optional=True, ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) -class InstanceGroupManagersListManagedInstancesResponse(proto.Message): - r""" +class InstanceListReferrers(proto.Message): + r"""Contains a list of instance referrers. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - managed_instances (MutableSequence[google.cloud.compute_v1.types.ManagedInstance]): - [Output Only] The list of instances in the managed instance - group. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. + + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.Reference]): + A list of Reference resources. + kind (str): + Output only. [Output Only] Type of resource. + Alwayscompute#instanceListReferrers for lists of Instance + referrers. + + This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. + + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. """ @property def raw_page(self): return self - managed_instances: MutableSequence["ManagedInstance"] = proto.RepeatedField( - proto.MESSAGE, - number=336219614, - message="ManagedInstance", + id: str = proto.Field( + proto.STRING, + number=3355, + optional=True, + ) + items: MutableSequence["Reference"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="Reference", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + +class InstanceManagedByIgmError(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + error (google.cloud.compute_v1.types.InstanceManagedByIgmErrorManagedInstanceError): + Output only. [Output Only] Contents of the error. + + This field is a member of `oneof`_ ``_error``. + instance_action_details (google.cloud.compute_v1.types.InstanceManagedByIgmErrorInstanceActionDetails): + Output only. [Output Only] Details of the instance action + that triggered this error. May be null, if the error was not + caused by an action on an instance. This field is optional. + + This field is a member of `oneof`_ ``_instance_action_details``. + timestamp (str): + Output only. [Output Only] The time that this error + occurred. This value is in RFC3339 text format. + + This field is a member of `oneof`_ ``_timestamp``. + """ + + error: "InstanceManagedByIgmErrorManagedInstanceError" = proto.Field( + proto.MESSAGE, + number=96784904, + optional=True, + message="InstanceManagedByIgmErrorManagedInstanceError", + ) + instance_action_details: "InstanceManagedByIgmErrorInstanceActionDetails" = ( + proto.Field( + proto.MESSAGE, + number=292224547, + optional=True, + message="InstanceManagedByIgmErrorInstanceActionDetails", + ) + ) + timestamp: str = proto.Field( + proto.STRING, + number=55126294, + optional=True, + ) + + +class InstanceManagedByIgmErrorInstanceActionDetails(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + action (str): + Output only. [Output Only] Action that managed instance + group was executing on the instance when the error occurred. + Possible values: Check the Action enum for the list of + possible values. + + This field is a member of `oneof`_ ``_action``. + instance (str): + Output only. [Output Only] The URL of the instance. The URL + can be set even if the instance has not yet been created. + + This field is a member of `oneof`_ ``_instance``. + version (google.cloud.compute_v1.types.ManagedInstanceVersion): + Output only. [Output Only] Version this instance was created + from, or was being created from, but the creation failed. + Corresponds to one of the versions that were set on the + Instance Group Manager resource at the time this instance + was being created. + + This field is a member of `oneof`_ ``_version``. + """ + + class Action(proto.Enum): + r"""Output only. [Output Only] Action that managed instance group was + executing on the instance when the error occurred. Possible values: + + Values: + UNDEFINED_ACTION (0): + A value indicating that the enum field is not + set. + ABANDONING (388244813): + The managed instance group is abandoning this + instance. The instance will be removed from the + instance group and from any target pools that + are associated with this group. + CREATING (455564985): + The managed instance group is creating this + instance. If the group fails to create this + instance, it will try again until it is + successful. + CREATING_WITHOUT_RETRIES (428843785): + The managed instance group is attempting to + create this instance only once. If the group + fails to create this instance, it does not try + again and the group's targetSize value is + decreased. + DELETING (528602024): + The managed instance group is permanently + deleting this instance. + NONE (2402104): + The managed instance group has not scheduled + any actions for this instance. + RECREATING (287278572): + The managed instance group is recreating this + instance. + REFRESHING (163266343): + The managed instance group is applying + configuration changes to the instance without + stopping it. For example, the group can update + the target pool list for an instance without + stopping that instance. + RESTARTING (320534387): + The managed instance group is restarting this + instance. + RESUMING (446856618): + The managed instance group is resuming this + instance. + STARTING (488820800): + The managed instance group is starting this + instance. + STOPPING (350791796): + The managed instance group is stopping this + instance. + SUSPENDING (514206246): + The managed instance group is suspending this + instance. + VERIFYING (16982185): + The managed instance group is verifying this + already created instance. Verification happens + every time the instance is (re)created or + restarted and consists of: + + 1. Waiting until health check specified as part + of this managed instance group's + autohealing policy reports HEALTHY. + Note: Applies only if autohealing policy has + a health check specified + 2. Waiting for addition verification steps + performed as post-instance creation + (subject to future extensions). + """ + UNDEFINED_ACTION = 0 + ABANDONING = 388244813 + CREATING = 455564985 + CREATING_WITHOUT_RETRIES = 428843785 + DELETING = 528602024 + NONE = 2402104 + RECREATING = 287278572 + REFRESHING = 163266343 + RESTARTING = 320534387 + RESUMING = 446856618 + STARTING = 488820800 + STOPPING = 350791796 + SUSPENDING = 514206246 + VERIFYING = 16982185 + + action: str = proto.Field( + proto.STRING, + number=187661878, + optional=True, ) - next_page_token: str = proto.Field( + instance: str = proto.Field( proto.STRING, - number=79797525, + number=18257045, + optional=True, + ) + version: "ManagedInstanceVersion" = proto.Field( + proto.MESSAGE, + number=351608024, optional=True, + message="ManagedInstanceVersion", ) -class InstanceGroupManagersListPerInstanceConfigsResp(proto.Message): +class InstanceManagedByIgmErrorManagedInstanceError(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - items (MutableSequence[google.cloud.compute_v1.types.PerInstanceConfig]): - [Output Only] The list of PerInstanceConfig. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + code (str): + Output only. [Output Only] Error code. - This field is a member of `oneof`_ ``_next_page_token``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + This field is a member of `oneof`_ ``_code``. + message (str): + Output only. [Output Only] Error message. - This field is a member of `oneof`_ ``_warning``. + This field is a member of `oneof`_ ``_message``. """ - @property - def raw_page(self): - return self - - items: MutableSequence["PerInstanceConfig"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="PerInstanceConfig", - ) - next_page_token: str = proto.Field( + code: str = proto.Field( proto.STRING, - number=79797525, + number=3059181, optional=True, ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, + message: str = proto.Field( + proto.STRING, + number=418054151, optional=True, - message="Warning", ) -class InstanceGroupManagersPatchPerInstanceConfigsReq(proto.Message): - r"""InstanceGroupManagers.patchPerInstanceConfigs +class InstanceMoveRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - per_instance_configs (MutableSequence[google.cloud.compute_v1.types.PerInstanceConfig]): - The list of per-instance configurations to - insert or patch on this managed instance group. - """ + destination_zone (str): + The URL of the destination zone to move the + instance. This can be a full or partial URL. For + example, the following are all valid URLs to a + zone: - per_instance_configs: MutableSequence["PerInstanceConfig"] = proto.RepeatedField( - proto.MESSAGE, - number=526265001, - message="PerInstanceConfig", - ) + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone + - projects/project/zones/zone + - zones/zone + This field is a member of `oneof`_ ``_destination_zone``. + target_instance (str): + The URL of the target instance to move. This + can be a full or partial URL. For example, the + following are all valid URLs to an instance: -class InstanceGroupManagersRecreateInstancesRequest(proto.Message): - r""" + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance + - + projects/project/zones/zone/instances/instance + - zones/zone/instances/instance - Attributes: - instances (MutableSequence[str]): - The URLs of one or more instances to recreate. This can be a - full URL or a partial URL, such as - zones/[ZONE]/instances/[INSTANCE_NAME]. + This field is a member of `oneof`_ ``_target_instance``. """ - instances: MutableSequence[str] = proto.RepeatedField( + destination_zone: str = proto.Field( proto.STRING, - number=29097598, + number=131854653, + optional=True, ) - - -class InstanceGroupManagersResumeInstancesRequest(proto.Message): - r""" - - Attributes: - instances (MutableSequence[str]): - The URLs of one or more instances to resume. This can be a - full URL or a partial URL, such as - zones/[ZONE]/instances/[INSTANCE_NAME]. - """ - - instances: MutableSequence[str] = proto.RepeatedField( + target_instance: str = proto.Field( proto.STRING, - number=29097598, + number=289769347, + optional=True, ) -class InstanceGroupManagersScopedList(proto.Message): - r""" +class InstanceParams(proto.Message): + r"""Additional instance params. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - instance_group_managers (MutableSequence[google.cloud.compute_v1.types.InstanceGroupManager]): - [Output Only] The list of managed instance groups that are - contained in the specified project and zone. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] The warning that replaces the list of managed - instance groups when the list is empty. + request_valid_for_duration (google.cloud.compute_v1.types.Duration): + Relative deadline for waiting for capacity. + Relevant only for Instances.Insert API. - This field is a member of `oneof`_ ``_warning``. + This field is a member of `oneof`_ ``_request_valid_for_duration``. + resource_manager_tags (MutableMapping[str, str]): + Resource manager tags to be bound to the instance. Tag keys + and values have the same definition as resource manager + tags. Keys and values can be either in numeric format, such + as ``tagKeys/{tag_key_id}`` and ``tagValues/456`` or in + namespaced format such as + ``{org_id|project_id}/{tag_key_short_name}`` and + ``{tag_value_short_name}``. The field is ignored (both PUT & + PATCH) when empty. """ - instance_group_managers: MutableSequence[ - "InstanceGroupManager" - ] = proto.RepeatedField( - proto.MESSAGE, - number=214072592, - message="InstanceGroupManager", - ) - warning: "Warning" = proto.Field( + request_valid_for_duration: "Duration" = proto.Field( proto.MESSAGE, - number=50704284, + number=116247389, optional=True, - message="Warning", + message="Duration", + ) + resource_manager_tags: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=377671164, ) -class InstanceGroupManagersSetInstanceTemplateRequest(proto.Message): +class InstanceProperties(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - instance_template (str): - The URL of the instance template that is - specified for this managed instance group. The - group uses this template to create all new - instances in the managed instance group. The - templates for existing instances in the group do - not change unless you run recreateInstances, run - applyUpdatesToInstances, or set the group's - updatePolicy.type to PROACTIVE. + advanced_machine_features (google.cloud.compute_v1.types.AdvancedMachineFeatures): + Controls for advanced machine-related + behavior features. Note that for MachineImage, + this is not supported yet. - This field is a member of `oneof`_ ``_instance_template``. - """ + This field is a member of `oneof`_ ``_advanced_machine_features``. + can_ip_forward (bool): + Enables instances created based on these + properties to send packets with source IP + addresses other than their own and receive + packets with destination IP addresses other than + their own. If these instances will be used as an + IP gateway or it will be set as the next-hop in + a Route resource, specify true. If unsure, leave + this set tofalse. See theEnable IP forwarding + documentation for more information. - instance_template: str = proto.Field( - proto.STRING, - number=309248228, - optional=True, - ) + This field is a member of `oneof`_ ``_can_ip_forward``. + confidential_instance_config (google.cloud.compute_v1.types.ConfidentialInstanceConfig): + Specifies the Confidential Instance options. + Note that for MachineImage, this is not + supported yet. + This field is a member of `oneof`_ ``_confidential_instance_config``. + description (str): + An optional text description for the + instances that are created from these + properties. -class InstanceGroupManagersSetTargetPoolsRequest(proto.Message): - r""" + This field is a member of `oneof`_ ``_description``. + disks (MutableSequence[google.cloud.compute_v1.types.AttachedDisk]): + An array of disks that are associated with + the instances that are created from these + properties. + guest_accelerators (MutableSequence[google.cloud.compute_v1.types.AcceleratorConfig]): + A list of guest accelerator cards' type and + count to use for instances created from these + properties. + key_revocation_action_type (str): + KeyRevocationActionType of the instance. + Supported options are "STOP" and "NONE". The + default value is "NONE" if it is not specified. + Check the KeyRevocationActionType enum for the + list of possible values. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_key_revocation_action_type``. + labels (MutableMapping[str, str]): + Labels to apply to instances that are created + from these properties. + machine_type (str): + The machine type to use for instances that are created from + these properties. This field only accepts a machine type + name, for example ``n2-standard-4``. If you use the machine + type full or partial URL, for example + ``projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4``, + the request will result in an ``INTERNAL_ERROR``. - Attributes: - fingerprint (str): - The fingerprint of the target pools - information. Use this optional property to - prevent conflicts when multiple users change the - target pools settings concurrently. Obtain the - fingerprint with the instanceGroupManagers.get - method. Then, include the fingerprint in your - request to ensure that you do not overwrite - changes that were applied from another - concurrent request. + This field is a member of `oneof`_ ``_machine_type``. + metadata (google.cloud.compute_v1.types.Metadata): + The metadata key/value pairs to assign to + instances that are created from these + properties. These pairs can consist of custom + metadata or predefined keys. SeeProject and + instance metadata for more information. - This field is a member of `oneof`_ ``_fingerprint``. - target_pools (MutableSequence[str]): - The list of target pool URLs that instances - in this managed instance group belong to. The - managed instance group applies these target - pools to all of the instances in the group. - Existing instances and new instances in the - group all receive these target pool settings. - """ + This field is a member of `oneof`_ ``_metadata``. + min_cpu_platform (str): + Minimum cpu/platform to be used by instances. + The instance may be scheduled on the specified + or newer cpu/platform. Applicable values are the + friendly names of CPU platforms, such + asminCpuPlatform: "Intel Haswell" + orminCpuPlatform: "Intel Sandy Bridge". For more + information, read Specifying a + Minimum CPU Platform. - fingerprint: str = proto.Field( - proto.STRING, - number=234678500, - optional=True, - ) - target_pools: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=336072617, - ) + This field is a member of `oneof`_ ``_min_cpu_platform``. + network_interfaces (MutableSequence[google.cloud.compute_v1.types.NetworkInterface]): + An array of network access configurations for + this interface. + network_performance_config (google.cloud.compute_v1.types.NetworkPerformanceConfig): + Note that for MachineImage, this is not + supported yet. + This field is a member of `oneof`_ ``_network_performance_config``. + private_ipv6_google_access (str): + The private IPv6 google access type for VMs. If not + specified, use INHERIT_FROM_SUBNETWORK as default. Note that + for MachineImage, this is not supported yet. Check the + PrivateIpv6GoogleAccess enum for the list of possible + values. -class InstanceGroupManagersStartInstancesRequest(proto.Message): - r""" + This field is a member of `oneof`_ ``_private_ipv6_google_access``. + reservation_affinity (google.cloud.compute_v1.types.ReservationAffinity): + Specifies the reservations that instances can + consume from. Note that for MachineImage, this + is not supported yet. - Attributes: - instances (MutableSequence[str]): - The URLs of one or more instances to start. This can be a - full URL or a partial URL, such as - zones/[ZONE]/instances/[INSTANCE_NAME]. - """ + This field is a member of `oneof`_ ``_reservation_affinity``. + resource_manager_tags (MutableMapping[str, str]): + Resource manager tags to be bound to the instance. Tag keys + and values have the same definition as resource manager + tags. Keys must be in the format ``tagKeys/{tag_key_id}``, + and values are in the format ``tagValues/456``. The field is + ignored (both PUT & PATCH) when empty. + resource_policies (MutableSequence[str]): + Resource policies (names, not URLs) applied + to instances created from these properties. + Note that for MachineImage, this is not + supported yet. + scheduling (google.cloud.compute_v1.types.Scheduling): + Specifies the scheduling options for the + instances that are created from these + properties. - instances: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=29097598, - ) + This field is a member of `oneof`_ ``_scheduling``. + service_accounts (MutableSequence[google.cloud.compute_v1.types.ServiceAccount]): + A list of service accounts with specified + scopes. Access tokens for these service accounts + are available to the instances that are created + from these properties. Use metadata queries to + obtain the access tokens for these instances. + shielded_instance_config (google.cloud.compute_v1.types.ShieldedInstanceConfig): + Note that for MachineImage, this is not + supported yet. + This field is a member of `oneof`_ ``_shielded_instance_config``. + tags (google.cloud.compute_v1.types.Tags): + A list of tags to apply to the instances that + are created from these properties. The tags + identify valid sources or targets for network + firewalls. The setTags method can modify this + list of tags. Each tag within the list must + comply with RFC1035. -class InstanceGroupManagersStopInstancesRequest(proto.Message): - r""" + This field is a member of `oneof`_ ``_tags``. + """ - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + class KeyRevocationActionType(proto.Enum): + r"""KeyRevocationActionType of the instance. Supported options + are "STOP" and "NONE". The default value is "NONE" if it is not + specified. - Attributes: - force_stop (bool): - If this flag is set to true, the Instance - Group Manager will proceed to stop the - instances, skipping initialization on them. + Values: + UNDEFINED_KEY_REVOCATION_ACTION_TYPE (0): + A value indicating that the enum field is not + set. + KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED (467110106): + Default value. This value is unused. + NONE (2402104): + Indicates user chose no operation. + STOP (2555906): + Indicates user chose to opt for VM shutdown + on key revocation. + """ + UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0 + KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106 + NONE = 2402104 + STOP = 2555906 - This field is a member of `oneof`_ ``_force_stop``. - instances (MutableSequence[str]): - The URLs of one or more instances to stop. This can be a - full URL or a partial URL, such as - zones/[ZONE]/instances/[INSTANCE_NAME]. - """ + class PrivateIpv6GoogleAccess(proto.Enum): + r"""The private IPv6 google access type for VMs. If not specified, use + INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this + is not supported yet. - force_stop: bool = proto.Field( + Values: + UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS (0): + A value indicating that the enum field is not + set. + ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE (427975994): + Bidirectional private IPv6 access to/from + Google services. If specified, the subnetwork + who is attached to the instance's default + network interface will be assigned an internal + IPv6 prefix if it doesn't have before. + ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE (288210263): + Outbound private IPv6 access from VMs in this + subnet to Google services. If specified, the + subnetwork who is attached to the instance's + default network interface will be assigned an + internal IPv6 prefix if it doesn't have before. + INHERIT_FROM_SUBNETWORK (530256959): + Each network interface inherits + PrivateIpv6GoogleAccess from its subnetwork. + """ + UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS = 0 + ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE = 427975994 + ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE = 288210263 + INHERIT_FROM_SUBNETWORK = 530256959 + + advanced_machine_features: "AdvancedMachineFeatures" = proto.Field( + proto.MESSAGE, + number=409646002, + optional=True, + message="AdvancedMachineFeatures", + ) + can_ip_forward: bool = proto.Field( proto.BOOL, - number=134762710, + number=467731324, optional=True, ) - instances: MutableSequence[str] = proto.RepeatedField( + confidential_instance_config: "ConfidentialInstanceConfig" = proto.Field( + proto.MESSAGE, + number=490637685, + optional=True, + message="ConfidentialInstanceConfig", + ) + description: str = proto.Field( proto.STRING, - number=29097598, + number=422937596, + optional=True, ) - - -class InstanceGroupManagersSuspendInstancesRequest(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - force_suspend (bool): - If this flag is set to true, the Instance - Group Manager will proceed to suspend the - instances, skipping initialization on them. - - This field is a member of `oneof`_ ``_force_suspend``. - instances (MutableSequence[str]): - The URLs of one or more instances to suspend. This can be a - full URL or a partial URL, such as - zones/[ZONE]/instances/[INSTANCE_NAME]. - """ - - force_suspend: bool = proto.Field( - proto.BOOL, - number=27637480, + disks: MutableSequence["AttachedDisk"] = proto.RepeatedField( + proto.MESSAGE, + number=95594102, + message="AttachedDisk", + ) + guest_accelerators: MutableSequence["AcceleratorConfig"] = proto.RepeatedField( + proto.MESSAGE, + number=463595119, + message="AcceleratorConfig", + ) + key_revocation_action_type: str = proto.Field( + proto.STRING, + number=235941474, + optional=True, + ) + labels: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=500195327, + ) + machine_type: str = proto.Field( + proto.STRING, + number=227711026, + optional=True, + ) + metadata: "Metadata" = proto.Field( + proto.MESSAGE, + number=86866735, + optional=True, + message="Metadata", + ) + min_cpu_platform: str = proto.Field( + proto.STRING, + number=242912759, + optional=True, + ) + network_interfaces: MutableSequence["NetworkInterface"] = proto.RepeatedField( + proto.MESSAGE, + number=52735243, + message="NetworkInterface", + ) + network_performance_config: "NetworkPerformanceConfig" = proto.Field( + proto.MESSAGE, + number=398330850, + optional=True, + message="NetworkPerformanceConfig", + ) + private_ipv6_google_access: str = proto.Field( + proto.STRING, + number=48277006, optional=True, ) - instances: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=29097598, + reservation_affinity: "ReservationAffinity" = proto.Field( + proto.MESSAGE, + number=157850683, + optional=True, + message="ReservationAffinity", + ) + resource_manager_tags: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=377671164, + ) + resource_policies: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=22220385, + ) + scheduling: "Scheduling" = proto.Field( + proto.MESSAGE, + number=386688404, + optional=True, + message="Scheduling", + ) + service_accounts: MutableSequence["ServiceAccount"] = proto.RepeatedField( + proto.MESSAGE, + number=277537328, + message="ServiceAccount", + ) + shielded_instance_config: "ShieldedInstanceConfig" = proto.Field( + proto.MESSAGE, + number=12862901, + optional=True, + message="ShieldedInstanceConfig", + ) + tags: "Tags" = proto.Field( + proto.MESSAGE, + number=3552281, + optional=True, + message="Tags", ) -class InstanceGroupManagersUpdatePerInstanceConfigsReq(proto.Message): - r"""InstanceGroupManagers.updatePerInstanceConfigs +class InstancePropertiesPatch(proto.Message): + r"""Represents the change that you want to make to the instance + properties. Attributes: - per_instance_configs (MutableSequence[google.cloud.compute_v1.types.PerInstanceConfig]): - The list of per-instance configurations to - insert or patch on this managed instance group. + labels (MutableMapping[str, str]): + The label key-value pairs that you want to + patch onto the instance. + metadata (MutableMapping[str, str]): + The metadata key-value pairs that you want to + patch onto the instance. For more information, + see Project and instance metadata. """ - per_instance_configs: MutableSequence["PerInstanceConfig"] = proto.RepeatedField( - proto.MESSAGE, - number=526265001, - message="PerInstanceConfig", + labels: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=500195327, + ) + metadata: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=86866735, ) -class InstanceGroupsAddInstancesRequest(proto.Message): +class InstanceReference(proto.Message): r""" + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: - instances (MutableSequence[google.cloud.compute_v1.types.InstanceReference]): - The list of instances to add to the instance - group. + instance (str): + The URL for a specific instance. + @required + compute.instancegroups.addInstances/removeInstances + + This field is a member of `oneof`_ ``_instance``. """ - instances: MutableSequence["InstanceReference"] = proto.RepeatedField( - proto.MESSAGE, - number=29097598, - message="InstanceReference", + instance: str = proto.Field( + proto.STRING, + number=18257045, + optional=True, ) -class InstanceGroupsListInstances(proto.Message): - r""" +class InstanceSettings(proto.Message): + r"""Represents a Instance Settings resource. You can use instance + settings to configure default settings for Compute Engine VM + instances. For example, you can use it to configure default + machine type of Compute Engine VM instances. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + fingerprint (str): + Specifies a fingerprint for instance + settings, which is essentially a hash of the + instance settings resource's contents and used + for optimistic locking. The fingerprint is + initially generated by Compute Engine and + changes after every request to modify or update + the instance settings resource. You must always + provide an up-to-date fingerprint hash in order + to update or change the resource, otherwise the + request will fail with error 412 + conditionNotMet. - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.InstanceWithNamedPorts]): - A list of InstanceWithNamedPorts resources. + To see the latest fingerprint, make a get() + request to retrieve the resource. + + This field is a member of `oneof`_ ``_fingerprint``. kind (str): - [Output Only] The resource type, which is always - compute#instanceGroupsListInstances for the list of - instances in the specified instance group. + Output only. [Output Only] Type of the resource. + Alwayscompute#instance_settings for instance settings. This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. - - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. + metadata (google.cloud.compute_v1.types.InstanceSettingsMetadata): + The metadata key/value pairs assigned to all + the instances in the corresponding scope. - This field is a member of `oneof`_ ``_self_link``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + This field is a member of `oneof`_ ``_metadata``. + zone (str): + Output only. [Output Only] URL of the zone where the + resource resides You must specify this field as part of the + HTTP request URL. It is not settable as a field in the + request body. - This field is a member of `oneof`_ ``_warning``. + This field is a member of `oneof`_ ``_zone``. """ - @property - def raw_page(self): - return self - - id: str = proto.Field( + fingerprint: str = proto.Field( proto.STRING, - number=3355, + number=234678500, optional=True, ) - items: MutableSequence["InstanceWithNamedPorts"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="InstanceWithNamedPorts", - ) kind: str = proto.Field( proto.STRING, number=3292052, optional=True, ) - next_page_token: str = proto.Field( - proto.STRING, - number=79797525, + metadata: "InstanceSettingsMetadata" = proto.Field( + proto.MESSAGE, + number=86866735, optional=True, + message="InstanceSettingsMetadata", ) - self_link: str = proto.Field( + zone: str = proto.Field( proto.STRING, - number=456214797, - optional=True, - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, + number=3744684, optional=True, - message="Warning", ) -class InstanceGroupsListInstancesRequest(proto.Message): +class InstanceSettingsMetadata(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - instance_state (str): - A filter for the state of the instances in - the instance group. Valid options are ALL or - RUNNING. If you do not specify this parameter - the list includes all instances regardless of - their state. Check the InstanceState enum for - the list of possible values. + items (MutableMapping[str, str]): + A metadata key/value items map. + The total size of all keys and values must be + less than 512KB. + kind (str): + Output only. [Output Only] Type of the resource. Always + compute#metadata for metadata. - This field is a member of `oneof`_ ``_instance_state``. + This field is a member of `oneof`_ ``_kind``. """ - class InstanceState(proto.Enum): - r"""A filter for the state of the instances in the instance - group. Valid options are ALL or RUNNING. If you do not specify - this parameter the list includes all instances regardless of - their state. - - Values: - UNDEFINED_INSTANCE_STATE (0): - A value indicating that the enum field is not - set. - ALL (64897): - Includes all instances in the generated list - regardless of their state. - RUNNING (121282975): - Includes instances in the generated list only - if they have a RUNNING state. - """ - UNDEFINED_INSTANCE_STATE = 0 - ALL = 64897 - RUNNING = 121282975 - - instance_state: str = proto.Field( + items: MutableMapping[str, str] = proto.MapField( proto.STRING, - number=92223591, - optional=True, + proto.STRING, + number=100526016, ) - - -class InstanceGroupsRemoveInstancesRequest(proto.Message): - r""" - - Attributes: - instances (MutableSequence[google.cloud.compute_v1.types.InstanceReference]): - The list of instances to remove from the - instance group. - """ - - instances: MutableSequence["InstanceReference"] = proto.RepeatedField( - proto.MESSAGE, - number=29097598, - message="InstanceReference", + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, ) -class InstanceGroupsScopedList(proto.Message): - r""" +class InstanceTemplate(proto.Message): + r"""Represents an Instance Template resource. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Google Compute Engine has two Instance Template resources: - Attributes: - instance_groups (MutableSequence[google.cloud.compute_v1.types.InstanceGroup]): - [Output Only] The list of instance groups that are contained - in this scope. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] An informational warning that replaces the - list of instance groups when the list is empty. + - `Global `__ + - `Regional `__ - This field is a member of `oneof`_ ``_warning``. - """ + You can reuse a global instance template in different regions + whereas you can use a regional instance template in a specified + region only. If you want to reduce cross-region dependency or + achieve data residency, use a regional instance template. - instance_groups: MutableSequence["InstanceGroup"] = proto.RepeatedField( - proto.MESSAGE, - number=366469310, - message="InstanceGroup", - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, - optional=True, - message="Warning", - ) + To create VMs, managed instance groups, and reservations, you can + use either global or regional instance templates. + For more information, readInstance Templates. -class InstanceGroupsSetNamedPortsRequest(proto.Message): - r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - fingerprint (str): - The fingerprint of the named ports - information for this instance group. Use this - optional property to prevent conflicts when - multiple users change the named ports settings - concurrently. Obtain the fingerprint with the - instanceGroups.get method. Then, include the - fingerprint in your request to ensure that you - do not overwrite changes that were applied from - another concurrent request. A request with an - incorrect fingerprint will fail with error 412 - conditionNotMet. - - This field is a member of `oneof`_ ``_fingerprint``. - named_ports (MutableSequence[google.cloud.compute_v1.types.NamedPort]): - The list of named ports to set for this - instance group. - """ - - fingerprint: str = proto.Field( - proto.STRING, - number=234678500, - optional=True, - ) - named_ports: MutableSequence["NamedPort"] = proto.RepeatedField( - proto.MESSAGE, - number=427598732, - message="NamedPort", - ) - - -class InstanceList(proto.Message): - r"""Contains a list of instances. + creation_timestamp (str): + Output only. [Output Only] The creation timestamp for this + instance template inRFC3339 text format. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_creation_timestamp``. + description (str): + An optional description of this resource. + Provide this property when you create the + resource. - Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + This field is a member of `oneof`_ ``_description``. + id (int): + Output only. [Output Only] A unique identifier for this + instance template. The server defines this identifier. This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.Instance]): - A list of Instance resources. kind (str): - [Output Only] Type of resource. Always compute#instanceList - for lists of Instance resources. + Output only. [Output Only] The resource type, which is + alwayscompute#instanceTemplate for instance templates. This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + name (str): + Name of the resource; provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. - This field is a member of `oneof`_ ``_next_page_token``. + This field is a member of `oneof`_ ``_name``. + properties (google.cloud.compute_v1.types.InstanceProperties): + The instance properties for this instance + template. + + This field is a member of `oneof`_ ``_properties``. + region (str): + Output only. [Output Only] URL of the region where the + instance template resides. Only applicable for regional + resources. + + This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] The URL for this instance + template. The server defines this URL. This field is a member of `oneof`_ ``_self_link``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + source_instance (str): + The source instance used to create the + template. You can provide this as a partial or + full URL to the resource. For example, the + following are valid values: - This field is a member of `oneof`_ ``_warning``. - """ - @property - def raw_page(self): - return self + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance + - + projects/project/zones/zone/instances/instance - id: str = proto.Field( + This field is a member of `oneof`_ ``_source_instance``. + source_instance_params (google.cloud.compute_v1.types.SourceInstanceParams): + The source instance params to use to create + this instance template. + + This field is a member of `oneof`_ ``_source_instance_params``. + """ + + creation_timestamp: str = proto.Field( proto.STRING, - number=3355, + number=30525366, optional=True, ) - items: MutableSequence["Instance"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="Instance", + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + id: int = proto.Field( + proto.UINT64, + number=3355, + optional=True, ) kind: str = proto.Field( proto.STRING, number=3292052, optional=True, ) - next_page_token: str = proto.Field( + name: str = proto.Field( proto.STRING, - number=79797525, + number=3373707, + optional=True, + ) + properties: "InstanceProperties" = proto.Field( + proto.MESSAGE, + number=147688755, + optional=True, + message="InstanceProperties", + ) + region: str = proto.Field( + proto.STRING, + number=138946292, optional=True, ) self_link: str = proto.Field( @@ -49164,16 +57217,21 @@ def raw_page(self): number=456214797, optional=True, ) - warning: "Warning" = proto.Field( + source_instance: str = proto.Field( + proto.STRING, + number=396315705, + optional=True, + ) + source_instance_params: "SourceInstanceParams" = proto.Field( proto.MESSAGE, - number=50704284, + number=135342156, optional=True, - message="Warning", + message="SourceInstanceParams", ) -class InstanceListReferrers(proto.Message): - r"""Contains a list of instance referrers. +class InstanceTemplateAggregatedList(proto.Message): + r"""Contains a list of InstanceTemplatesScopedList. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -49183,25 +57241,25 @@ class InstanceListReferrers(proto.Message): the server. This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.Reference]): - A list of Reference resources. + items (MutableMapping[str, google.cloud.compute_v1.types.InstanceTemplatesScopedList]): + A list of InstanceTemplatesScopedList + resources. kind (str): - [Output Only] Type of resource. Always - compute#instanceListReferrers for lists of Instance - referrers. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -49219,10 +57277,11 @@ def raw_page(self): number=3355, optional=True, ) - items: MutableSequence["Reference"] = proto.RepeatedField( + items: MutableMapping[str, "InstanceTemplatesScopedList"] = proto.MapField( + proto.STRING, proto.MESSAGE, number=100526016, - message="Reference", + message="InstanceTemplatesScopedList", ) kind: str = proto.Field( proto.STRING, @@ -49247,748 +57306,730 @@ def raw_page(self): ) -class InstanceManagedByIgmError(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - error (google.cloud.compute_v1.types.InstanceManagedByIgmErrorManagedInstanceError): - [Output Only] Contents of the error. - - This field is a member of `oneof`_ ``_error``. - instance_action_details (google.cloud.compute_v1.types.InstanceManagedByIgmErrorInstanceActionDetails): - [Output Only] Details of the instance action that triggered - this error. May be null, if the error was not caused by an - action on an instance. This field is optional. - - This field is a member of `oneof`_ ``_instance_action_details``. - timestamp (str): - [Output Only] The time that this error occurred. This value - is in RFC3339 text format. - - This field is a member of `oneof`_ ``_timestamp``. - """ - - error: "InstanceManagedByIgmErrorManagedInstanceError" = proto.Field( - proto.MESSAGE, - number=96784904, - optional=True, - message="InstanceManagedByIgmErrorManagedInstanceError", - ) - instance_action_details: "InstanceManagedByIgmErrorInstanceActionDetails" = ( - proto.Field( - proto.MESSAGE, - number=292224547, - optional=True, - message="InstanceManagedByIgmErrorInstanceActionDetails", - ) - ) - timestamp: str = proto.Field( - proto.STRING, - number=55126294, - optional=True, - ) - - -class InstanceManagedByIgmErrorInstanceActionDetails(proto.Message): - r""" +class InstanceTemplateList(proto.Message): + r"""A list of instance templates. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - action (str): - [Output Only] Action that managed instance group was - executing on the instance when the error occurred. Possible - values: Check the Action enum for the list of possible - values. - - This field is a member of `oneof`_ ``_action``. - instance (str): - [Output Only] The URL of the instance. The URL can be set - even if the instance has not yet been created. - - This field is a member of `oneof`_ ``_instance``. - version (google.cloud.compute_v1.types.ManagedInstanceVersion): - [Output Only] Version this instance was created from, or was - being created from, but the creation failed. Corresponds to - one of the versions that were set on the Instance Group - Manager resource at the time this instance was being - created. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. - This field is a member of `oneof`_ ``_version``. - """ + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.InstanceTemplate]): + A list of InstanceTemplate resources. + kind (str): + Output only. [Output Only] The resource type, which is + alwayscompute#instanceTemplatesListResponse for instance + template lists. - class Action(proto.Enum): - r"""[Output Only] Action that managed instance group was executing on - the instance when the error occurred. Possible values: + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. - Values: - UNDEFINED_ACTION (0): - A value indicating that the enum field is not - set. - ABANDONING (388244813): - The managed instance group is abandoning this - instance. The instance will be removed from the - instance group and from any target pools that - are associated with this group. - CREATING (455564985): - The managed instance group is creating this - instance. If the group fails to create this - instance, it will try again until it is - successful. - CREATING_WITHOUT_RETRIES (428843785): - The managed instance group is attempting to - create this instance only once. If the group - fails to create this instance, it does not try - again and the group's targetSize value is - decreased. - DELETING (528602024): - The managed instance group is permanently - deleting this instance. - NONE (2402104): - The managed instance group has not scheduled - any actions for this instance. - RECREATING (287278572): - The managed instance group is recreating this - instance. - REFRESHING (163266343): - The managed instance group is applying - configuration changes to the instance without - stopping it. For example, the group can update - the target pool list for an instance without - stopping that instance. - RESTARTING (320534387): - The managed instance group is restarting this - instance. - RESUMING (446856618): - The managed instance group is resuming this - instance. - STARTING (488820800): - The managed instance group is starting this - instance. - STOPPING (350791796): - The managed instance group is stopping this - instance. - SUSPENDING (514206246): - The managed instance group is suspending this - instance. - VERIFYING (16982185): - The managed instance group is verifying this - already created instance. Verification happens - every time the instance is (re)created or - restarted and consists of: 1. Waiting until - health check specified as part of this managed - instance group's autohealing policy reports - HEALTHY. Note: Applies only if autohealing - policy has a health check specified 2. Waiting - for addition verification steps performed as - post-instance creation (subject to future - extensions). - """ - UNDEFINED_ACTION = 0 - ABANDONING = 388244813 - CREATING = 455564985 - CREATING_WITHOUT_RETRIES = 428843785 - DELETING = 528602024 - NONE = 2402104 - RECREATING = 287278572 - REFRESHING = 163266343 - RESTARTING = 320534387 - RESUMING = 446856618 - STARTING = 488820800 - STOPPING = 350791796 - SUSPENDING = 514206246 - VERIFYING = 16982185 + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. - action: str = proto.Field( + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. + """ + + @property + def raw_page(self): + return self + + id: str = proto.Field( proto.STRING, - number=187661878, + number=3355, optional=True, ) - instance: str = proto.Field( + items: MutableSequence["InstanceTemplate"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="InstanceTemplate", + ) + kind: str = proto.Field( proto.STRING, - number=18257045, + number=3292052, optional=True, ) - version: "ManagedInstanceVersion" = proto.Field( + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( proto.MESSAGE, - number=351608024, + number=50704284, optional=True, - message="ManagedInstanceVersion", + message="Warning", ) -class InstanceManagedByIgmErrorManagedInstanceError(proto.Message): +class InstanceTemplatesScopedList(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - code (str): - [Output Only] Error code. - - This field is a member of `oneof`_ ``_code``. - message (str): - [Output Only] Error message. + instance_templates (MutableSequence[google.cloud.compute_v1.types.InstanceTemplate]): + [Output Only] A list of instance templates that are + contained within the specified project and zone. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] An informational warning that replaces the + list of instance templates when the list is empty. - This field is a member of `oneof`_ ``_message``. + This field is a member of `oneof`_ ``_warning``. """ - code: str = proto.Field( - proto.STRING, - number=3059181, - optional=True, + instance_templates: MutableSequence["InstanceTemplate"] = proto.RepeatedField( + proto.MESSAGE, + number=459889679, + message="InstanceTemplate", ) - message: str = proto.Field( - proto.STRING, - number=418054151, + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, optional=True, + message="Warning", ) -class InstanceMoveRequest(proto.Message): +class InstanceWithNamedPorts(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - destination_zone (str): - The URL of the destination zone to move the - instance. This can be a full or partial URL. For - example, the following are all valid URLs to a - zone: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - - projects/project/zones/zone - zones/zone + instance (str): + Output only. [Output Only] The URL of the instance. - This field is a member of `oneof`_ ``_destination_zone``. - target_instance (str): - The URL of the target instance to move. This - can be a full or partial URL. For example, the - following are all valid URLs to an instance: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /instances/instance - - projects/project/zones/zone/instances/instance - - zones/zone/instances/instance + This field is a member of `oneof`_ ``_instance``. + named_ports (MutableSequence[google.cloud.compute_v1.types.NamedPort]): + Output only. [Output Only] The named ports that belong to + this instance group. + status (str): + Output only. [Output Only] The status of the instance. Check + the Status enum for the list of possible values. - This field is a member of `oneof`_ ``_target_instance``. + This field is a member of `oneof`_ ``_status``. """ - destination_zone: str = proto.Field( + class Status(proto.Enum): + r"""Output only. [Output Only] The status of the instance. + + Values: + UNDEFINED_STATUS (0): + A value indicating that the enum field is not + set. + DEPROVISIONING (428935662): + The instance is halted and we are performing + tear down tasks like network deprogramming, + releasing quota, IP, tearing down disks etc. + PENDING (35394935): + For Flex Start provisioning instance is + waiting for available capacity from Dynamic + Workload Scheduler (DWS). + PROVISIONING (290896621): + Resources are being allocated for the + instance. + REPAIRING (413483285): + The instance is in repair. + RUNNING (121282975): + The instance is running. + STAGING (431072283): + All required resources have been allocated + and the instance is being started. + STOPPED (444276141): + The instance has stopped successfully. + STOPPING (350791796): + The instance is currently stopping (either + being deleted or killed). + SUSPENDED (51223995): + The instance has suspended. + SUSPENDING (514206246): + The instance is suspending. + TERMINATED (250018339): + The instance has stopped (either by explicit + action or underlying failure). + """ + UNDEFINED_STATUS = 0 + DEPROVISIONING = 428935662 + PENDING = 35394935 + PROVISIONING = 290896621 + REPAIRING = 413483285 + RUNNING = 121282975 + STAGING = 431072283 + STOPPED = 444276141 + STOPPING = 350791796 + SUSPENDED = 51223995 + SUSPENDING = 514206246 + TERMINATED = 250018339 + + instance: str = proto.Field( proto.STRING, - number=131854653, + number=18257045, optional=True, ) - target_instance: str = proto.Field( + named_ports: MutableSequence["NamedPort"] = proto.RepeatedField( + proto.MESSAGE, + number=427598732, + message="NamedPort", + ) + status: str = proto.Field( proto.STRING, - number=289769347, + number=181260274, optional=True, ) -class InstanceParams(proto.Message): - r"""Additional instance params. - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields +class InstancesAddResourcePoliciesRequest(proto.Message): + r""" Attributes: - request_valid_for_duration (google.cloud.compute_v1.types.Duration): - Relative deadline for waiting for capacity. - Relevant only for Instances.Insert API. - - This field is a member of `oneof`_ ``_request_valid_for_duration``. - resource_manager_tags (MutableMapping[str, str]): - Resource manager tags to be bound to the instance. Tag keys - and values have the same definition as resource manager - tags. Keys must be in the format ``tagKeys/{tag_key_id}``, - and values are in the format ``tagValues/456``. The field is - ignored (both PUT & PATCH) when empty. + resource_policies (MutableSequence[str]): + Resource policies to be added to this + instance. """ - request_valid_for_duration: "Duration" = proto.Field( - proto.MESSAGE, - number=116247389, - optional=True, - message="Duration", - ) - resource_manager_tags: MutableMapping[str, str] = proto.MapField( - proto.STRING, + resource_policies: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=377671164, + number=22220385, ) -class InstanceProperties(proto.Message): +class InstancesBulkInsertOperationMetadata(proto.Message): r""" - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - Attributes: - advanced_machine_features (google.cloud.compute_v1.types.AdvancedMachineFeatures): - Controls for advanced machine-related - behavior features. Note that for MachineImage, - this is not supported yet. + per_location_status (MutableMapping[str, google.cloud.compute_v1.types.BulkInsertOperationStatus]): + Status information per location (location + name is key). Example key: zones/us-central1-a + """ - This field is a member of `oneof`_ ``_advanced_machine_features``. - can_ip_forward (bool): - Enables instances created based on these - properties to send packets with source IP - addresses other than their own and receive - packets with destination IP addresses other than - their own. If these instances will be used as an - IP gateway or it will be set as the next-hop in - a Route resource, specify true. If unsure, leave - this set to false. See the Enable IP forwarding - documentation for more information. + per_location_status: MutableMapping[ + str, "BulkInsertOperationStatus" + ] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=167851162, + message="BulkInsertOperationStatus", + ) - This field is a member of `oneof`_ ``_can_ip_forward``. - confidential_instance_config (google.cloud.compute_v1.types.ConfidentialInstanceConfig): - Specifies the Confidential Instance options. - Note that for MachineImage, this is not - supported yet. - This field is a member of `oneof`_ ``_confidential_instance_config``. - description (str): - An optional text description for the - instances that are created from these - properties. +class InstancesGetEffectiveFirewallsResponse(proto.Message): + r""" - This field is a member of `oneof`_ ``_description``. - disks (MutableSequence[google.cloud.compute_v1.types.AttachedDisk]): - An array of disks that are associated with - the instances that are created from these - properties. - guest_accelerators (MutableSequence[google.cloud.compute_v1.types.AcceleratorConfig]): - A list of guest accelerator cards' type and - count to use for instances created from these - properties. - key_revocation_action_type (str): - KeyRevocationActionType of the instance. - Supported options are "STOP" and "NONE". The - default value is "NONE" if it is not specified. - Check the KeyRevocationActionType enum for the - list of possible values. + Attributes: + firewall_policys (MutableSequence[google.cloud.compute_v1.types.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy]): + [Output Only] Effective firewalls from firewall policies. + firewalls (MutableSequence[google.cloud.compute_v1.types.Firewall]): + Effective firewalls on the instance. + """ - This field is a member of `oneof`_ ``_key_revocation_action_type``. - labels (MutableMapping[str, str]): - Labels to apply to instances that are created - from these properties. - machine_type (str): - The machine type to use for instances that are created from - these properties. This field only accepts a machine type - name, for example ``n2-standard-4``. If you use the machine - type full or partial URL, for example - ``projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4``, - the request will result in an ``INTERNAL_ERROR``. + firewall_policys: MutableSequence[ + "InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy" + ] = proto.RepeatedField( + proto.MESSAGE, + number=410985794, + message="InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy", + ) + firewalls: MutableSequence["Firewall"] = proto.RepeatedField( + proto.MESSAGE, + number=272245619, + message="Firewall", + ) - This field is a member of `oneof`_ ``_machine_type``. - metadata (google.cloud.compute_v1.types.Metadata): - The metadata key/value pairs to assign to - instances that are created from these - properties. These pairs can consist of custom - metadata or predefined keys. See Project and - instance metadata for more information. - This field is a member of `oneof`_ ``_metadata``. - min_cpu_platform (str): - Minimum cpu/platform to be used by instances. - The instance may be scheduled on the specified - or newer cpu/platform. Applicable values are the - friendly names of CPU platforms, such as - minCpuPlatform: "Intel Haswell" or - minCpuPlatform: "Intel Sandy Bridge". For more - information, read Specifying a Minimum CPU - Platform. +class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy(proto.Message): + r""" - This field is a member of `oneof`_ ``_min_cpu_platform``. - network_interfaces (MutableSequence[google.cloud.compute_v1.types.NetworkInterface]): - An array of network access configurations for - this interface. - network_performance_config (google.cloud.compute_v1.types.NetworkPerformanceConfig): - Note that for MachineImage, this is not - supported yet. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_network_performance_config``. - private_ipv6_google_access (str): - The private IPv6 google access type for VMs. If not - specified, use INHERIT_FROM_SUBNETWORK as default. Note that - for MachineImage, this is not supported yet. Check the - PrivateIpv6GoogleAccess enum for the list of possible - values. + Attributes: + display_name (str): + Output only. [Output Only] Deprecated, please use short name + instead. The display name of the firewall policy. - This field is a member of `oneof`_ ``_private_ipv6_google_access``. - reservation_affinity (google.cloud.compute_v1.types.ReservationAffinity): - Specifies the reservations that instances can - consume from. Note that for MachineImage, this - is not supported yet. + This field is a member of `oneof`_ ``_display_name``. + name (str): + Output only. [Output Only] The name of the firewall policy. - This field is a member of `oneof`_ ``_reservation_affinity``. - resource_manager_tags (MutableMapping[str, str]): - Resource manager tags to be bound to the instance. Tag keys - and values have the same definition as resource manager - tags. Keys must be in the format ``tagKeys/{tag_key_id}``, - and values are in the format ``tagValues/456``. The field is - ignored (both PUT & PATCH) when empty. - resource_policies (MutableSequence[str]): - Resource policies (names, not URLs) applied - to instances created from these properties. Note - that for MachineImage, this is not supported - yet. - scheduling (google.cloud.compute_v1.types.Scheduling): - Specifies the scheduling options for the - instances that are created from these - properties. + This field is a member of `oneof`_ ``_name``. + packet_mirroring_rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): + Output only. [Output Only] The packet mirroring rules that + apply to the instance. + priority (int): + Output only. [Output only] Priority of firewall policy + association. Not applicable for type=HIERARCHY. - This field is a member of `oneof`_ ``_scheduling``. - service_accounts (MutableSequence[google.cloud.compute_v1.types.ServiceAccount]): - A list of service accounts with specified - scopes. Access tokens for these service accounts - are available to the instances that are created - from these properties. Use metadata queries to - obtain the access tokens for these instances. - shielded_instance_config (google.cloud.compute_v1.types.ShieldedInstanceConfig): - Note that for MachineImage, this is not - supported yet. + This field is a member of `oneof`_ ``_priority``. + rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): + [Output Only] The rules that apply to the instance. Only + rules that target the specific VM instance are returned if + target service accounts or target secure tags are specified + in the rules. + short_name (str): + Output only. [Output Only] The short name of the firewall + policy. - This field is a member of `oneof`_ ``_shielded_instance_config``. - tags (google.cloud.compute_v1.types.Tags): - A list of tags to apply to the instances that - are created from these properties. The tags - identify valid sources or targets for network - firewalls. The setTags method can modify this - list of tags. Each tag within the list must - comply with RFC1035. + This field is a member of `oneof`_ ``_short_name``. + type_ (str): + Output only. [Output Only] The type of the firewall policy. + Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, + SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the + list of possible values. - This field is a member of `oneof`_ ``_tags``. + This field is a member of `oneof`_ ``_type``. """ - class KeyRevocationActionType(proto.Enum): - r"""KeyRevocationActionType of the instance. Supported options - are "STOP" and "NONE". The default value is "NONE" if it is not - specified. - - Values: - UNDEFINED_KEY_REVOCATION_ACTION_TYPE (0): - A value indicating that the enum field is not - set. - KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED (467110106): - Default value. This value is unused. - NONE (2402104): - Indicates user chose no operation. - STOP (2555906): - Indicates user chose to opt for VM shutdown - on key revocation. - """ - UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0 - KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106 - NONE = 2402104 - STOP = 2555906 - - class PrivateIpv6GoogleAccess(proto.Enum): - r"""The private IPv6 google access type for VMs. If not specified, use - INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this - is not supported yet. + class Type(proto.Enum): + r"""Output only. [Output Only] The type of the firewall policy. Can be + one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, + SYSTEM_REGIONAL. Values: - UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS (0): + UNDEFINED_TYPE (0): A value indicating that the enum field is not set. - ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE (427975994): - Bidirectional private IPv6 access to/from - Google services. If specified, the subnetwork - who is attached to the instance's default - network interface will be assigned an internal - IPv6 prefix if it doesn't have before. - ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE (288210263): - Outbound private IPv6 access from VMs in this - subnet to Google services. If specified, the - subnetwork who is attached to the instance's - default network interface will be assigned an - internal IPv6 prefix if it doesn't have before. - INHERIT_FROM_SUBNETWORK (530256959): - Each network interface inherits - PrivateIpv6GoogleAccess from its subnetwork. + HIERARCHY (69902869): + No description available. + NETWORK (413984270): + No description available. + NETWORK_REGIONAL (190804272): + No description available. + SYSTEM_GLOBAL (60099507): + No description available. + SYSTEM_REGIONAL (161777199): + No description available. + UNSPECIFIED (526786327): + No description available. """ - UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS = 0 - ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE = 427975994 - ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE = 288210263 - INHERIT_FROM_SUBNETWORK = 530256959 + UNDEFINED_TYPE = 0 + HIERARCHY = 69902869 + NETWORK = 413984270 + NETWORK_REGIONAL = 190804272 + SYSTEM_GLOBAL = 60099507 + SYSTEM_REGIONAL = 161777199 + UNSPECIFIED = 526786327 - advanced_machine_features: "AdvancedMachineFeatures" = proto.Field( - proto.MESSAGE, - number=409646002, + display_name: str = proto.Field( + proto.STRING, + number=4473832, optional=True, - message="AdvancedMachineFeatures", ) - can_ip_forward: bool = proto.Field( - proto.BOOL, - number=467731324, + name: str = proto.Field( + proto.STRING, + number=3373707, optional=True, ) - confidential_instance_config: "ConfidentialInstanceConfig" = proto.Field( + packet_mirroring_rules: MutableSequence["FirewallPolicyRule"] = proto.RepeatedField( proto.MESSAGE, - number=490637685, - optional=True, - message="ConfidentialInstanceConfig", + number=531644356, + message="FirewallPolicyRule", ) - description: str = proto.Field( - proto.STRING, - number=422937596, + priority: int = proto.Field( + proto.INT32, + number=445151652, optional=True, ) - disks: MutableSequence["AttachedDisk"] = proto.RepeatedField( - proto.MESSAGE, - number=95594102, - message="AttachedDisk", - ) - guest_accelerators: MutableSequence["AcceleratorConfig"] = proto.RepeatedField( + rules: MutableSequence["FirewallPolicyRule"] = proto.RepeatedField( proto.MESSAGE, - number=463595119, - message="AcceleratorConfig", + number=108873975, + message="FirewallPolicyRule", ) - key_revocation_action_type: str = proto.Field( + short_name: str = proto.Field( proto.STRING, - number=235941474, + number=492051566, optional=True, ) - labels: MutableMapping[str, str] = proto.MapField( - proto.STRING, - proto.STRING, - number=500195327, - ) - machine_type: str = proto.Field( + type_: str = proto.Field( proto.STRING, - number=227711026, + number=3575610, optional=True, ) - metadata: "Metadata" = proto.Field( - proto.MESSAGE, - number=86866735, - optional=True, - message="Metadata", + + +class InstancesRemoveResourcePoliciesRequest(proto.Message): + r""" + + Attributes: + resource_policies (MutableSequence[str]): + Resource policies to be removed from this + instance. + """ + + resource_policies: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=22220385, ) - min_cpu_platform: str = proto.Field( + + +class InstancesReportHostAsFaultyRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + disruption_schedule (str): + The disruption schedule for the VM. Required + field, only allows IMMEDIATE. Check the + DisruptionSchedule enum for the list of possible + values. + + This field is a member of `oneof`_ ``_disruption_schedule``. + fault_reasons (MutableSequence[google.cloud.compute_v1.types.InstancesReportHostAsFaultyRequestFaultReason]): + + """ + + class DisruptionSchedule(proto.Enum): + r"""The disruption schedule for the VM. Required field, only + allows IMMEDIATE. + + Values: + UNDEFINED_DISRUPTION_SCHEDULE (0): + A value indicating that the enum field is not + set. + DISRUPTION_SCHEDULE_UNSPECIFIED (332543835): + Not used. Required as per aip/126. + FUTURE (474513859): + Delay disruption for caller control. Will be + default soon. + IMMEDIATE (152881041): + Default value. Disrupt the VM immediately. + """ + UNDEFINED_DISRUPTION_SCHEDULE = 0 + DISRUPTION_SCHEDULE_UNSPECIFIED = 332543835 + FUTURE = 474513859 + IMMEDIATE = 152881041 + + disruption_schedule: str = proto.Field( proto.STRING, - number=242912759, + number=95871619, optional=True, ) - network_interfaces: MutableSequence["NetworkInterface"] = proto.RepeatedField( - proto.MESSAGE, - number=52735243, - message="NetworkInterface", - ) - network_performance_config: "NetworkPerformanceConfig" = proto.Field( + fault_reasons: MutableSequence[ + "InstancesReportHostAsFaultyRequestFaultReason" + ] = proto.RepeatedField( proto.MESSAGE, - number=398330850, - optional=True, - message="NetworkPerformanceConfig", + number=168056210, + message="InstancesReportHostAsFaultyRequestFaultReason", ) - private_ipv6_google_access: str = proto.Field( + + +class InstancesReportHostAsFaultyRequestFaultReason(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + behavior (str): + Check the Behavior enum for the list of + possible values. + + This field is a member of `oneof`_ ``_behavior``. + description (str): + + This field is a member of `oneof`_ ``_description``. + """ + + class Behavior(proto.Enum): + r""" + + Values: + UNDEFINED_BEHAVIOR (0): + A value indicating that the enum field is not + set. + BEHAVIOR_UNSPECIFIED (85734570): + Public reportable behaviors + PERFORMANCE (135701520): + No description available. + SILENT_DATA_CORRUPTION (111360678): + No description available. + UNRECOVERABLE_GPU_ERROR (363710747): + No description available. + """ + UNDEFINED_BEHAVIOR = 0 + BEHAVIOR_UNSPECIFIED = 85734570 + PERFORMANCE = 135701520 + SILENT_DATA_CORRUPTION = 111360678 + UNRECOVERABLE_GPU_ERROR = 363710747 + + behavior: str = proto.Field( proto.STRING, - number=48277006, - optional=True, - ) - reservation_affinity: "ReservationAffinity" = proto.Field( - proto.MESSAGE, - number=157850683, + number=437170770, optional=True, - message="ReservationAffinity", - ) - resource_manager_tags: MutableMapping[str, str] = proto.MapField( - proto.STRING, - proto.STRING, - number=377671164, ) - resource_policies: MutableSequence[str] = proto.RepeatedField( + description: str = proto.Field( proto.STRING, - number=22220385, - ) - scheduling: "Scheduling" = proto.Field( - proto.MESSAGE, - number=386688404, + number=422937596, optional=True, - message="Scheduling", - ) - service_accounts: MutableSequence["ServiceAccount"] = proto.RepeatedField( - proto.MESSAGE, - number=277537328, - message="ServiceAccount", ) - shielded_instance_config: "ShieldedInstanceConfig" = proto.Field( + + +class InstancesScopedList(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instances (MutableSequence[google.cloud.compute_v1.types.Instance]): + [Output Only] A list of instances contained in this scope. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning which replaces the list + of instances when the list is empty. + + This field is a member of `oneof`_ ``_warning``. + """ + + instances: MutableSequence["Instance"] = proto.RepeatedField( proto.MESSAGE, - number=12862901, - optional=True, - message="ShieldedInstanceConfig", + number=29097598, + message="Instance", ) - tags: "Tags" = proto.Field( + warning: "Warning" = proto.Field( proto.MESSAGE, - number=3552281, + number=50704284, optional=True, - message="Tags", + message="Warning", ) -class InstancePropertiesPatch(proto.Message): - r"""Represents the change that you want to make to the instance - properties. +class InstancesSetLabelsRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + label_fingerprint (str): + Fingerprint of the previous set of labels for + this resource, used to prevent conflicts. + Provide the latest fingerprint value when making + a request to add or change labels. + + This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): - The label key-value pairs that you want to - patch onto the instance. - metadata (MutableMapping[str, str]): - The metadata key-value pairs that you want to - patch onto the instance. For more information, - see Project and instance metadata. + """ + label_fingerprint: str = proto.Field( + proto.STRING, + number=178124825, + optional=True, + ) labels: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=500195327, ) - metadata: MutableMapping[str, str] = proto.MapField( - proto.STRING, - proto.STRING, - number=86866735, + + +class InstancesSetMachineResourcesRequest(proto.Message): + r""" + + Attributes: + guest_accelerators (MutableSequence[google.cloud.compute_v1.types.AcceleratorConfig]): + A list of the type and count of accelerator + cards attached to the instance. + """ + + guest_accelerators: MutableSequence["AcceleratorConfig"] = proto.RepeatedField( + proto.MESSAGE, + number=463595119, + message="AcceleratorConfig", ) -class InstanceReference(proto.Message): +class InstancesSetMachineTypeRequest(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - instance (str): - The URL for a specific instance. @required - compute.instancegroups.addInstances/removeInstances + machine_type (str): + Full or partial URL of the machine type + resource. See Machine Types for a full list of + machine types. For + example:zones/us-central1-f/machineTypes/n1-standard-1 - This field is a member of `oneof`_ ``_instance``. + This field is a member of `oneof`_ ``_machine_type``. """ - instance: str = proto.Field( + machine_type: str = proto.Field( proto.STRING, - number=18257045, + number=227711026, optional=True, ) -class InstanceSettings(proto.Message): - r"""Represents a Instance Settings resource. You can use instance - settings to configure default settings for Compute Engine VM - instances. For example, you can use it to configure default - machine type of Compute Engine VM instances. - +class InstancesSetMinCpuPlatformRequest(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - fingerprint (str): - Specifies a fingerprint for instance - settings, which is essentially a hash of the - instance settings resource's contents and used - for optimistic locking. The fingerprint is - initially generated by Compute Engine and - changes after every request to modify or update - the instance settings resource. You must always - provide an up-to-date fingerprint hash in order - to update or change the resource, otherwise the - request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve the resource. + min_cpu_platform (str): + Minimum cpu/platform this instance should be + started at. - This field is a member of `oneof`_ ``_fingerprint``. - kind (str): - [Output Only] Type of the resource. Always - compute#instance_settings for instance settings. + This field is a member of `oneof`_ ``_min_cpu_platform``. + """ - This field is a member of `oneof`_ ``_kind``. - metadata (google.cloud.compute_v1.types.InstanceSettingsMetadata): - The metadata key/value pairs assigned to all - the instances in the corresponding scope. + min_cpu_platform: str = proto.Field( + proto.STRING, + number=242912759, + optional=True, + ) - This field is a member of `oneof`_ ``_metadata``. - zone (str): - [Output Only] URL of the zone where the resource resides You - must specify this field as part of the HTTP request URL. It - is not settable as a field in the request body. - This field is a member of `oneof`_ ``_zone``. +class InstancesSetNameRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + current_name (str): + The current name of this resource, used to + prevent conflicts. Provide the latest name when + making a request to change name. + + This field is a member of `oneof`_ ``_current_name``. + name (str): + The name to be applied to the instance. Needs + to be RFC 1035 compliant. + + This field is a member of `oneof`_ ``_name``. """ - fingerprint: str = proto.Field( + current_name: str = proto.Field( proto.STRING, - number=234678500, + number=394983825, optional=True, ) - kind: str = proto.Field( + name: str = proto.Field( proto.STRING, - number=3292052, + number=3373707, optional=True, ) - metadata: "InstanceSettingsMetadata" = proto.Field( - proto.MESSAGE, - number=86866735, - optional=True, - message="InstanceSettingsMetadata", + + +class InstancesSetSecurityPolicyRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + network_interfaces (MutableSequence[str]): + The network interfaces that the security + policy will be applied to. Network interfaces + use the nicN naming format. You can only set a + security policy for network interfaces with an + access config. + security_policy (str): + A full or partial URL to a security policy to + add to this instance. If this field is set to an + empty string it will remove the associated + security policy. + + This field is a member of `oneof`_ ``_security_policy``. + """ + + network_interfaces: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=52735243, ) - zone: str = proto.Field( + security_policy: str = proto.Field( proto.STRING, - number=3744684, + number=171082513, optional=True, ) -class InstanceSettingsMetadata(proto.Message): +class InstancesSetServiceAccountRequest(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - items (MutableMapping[str, str]): - A metadata key/value items map. The total - size of all keys and values must be less than - 512KB. - kind (str): - [Output Only] Type of the resource. Always compute#metadata - for metadata. + email (str): + Email address of the service account. - This field is a member of `oneof`_ ``_kind``. + This field is a member of `oneof`_ ``_email``. + scopes (MutableSequence[str]): + The list of scopes to be made available for + this service account. """ - items: MutableMapping[str, str] = proto.MapField( - proto.STRING, + email: str = proto.Field( proto.STRING, - number=100526016, + number=96619420, + optional=True, ) - kind: str = proto.Field( + scopes: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=3292052, - optional=True, + number=165973151, ) -class InstanceTemplate(proto.Message): - r"""Represents an Instance Template resource. Google Compute Engine has - two Instance Template resources: \* - `Global `__ \* - `Regional `__ - You can reuse a global instance template in different regions - whereas you can use a regional instance template in a specified - region only. If you want to reduce cross-region dependency or - achieve data residency, use a regional instance template. To create - VMs, managed instance groups, and reservations, you can use either - global or regional instance templates. For more information, read - Instance Templates. +class InstancesStartWithEncryptionKeyRequest(proto.Message): + r""" + + Attributes: + disks (MutableSequence[google.cloud.compute_v1.types.CustomerEncryptionKeyProtectedDisk]): + Array of disks associated with this instance + that are protected with acustomer-supplied + encryption key. + + In order to start the instance, the disk url and + its corresponding key must be provided. + + If the disk is not protected with a + customer-supplied encryption key it should not + be specified. + """ + + disks: MutableSequence["CustomerEncryptionKeyProtectedDisk"] = proto.RepeatedField( + proto.MESSAGE, + number=95594102, + message="CustomerEncryptionKeyProtectedDisk", + ) + + +class InstantSnapshot(proto.Message): + r"""Represents a InstantSnapshot resource. + + You can use instant snapshots to create disk rollback points + quickly.. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + architecture (str): + Output only. [Output Only] The architecture of the instant + snapshot. Valid values are ARM64 or X86_64. Check the + Architecture enum for the list of possible values. + + This field is a member of `oneof`_ ``_architecture``. creation_timestamp (str): - [Output Only] The creation timestamp for this instance - template in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -49997,20 +58038,44 @@ class InstanceTemplate(proto.Message): resource. This field is a member of `oneof`_ ``_description``. + disk_size_gb (int): + Output only. [Output Only] Size of the source disk, + specified in GB. + + This field is a member of `oneof`_ ``_disk_size_gb``. id (int): - [Output Only] A unique identifier for this instance - template. The server defines this identifier. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] The resource type, which is always - compute#instanceTemplate for instance templates. + Output only. [Output Only] Type of the resource. + Alwayscompute#instantSnapshot for InstantSnapshot resources. This field is a member of `oneof`_ ``_kind``. + label_fingerprint (str): + A fingerprint for the labels being applied to + this InstantSnapshot, which is essentially a + hash of the labels set used for optimistic + locking. The fingerprint is initially generated + by Compute Engine and changes after every + request to modify or update labels. You must + always provide an up-to-date fingerprint hash in + order to update or change labels, otherwise the + request will fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a InstantSnapshot. + + This field is a member of `oneof`_ ``_label_fingerprint``. + labels (MutableMapping[str, str]): + Labels to apply to this InstantSnapshot. + These can be later modified by the setLabels + method. Label values may be empty. name (str): Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -50018,38 +58083,141 @@ class InstanceTemplate(proto.Message): except the last character, which cannot be a dash. This field is a member of `oneof`_ ``_name``. - properties (google.cloud.compute_v1.types.InstanceProperties): - The instance properties for this instance - template. - - This field is a member of `oneof`_ ``_properties``. region (str): - [Output Only] URL of the region where the instance template - resides. Only applicable for regional resources. + Output only. [Output Only] URL of the region where the + instant snapshot resides. You must specify this field as + part of the HTTP request URL. It is not settable as a field + in the request body. This field is a member of `oneof`_ ``_region``. + resource_status (google.cloud.compute_v1.types.InstantSnapshotResourceStatus): + Output only. [Output Only] Status information for the + instant snapshot resource. + + This field is a member of `oneof`_ ``_resource_status``. + satisfies_pzi (bool): + Output only. Reserved for future use. + + This field is a member of `oneof`_ ``_satisfies_pzi``. + satisfies_pzs (bool): + Output only. [Output Only] Reserved for future use. + + This field is a member of `oneof`_ ``_satisfies_pzs``. self_link (str): - [Output Only] The URL for this instance template. The server - defines this URL. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. - source_instance (str): - The source instance used to create the - template. You can provide this as a partial or - full URL to the resource. For example, the - following are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /instances/instance - - projects/project/zones/zone/instances/instance + self_link_with_id (str): + Output only. [Output Only] Server-defined URL for this + resource's resource id. - This field is a member of `oneof`_ ``_source_instance``. - source_instance_params (google.cloud.compute_v1.types.SourceInstanceParams): - The source instance params to use to create - this instance template. + This field is a member of `oneof`_ ``_self_link_with_id``. + source_disk (str): + URL of the source disk used to create this + instant snapshot. Note that the source disk must + be in the same zone/region as the instant + snapshot to be created. This can be a full or + valid partial URL. For example, the following + are valid values: - This field is a member of `oneof`_ ``_source_instance_params``. + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk + + - + projects/project/zones/zone/disks/disk + + - + projects/project/regions/region/disks/disk + + - + zones/zone/disks/disk + + - + regions/region/disks/disk + + This field is a member of `oneof`_ ``_source_disk``. + source_disk_id (str): + Output only. [Output Only] The ID value of the disk used to + create this InstantSnapshot. This value may be used to + determine whether the InstantSnapshot was taken from the + current or a previous instance of a given disk name. + + This field is a member of `oneof`_ ``_source_disk_id``. + status (str): + Output only. [Output Only] The status of the + instantSnapshot. This can beCREATING, DELETING, FAILED, + orREADY. Check the Status enum for the list of possible + values. + + This field is a member of `oneof`_ ``_status``. + zone (str): + Output only. [Output Only] URL of the zone where the instant + snapshot resides. You must specify this field as part of the + HTTP request URL. It is not settable as a field in the + request body. + + This field is a member of `oneof`_ ``_zone``. """ + class Architecture(proto.Enum): + r"""Output only. [Output Only] The architecture of the instant snapshot. + Valid values are ARM64 or X86_64. + + Values: + UNDEFINED_ARCHITECTURE (0): + A value indicating that the enum field is not + set. + ARCHITECTURE_UNSPECIFIED (394750507): + Default value indicating Architecture is not + set. + ARM64 (62547450): + Machines with architecture ARM64 + X86_64 (425300551): + Machines with architecture X86_64 + """ + UNDEFINED_ARCHITECTURE = 0 + ARCHITECTURE_UNSPECIFIED = 394750507 + ARM64 = 62547450 + X86_64 = 425300551 + + class Status(proto.Enum): + r"""Output only. [Output Only] The status of the instantSnapshot. This + can beCREATING, DELETING, FAILED, orREADY. + + Values: + UNDEFINED_STATUS (0): + A value indicating that the enum field is not + set. + CREATING (455564985): + InstantSnapshot creation is in progress. + DELETING (528602024): + InstantSnapshot is currently being deleted. + FAILED (455706685): + InstantSnapshot creation failed. + READY (77848963): + InstantSnapshot has been created + successfully. + UNAVAILABLE (413756464): + InstantSnapshot is currently unavailable and + cannot be used for Disk restoration + """ + UNDEFINED_STATUS = 0 + CREATING = 455564985 + DELETING = 528602024 + FAILED = 455706685 + READY = 77848963 + UNAVAILABLE = 413756464 + + architecture: str = proto.Field( + proto.STRING, + number=302803283, + optional=True, + ) creation_timestamp: str = proto.Field( proto.STRING, number=30525366, @@ -50060,6 +58228,11 @@ class InstanceTemplate(proto.Message): number=422937596, optional=True, ) + disk_size_gb: int = proto.Field( + proto.INT64, + number=316263735, + optional=True, + ) id: int = proto.Field( proto.UINT64, number=3355, @@ -50070,42 +58243,76 @@ class InstanceTemplate(proto.Message): number=3292052, optional=True, ) + label_fingerprint: str = proto.Field( + proto.STRING, + number=178124825, + optional=True, + ) + labels: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=500195327, + ) name: str = proto.Field( proto.STRING, number=3373707, optional=True, ) - properties: "InstanceProperties" = proto.Field( + region: str = proto.Field( + proto.STRING, + number=138946292, + optional=True, + ) + resource_status: "InstantSnapshotResourceStatus" = proto.Field( proto.MESSAGE, - number=147688755, + number=249429315, + optional=True, + message="InstantSnapshotResourceStatus", + ) + satisfies_pzi: bool = proto.Field( + proto.BOOL, + number=480964257, + optional=True, + ) + satisfies_pzs: bool = proto.Field( + proto.BOOL, + number=480964267, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + self_link_with_id: str = proto.Field( + proto.STRING, + number=44520962, optional=True, - message="InstanceProperties", ) - region: str = proto.Field( + source_disk: str = proto.Field( proto.STRING, - number=138946292, + number=451753793, optional=True, ) - self_link: str = proto.Field( + source_disk_id: str = proto.Field( proto.STRING, - number=456214797, + number=454190809, optional=True, ) - source_instance: str = proto.Field( + status: str = proto.Field( proto.STRING, - number=396315705, + number=181260274, optional=True, ) - source_instance_params: "SourceInstanceParams" = proto.Field( - proto.MESSAGE, - number=135342156, + zone: str = proto.Field( + proto.STRING, + number=3744684, optional=True, - message="SourceInstanceParams", ) -class InstanceTemplateAggregatedList(proto.Message): - r"""Contains a list of InstanceTemplatesScopedList. +class InstantSnapshotAggregatedList(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -50115,26 +58322,31 @@ class InstanceTemplateAggregatedList(proto.Message): the server. This field is a member of `oneof`_ ``_id``. - items (MutableMapping[str, google.cloud.compute_v1.types.InstanceTemplatesScopedList]): - A list of InstanceTemplatesScopedList + items (MutableMapping[str, google.cloud.compute_v1.types.InstantSnapshotsScopedList]): + A list of InstantSnapshotsScopedList resources. kind (str): - Type of resource. + Output only. [Output Only] Type of resource. + Alwayscompute#instantSnapshotAggregatedList for aggregated + lists of instantSnapshots. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. + unreachables (MutableSequence[str]): + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -50150,11 +58362,11 @@ def raw_page(self): number=3355, optional=True, ) - items: MutableMapping[str, "InstanceTemplatesScopedList"] = proto.MapField( + items: MutableMapping[str, "InstantSnapshotsScopedList"] = proto.MapField( proto.STRING, proto.MESSAGE, number=100526016, - message="InstanceTemplatesScopedList", + message="InstantSnapshotsScopedList", ) kind: str = proto.Field( proto.STRING, @@ -50171,6 +58383,10 @@ def raw_page(self): number=456214797, optional=True, ) + unreachables: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=243372063, + ) warning: "Warning" = proto.Field( proto.MESSAGE, number=50704284, @@ -50179,8 +58395,8 @@ def raw_page(self): ) -class InstanceTemplateList(proto.Message): - r"""A list of instance templates. +class InstantSnapshotList(proto.Message): + r"""Contains a list of InstantSnapshot resources. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -50190,25 +58406,24 @@ class InstanceTemplateList(proto.Message): the server. This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.InstanceTemplate]): - A list of InstanceTemplate resources. + items (MutableSequence[google.cloud.compute_v1.types.InstantSnapshot]): + A list of InstantSnapshot resources. kind (str): - [Output Only] The resource type, which is always - compute#instanceTemplatesListResponse for instance template - lists. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -50226,10 +58441,10 @@ def raw_page(self): number=3355, optional=True, ) - items: MutableSequence["InstanceTemplate"] = proto.RepeatedField( + items: MutableSequence["InstantSnapshot"] = proto.RepeatedField( proto.MESSAGE, number=100526016, - message="InstanceTemplate", + message="InstantSnapshot", ) kind: str = proto.Field( proto.STRING, @@ -50254,26 +58469,45 @@ def raw_page(self): ) -class InstanceTemplatesScopedList(proto.Message): +class InstantSnapshotResourceStatus(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - instance_templates (MutableSequence[google.cloud.compute_v1.types.InstanceTemplate]): - [Output Only] A list of instance templates that are - contained within the specified project and zone. + storage_size_bytes (int): + [Output Only] The storage size of this instant snapshot. + + This field is a member of `oneof`_ ``_storage_size_bytes``. + """ + + storage_size_bytes: int = proto.Field( + proto.INT64, + number=387548913, + optional=True, + ) + + +class InstantSnapshotsScopedList(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + instant_snapshots (MutableSequence[google.cloud.compute_v1.types.InstantSnapshot]): + [Output Only] A list of instantSnapshots contained in this + scope. warning (google.cloud.compute_v1.types.Warning): - [Output Only] An informational warning that replaces the - list of instance templates when the list is empty. + [Output Only] Informational warning which replaces the list + of instantSnapshots when the list is empty. This field is a member of `oneof`_ ``_warning``. """ - instance_templates: MutableSequence["InstanceTemplate"] = proto.RepeatedField( + instant_snapshots: MutableSequence["InstantSnapshot"] = proto.RepeatedField( proto.MESSAGE, - number=459889679, - message="InstanceTemplate", + number=329637457, + message="InstantSnapshot", ) warning: "Warning" = proto.Field( proto.MESSAGE, @@ -50283,368 +58517,536 @@ class InstanceTemplatesScopedList(proto.Message): ) -class InstanceWithNamedPorts(proto.Message): - r""" +class Int64RangeMatch(proto.Message): + r"""HttpRouteRuleMatch criteria for field values that must stay + within the specified integer range. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - instance (str): - [Output Only] The URL of the instance. + range_end (int): + The end of the range (exclusive) in signed + long integer format. - This field is a member of `oneof`_ ``_instance``. - named_ports (MutableSequence[google.cloud.compute_v1.types.NamedPort]): - [Output Only] The named ports that belong to this instance - group. - status (str): - [Output Only] The status of the instance. Check the Status - enum for the list of possible values. + This field is a member of `oneof`_ ``_range_end``. + range_start (int): + The start of the range (inclusive) in signed + long integer format. - This field is a member of `oneof`_ ``_status``. + This field is a member of `oneof`_ ``_range_start``. """ - class Status(proto.Enum): - r"""[Output Only] The status of the instance. - - Values: - UNDEFINED_STATUS (0): - A value indicating that the enum field is not - set. - DEPROVISIONING (428935662): - The instance is halted and we are performing - tear down tasks like network deprogramming, - releasing quota, IP, tearing down disks etc. - PENDING (35394935): - For Flex Start provisioning instance is - waiting for available capacity from Dynamic - Workload Scheduler (DWS). - PROVISIONING (290896621): - Resources are being allocated for the - instance. - REPAIRING (413483285): - The instance is in repair. - RUNNING (121282975): - The instance is running. - STAGING (431072283): - All required resources have been allocated - and the instance is being started. - STOPPED (444276141): - The instance has stopped successfully. - STOPPING (350791796): - The instance is currently stopping (either - being deleted or killed). - SUSPENDED (51223995): - The instance has suspended. - SUSPENDING (514206246): - The instance is suspending. - TERMINATED (250018339): - The instance has stopped (either by explicit - action or underlying failure). - """ - UNDEFINED_STATUS = 0 - DEPROVISIONING = 428935662 - PENDING = 35394935 - PROVISIONING = 290896621 - REPAIRING = 413483285 - RUNNING = 121282975 - STAGING = 431072283 - STOPPED = 444276141 - STOPPING = 350791796 - SUSPENDED = 51223995 - SUSPENDING = 514206246 - TERMINATED = 250018339 - - instance: str = proto.Field( - proto.STRING, - number=18257045, + range_end: int = proto.Field( + proto.INT64, + number=322439897, optional=True, ) - named_ports: MutableSequence["NamedPort"] = proto.RepeatedField( - proto.MESSAGE, - number=427598732, - message="NamedPort", - ) - status: str = proto.Field( - proto.STRING, - number=181260274, + range_start: int = proto.Field( + proto.INT64, + number=103333600, optional=True, ) -class InstancesAddResourcePoliciesRequest(proto.Message): - r""" +class Interconnect(proto.Message): + r"""Represents an Interconnect resource. + + An Interconnect resource is a dedicated connection between the + Google Cloud network and your on-premises network. For more + information, read the Dedicated Interconnect Overview. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - resource_policies (MutableSequence[str]): - Resource policies to be added to this - instance. - """ + aai_enabled (bool): + Enable or disable the application awareness + feature on this Cloud Interconnect. - resource_policies: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=22220385, - ) + This field is a member of `oneof`_ ``_aai_enabled``. + admin_enabled (bool): + Administrative status of the interconnect. + When this is set to true, the Interconnect is + functional and can carry traffic. When set to + false, no packets can be carried over the + interconnect and no BGP routes are exchanged + over it. By default, the status is set to true. + This field is a member of `oneof`_ ``_admin_enabled``. + application_aware_interconnect (google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnect): + Configuration information for application + awareness on this Cloud Interconnect. -class InstancesBulkInsertOperationMetadata(proto.Message): - r""" + This field is a member of `oneof`_ ``_application_aware_interconnect``. + available_features (MutableSequence[str]): + [Output only] List of features available for this + Interconnect connection, which can take one of the following + values: - Attributes: - per_location_status (MutableMapping[str, google.cloud.compute_v1.types.BulkInsertOperationStatus]): - Status information per location (location - name is key). Example key: zones/us-central1-a - """ + :: - per_location_status: MutableMapping[ - str, "BulkInsertOperationStatus" - ] = proto.MapField( - proto.STRING, - proto.MESSAGE, - number=167851162, - message="BulkInsertOperationStatus", - ) + - IF_MACSEC: If present, then the Interconnect connection is + provisioned on MACsec capable hardware ports. If not present, then the + Interconnect connection is provisioned on non-MACsec capable ports. Any + attempt to enable MACsec will fail. + - IF_CROSS_SITE_NETWORK: If present, then the Interconnect connection is + provisioned exclusively for Cross-Site Networking. Any attempt to configure + VLAN attachments will fail. If not present, then the Interconnect + connection is not provisioned for Cross-Site Networking. Any attempt to use + it for Cross-Site Networking will fail. + Check the AvailableFeatures enum for the list of possible + values. + circuit_infos (MutableSequence[google.cloud.compute_v1.types.InterconnectCircuitInfo]): + Output only. [Output Only] A list of CircuitInfo objects, + that describe the individual circuits in this LAG. + creation_timestamp (str): + Output only. [Output Only] Creation timestamp inRFC3339 text + format. -class InstancesGetEffectiveFirewallsResponse(proto.Message): - r""" + This field is a member of `oneof`_ ``_creation_timestamp``. + customer_name (str): + Customer name, to put in the Letter of + Authorization as the party authorized to request + a crossconnect. - Attributes: - firewall_policys (MutableSequence[google.cloud.compute_v1.types.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy]): - [Output Only] Effective firewalls from firewall policies. - firewalls (MutableSequence[google.cloud.compute_v1.types.Firewall]): - Effective firewalls on the instance. - """ + This field is a member of `oneof`_ ``_customer_name``. + description (str): + An optional description of this resource. + Provide this property when you create the + resource. - firewall_policys: MutableSequence[ - "InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy" - ] = proto.RepeatedField( - proto.MESSAGE, - number=410985794, - message="InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy", - ) - firewalls: MutableSequence["Firewall"] = proto.RepeatedField( - proto.MESSAGE, - number=272245619, - message="Firewall", - ) + This field is a member of `oneof`_ ``_description``. + expected_outages (MutableSequence[google.cloud.compute_v1.types.InterconnectOutageNotification]): + Output only. [Output Only] A list of outages expected for + this Interconnect. + google_ip_address (str): + Output only. [Output Only] IP address configured on the + Google side of the Interconnect link. This can be used only + for ping tests. + This field is a member of `oneof`_ ``_google_ip_address``. + google_reference_id (str): + Output only. [Output Only] Google reference ID to be used + when raising support tickets with Google or otherwise to + debug backend connectivity issues. -class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy(proto.Message): - r""" + This field is a member of `oneof`_ ``_google_reference_id``. + id (int): + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_id``. + interconnect_attachments (MutableSequence[str]): + Output only. [Output Only] A list of the URLs of all + InterconnectAttachments configured to use this Interconnect. + interconnect_groups (MutableSequence[str]): + Output only. [Output Only] URLs of InterconnectGroups that + include this Interconnect. Order is arbitrary and items are + unique. + interconnect_type (str): + Type of interconnect, which can take one of the following + values: - Attributes: - display_name (str): - [Output Only] Deprecated, please use short name instead. The - display name of the firewall policy. + :: - This field is a member of `oneof`_ ``_display_name``. + - PARTNER: A partner-managed interconnection shared between customers + though a partner. + - DEDICATED: A dedicated physical interconnection with the + customer. + + Note that a value IT_PRIVATE has been deprecated in favor of + DEDICATED. Check the InterconnectType enum for the list of + possible values. + + This field is a member of `oneof`_ ``_interconnect_type``. + kind (str): + Output only. [Output Only] Type of the resource. + Alwayscompute#interconnect for interconnects. + + This field is a member of `oneof`_ ``_kind``. + label_fingerprint (str): + A fingerprint for the labels being applied to + this Interconnect, which is essentially a hash + of the labels set used for optimistic locking. + The fingerprint is initially generated by + Compute Engine and changes after every request + to modify or update labels. You must always + provide an up-to-date fingerprint hash in order + to update or change labels, otherwise the + request will fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve an Interconnect. + + This field is a member of `oneof`_ ``_label_fingerprint``. + labels (MutableMapping[str, str]): + Labels for this resource. These can only be + added or modified by thesetLabels method. Each + label key/value pair must comply withRFC1035. + Label values may be empty. + link_type (str): + Type of link requested, which can take one of the following + values: + + :: + + - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics + - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. + - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. + + Note that this field indicates the speed of each of the + links in the bundle, not the speed of the entire bundle. + Check the LinkType enum for the list of possible values. + + This field is a member of `oneof`_ ``_link_type``. + location (str): + URL of the InterconnectLocation object that + represents where this connection is to be + provisioned. + + This field is a member of `oneof`_ ``_location``. + macsec (google.cloud.compute_v1.types.InterconnectMacsec): + Configuration that enables Media Access + Control security (MACsec) on the Cloud + Interconnect connection between Google and your + on-premises router. + + This field is a member of `oneof`_ ``_macsec``. + macsec_enabled (bool): + Enable or disable MACsec on this Interconnect + connection. MACsec enablement fails if the + MACsec object is not specified. + + This field is a member of `oneof`_ ``_macsec_enabled``. name (str): - [Output Only] The name of the firewall policy. + Name of the resource. Provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. This field is a member of `oneof`_ ``_name``. - packet_mirroring_rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): - [Output Only] The packet mirroring rules that apply to the - instance. - priority (int): - [Output only] Priority of firewall policy association. Not - applicable for type=HIERARCHY. + noc_contact_email (str): + Email address to contact the customer NOC for + operations and maintenance notifications + regarding this Interconnect. If specified, this + will be used for notifications in addition to + all other forms described, such as Cloud + Monitoring logs alerting and Cloud + Notifications. This field is required for users + who sign up for Cloud Interconnect using + workforce identity federation. - This field is a member of `oneof`_ ``_priority``. - rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): - [Output Only] The rules that apply to the instance. Only - rules that target the specific VM instance are returned if - target service accounts or target secure tags are specified - in the rules. - short_name (str): - [Output Only] The short name of the firewall policy. + This field is a member of `oneof`_ ``_noc_contact_email``. + operational_status (str): + Output only. [Output Only] The current status of this + Interconnect's functionality, which can take one of the + following values: - This field is a member of `oneof`_ ``_short_name``. - type_ (str): - [Output Only] The type of the firewall policy. Can be one of - HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, - SYSTEM_REGIONAL. Check the Type enum for the list of - possible values. + :: - This field is a member of `oneof`_ ``_type``. + - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to + use. Attachments may be provisioned on this Interconnect. + + - OS_UNPROVISIONED: An Interconnect that has not completed + turnup. No attachments may be provisioned on this + Interconnect. + - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing + internal maintenance. No attachments may be provisioned or + updated on this Interconnect. Check the OperationalStatus + enum for the list of possible values. + + This field is a member of `oneof`_ ``_operational_status``. + params (google.cloud.compute_v1.types.InterconnectParams): + Input only. [Input Only] Additional params passed with the + request, but not persisted as part of resource payload. + + This field is a member of `oneof`_ ``_params``. + peer_ip_address (str): + Output only. [Output Only] IP address configured on the + customer side of the Interconnect link. The customer should + configure this IP address during turnup when prompted by + Google NOC. This can be used only for ping tests. + + This field is a member of `oneof`_ ``_peer_ip_address``. + provisioned_link_count (int): + Output only. [Output Only] Number of links actually + provisioned in this interconnect. + + This field is a member of `oneof`_ ``_provisioned_link_count``. + remote_location (str): + Indicates that this is a Cross-Cloud + Interconnect. This field specifies the location + outside of Google's network that the + interconnect is connected to. + + This field is a member of `oneof`_ ``_remote_location``. + requested_features (MutableSequence[str]): + Optional. This parameter can be provided only with + Interconnect INSERT. It isn't valid for Interconnect PATCH. + List of features requested for this Interconnect connection, + which can take one of the following values: + + :: + + - IF_MACSEC: If specified, then the connection is created on MACsec + capable hardware ports. If not specified, non-MACsec capable ports will + also be considered. + - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + exclusively for Cross-Site Networking. The connection can not be used for + Cross-Site Networking unless this feature is specified. + + Check the RequestedFeatures enum for the list of possible + values. + requested_link_count (int): + Target number of physical links in the link + bundle, as requested by the customer. + + This field is a member of `oneof`_ ``_requested_link_count``. + satisfies_pzs (bool): + Output only. [Output Only] Reserved for future use. + + This field is a member of `oneof`_ ``_satisfies_pzs``. + self_link (str): + Output only. [Output Only] Server-defined URL for the + resource. + + This field is a member of `oneof`_ ``_self_link``. + state (str): + Output only. [Output Only] The current state of Interconnect + functionality, which can take one of the following values: + + :: + + - ACTIVE: The Interconnect is valid, turned up and ready to use. + Attachments may be provisioned on this Interconnect. + - UNPROVISIONED: The Interconnect has not completed turnup. No + attachments may be provisioned on this Interconnect. + - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + No attachments may be provisioned or updated on this + Interconnect. + + Check the State enum for the list of possible values. + + This field is a member of `oneof`_ ``_state``. + subzone (str): + Specific subzone in the InterconnectLocation + that represents where this connection is to be + provisioned. Check the Subzone enum for the list + of possible values. + + This field is a member of `oneof`_ ``_subzone``. + wire_groups (MutableSequence[str]): + Output only. [Output Only] A list of the URLs of all + CrossSiteNetwork WireGroups configured to use this + Interconnect. The Interconnect cannot be deleted if this + list is non-empty. """ - class Type(proto.Enum): - r"""[Output Only] The type of the firewall policy. Can be one of - HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, - SYSTEM_REGIONAL. + class AvailableFeatures(proto.Enum): + r"""Additional supported values which may be not listed in the enum + directly due to technical reasons: IF_CROSS_SITE_NETWORK + IF_L2_FORWARDING IF_MACSEC Values: - UNDEFINED_TYPE (0): + UNDEFINED_AVAILABLE_FEATURES (0): A value indicating that the enum field is not set. - HIERARCHY (69902869): - No description available. - NETWORK (413984270): - No description available. - NETWORK_REGIONAL (190804272): - No description available. - SYSTEM_GLOBAL (60099507): - No description available. - SYSTEM_REGIONAL (161777199): - No description available. - UNSPECIFIED (526786327): - No description available. """ - UNDEFINED_TYPE = 0 - HIERARCHY = 69902869 - NETWORK = 413984270 - NETWORK_REGIONAL = 190804272 - SYSTEM_GLOBAL = 60099507 - SYSTEM_REGIONAL = 161777199 - UNSPECIFIED = 526786327 + UNDEFINED_AVAILABLE_FEATURES = 0 - display_name: str = proto.Field( - proto.STRING, - number=4473832, - optional=True, - ) - name: str = proto.Field( - proto.STRING, - number=3373707, - optional=True, - ) - packet_mirroring_rules: MutableSequence["FirewallPolicyRule"] = proto.RepeatedField( - proto.MESSAGE, - number=531644356, - message="FirewallPolicyRule", - ) - priority: int = proto.Field( - proto.INT32, - number=445151652, - optional=True, - ) - rules: MutableSequence["FirewallPolicyRule"] = proto.RepeatedField( - proto.MESSAGE, - number=108873975, - message="FirewallPolicyRule", - ) - short_name: str = proto.Field( - proto.STRING, - number=492051566, - optional=True, - ) - type_: str = proto.Field( - proto.STRING, - number=3575610, - optional=True, - ) + class InterconnectType(proto.Enum): + r"""Type of interconnect, which can take one of the following values: + :: -class InstancesRemoveResourcePoliciesRequest(proto.Message): - r""" + - PARTNER: A partner-managed interconnection shared between customers + though a partner. + - DEDICATED: A dedicated physical interconnection with the + customer. - Attributes: - resource_policies (MutableSequence[str]): - Resource policies to be removed from this - instance. - """ + Note that a value IT_PRIVATE has been deprecated in favor of + DEDICATED. - resource_policies: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=22220385, - ) + Values: + UNDEFINED_INTERCONNECT_TYPE (0): + A value indicating that the enum field is not + set. + DEDICATED (258411983): + A dedicated physical interconnection with the + customer. + IT_PRIVATE (335677007): + [Deprecated] A private, physical interconnection with the + customer. + PARTNER (461924520): + A partner-managed interconnection shared + between customers via partner. + """ + UNDEFINED_INTERCONNECT_TYPE = 0 + DEDICATED = 258411983 + IT_PRIVATE = 335677007 + PARTNER = 461924520 + + class LinkType(proto.Enum): + r"""Type of link requested, which can take one of the following values: + :: -class InstancesReportHostAsFaultyRequest(proto.Message): - r""" + - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics + - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. + - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. + + Note that this field indicates the speed of each of the links in the + bundle, not the speed of the entire bundle. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Values: + UNDEFINED_LINK_TYPE (0): + A value indicating that the enum field is not + set. + LINK_TYPE_ETHERNET_100G_LR (337672551): + 100G Ethernet, LR Optics. + LINK_TYPE_ETHERNET_10G_LR (236739749): + 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; + LINK_TYPE_ETHERNET_400G_LR4 (127023690): + 400G Ethernet, LR4 Optics. + """ + UNDEFINED_LINK_TYPE = 0 + LINK_TYPE_ETHERNET_100G_LR = 337672551 + LINK_TYPE_ETHERNET_10G_LR = 236739749 + LINK_TYPE_ETHERNET_400G_LR4 = 127023690 - Attributes: - disruption_schedule (str): - The disruption schedule for the VM. Required - field, only allows IMMEDIATE. Check the - DisruptionSchedule enum for the list of possible - values. + class OperationalStatus(proto.Enum): + r"""Output only. [Output Only] The current status of this Interconnect's + functionality, which can take one of the following values: - This field is a member of `oneof`_ ``_disruption_schedule``. - fault_reasons (MutableSequence[google.cloud.compute_v1.types.InstancesReportHostAsFaultyRequestFaultReason]): + :: - """ + - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to + use. Attachments may be provisioned on this Interconnect. - class DisruptionSchedule(proto.Enum): - r"""The disruption schedule for the VM. Required field, only - allows IMMEDIATE. + - OS_UNPROVISIONED: An Interconnect that has not completed turnup. + No attachments may be provisioned on this Interconnect. + - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal + maintenance. No attachments may be provisioned or updated on this + Interconnect. Values: - UNDEFINED_DISRUPTION_SCHEDULE (0): + UNDEFINED_OPERATIONAL_STATUS (0): A value indicating that the enum field is not set. - DISRUPTION_SCHEDULE_UNSPECIFIED (332543835): - Not used. Required as per aip/126. - FUTURE (474513859): - Delay disruption for caller control. Will be - default soon. - IMMEDIATE (152881041): - Default value. Disrupt the VM immediately. + OS_ACTIVE (55721409): + The interconnect is valid, turned up, and + ready to use. Attachments may be provisioned on + this interconnect. + OS_UNPROVISIONED (239771840): + The interconnect has not completed turnup. No + attachments may be provisioned on this + interconnect. """ - UNDEFINED_DISRUPTION_SCHEDULE = 0 - DISRUPTION_SCHEDULE_UNSPECIFIED = 332543835 - FUTURE = 474513859 - IMMEDIATE = 152881041 - - disruption_schedule: str = proto.Field( - proto.STRING, - number=95871619, - optional=True, - ) - fault_reasons: MutableSequence[ - "InstancesReportHostAsFaultyRequestFaultReason" - ] = proto.RepeatedField( - proto.MESSAGE, - number=168056210, - message="InstancesReportHostAsFaultyRequestFaultReason", - ) + UNDEFINED_OPERATIONAL_STATUS = 0 + OS_ACTIVE = 55721409 + OS_UNPROVISIONED = 239771840 + class RequestedFeatures(proto.Enum): + r"""Additional supported values which may be not listed in the enum + directly due to technical reasons: IF_CROSS_SITE_NETWORK + IF_L2_FORWARDING IF_MACSEC -class InstancesReportHostAsFaultyRequestFaultReason(proto.Message): - r""" + Values: + UNDEFINED_REQUESTED_FEATURES (0): + A value indicating that the enum field is not + set. + """ + UNDEFINED_REQUESTED_FEATURES = 0 - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + class State(proto.Enum): + r"""Output only. [Output Only] The current state of Interconnect + functionality, which can take one of the following values: - Attributes: - behavior (str): - Check the Behavior enum for the list of - possible values. + :: - This field is a member of `oneof`_ ``_behavior``. - description (str): + - ACTIVE: The Interconnect is valid, turned up and ready to use. + Attachments may be provisioned on this Interconnect. + - UNPROVISIONED: The Interconnect has not completed turnup. No + attachments may be provisioned on this Interconnect. + - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. + No attachments may be provisioned or updated on this + Interconnect. - This field is a member of `oneof`_ ``_description``. - """ + Values: + UNDEFINED_STATE (0): + A value indicating that the enum field is not + set. + ACTIVE (314733318): + The interconnect is valid, turned up, and + ready to use. Attachments may be provisioned on + this interconnect. + UNPROVISIONED (517333979): + The interconnect has not completed turnup. No + attachments may be provisioned on this + interconnect. + """ + UNDEFINED_STATE = 0 + ACTIVE = 314733318 + UNPROVISIONED = 517333979 - class Behavior(proto.Enum): - r""" + class Subzone(proto.Enum): + r"""Specific subzone in the InterconnectLocation that represents + where this connection is to be provisioned. Values: - UNDEFINED_BEHAVIOR (0): + UNDEFINED_SUBZONE (0): A value indicating that the enum field is not set. - BEHAVIOR_UNSPECIFIED (85734570): - Public reportable behaviors - PERFORMANCE (135701520): - No description available. - SILENT_DATA_CORRUPTION (111360678): - No description available. - UNRECOVERABLE_GPU_ERROR (363710747): - No description available. + SUBZONE_A (291575438): + Subzone A. + SUBZONE_B (291575439): + Subzone B. """ - UNDEFINED_BEHAVIOR = 0 - BEHAVIOR_UNSPECIFIED = 85734570 - PERFORMANCE = 135701520 - SILENT_DATA_CORRUPTION = 111360678 - UNRECOVERABLE_GPU_ERROR = 363710747 + UNDEFINED_SUBZONE = 0 + SUBZONE_A = 291575438 + SUBZONE_B = 291575439 - behavior: str = proto.Field( + aai_enabled: bool = proto.Field( + proto.BOOL, + number=388780363, + optional=True, + ) + admin_enabled: bool = proto.Field( + proto.BOOL, + number=445675089, + optional=True, + ) + application_aware_interconnect: "InterconnectApplicationAwareInterconnect" = ( + proto.Field( + proto.MESSAGE, + number=429095966, + optional=True, + message="InterconnectApplicationAwareInterconnect", + ) + ) + available_features: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=437170770, + number=496344307, + ) + circuit_infos: MutableSequence["InterconnectCircuitInfo"] = proto.RepeatedField( + proto.MESSAGE, + number=164839855, + message="InterconnectCircuitInfo", + ) + creation_timestamp: str = proto.Field( + proto.STRING, + number=30525366, + optional=True, + ) + customer_name: str = proto.Field( + proto.STRING, + number=3665484, optional=True, ) description: str = proto.Field( @@ -50652,53 +59054,46 @@ class Behavior(proto.Enum): number=422937596, optional=True, ) - - -class InstancesScopedList(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - instances (MutableSequence[google.cloud.compute_v1.types.Instance]): - [Output Only] A list of instances contained in this scope. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning which replaces the list - of instances when the list is empty. - - This field is a member of `oneof`_ ``_warning``. - """ - - instances: MutableSequence["Instance"] = proto.RepeatedField( + expected_outages: MutableSequence[ + "InterconnectOutageNotification" + ] = proto.RepeatedField( proto.MESSAGE, - number=29097598, - message="Instance", + number=264484123, + message="InterconnectOutageNotification", ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, + google_ip_address: str = proto.Field( + proto.STRING, + number=443105954, + optional=True, + ) + google_reference_id: str = proto.Field( + proto.STRING, + number=534944469, + optional=True, + ) + id: int = proto.Field( + proto.UINT64, + number=3355, + optional=True, + ) + interconnect_attachments: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=425388415, + ) + interconnect_groups: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=237049509, + ) + interconnect_type: str = proto.Field( + proto.STRING, + number=515165259, + optional=True, + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, optional=True, - message="Warning", ) - - -class InstancesSetLabelsRequest(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - label_fingerprint (str): - Fingerprint of the previous set of labels for - this resource, used to prevent conflicts. - Provide the latest fingerprint value when making - a request to add or change labels. - - This field is a member of `oneof`_ ``_label_fingerprint``. - labels (MutableMapping[str, str]): - - """ - label_fingerprint: str = proto.Field( proto.STRING, number=178124825, @@ -50709,237 +59104,530 @@ class InstancesSetLabelsRequest(proto.Message): proto.STRING, number=500195327, ) - - -class InstancesSetMachineResourcesRequest(proto.Message): - r""" - - Attributes: - guest_accelerators (MutableSequence[google.cloud.compute_v1.types.AcceleratorConfig]): - A list of the type and count of accelerator - cards attached to the instance. - """ - - guest_accelerators: MutableSequence["AcceleratorConfig"] = proto.RepeatedField( + link_type: str = proto.Field( + proto.STRING, + number=523207775, + optional=True, + ) + location: str = proto.Field( + proto.STRING, + number=290430901, + optional=True, + ) + macsec: "InterconnectMacsec" = proto.Field( proto.MESSAGE, - number=463595119, - message="AcceleratorConfig", + number=528867490, + optional=True, + message="InterconnectMacsec", ) - - -class InstancesSetMachineTypeRequest(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - machine_type (str): - Full or partial URL of the machine type - resource. See Machine Types for a full list of - machine types. For example: - zones/us-central1-f/machineTypes/n1-standard-1 - - This field is a member of `oneof`_ ``_machine_type``. - """ - - machine_type: str = proto.Field( + macsec_enabled: bool = proto.Field( + proto.BOOL, + number=194203812, + optional=True, + ) + name: str = proto.Field( proto.STRING, - number=227711026, + number=3373707, optional=True, ) - - -class InstancesSetMinCpuPlatformRequest(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - min_cpu_platform (str): - Minimum cpu/platform this instance should be - started at. - - This field is a member of `oneof`_ ``_min_cpu_platform``. - """ - - min_cpu_platform: str = proto.Field( + noc_contact_email: str = proto.Field( proto.STRING, - number=242912759, + number=14072832, optional=True, ) - - -class InstancesSetNameRequest(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - current_name (str): - The current name of this resource, used to - prevent conflicts. Provide the latest name when - making a request to change name. - - This field is a member of `oneof`_ ``_current_name``. - name (str): - The name to be applied to the instance. Needs - to be RFC 1035 compliant. - - This field is a member of `oneof`_ ``_name``. - """ - - current_name: str = proto.Field( + operational_status: str = proto.Field( proto.STRING, - number=394983825, + number=201070847, optional=True, ) - name: str = proto.Field( + params: "InterconnectParams" = proto.Field( + proto.MESSAGE, + number=78313862, + optional=True, + message="InterconnectParams", + ) + peer_ip_address: str = proto.Field( proto.STRING, - number=3373707, + number=207735769, + optional=True, + ) + provisioned_link_count: int = proto.Field( + proto.INT32, + number=410888565, + optional=True, + ) + remote_location: str = proto.Field( + proto.STRING, + number=324388750, + optional=True, + ) + requested_features: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=461240814, + ) + requested_link_count: int = proto.Field( + proto.INT32, + number=45051387, + optional=True, + ) + satisfies_pzs: bool = proto.Field( + proto.BOOL, + number=480964267, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + state: str = proto.Field( + proto.STRING, + number=109757585, optional=True, ) + subzone: str = proto.Field( + proto.STRING, + number=280084972, + optional=True, + ) + wire_groups: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=40662734, + ) -class InstancesSetSecurityPolicyRequest(proto.Message): - r""" +class InterconnectApplicationAwareInterconnect(proto.Message): + r"""Configuration information for application awareness on this + Cloud Interconnect. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - network_interfaces (MutableSequence[str]): - The network interfaces that the security - policy will be applied to. Network interfaces - use the nicN naming format. You can only set a - security policy for network interfaces with an - access config. - security_policy (str): - A full or partial URL to a security policy to - add to this instance. If this field is set to an - empty string it will remove the associated - security policy. + bandwidth_percentage_policy (google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy): - This field is a member of `oneof`_ ``_security_policy``. + This field is a member of `oneof`_ ``_bandwidth_percentage_policy``. + profile_description (str): + Description for the application awareness + profile on this Cloud Interconnect. + + This field is a member of `oneof`_ ``_profile_description``. + shape_average_percentages (MutableSequence[google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnectBandwidthPercentage]): + Optional field to specify a list of shape + average percentages to be applied in conjunction + with StrictPriorityPolicy or + BandwidthPercentagePolicy. + strict_priority_policy (google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnectStrictPriorityPolicy): + + This field is a member of `oneof`_ ``_strict_priority_policy``. """ - network_interfaces: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=52735243, + bandwidth_percentage_policy: "InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy" = proto.Field( + proto.MESSAGE, + number=187018857, + optional=True, + message="InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy", ) - security_policy: str = proto.Field( + profile_description: str = proto.Field( proto.STRING, - number=171082513, + number=262813286, + optional=True, + ) + shape_average_percentages: MutableSequence[ + "InterconnectApplicationAwareInterconnectBandwidthPercentage" + ] = proto.RepeatedField( + proto.MESSAGE, + number=259857497, + message="InterconnectApplicationAwareInterconnectBandwidthPercentage", + ) + strict_priority_policy: "InterconnectApplicationAwareInterconnectStrictPriorityPolicy" = proto.Field( + proto.MESSAGE, + number=145083063, optional=True, + message="InterconnectApplicationAwareInterconnectStrictPriorityPolicy", ) -class InstancesSetServiceAccountRequest(proto.Message): - r""" +class InterconnectApplicationAwareInterconnectBandwidthPercentage(proto.Message): + r"""Specify bandwidth percentages [1-100] for various traffic classes in + BandwidthPercentagePolicy. The sum of all percentages must equal + 100. All traffic classes must have a percentage value specified. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - email (str): - Email address of the service account. + percentage (int): + Bandwidth percentage for a specific traffic + class. - This field is a member of `oneof`_ ``_email``. - scopes (MutableSequence[str]): - The list of scopes to be made available for - this service account. + This field is a member of `oneof`_ ``_percentage``. + traffic_class (str): + TrafficClass whose bandwidth percentage is + being specified. Check the TrafficClass enum for + the list of possible values. + + This field is a member of `oneof`_ ``_traffic_class``. """ - email: str = proto.Field( - proto.STRING, - number=96619420, + class TrafficClass(proto.Enum): + r"""TrafficClass whose bandwidth percentage is being specified. + + Values: + UNDEFINED_TRAFFIC_CLASS (0): + A value indicating that the enum field is not + set. + TC1 (82850): + Traffic Class 1, corresponding to DSCP ranges + (0-7) 000xxx. + TC2 (82851): + Traffic Class 2, corresponding to DSCP ranges + (8-15) 001xxx. + TC3 (82852): + Traffic Class 3, corresponding to DSCP ranges + (16-23) 010xxx. + TC4 (82853): + Traffic Class 4, corresponding to DSCP ranges + (24-31) 011xxx. + TC5 (82854): + Traffic Class 5, corresponding to DSCP ranges + (32-47) 10xxxx. + TC6 (82855): + Traffic Class 6, corresponding to DSCP ranges + (48-63) 11xxxx. + """ + UNDEFINED_TRAFFIC_CLASS = 0 + TC1 = 82850 + TC2 = 82851 + TC3 = 82852 + TC4 = 82853 + TC5 = 82854 + TC6 = 82855 + + percentage: int = proto.Field( + proto.UINT32, + number=151909018, optional=True, ) - scopes: MutableSequence[str] = proto.RepeatedField( + traffic_class: str = proto.Field( proto.STRING, - number=165973151, + number=198180022, + optional=True, ) -class InstancesStartWithEncryptionKeyRequest(proto.Message): +class InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy(proto.Message): r""" Attributes: - disks (MutableSequence[google.cloud.compute_v1.types.CustomerEncryptionKeyProtectedDisk]): - Array of disks associated with this instance - that are protected with a customer-supplied - encryption key. In order to start the instance, - the disk url and its corresponding key must be - provided. If the disk is not protected with a - customer-supplied encryption key it should not - be specified. + bandwidth_percentages (MutableSequence[google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnectBandwidthPercentage]): + Specify bandwidth percentages for various + traffic classes for queuing type Bandwidth + Percent. """ - disks: MutableSequence["CustomerEncryptionKeyProtectedDisk"] = proto.RepeatedField( + bandwidth_percentages: MutableSequence[ + "InterconnectApplicationAwareInterconnectBandwidthPercentage" + ] = proto.RepeatedField( proto.MESSAGE, - number=95594102, - message="CustomerEncryptionKeyProtectedDisk", + number=233373323, + message="InterconnectApplicationAwareInterconnectBandwidthPercentage", ) -class InstantSnapshot(proto.Message): - r"""Represents a InstantSnapshot resource. You can use instant - snapshots to create disk rollback points quickly.. +class InterconnectApplicationAwareInterconnectStrictPriorityPolicy(proto.Message): + r"""Specify configuration for StrictPriorityPolicy.""" + + +class InterconnectAttachment(proto.Message): + r"""Represents an Interconnect Attachment (VLAN) resource. + + You can use Interconnect attachments (VLANS) to connect your + Virtual Private Cloud networks to your on-premises networks + through an Interconnect. For more information, read + Creating VLAN Attachments. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - architecture (str): - [Output Only] The architecture of the instant snapshot. - Valid values are ARM64 or X86_64. Check the Architecture - enum for the list of possible values. + admin_enabled (bool): + Determines whether this Attachment will carry packets. Not + present for PARTNER_PROVIDER. - This field is a member of `oneof`_ ``_architecture``. + This field is a member of `oneof`_ ``_admin_enabled``. + attachment_group (str): + Output only. [Output Only] URL of the AttachmentGroup that + includes this Attachment. + + This field is a member of `oneof`_ ``_attachment_group``. + bandwidth (str): + Provisioned bandwidth capacity for the interconnect + attachment. For attachments of type DEDICATED, the user can + set the bandwidth. For attachments of type PARTNER, the + Google Partner that is operating the interconnect must set + the bandwidth. Output only for PARTNER type, mutable for + PARTNER_PROVIDER and DEDICATED, and can take one of the + following values: + + :: + + - BPS_50M: 50 Mbit/s + - BPS_100M: 100 Mbit/s + - BPS_200M: 200 Mbit/s + - BPS_300M: 300 Mbit/s + - BPS_400M: 400 Mbit/s + - BPS_500M: 500 Mbit/s + - BPS_1G: 1 Gbit/s + - BPS_2G: 2 Gbit/s + - BPS_5G: 5 Gbit/s + - BPS_10G: 10 Gbit/s + - BPS_20G: 20 Gbit/s + - BPS_50G: 50 Gbit/s + - BPS_100G: 100 Gbit/s + + Check the Bandwidth enum for the list of possible values. + + This field is a member of `oneof`_ ``_bandwidth``. + candidate_cloud_router_ip_address (str): + Single IPv4 address + prefix length to be configured on the + cloud router interface for this interconnect attachment. + + :: + + - Both candidate_cloud_router_ip_address and + candidate_customer_router_ip_address fields must be set or both must be + unset. + - Prefix length of both candidate_cloud_router_ip_address and + candidate_customer_router_ip_address must be the same. + - Max prefix length is 31. + + This field is a member of `oneof`_ ``_candidate_cloud_router_ip_address``. + candidate_cloud_router_ipv6_address (str): + Single IPv6 address + prefix length to be configured on the + cloud router interface for this interconnect attachment. + + :: + + - Both candidate_cloud_router_ipv6_address and + candidate_customer_router_ipv6_address fields must be set or both must be + unset. + - Prefix length of both candidate_cloud_router_ipv6_address and + candidate_customer_router_ipv6_address must be the same. + - Max prefix length is 126. + + This field is a member of `oneof`_ ``_candidate_cloud_router_ipv6_address``. + candidate_customer_router_ip_address (str): + Single IPv4 address + prefix length to be + configured on the customer router interface for + this interconnect attachment. + + This field is a member of `oneof`_ ``_candidate_customer_router_ip_address``. + candidate_customer_router_ipv6_address (str): + Single IPv6 address + prefix length to be + configured on the customer router interface for + this interconnect attachment. + + This field is a member of `oneof`_ ``_candidate_customer_router_ipv6_address``. + candidate_ipv6_subnets (MutableSequence[str]): + This field is not available. + candidate_subnets (MutableSequence[str]): + Input only. Up to 16 candidate prefixes that + can be used to restrict the allocation of + cloudRouterIpAddress and customerRouterIpAddress + for this attachment. All prefixes must be within + link-local address space (169.254.0.0/16) and + must be /29 or shorter (/28, /27, etc). Google + will attempt to select an unused /29 from the + supplied candidate prefix(es). The request will + fail if all possible /29s are in use on Google's + edge. If not supplied, Google will randomly + select an unused /29 from all of link-local + space. + cloud_router_ip_address (str): + Output only. [Output Only] IPv4 address + prefix length to + be configured on Cloud Router Interface for this + interconnect attachment. + + This field is a member of `oneof`_ ``_cloud_router_ip_address``. + cloud_router_ipv6_address (str): + Output only. [Output Only] IPv6 address + prefix length to + be configured on Cloud Router Interface for this + interconnect attachment. + + This field is a member of `oneof`_ ``_cloud_router_ipv6_address``. + cloud_router_ipv6_interface_id (str): + This field is not available. + + This field is a member of `oneof`_ ``_cloud_router_ipv6_interface_id``. + configuration_constraints (google.cloud.compute_v1.types.InterconnectAttachmentConfigurationConstraints): + Output only. [Output Only] Constraints for this attachment, + if any. The attachment does not work if these constraints + are not met. + + This field is a member of `oneof`_ ``_configuration_constraints``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. + customer_router_ip_address (str): + Output only. [Output Only] IPv4 address + prefix length to + be configured on the customer router subinterface for this + interconnect attachment. + + This field is a member of `oneof`_ ``_customer_router_ip_address``. + customer_router_ipv6_address (str): + Output only. [Output Only] IPv6 address + prefix length to + be configured on the customer router subinterface for this + interconnect attachment. + + This field is a member of `oneof`_ ``_customer_router_ipv6_address``. + customer_router_ipv6_interface_id (str): + This field is not available. + + This field is a member of `oneof`_ ``_customer_router_ipv6_interface_id``. + dataplane_version (int): + Output only. [Output Only] Dataplane version for this + InterconnectAttachment. This field is only present for + Dataplane version 2 and higher. Absence of this field in the + API output indicates that the Dataplane is version 1. + + This field is a member of `oneof`_ ``_dataplane_version``. description (str): An optional description of this resource. - Provide this property when you create the - resource. This field is a member of `oneof`_ ``_description``. - disk_size_gb (int): - [Output Only] Size of the source disk, specified in GB. + edge_availability_domain (str): + Input only. Desired availability domain for the attachment. + Only available for type PARTNER, at creation time, and can + take one of the following values: - This field is a member of `oneof`_ ``_disk_size_gb``. + :: + + - AVAILABILITY_DOMAIN_ANY + - AVAILABILITY_DOMAIN_1 + - AVAILABILITY_DOMAIN_2 + + For improved reliability, customers should configure a pair + of attachments, one per availability domain. The selected + availability domain will be provided to the Partner via the + pairing key, so that the provisioned circuit will lie in the + specified domain. If not specified, the value will default + to AVAILABILITY_DOMAIN_ANY. Check the EdgeAvailabilityDomain + enum for the list of possible values. + + This field is a member of `oneof`_ ``_edge_availability_domain``. + encryption (str): + Indicates the user-supplied encryption option of this VLAN + attachment (interconnectAttachment). Can only be specified + at attachment creation for PARTNER or DEDICATED attachments. + Possible values are: + + :: + + - NONE - This is the default value, which means that the + VLAN attachment carries unencrypted traffic. VMs are able to send + traffic to, or receive traffic from, such a VLAN attachment. + - IPSEC - The VLAN attachment carries only encrypted + traffic that is encrypted by an IPsec device, such as an HA VPN gateway or + third-party IPsec VPN. VMs cannot directly send traffic to, or receive + traffic from, such a VLAN attachment. To use *HA VPN over Cloud + Interconnect*, the VLAN attachment must be created with this + option. + + Check the Encryption enum for the list of possible values. + + This field is a member of `oneof`_ ``_encryption``. + google_reference_id (str): + Output only. [Output Only] Google reference ID, to be used + when raising support tickets with Google or otherwise to + debug backend connectivity issues. [Deprecated] This field + is not used. + + This field is a member of `oneof`_ ``_google_reference_id``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. + interconnect (str): + URL of the underlying Interconnect object + that this attachment's traffic will traverse + through. + + This field is a member of `oneof`_ ``_interconnect``. + ipsec_internal_addresses (MutableSequence[str]): + A list of URLs of addresses that have been + reserved for the VLAN attachment. Used only for + the VLAN attachment that has the encryption + option as IPSEC. The addresses must be regional + internal IP address ranges. When creating an HA + VPN gateway over the VLAN attachment, if the + attachment is configured to use a regional + internal IP address, then the VPN gateway's IP + address is allocated from the IP address range + specified here. For example, if the HA VPN + gateway's interface 0 is paired to this VLAN + attachment, then a regional internal IP address + for the VPN gateway interface 0 will be + allocated from the IP address specified for this + VLAN attachment. + If this field is not specified when creating the + VLAN attachment, then later on when creating an + HA VPN gateway on this VLAN attachment, the HA + VPN gateway's IP address is allocated from the + regional external IP address pool. kind (str): - [Output Only] Type of the resource. Always - compute#instantSnapshot for InstantSnapshot resources. + Output only. [Output Only] Type of the resource. + Alwayscompute#interconnectAttachment for interconnect + attachments. This field is a member of `oneof`_ ``_kind``. + l2_forwarding (google.cloud.compute_v1.types.InterconnectAttachmentL2Forwarding): + L2 Interconnect Attachment related config. This field is + required if the type is L2_DEDICATED. + + The configuration specifies how VLAN tags (like dot1q, qinq, + or dot1ad) within L2 packets are mapped to the destination + appliances IP addresses. The packet is then encapsulated + with the appliance IP address and sent to the edge + appliance. + + This field is a member of `oneof`_ ``_l2_forwarding``. label_fingerprint (str): A fingerprint for the labels being applied to - this InstantSnapshot, which is essentially a - hash of the labels set used for optimistic - locking. The fingerprint is initially generated - by Compute Engine and changes after every - request to modify or update labels. You must - always provide an up-to-date fingerprint hash in - order to update or change labels, otherwise the - request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve a - InstantSnapshot. + this InterconnectAttachment, which is + essentially a hash of the labels set used for + optimistic locking. The fingerprint is initially + generated by Compute Engine and changes after + every request to modify or update labels. You + must always provide an up-to-date fingerprint + hash in order to update or change labels, + otherwise the request will fail with error412 + conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve an InterconnectAttachment. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): - Labels to apply to this InstantSnapshot. - These can be later modified by the setLabels - method. Label values may be empty. + Labels for this resource. These can only be + added or modified by thesetLabels method. Each + label key/value pair must comply withRFC1035. + Label values may be empty. + mtu (int): + Maximum Transmission Unit (MTU), in bytes, of + packets passing through this interconnect + attachment. Valid values are 1440, 1460, 1500, + and 8896. If not specified, the value will + default to 1440. + + This field is a member of `oneof`_ ``_mtu``. name (str): - Name of the resource; provided by the client when the + Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -50947,141 +59635,580 @@ class InstantSnapshot(proto.Message): except the last character, which cannot be a dash. This field is a member of `oneof`_ ``_name``. + operational_status (str): + Output only. [Output Only] The current status of whether or + not this interconnect attachment is functional, which can + take one of the following values: + + :: + + - OS_ACTIVE: The attachment has been turned up and is ready to + use. + - OS_UNPROVISIONED: The attachment is not ready to use yet, + because turnup is not complete. + + Check the OperationalStatus enum for the list of possible + values. + + This field is a member of `oneof`_ ``_operational_status``. + pairing_key (str): + [Output only for type PARTNER. Input only for + PARTNER_PROVIDER. Not present for DEDICATED]. The opaque + identifier of a PARTNER attachment used to initiate + provisioning with a selected partner. Of the form + "XXXXX/region/domain". + + This field is a member of `oneof`_ ``_pairing_key``. + params (google.cloud.compute_v1.types.InterconnectAttachmentParams): + Input only. [Input Only] Additional params passed with the + request, but not persisted as part of resource payload. + + This field is a member of `oneof`_ ``_params``. + partner_asn (int): + Optional BGP ASN for the router supplied by a Layer 3 + Partner if they configured BGP on behalf of the customer. + Output only for PARTNER type, input only for + PARTNER_PROVIDER, not available for DEDICATED. + + This field is a member of `oneof`_ ``_partner_asn``. + partner_metadata (google.cloud.compute_v1.types.InterconnectAttachmentPartnerMetadata): + Informational metadata about Partner attachments from + Partners to display to customers. Output only for PARTNER + type, mutable for PARTNER_PROVIDER, not available for + DEDICATED. + + This field is a member of `oneof`_ ``_partner_metadata``. + private_interconnect_info (google.cloud.compute_v1.types.InterconnectAttachmentPrivateInfo): + Output only. [Output Only] Information specific to an + InterconnectAttachment. This property is populated if the + interconnect that this is attached to is of type DEDICATED. + + This field is a member of `oneof`_ ``_private_interconnect_info``. region (str): - [Output Only] URL of the region where the instant snapshot - resides. You must specify this field as part of the HTTP - request URL. It is not settable as a field in the request - body. + Output only. [Output Only] URL of the region where the + regional interconnect attachment resides. You must specify + this field as part of the HTTP request URL. It is not + settable as a field in the request body. This field is a member of `oneof`_ ``_region``. - resource_status (google.cloud.compute_v1.types.InstantSnapshotResourceStatus): - [Output Only] Status information for the instant snapshot - resource. + remote_service (str): + Output only. [Output Only] If the attachment is on a + Cross-Cloud Interconnect connection, this field contains the + interconnect's remote location service provider. Example + values: "Amazon Web Services" "Microsoft Azure". - This field is a member of `oneof`_ ``_resource_status``. - satisfies_pzi (bool): - Output only. Reserved for future use. + The field is set only for attachments on Cross-Cloud + Interconnect connections. Its value is copied from the + InterconnectRemoteLocation remoteService field. - This field is a member of `oneof`_ ``_satisfies_pzi``. + This field is a member of `oneof`_ ``_remote_service``. + router (str): + URL of the Cloud Router to be used for + dynamic routing. This router must be in the same + region as this InterconnectAttachment. The + InterconnectAttachment will automatically + connect the Interconnect to the network & region + within which the Cloud Router is configured. + + This field is a member of `oneof`_ ``_router``. satisfies_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. - self_link_with_id (str): - [Output Only] Server-defined URL for this resource's - resource id. + stack_type (str): + The stack type for this interconnect attachment to identify + whether the IPv6 feature is enabled or not. If not + specified, IPV4_ONLY will be used. - This field is a member of `oneof`_ ``_self_link_with_id``. - source_disk (str): - URL of the source disk used to create this - instant snapshot. Note that the source disk must - be in the same zone/region as the instant - snapshot to be created. This can be a full or - valid partial URL. For example, the following - are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /disks/disk - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /disks/disk - - projects/project/zones/zone/disks/disk - - projects/project/regions/region/disks/disk - - zones/zone/disks/disk - - regions/region/disks/disk + This field can be both set at interconnect attachments + creation and update interconnect attachment operations. + Check the StackType enum for the list of possible values. - This field is a member of `oneof`_ ``_source_disk``. - source_disk_id (str): - [Output Only] The ID value of the disk used to create this - InstantSnapshot. This value may be used to determine whether - the InstantSnapshot was taken from the current or a previous - instance of a given disk name. + This field is a member of `oneof`_ ``_stack_type``. + state (str): + Output only. [Output Only] The current state of this + attachment's functionality. Enum values ACTIVE and + UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and + PARTNER_PROVIDER interconnect attachments, while enum values + PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and + PENDING_CUSTOMER are used for only PARTNER and + PARTNER_PROVIDER interconnect attachments. This state can + take one of the following values: + + :: + + - ACTIVE: The attachment has been turned up and is ready to use. + - UNPROVISIONED: The attachment is not ready to use yet, because turnup + is not complete. + - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet + been configured on the Partner side. + - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of + provisioning after a PARTNER_PROVIDER attachment was created that + references it. + - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER + attachment that is waiting for a customer to activate it. + - DEFUNCT: + The attachment was deleted externally and is no longer functional. This + could be because the associated Interconnect was removed, or because the + other side of a Partner attachment was deleted. - This field is a member of `oneof`_ ``_source_disk_id``. - status (str): - [Output Only] The status of the instantSnapshot. This can be - CREATING, DELETING, FAILED, or READY. Check the Status enum - for the list of possible values. + Check the State enum for the list of possible values. - This field is a member of `oneof`_ ``_status``. - zone (str): - [Output Only] URL of the zone where the instant snapshot - resides. You must specify this field as part of the HTTP - request URL. It is not settable as a field in the request - body. + This field is a member of `oneof`_ ``_state``. + subnet_length (int): + Input only. Length of the IPv4 subnet mask. + Allowed values: - This field is a member of `oneof`_ ``_zone``. + + - 29 (default) + - 30 + + The default value is 29, except for Cross-Cloud + Interconnect connections that use an + InterconnectRemoteLocation with a + constraints.subnetLengthRange.min equal to 30. + For example, connections that use an Azure + remote location fall into this category. In + these cases, the default value is 30, and + requesting 29 returns an error. + + Where both 29 and 30 are allowed, 29 is + preferred, because it gives Google Cloud Support + more debugging visibility. + + This field is a member of `oneof`_ ``_subnet_length``. + type_ (str): + The type of interconnect attachment this is, which can take + one of the following values: + + :: + + - DEDICATED: an attachment to a Dedicated Interconnect. + - PARTNER: an attachment to a Partner Interconnect, created by the + customer. + - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by + the partner. + + - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. + Check the Type enum for the list of possible values. + + This field is a member of `oneof`_ ``_type``. + vlan_tag8021q (int): + The IEEE 802.1Q VLAN tag for this attachment, + in the range 2-4093. Only specified at creation + time. + + This field is a member of `oneof`_ ``_vlan_tag8021q``. """ - class Architecture(proto.Enum): - r"""[Output Only] The architecture of the instant snapshot. Valid values - are ARM64 or X86_64. + class Bandwidth(proto.Enum): + r"""Provisioned bandwidth capacity for the interconnect attachment. For + attachments of type DEDICATED, the user can set the bandwidth. For + attachments of type PARTNER, the Google Partner that is operating + the interconnect must set the bandwidth. Output only for PARTNER + type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one + of the following values: + + :: + + - BPS_50M: 50 Mbit/s + - BPS_100M: 100 Mbit/s + - BPS_200M: 200 Mbit/s + - BPS_300M: 300 Mbit/s + - BPS_400M: 400 Mbit/s + - BPS_500M: 500 Mbit/s + - BPS_1G: 1 Gbit/s + - BPS_2G: 2 Gbit/s + - BPS_5G: 5 Gbit/s + - BPS_10G: 10 Gbit/s + - BPS_20G: 20 Gbit/s + - BPS_50G: 50 Gbit/s + - BPS_100G: 100 Gbit/s Values: - UNDEFINED_ARCHITECTURE (0): + UNDEFINED_BANDWIDTH (0): A value indicating that the enum field is not set. - ARCHITECTURE_UNSPECIFIED (394750507): - Default value indicating Architecture is not + BPS_100G (49547952): + 100 Gbit/s + BPS_100M (49547958): + 100 Mbit/s + BPS_10G (278693006): + 10 Gbit/s + BPS_1G (355358448): + 1 Gbit/s + BPS_200M (49577749): + 200 Mbit/s + BPS_20G (278693967): + 20 Gbit/s + BPS_2G (355358479): + 2 Gbit/s + BPS_300M (49607540): + 300 Mbit/s + BPS_400M (49637331): + 400 Mbit/s + BPS_500M (49667122): + 500 Mbit/s + BPS_50G (278696850): + 50 Gbit/s + BPS_50M (278696856): + 50 Mbit/s + BPS_5G (355358572): + 5 Gbit/s + """ + UNDEFINED_BANDWIDTH = 0 + BPS_100G = 49547952 + BPS_100M = 49547958 + BPS_10G = 278693006 + BPS_1G = 355358448 + BPS_200M = 49577749 + BPS_20G = 278693967 + BPS_2G = 355358479 + BPS_300M = 49607540 + BPS_400M = 49637331 + BPS_500M = 49667122 + BPS_50G = 278696850 + BPS_50M = 278696856 + BPS_5G = 355358572 + + class EdgeAvailabilityDomain(proto.Enum): + r"""Input only. Desired availability domain for the attachment. Only + available for type PARTNER, at creation time, and can take one of + the following values: + + :: + + - AVAILABILITY_DOMAIN_ANY + - AVAILABILITY_DOMAIN_1 + - AVAILABILITY_DOMAIN_2 + + For improved reliability, customers should configure a pair of + attachments, one per availability domain. The selected availability + domain will be provided to the Partner via the pairing key, so that + the provisioned circuit will lie in the specified domain. If not + specified, the value will default to AVAILABILITY_DOMAIN_ANY. + + Values: + UNDEFINED_EDGE_AVAILABILITY_DOMAIN (0): + A value indicating that the enum field is not set. - ARM64 (62547450): - Machines with architecture ARM64 - X86_64 (425300551): - Machines with architecture X86_64 + AVAILABILITY_DOMAIN_1 (349552090): + No description available. + AVAILABILITY_DOMAIN_2 (349552091): + No description available. + AVAILABILITY_DOMAIN_ANY (375256373): + No description available. """ - UNDEFINED_ARCHITECTURE = 0 - ARCHITECTURE_UNSPECIFIED = 394750507 - ARM64 = 62547450 - X86_64 = 425300551 + UNDEFINED_EDGE_AVAILABILITY_DOMAIN = 0 + AVAILABILITY_DOMAIN_1 = 349552090 + AVAILABILITY_DOMAIN_2 = 349552091 + AVAILABILITY_DOMAIN_ANY = 375256373 - class Status(proto.Enum): - r"""[Output Only] The status of the instantSnapshot. This can be - CREATING, DELETING, FAILED, or READY. + class Encryption(proto.Enum): + r"""Indicates the user-supplied encryption option of this VLAN + attachment (interconnectAttachment). Can only be specified at + attachment creation for PARTNER or DEDICATED attachments. Possible + values are: + + :: + + - NONE - This is the default value, which means that the + VLAN attachment carries unencrypted traffic. VMs are able to send + traffic to, or receive traffic from, such a VLAN attachment. + - IPSEC - The VLAN attachment carries only encrypted + traffic that is encrypted by an IPsec device, such as an HA VPN gateway or + third-party IPsec VPN. VMs cannot directly send traffic to, or receive + traffic from, such a VLAN attachment. To use *HA VPN over Cloud + Interconnect*, the VLAN attachment must be created with this + option. Values: - UNDEFINED_STATUS (0): + UNDEFINED_ENCRYPTION (0): A value indicating that the enum field is not set. - CREATING (455564985): - InstantSnapshot creation is in progress. - DELETING (528602024): - InstantSnapshot is currently being deleted. - FAILED (455706685): - InstantSnapshot creation failed. - READY (77848963): - InstantSnapshot has been created - successfully. - UNAVAILABLE (413756464): - InstantSnapshot is currently unavailable and - cannot be used for Disk restoration + IPSEC (69882282): + The interconnect attachment will carry only + encrypted traffic that is encrypted by an IPsec + device such as HA VPN gateway; VMs cannot + directly send traffic to or receive traffic from + such an interconnect attachment. To use HA VPN + over Cloud Interconnect, the interconnect + attachment must be created with this option. + NONE (2402104): + This is the default value, which means the + Interconnect Attachment will carry unencrypted + traffic. VMs will be able to send traffic to or + receive traffic from such interconnect + attachment. + """ + UNDEFINED_ENCRYPTION = 0 + IPSEC = 69882282 + NONE = 2402104 + + class OperationalStatus(proto.Enum): + r"""Output only. [Output Only] The current status of whether or not this + interconnect attachment is functional, which can take one of the + following values: + + :: + + - OS_ACTIVE: The attachment has been turned up and is ready to + use. + - OS_UNPROVISIONED: The attachment is not ready to use yet, + because turnup is not complete. + + Values: + UNDEFINED_OPERATIONAL_STATUS (0): + A value indicating that the enum field is not + set. + OS_ACTIVE (55721409): + Indicates that attachment has been turned up + and is ready to use. + OS_UNPROVISIONED (239771840): + Indicates that attachment is not ready to use + yet, because turnup is not complete. + """ + UNDEFINED_OPERATIONAL_STATUS = 0 + OS_ACTIVE = 55721409 + OS_UNPROVISIONED = 239771840 + + class StackType(proto.Enum): + r"""The stack type for this interconnect attachment to identify whether + the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will + be used. + + This field can be both set at interconnect attachments creation and + update interconnect attachment operations. + + Values: + UNDEFINED_STACK_TYPE (0): + A value indicating that the enum field is not + set. + IPV4_IPV6 (22197249): + The interconnect attachment can have both + IPv4 and IPv6 addresses. + IPV4_ONLY (22373798): + The interconnect attachment will only be + assigned IPv4 addresses. + """ + UNDEFINED_STACK_TYPE = 0 + IPV4_IPV6 = 22197249 + IPV4_ONLY = 22373798 + + class State(proto.Enum): + r"""Output only. [Output Only] The current state of this attachment's + functionality. Enum values ACTIVE and UNPROVISIONED are shared by + DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect + attachments, while enum values PENDING_PARTNER, + PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only + PARTNER and PARTNER_PROVIDER interconnect attachments. This state + can take one of the following values: + + :: + + - ACTIVE: The attachment has been turned up and is ready to use. + - UNPROVISIONED: The attachment is not ready to use yet, because turnup + is not complete. + - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet + been configured on the Partner side. + - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of + provisioning after a PARTNER_PROVIDER attachment was created that + references it. + - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER + attachment that is waiting for a customer to activate it. + - DEFUNCT: + The attachment was deleted externally and is no longer functional. This + could be because the associated Interconnect was removed, or because the + other side of a Partner attachment was deleted. + + Values: + UNDEFINED_STATE (0): + A value indicating that the enum field is not + set. + ACTIVE (314733318): + Indicates that attachment has been turned up + and is ready to use. + DEFUNCT (115891759): + The attachment was deleted externally and is + no longer functional. This could be because the + associated Interconnect was wiped out, or + because the other side of a Partner attachment + was deleted. + PARTNER_REQUEST_RECEIVED (513587304): + A PARTNER attachment is in the process of provisioning after + a PARTNER_PROVIDER attachment was created that references + it. + PENDING_CUSTOMER (167494054): + PARTNER or PARTNER_PROVIDER attachment that is waiting for + the customer to activate. + PENDING_PARTNER (387890656): + A newly created PARTNER attachment that has + not yet been configured on the Partner side. + STATE_UNSPECIFIED (470755401): + No description available. + UNPROVISIONED (517333979): + Indicates that attachment is not ready to use + yet, because turnup is not complete. + """ + UNDEFINED_STATE = 0 + ACTIVE = 314733318 + DEFUNCT = 115891759 + PARTNER_REQUEST_RECEIVED = 513587304 + PENDING_CUSTOMER = 167494054 + PENDING_PARTNER = 387890656 + STATE_UNSPECIFIED = 470755401 + UNPROVISIONED = 517333979 + + class Type(proto.Enum): + r"""The type of interconnect attachment this is, which can take one of + the following values: + + :: + + - DEDICATED: an attachment to a Dedicated Interconnect. + - PARTNER: an attachment to a Partner Interconnect, created by the + customer. + - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by + the partner. + + - L2_DEDICATED: a L2 attachment to a Dedicated Interconnect. + + Values: + UNDEFINED_TYPE (0): + A value indicating that the enum field is not + set. + DEDICATED (258411983): + Attachment to a dedicated interconnect. + L2_DEDICATED (336595510): + Attachment to a dedicated interconnect, + forwarding L2 packets. + PARTNER (461924520): + Attachment to a partner interconnect, created + by the customer. + PARTNER_PROVIDER (483261352): + Attachment to a partner interconnect, created + by the partner. """ - UNDEFINED_STATUS = 0 - CREATING = 455564985 - DELETING = 528602024 - FAILED = 455706685 - READY = 77848963 - UNAVAILABLE = 413756464 + UNDEFINED_TYPE = 0 + DEDICATED = 258411983 + L2_DEDICATED = 336595510 + PARTNER = 461924520 + PARTNER_PROVIDER = 483261352 - architecture: str = proto.Field( + admin_enabled: bool = proto.Field( + proto.BOOL, + number=445675089, + optional=True, + ) + attachment_group: str = proto.Field( proto.STRING, - number=302803283, + number=63442019, + optional=True, + ) + bandwidth: str = proto.Field( + proto.STRING, + number=181715121, + optional=True, + ) + candidate_cloud_router_ip_address: str = proto.Field( + proto.STRING, + number=311379276, + optional=True, + ) + candidate_cloud_router_ipv6_address: str = proto.Field( + proto.STRING, + number=417499660, + optional=True, + ) + candidate_customer_router_ip_address: str = proto.Field( + proto.STRING, + number=339113389, + optional=True, + ) + candidate_customer_router_ipv6_address: str = proto.Field( + proto.STRING, + number=226436653, + optional=True, + ) + candidate_ipv6_subnets: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=70682522, + ) + candidate_subnets: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=237842938, + ) + cloud_router_ip_address: str = proto.Field( + proto.STRING, + number=287392776, + optional=True, + ) + cloud_router_ipv6_address: str = proto.Field( + proto.STRING, + number=451922376, + optional=True, + ) + cloud_router_ipv6_interface_id: str = proto.Field( + proto.STRING, + number=521282701, optional=True, ) + configuration_constraints: "InterconnectAttachmentConfigurationConstraints" = ( + proto.Field( + proto.MESSAGE, + number=179681389, + optional=True, + message="InterconnectAttachmentConfigurationConstraints", + ) + ) creation_timestamp: str = proto.Field( proto.STRING, number=30525366, optional=True, ) + customer_router_ip_address: str = proto.Field( + proto.STRING, + number=332475761, + optional=True, + ) + customer_router_ipv6_address: str = proto.Field( + proto.STRING, + number=290127089, + optional=True, + ) + customer_router_ipv6_interface_id: str = proto.Field( + proto.STRING, + number=380994308, + optional=True, + ) + dataplane_version: int = proto.Field( + proto.INT32, + number=34920075, + optional=True, + ) description: str = proto.Field( proto.STRING, number=422937596, optional=True, ) - disk_size_gb: int = proto.Field( - proto.INT64, - number=316263735, + edge_availability_domain: str = proto.Field( + proto.STRING, + number=71289510, + optional=True, + ) + encryption: str = proto.Field( + proto.STRING, + number=97980291, + optional=True, + ) + google_reference_id: str = proto.Field( + proto.STRING, + number=534944469, optional=True, ) id: int = proto.Field( @@ -51089,11 +60216,26 @@ class Status(proto.Enum): number=3355, optional=True, ) + interconnect: str = proto.Field( + proto.STRING, + number=224601230, + optional=True, + ) + ipsec_internal_addresses: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=407648565, + ) kind: str = proto.Field( proto.STRING, number=3292052, optional=True, ) + l2_forwarding: "InterconnectAttachmentL2Forwarding" = proto.Field( + proto.MESSAGE, + number=84784022, + optional=True, + message="InterconnectAttachmentL2Forwarding", + ) label_fingerprint: str = proto.Field( proto.STRING, number=178124825, @@ -51104,25 +60246,62 @@ class Status(proto.Enum): proto.STRING, number=500195327, ) + mtu: int = proto.Field( + proto.INT32, + number=108462, + optional=True, + ) name: str = proto.Field( proto.STRING, number=3373707, optional=True, ) + operational_status: str = proto.Field( + proto.STRING, + number=201070847, + optional=True, + ) + pairing_key: str = proto.Field( + proto.STRING, + number=439695464, + optional=True, + ) + params: "InterconnectAttachmentParams" = proto.Field( + proto.MESSAGE, + number=78313862, + optional=True, + message="InterconnectAttachmentParams", + ) + partner_asn: int = proto.Field( + proto.INT64, + number=438166149, + optional=True, + ) + partner_metadata: "InterconnectAttachmentPartnerMetadata" = proto.Field( + proto.MESSAGE, + number=65908934, + optional=True, + message="InterconnectAttachmentPartnerMetadata", + ) + private_interconnect_info: "InterconnectAttachmentPrivateInfo" = proto.Field( + proto.MESSAGE, + number=237270531, + optional=True, + message="InterconnectAttachmentPrivateInfo", + ) region: str = proto.Field( proto.STRING, number=138946292, optional=True, ) - resource_status: "InstantSnapshotResourceStatus" = proto.Field( - proto.MESSAGE, - number=249429315, + remote_service: str = proto.Field( + proto.STRING, + number=391954364, optional=True, - message="InstantSnapshotResourceStatus", ) - satisfies_pzi: bool = proto.Field( - proto.BOOL, - number=480964257, + router: str = proto.Field( + proto.STRING, + number=148608841, optional=True, ) satisfies_pzs: bool = proto.Field( @@ -51135,34 +60314,34 @@ class Status(proto.Enum): number=456214797, optional=True, ) - self_link_with_id: str = proto.Field( + stack_type: str = proto.Field( proto.STRING, - number=44520962, + number=425908881, optional=True, ) - source_disk: str = proto.Field( + state: str = proto.Field( proto.STRING, - number=451753793, + number=109757585, optional=True, ) - source_disk_id: str = proto.Field( - proto.STRING, - number=454190809, + subnet_length: int = proto.Field( + proto.INT32, + number=279831048, optional=True, ) - status: str = proto.Field( + type_: str = proto.Field( proto.STRING, - number=181260274, + number=3575610, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, + vlan_tag8021q: int = proto.Field( + proto.INT32, + number=119927836, optional=True, ) -class InstantSnapshotAggregatedList(proto.Message): +class InterconnectAttachmentAggregatedList(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -51173,30 +60352,31 @@ class InstantSnapshotAggregatedList(proto.Message): the server. This field is a member of `oneof`_ ``_id``. - items (MutableMapping[str, google.cloud.compute_v1.types.InstantSnapshotsScopedList]): - A list of InstantSnapshotsScopedList + items (MutableMapping[str, google.cloud.compute_v1.types.InterconnectAttachmentsScopedList]): + A list of InterconnectAttachmentsScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#instantSnapshotAggregatedList for aggregated lists - of instantSnapshots. + Output only. [Output Only] Type of resource. + Alwayscompute#interconnectAttachmentAggregatedList for + aggregated lists of interconnect attachments. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -51212,11 +60392,11 @@ def raw_page(self): number=3355, optional=True, ) - items: MutableMapping[str, "InstantSnapshotsScopedList"] = proto.MapField( + items: MutableMapping[str, "InterconnectAttachmentsScopedList"] = proto.MapField( proto.STRING, proto.MESSAGE, number=100526016, - message="InstantSnapshotsScopedList", + message="InterconnectAttachmentsScopedList", ) kind: str = proto.Field( proto.STRING, @@ -51245,607 +60425,221 @@ def raw_page(self): ) -class InstantSnapshotList(proto.Message): - r"""Contains a list of InstantSnapshot resources. - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. - - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.InstantSnapshot]): - A list of InstantSnapshot resources. - kind (str): - Type of resource. - - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. - - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. - - This field is a member of `oneof`_ ``_self_link``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. - - This field is a member of `oneof`_ ``_warning``. - """ - - @property - def raw_page(self): - return self - - id: str = proto.Field( - proto.STRING, - number=3355, - optional=True, - ) - items: MutableSequence["InstantSnapshot"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="InstantSnapshot", - ) - kind: str = proto.Field( - proto.STRING, - number=3292052, - optional=True, - ) - next_page_token: str = proto.Field( - proto.STRING, - number=79797525, - optional=True, - ) - self_link: str = proto.Field( - proto.STRING, - number=456214797, - optional=True, - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, - optional=True, - message="Warning", - ) - - -class InstantSnapshotResourceStatus(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - storage_size_bytes (int): - [Output Only] The storage size of this instant snapshot. - - This field is a member of `oneof`_ ``_storage_size_bytes``. - """ - - storage_size_bytes: int = proto.Field( - proto.INT64, - number=387548913, - optional=True, - ) - - -class InstantSnapshotsScopedList(proto.Message): +class InterconnectAttachmentConfigurationConstraints(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - instant_snapshots (MutableSequence[google.cloud.compute_v1.types.InstantSnapshot]): - [Output Only] A list of instantSnapshots contained in this - scope. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning which replaces the list - of instantSnapshots when the list is empty. - - This field is a member of `oneof`_ ``_warning``. - """ - - instant_snapshots: MutableSequence["InstantSnapshot"] = proto.RepeatedField( - proto.MESSAGE, - number=329637457, - message="InstantSnapshot", - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, - optional=True, - message="Warning", - ) - - -class Int64RangeMatch(proto.Message): - r"""HttpRouteRuleMatch criteria for field values that must stay - within the specified integer range. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - range_end (int): - The end of the range (exclusive) in signed - long integer format. + bgp_md5 (str): + Output only. [Output Only] Whether the attachment's BGP + session requires/allows/disallows BGP MD5 authentication. + This can take one of the following values: MD5_OPTIONAL, + MD5_REQUIRED, MD5_UNSUPPORTED. + + For example, a Cross-Cloud Interconnect connection to a + remote cloud provider that requires BGP MD5 authentication + has the interconnectRemoteLocation + attachment_configuration_constraints.bgp_md5 field set to + MD5_REQUIRED, and that property is propagated to the + attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an + error is returned if MD5 is requested. Check the BgpMd5 enum + for the list of possible values. - This field is a member of `oneof`_ ``_range_end``. - range_start (int): - The start of the range (inclusive) in signed - long integer format. + This field is a member of `oneof`_ ``_bgp_md5``. + bgp_peer_asn_ranges (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange]): + Output only. [Output Only] List of ASN ranges that the + remote location is known to support. Formatted as an array + of inclusive ranges {min: min-value, max: max-value}. For + example, [{min: 123, max: 123}, {min: 64512, max: 65534}] + allows the peer ASN to be 123 or anything in the range + 64512-65534. - This field is a member of `oneof`_ ``_range_start``. + This field is only advisory. Although the API accepts other + ranges, these are the ranges that we recommend. """ - range_end: int = proto.Field( - proto.INT64, - number=322439897, - optional=True, - ) - range_start: int = proto.Field( - proto.INT64, - number=103333600, - optional=True, - ) - - -class Interconnect(proto.Message): - r"""Represents an Interconnect resource. An Interconnect resource - is a dedicated connection between the Google Cloud network and - your on-premises network. For more information, read the - Dedicated Interconnect Overview. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - aai_enabled (bool): - Enable or disable the application awareness - feature on this Cloud Interconnect. - - This field is a member of `oneof`_ ``_aai_enabled``. - admin_enabled (bool): - Administrative status of the interconnect. - When this is set to true, the Interconnect is - functional and can carry traffic. When set to - false, no packets can be carried over the - interconnect and no BGP routes are exchanged - over it. By default, the status is set to true. - - This field is a member of `oneof`_ ``_admin_enabled``. - application_aware_interconnect (google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnect): - Configuration information for application - awareness on this Cloud Interconnect. - - This field is a member of `oneof`_ ``_application_aware_interconnect``. - available_features (MutableSequence[str]): - [Output only] List of features available for this - Interconnect connection, which can take one of the following - values: - IF_MACSEC If present then the Interconnect - connection is provisioned on MACsec capable hardware ports. - If not present then the Interconnect connection is - provisioned on non-MACsec capable ports and MACsec isn't - supported and enabling MACsec fails. Check the - AvailableFeatures enum for the list of possible values. - circuit_infos (MutableSequence[google.cloud.compute_v1.types.InterconnectCircuitInfo]): - [Output Only] A list of CircuitInfo objects, that describe - the individual circuits in this LAG. - creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. - - This field is a member of `oneof`_ ``_creation_timestamp``. - customer_name (str): - Customer name, to put in the Letter of - Authorization as the party authorized to request - a crossconnect. - - This field is a member of `oneof`_ ``_customer_name``. - description (str): - An optional description of this resource. - Provide this property when you create the - resource. - - This field is a member of `oneof`_ ``_description``. - expected_outages (MutableSequence[google.cloud.compute_v1.types.InterconnectOutageNotification]): - [Output Only] A list of outages expected for this - Interconnect. - google_ip_address (str): - [Output Only] IP address configured on the Google side of - the Interconnect link. This can be used only for ping tests. - - This field is a member of `oneof`_ ``_google_ip_address``. - google_reference_id (str): - [Output Only] Google reference ID to be used when raising - support tickets with Google or otherwise to debug backend - connectivity issues. - - This field is a member of `oneof`_ ``_google_reference_id``. - id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. - - This field is a member of `oneof`_ ``_id``. - interconnect_attachments (MutableSequence[str]): - [Output Only] A list of the URLs of all - InterconnectAttachments configured to use this Interconnect. - interconnect_groups (MutableSequence[str]): - [Output Only] URLs of InterconnectGroups that include this - Interconnect. Order is arbitrary and items are unique. - interconnect_type (str): - Type of interconnect, which can take one of the following - values: - PARTNER: A partner-managed interconnection shared - between customers though a partner. - DEDICATED: A dedicated - physical interconnection with the customer. Note that a - value IT_PRIVATE has been deprecated in favor of DEDICATED. - Check the InterconnectType enum for the list of possible - values. - - This field is a member of `oneof`_ ``_interconnect_type``. - kind (str): - [Output Only] Type of the resource. Always - compute#interconnect for interconnects. - - This field is a member of `oneof`_ ``_kind``. - label_fingerprint (str): - A fingerprint for the labels being applied to - this Interconnect, which is essentially a hash - of the labels set used for optimistic locking. - The fingerprint is initially generated by - Compute Engine and changes after every request - to modify or update labels. You must always - provide an up-to-date fingerprint hash in order - to update or change labels, otherwise the - request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve an - Interconnect. - - This field is a member of `oneof`_ ``_label_fingerprint``. - labels (MutableMapping[str, str]): - Labels for this resource. These can only be - added or modified by the setLabels method. Each - label key/value pair must comply with RFC1035. - Label values may be empty. - link_type (str): - Type of link requested, which can take one of the following - values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR - optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR - optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with - LR4 optics. Note that this field indicates the speed of each - of the links in the bundle, not the speed of the entire - bundle. Check the LinkType enum for the list of possible - values. - - This field is a member of `oneof`_ ``_link_type``. - location (str): - URL of the InterconnectLocation object that - represents where this connection is to be - provisioned. - - This field is a member of `oneof`_ ``_location``. - macsec (google.cloud.compute_v1.types.InterconnectMacsec): - Configuration that enables Media Access - Control security (MACsec) on the Cloud - Interconnect connection between Google and your - on-premises router. - - This field is a member of `oneof`_ ``_macsec``. - macsec_enabled (bool): - Enable or disable MACsec on this Interconnect - connection. MACsec enablement fails if the - MACsec object is not specified. + class BgpMd5(proto.Enum): + r"""Output only. [Output Only] Whether the attachment's BGP session + requires/allows/disallows BGP MD5 authentication. This can take one + of the following values: MD5_OPTIONAL, MD5_REQUIRED, + MD5_UNSUPPORTED. - This field is a member of `oneof`_ ``_macsec_enabled``. - name (str): - Name of the resource. Provided by the client when the - resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 - characters long and match the regular expression - ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first - character must be a lowercase letter, and all following - characters must be a dash, lowercase letter, or digit, - except the last character, which cannot be a dash. + For example, a Cross-Cloud Interconnect connection to a remote cloud + provider that requires BGP MD5 authentication has the + interconnectRemoteLocation + attachment_configuration_constraints.bgp_md5 field set to + MD5_REQUIRED, and that property is propagated to the attachment. + Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if + MD5 is requested. - This field is a member of `oneof`_ ``_name``. - noc_contact_email (str): - Email address to contact the customer NOC for - operations and maintenance notifications - regarding this Interconnect. If specified, this - will be used for notifications in addition to - all other forms described, such as Cloud - Monitoring logs alerting and Cloud - Notifications. This field is required for users - who sign up for Cloud Interconnect using - workforce identity federation. + Values: + UNDEFINED_BGP_MD5 (0): + A value indicating that the enum field is not + set. + MD5_OPTIONAL (532156673): + MD5_OPTIONAL: BGP MD5 authentication is supported and can + optionally be configured. + MD5_REQUIRED (218034496): + MD5_REQUIRED: BGP MD5 authentication must be configured. + MD5_UNSUPPORTED (86962388): + MD5_UNSUPPORTED: BGP MD5 authentication must not be + configured + """ + UNDEFINED_BGP_MD5 = 0 + MD5_OPTIONAL = 532156673 + MD5_REQUIRED = 218034496 + MD5_UNSUPPORTED = 86962388 - This field is a member of `oneof`_ ``_noc_contact_email``. - operational_status (str): - [Output Only] The current status of this Interconnect's - functionality, which can take one of the following values: - - OS_ACTIVE: A valid Interconnect, which is turned up and is - ready to use. Attachments may be provisioned on this - Interconnect. - OS_UNPROVISIONED: An Interconnect that has - not completed turnup. No attachments may be provisioned on - this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect - that is undergoing internal maintenance. No attachments may - be provisioned or updated on this Interconnect. Check the - OperationalStatus enum for the list of possible values. + bgp_md5: str = proto.Field( + proto.STRING, + number=373093386, + optional=True, + ) + bgp_peer_asn_ranges: MutableSequence[ + "InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange" + ] = proto.RepeatedField( + proto.MESSAGE, + number=475946370, + message="InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange", + ) - This field is a member of `oneof`_ ``_operational_status``. - peer_ip_address (str): - [Output Only] IP address configured on the customer side of - the Interconnect link. The customer should configure this IP - address during turnup when prompted by Google NOC. This can - be used only for ping tests. - This field is a member of `oneof`_ ``_peer_ip_address``. - provisioned_link_count (int): - [Output Only] Number of links actually provisioned in this - interconnect. +class InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange(proto.Message): + r""" - This field is a member of `oneof`_ ``_provisioned_link_count``. - remote_location (str): - Indicates that this is a Cross-Cloud - Interconnect. This field specifies the location - outside of Google's network that the - interconnect is connected to. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_remote_location``. - requested_features (MutableSequence[str]): - Optional. List of features requested for this Interconnect - connection, which can take one of the following values: - - IF_MACSEC If specified then the connection is created on - MACsec capable hardware ports. If not specified, the default - value is false, which allocates non-MACsec capable ports - first if available. This parameter can be provided only with - Interconnect INSERT. It isn't valid for Interconnect PATCH. - Check the RequestedFeatures enum for the list of possible - values. - requested_link_count (int): - Target number of physical links in the link - bundle, as requested by the customer. + Attributes: + max_ (int): - This field is a member of `oneof`_ ``_requested_link_count``. - satisfies_pzs (bool): - [Output Only] Reserved for future use. + This field is a member of `oneof`_ ``_max``. + min_ (int): - This field is a member of `oneof`_ ``_satisfies_pzs``. - self_link (str): - [Output Only] Server-defined URL for the resource. + This field is a member of `oneof`_ ``_min``. + """ - This field is a member of `oneof`_ ``_self_link``. - state (str): - [Output Only] The current state of Interconnect - functionality, which can take one of the following values: - - ACTIVE: The Interconnect is valid, turned up and ready to - use. Attachments may be provisioned on this Interconnect. - - UNPROVISIONED: The Interconnect has not completed turnup. No - attachments may be provisioned on this Interconnect. - - UNDER_MAINTENANCE: The Interconnect is undergoing internal - maintenance. No attachments may be provisioned or updated on - this Interconnect. Check the State enum for the list of - possible values. + max_: int = proto.Field( + proto.UINT32, + number=107876, + optional=True, + ) + min_: int = proto.Field( + proto.UINT32, + number=108114, + optional=True, + ) - This field is a member of `oneof`_ ``_state``. - subzone (str): - Specific subzone in the InterconnectLocation - that represents where this connection is to be - provisioned. Check the Subzone enum for the list - of possible values. - This field is a member of `oneof`_ ``_subzone``. - """ +class InterconnectAttachmentGroup(proto.Message): + r"""An interconnect attachment group resource allows customers to + create, analyze, and expand highly available deployments. - class AvailableFeatures(proto.Enum): - r"""Additional supported values which may be not listed in the enum - directly due to technical reasons: IF_MACSEC - Values: - UNDEFINED_AVAILABLE_FEATURES (0): - A value indicating that the enum field is not - set. - """ - UNDEFINED_AVAILABLE_FEATURES = 0 + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - class InterconnectType(proto.Enum): - r"""Type of interconnect, which can take one of the following values: - - PARTNER: A partner-managed interconnection shared between customers - though a partner. - DEDICATED: A dedicated physical interconnection - with the customer. Note that a value IT_PRIVATE has been deprecated - in favor of DEDICATED. + Attributes: + attachments (MutableMapping[str, google.cloud.compute_v1.types.InterconnectAttachmentGroupAttachment]): + Attachments in the AttachmentGroup. Keys are + arbitrary user-specified strings. Users are + encouraged, but not required, to use their + preferred format for resource links as keys. + Note that there are add-members and + remove-members methods in gcloud. The size of + this map is limited by an "Attachments per + group" quota. + configured (google.cloud.compute_v1.types.InterconnectAttachmentGroupConfigured): - Values: - UNDEFINED_INTERCONNECT_TYPE (0): - A value indicating that the enum field is not - set. - DEDICATED (258411983): - A dedicated physical interconnection with the - customer. - IT_PRIVATE (335677007): - [Deprecated] A private, physical interconnection with the - customer. - PARTNER (461924520): - A partner-managed interconnection shared - between customers via partner. - """ - UNDEFINED_INTERCONNECT_TYPE = 0 - DEDICATED = 258411983 - IT_PRIVATE = 335677007 - PARTNER = 461924520 + This field is a member of `oneof`_ ``_configured``. + creation_timestamp (str): + Output only. [Output Only] Creation timestamp inRFC3339 text + format. - class LinkType(proto.Enum): - r"""Type of link requested, which can take one of the following values: - - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. - - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note - that this field indicates the speed of each of the links in the - bundle, not the speed of the entire bundle. + This field is a member of `oneof`_ ``_creation_timestamp``. + description (str): + An optional description of this resource. + Provide this property when you create the + resource. - Values: - UNDEFINED_LINK_TYPE (0): - A value indicating that the enum field is not - set. - LINK_TYPE_ETHERNET_100G_LR (337672551): - 100G Ethernet, LR Optics. - LINK_TYPE_ETHERNET_10G_LR (236739749): - 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; - LINK_TYPE_ETHERNET_400G_LR4 (127023690): - 400G Ethernet, LR4 Optics. - """ - UNDEFINED_LINK_TYPE = 0 - LINK_TYPE_ETHERNET_100G_LR = 337672551 - LINK_TYPE_ETHERNET_10G_LR = 236739749 - LINK_TYPE_ETHERNET_400G_LR4 = 127023690 + This field is a member of `oneof`_ ``_description``. + etag (str): + Opaque system-generated token that uniquely + identifies the configuration. If provided when + patching a configuration in update mode, the + provided token must match the current token or + the update is rejected. This provides a reliable + means of doing read-modify-write (optimistic + locking) as described byAIP 154. - class OperationalStatus(proto.Enum): - r"""[Output Only] The current status of this Interconnect's - functionality, which can take one of the following values: - - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to - use. Attachments may be provisioned on this Interconnect. - - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No - attachments may be provisioned on this Interconnect. - - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal - maintenance. No attachments may be provisioned or updated on this - Interconnect. + This field is a member of `oneof`_ ``_etag``. + id (int): + Output only. [Output Only] The unique identifier for the + resource type. The server generates this identifier. - Values: - UNDEFINED_OPERATIONAL_STATUS (0): - A value indicating that the enum field is not - set. - OS_ACTIVE (55721409): - The interconnect is valid, turned up, and - ready to use. Attachments may be provisioned on - this interconnect. - OS_UNPROVISIONED (239771840): - The interconnect has not completed turnup. No - attachments may be provisioned on this - interconnect. - """ - UNDEFINED_OPERATIONAL_STATUS = 0 - OS_ACTIVE = 55721409 - OS_UNPROVISIONED = 239771840 + This field is a member of `oneof`_ ``_id``. + intent (google.cloud.compute_v1.types.InterconnectAttachmentGroupIntent): - class RequestedFeatures(proto.Enum): - r"""Additional supported values which may be not listed in the enum - directly due to technical reasons: IF_MACSEC + This field is a member of `oneof`_ ``_intent``. + interconnect_group (str): + The URL of an InterconnectGroup that groups + these Attachments' Interconnects. Customers do + not need to set this unless directed by Google + Support. - Values: - UNDEFINED_REQUESTED_FEATURES (0): - A value indicating that the enum field is not - set. - """ - UNDEFINED_REQUESTED_FEATURES = 0 + This field is a member of `oneof`_ ``_interconnect_group``. + kind (str): + Output only. [Output Only] Type of the resource. Always + compute#interconnectAttachmentGroup. - class State(proto.Enum): - r"""[Output Only] The current state of Interconnect functionality, which - can take one of the following values: - ACTIVE: The Interconnect is - valid, turned up and ready to use. Attachments may be provisioned on - this Interconnect. - UNPROVISIONED: The Interconnect has not - completed turnup. No attachments may be provisioned on this - Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing - internal maintenance. No attachments may be provisioned or updated - on this Interconnect. + This field is a member of `oneof`_ ``_kind``. + logical_structure (google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructure): - Values: - UNDEFINED_STATE (0): - A value indicating that the enum field is not - set. - ACTIVE (314733318): - The interconnect is valid, turned up, and - ready to use. Attachments may be provisioned on - this interconnect. - UNPROVISIONED (517333979): - The interconnect has not completed turnup. No - attachments may be provisioned on this - interconnect. - """ - UNDEFINED_STATE = 0 - ACTIVE = 314733318 - UNPROVISIONED = 517333979 + This field is a member of `oneof`_ ``_logical_structure``. + name (str): + Name of the resource. Provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. - class Subzone(proto.Enum): - r"""Specific subzone in the InterconnectLocation that represents - where this connection is to be provisioned. + This field is a member of `oneof`_ ``_name``. + self_link (str): + Output only. [Output Only] Server-defined URL for the + resource. - Values: - UNDEFINED_SUBZONE (0): - A value indicating that the enum field is not - set. - SUBZONE_A (291575438): - Subzone A. - SUBZONE_B (291575439): - Subzone B. - """ - UNDEFINED_SUBZONE = 0 - SUBZONE_A = 291575438 - SUBZONE_B = 291575439 + This field is a member of `oneof`_ ``_self_link``. + """ - aai_enabled: bool = proto.Field( - proto.BOOL, - number=388780363, - optional=True, - ) - admin_enabled: bool = proto.Field( - proto.BOOL, - number=445675089, - optional=True, - ) - application_aware_interconnect: "InterconnectApplicationAwareInterconnect" = ( - proto.Field( - proto.MESSAGE, - number=429095966, - optional=True, - message="InterconnectApplicationAwareInterconnect", - ) - ) - available_features: MutableSequence[str] = proto.RepeatedField( + attachments: MutableMapping[ + str, "InterconnectAttachmentGroupAttachment" + ] = proto.MapField( proto.STRING, - number=496344307, + proto.MESSAGE, + number=334744496, + message="InterconnectAttachmentGroupAttachment", ) - circuit_infos: MutableSequence["InterconnectCircuitInfo"] = proto.RepeatedField( + configured: "InterconnectAttachmentGroupConfigured" = proto.Field( proto.MESSAGE, - number=164839855, - message="InterconnectCircuitInfo", + number=295631422, + optional=True, + message="InterconnectAttachmentGroupConfigured", ) creation_timestamp: str = proto.Field( proto.STRING, number=30525366, optional=True, ) - customer_name: str = proto.Field( - proto.STRING, - number=3665484, - optional=True, - ) description: str = proto.Field( proto.STRING, number=422937596, optional=True, ) - expected_outages: MutableSequence[ - "InterconnectOutageNotification" - ] = proto.RepeatedField( - proto.MESSAGE, - number=264484123, - message="InterconnectOutageNotification", - ) - google_ip_address: str = proto.Field( - proto.STRING, - number=443105954, - optional=True, - ) - google_reference_id: str = proto.Field( + etag: str = proto.Field( proto.STRING, - number=534944469, + number=3123477, optional=True, ) id: int = proto.Field( @@ -51853,17 +60647,15 @@ class Subzone(proto.Enum): number=3355, optional=True, ) - interconnect_attachments: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=425388415, - ) - interconnect_groups: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=237049509, + intent: "InterconnectAttachmentGroupIntent" = proto.Field( + proto.MESSAGE, + number=426849948, + optional=True, + message="InterconnectAttachmentGroupIntent", ) - interconnect_type: str = proto.Field( + interconnect_group: str = proto.Field( proto.STRING, - number=515165259, + number=388651918, optional=True, ) kind: str = proto.Field( @@ -51871,1028 +60663,1402 @@ class Subzone(proto.Enum): number=3292052, optional=True, ) - label_fingerprint: str = proto.Field( - proto.STRING, - number=178124825, - optional=True, - ) - labels: MutableMapping[str, str] = proto.MapField( - proto.STRING, - proto.STRING, - number=500195327, - ) - link_type: str = proto.Field( - proto.STRING, - number=523207775, - optional=True, - ) - location: str = proto.Field( - proto.STRING, - number=290430901, - optional=True, - ) - macsec: "InterconnectMacsec" = proto.Field( + logical_structure: "InterconnectAttachmentGroupLogicalStructure" = proto.Field( proto.MESSAGE, - number=528867490, - optional=True, - message="InterconnectMacsec", - ) - macsec_enabled: bool = proto.Field( - proto.BOOL, - number=194203812, + number=142412989, optional=True, + message="InterconnectAttachmentGroupLogicalStructure", ) name: str = proto.Field( proto.STRING, number=3373707, optional=True, ) - noc_contact_email: str = proto.Field( + self_link: str = proto.Field( proto.STRING, - number=14072832, + number=456214797, optional=True, ) - operational_status: str = proto.Field( + + +class InterconnectAttachmentGroupAttachment(proto.Message): + r"""An Attachment in this AttachmentGroup. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + attachment (str): + + This field is a member of `oneof`_ ``_attachment``. + """ + + attachment: str = proto.Field( proto.STRING, - number=201070847, + number=183982371, optional=True, ) - peer_ip_address: str = proto.Field( + + +class InterconnectAttachmentGroupConfigured(proto.Message): + r"""[Output Only] The redundancy this group is configured to support. + The way a user queries what SLA their Attachment gets is by looking + at this field of the Attachment's AttachmentGroup. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + availability_sla (google.cloud.compute_v1.types.InterconnectAttachmentGroupConfiguredAvailabilitySLA): + + This field is a member of `oneof`_ ``_availability_sla``. + """ + + availability_sla: "InterconnectAttachmentGroupConfiguredAvailabilitySLA" = ( + proto.Field( + proto.MESSAGE, + number=472702020, + optional=True, + message="InterconnectAttachmentGroupConfiguredAvailabilitySLA", + ) + ) + + +class InterconnectAttachmentGroupConfiguredAvailabilitySLA(proto.Message): + r"""[Output Only] Which SLA this group is configured to support, and why + this group does or does not meet that SLA's requirements. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + effective_sla (str): + Check the EffectiveSla enum for the list of + possible values. + + This field is a member of `oneof`_ ``_effective_sla``. + intended_sla_blockers (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers]): + + """ + + class EffectiveSla(proto.Enum): + r""" + + Values: + UNDEFINED_EFFECTIVE_SLA (0): + A value indicating that the enum field is not + set. + EFFECTIVE_SLA_UNSPECIFIED (491000744): + No description available. + NO_SLA (161460618): + No description available. + PRODUCTION_CRITICAL (470416485): + No description available. + PRODUCTION_NON_CRITICAL (117399223): + No description available. + """ + UNDEFINED_EFFECTIVE_SLA = 0 + EFFECTIVE_SLA_UNSPECIFIED = 491000744 + NO_SLA = 161460618 + PRODUCTION_CRITICAL = 470416485 + PRODUCTION_NON_CRITICAL = 117399223 + + effective_sla: str = proto.Field( proto.STRING, - number=207735769, + number=144173712, optional=True, ) - provisioned_link_count: int = proto.Field( - proto.INT32, - number=410888565, - optional=True, + intended_sla_blockers: MutableSequence[ + "InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers" + ] = proto.RepeatedField( + proto.MESSAGE, + number=448370308, + message="InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers", ) - remote_location: str = proto.Field( + + +class InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers( + proto.Message +): + r"""[Output Only] Reasons why configuration.availabilitySLA.sla differs + from intent.availabilitySLA. This list is empty if and only if those + are the same. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + attachments (MutableSequence[str]): + Output only. [Output Only] URLs of any particular + Attachments to explain this blocker in more detail. + blocker_type (str): + Check the BlockerType enum for the list of + possible values. + + This field is a member of `oneof`_ ``_blocker_type``. + documentation_link (str): + Output only. [Output Only] The url of Google Cloud public + documentation explaining this requirement. This is set for + every type of requirement. + + This field is a member of `oneof`_ ``_documentation_link``. + explanation (str): + Output only. [Output Only] A human-readable explanation of + this requirement and why it's not met. This is set for every + type of requirement. + + This field is a member of `oneof`_ ``_explanation``. + metros (MutableSequence[str]): + Output only. [Output Only] Metros used to explain this + blocker in more detail. These are three-letter lowercase + strings like "iad". This will be set for some blockers (like + NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to + others. + regions (MutableSequence[str]): + Output only. [Output Only] Regions used to explain this + blocker in more detail. These are region names formatted + like "us-central1". This will be set for some blockers (like + INCOMPATIBLE_REGIONS) but does not apply to others. + zones (MutableSequence[str]): + Output only. [Output Only] Zones used to explain this + blocker in more detail. Format is "zone1" and/or "zone2". + This will be set for some blockers (like MISSING_ZONE) but + does not apply to others. + """ + + class BlockerType(proto.Enum): + r""" + + Values: + UNDEFINED_BLOCKER_TYPE (0): + A value indicating that the enum field is not + set. + BLOCKER_TYPE_UNSPECIFIED (429793623): + No description available. + INCOMPATIBLE_METROS (290410432): + No description available. + INCOMPATIBLE_REGIONS (6195033): + No description available. + MISSING_GLOBAL_ROUTING (165913635): + No description available. + NO_ATTACHMENTS (456535570): + No description available. + NO_ATTACHMENTS_IN_METRO_AND_ZONE (51684135): + No description available. + OTHER (75532016): + No description available. + """ + UNDEFINED_BLOCKER_TYPE = 0 + BLOCKER_TYPE_UNSPECIFIED = 429793623 + INCOMPATIBLE_METROS = 290410432 + INCOMPATIBLE_REGIONS = 6195033 + MISSING_GLOBAL_ROUTING = 165913635 + NO_ATTACHMENTS = 456535570 + NO_ATTACHMENTS_IN_METRO_AND_ZONE = 51684135 + OTHER = 75532016 + + attachments: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=324388750, - optional=True, + number=334744496, ) - requested_features: MutableSequence[str] = proto.RepeatedField( + blocker_type: str = proto.Field( proto.STRING, - number=461240814, + number=381194847, + optional=True, ) - requested_link_count: int = proto.Field( - proto.INT32, - number=45051387, + documentation_link: str = proto.Field( + proto.STRING, + number=93465183, optional=True, ) - satisfies_pzs: bool = proto.Field( - proto.BOOL, - number=480964267, + explanation: str = proto.Field( + proto.STRING, + number=504745497, optional=True, ) - self_link: str = proto.Field( + metros: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=456214797, - optional=True, + number=533067386, ) - state: str = proto.Field( + regions: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=109757585, - optional=True, + number=12367871, ) - subzone: str = proto.Field( + zones: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=280084972, - optional=True, + number=116085319, ) -class InterconnectApplicationAwareInterconnect(proto.Message): - r"""Configuration information for application awareness on this - Cloud Interconnect. +class InterconnectAttachmentGroupIntent(proto.Message): + r"""The user's intent for this AttachmentGroup. This is the only + required field besides the name that must be specified on group + creation. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - bandwidth_percentage_policy (google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy): + availability_sla (str): + Check the AvailabilitySla enum for the list + of possible values. - This field is a member of `oneof`_ ``_bandwidth_percentage_policy``. - profile_description (str): - Description for the application awareness - profile on this Cloud Interconnect. + This field is a member of `oneof`_ ``_availability_sla``. + """ - This field is a member of `oneof`_ ``_profile_description``. - shape_average_percentages (MutableSequence[google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnectBandwidthPercentage]): - Optional field to specify a list of shape - average percentages to be applied in conjunction - with StrictPriorityPolicy or - BandwidthPercentagePolicy. - strict_priority_policy (google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnectStrictPriorityPolicy): + class AvailabilitySla(proto.Enum): + r""" - This field is a member of `oneof`_ ``_strict_priority_policy``. - """ + Values: + UNDEFINED_AVAILABILITY_SLA (0): + A value indicating that the enum field is not + set. + AVAILABILITY_SLA_UNSPECIFIED (11186044): + No description available. + NO_SLA (161460618): + No description available. + PRODUCTION_CRITICAL (470416485): + No description available. + PRODUCTION_NON_CRITICAL (117399223): + No description available. + """ + UNDEFINED_AVAILABILITY_SLA = 0 + AVAILABILITY_SLA_UNSPECIFIED = 11186044 + NO_SLA = 161460618 + PRODUCTION_CRITICAL = 470416485 + PRODUCTION_NON_CRITICAL = 117399223 - bandwidth_percentage_policy: "InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy" = proto.Field( - proto.MESSAGE, - number=187018857, - optional=True, - message="InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy", - ) - profile_description: str = proto.Field( + availability_sla: str = proto.Field( proto.STRING, - number=262813286, + number=472702020, optional=True, ) - shape_average_percentages: MutableSequence[ - "InterconnectApplicationAwareInterconnectBandwidthPercentage" + + +class InterconnectAttachmentGroupLogicalStructure(proto.Message): + r"""[Output Only] An analysis of the logical layout of Attachments in + this group. Every Attachment in the group is shown once in this + structure. + + Attributes: + regions (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructureRegion]): + + """ + + regions: MutableSequence[ + "InterconnectAttachmentGroupLogicalStructureRegion" ] = proto.RepeatedField( proto.MESSAGE, - number=259857497, - message="InterconnectApplicationAwareInterconnectBandwidthPercentage", - ) - strict_priority_policy: "InterconnectApplicationAwareInterconnectStrictPriorityPolicy" = proto.Field( - proto.MESSAGE, - number=145083063, - optional=True, - message="InterconnectApplicationAwareInterconnectStrictPriorityPolicy", + number=12367871, + message="InterconnectAttachmentGroupLogicalStructureRegion", ) -class InterconnectApplicationAwareInterconnectBandwidthPercentage(proto.Message): - r"""Specify bandwidth percentages [1-100] for various traffic classes in - BandwidthPercentagePolicy. The sum of all percentages must equal - 100. All traffic classes must have a percentage value specified. - +class InterconnectAttachmentGroupLogicalStructureRegion(proto.Message): + r"""[Output Only] The regions Attachments in this group are in. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - percentage (int): - Bandwidth percentage for a specific traffic - class. + metros (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructureRegionMetro]): - This field is a member of `oneof`_ ``_percentage``. - traffic_class (str): - TrafficClass whose bandwidth percentage is - being specified. Check the TrafficClass enum for - the list of possible values. + region (str): + Output only. [Output Only] The name of a region, like + "us-central1". - This field is a member of `oneof`_ ``_traffic_class``. + This field is a member of `oneof`_ ``_region``. """ - class TrafficClass(proto.Enum): - r"""TrafficClass whose bandwidth percentage is being specified. - - Values: - UNDEFINED_TRAFFIC_CLASS (0): - A value indicating that the enum field is not - set. - TC1 (82850): - Traffic Class 1, corresponding to DSCP ranges - (0-7) 000xxx. - TC2 (82851): - Traffic Class 2, corresponding to DSCP ranges - (8-15) 001xxx. - TC3 (82852): - Traffic Class 3, corresponding to DSCP ranges - (16-23) 010xxx. - TC4 (82853): - Traffic Class 4, corresponding to DSCP ranges - (24-31) 011xxx. - TC5 (82854): - Traffic Class 5, corresponding to DSCP ranges - (32-47) 10xxxx. - TC6 (82855): - Traffic Class 6, corresponding to DSCP ranges - (48-63) 11xxxx. - """ - UNDEFINED_TRAFFIC_CLASS = 0 - TC1 = 82850 - TC2 = 82851 - TC3 = 82852 - TC4 = 82853 - TC5 = 82854 - TC6 = 82855 - - percentage: int = proto.Field( - proto.UINT32, - number=151909018, - optional=True, + metros: MutableSequence[ + "InterconnectAttachmentGroupLogicalStructureRegionMetro" + ] = proto.RepeatedField( + proto.MESSAGE, + number=533067386, + message="InterconnectAttachmentGroupLogicalStructureRegionMetro", ) - traffic_class: str = proto.Field( + region: str = proto.Field( proto.STRING, - number=198180022, + number=138946292, optional=True, ) -class InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy(proto.Message): - r""" +class InterconnectAttachmentGroupLogicalStructureRegionMetro(proto.Message): + r"""[Output Only] The metros of Attachments in this group in this + region. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - bandwidth_percentages (MutableSequence[google.cloud.compute_v1.types.InterconnectApplicationAwareInterconnectBandwidthPercentage]): - Specify bandwidth percentages for various - traffic classes for queuing type Bandwidth - Percent. + facilities (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructureRegionMetroFacility]): + + metro (str): + Output only. [Output Only] The name of the metro, as a + three-letter lowercase string like "iad". This is the first + component of the location of an Interconnect. + + This field is a member of `oneof`_ ``_metro``. """ - bandwidth_percentages: MutableSequence[ - "InterconnectApplicationAwareInterconnectBandwidthPercentage" + facilities: MutableSequence[ + "InterconnectAttachmentGroupLogicalStructureRegionMetroFacility" ] = proto.RepeatedField( proto.MESSAGE, - number=233373323, - message="InterconnectApplicationAwareInterconnectBandwidthPercentage", + number=536683137, + message="InterconnectAttachmentGroupLogicalStructureRegionMetroFacility", + ) + metro: str = proto.Field( + proto.STRING, + number=103787801, + optional=True, ) -class InterconnectApplicationAwareInterconnectStrictPriorityPolicy(proto.Message): - r"""Specify configuration for StrictPriorityPolicy.""" - - -class InterconnectAttachment(proto.Message): - r"""Represents an Interconnect Attachment (VLAN) resource. You - can use Interconnect attachments (VLANS) to connect your Virtual - Private Cloud networks to your on-premises networks through an - Interconnect. For more information, read Creating VLAN - Attachments. +class InterconnectAttachmentGroupLogicalStructureRegionMetroFacility(proto.Message): + r"""[Output Only] The facilities used for this group's Attachments' + Interconnects. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - admin_enabled (bool): - Determines whether this Attachment will carry packets. Not - present for PARTNER_PROVIDER. - - This field is a member of `oneof`_ ``_admin_enabled``. - attachment_group (str): - [Output Only] URL of the AttachmentGroup that includes this - Attachment. + facility (str): + Output only. [Output Only] The name of a facility, like + "iad-1234". - This field is a member of `oneof`_ ``_attachment_group``. - bandwidth (str): - Provisioned bandwidth capacity for the interconnect - attachment. For attachments of type DEDICATED, the user can - set the bandwidth. For attachments of type PARTNER, the - Google Partner that is operating the interconnect must set - the bandwidth. Output only for PARTNER type, mutable for - PARTNER_PROVIDER and DEDICATED, and can take one of the - following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 - Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 - Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 - Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: - 100 Gbit/s Check the Bandwidth enum for the list of possible - values. + This field is a member of `oneof`_ ``_facility``. + zones (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone]): - This field is a member of `oneof`_ ``_bandwidth``. - candidate_ipv6_subnets (MutableSequence[str]): - This field is not available. - candidate_subnets (MutableSequence[str]): - Input only. Up to 16 candidate prefixes that - can be used to restrict the allocation of - cloudRouterIpAddress and customerRouterIpAddress - for this attachment. All prefixes must be within - link-local address space (169.254.0.0/16) and - must be /29 or shorter (/28, /27, etc). Google - will attempt to select an unused /29 from the - supplied candidate prefix(es). The request will - fail if all possible /29s are in use on Google's - edge. If not supplied, Google will randomly - select an unused /29 from all of link-local - space. - cloud_router_ip_address (str): - [Output Only] IPv4 address + prefix length to be configured - on Cloud Router Interface for this interconnect attachment. + """ - This field is a member of `oneof`_ ``_cloud_router_ip_address``. - cloud_router_ipv6_address (str): - [Output Only] IPv6 address + prefix length to be configured - on Cloud Router Interface for this interconnect attachment. + facility: str = proto.Field( + proto.STRING, + number=501116579, + optional=True, + ) + zones: MutableSequence[ + "InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone" + ] = proto.RepeatedField( + proto.MESSAGE, + number=116085319, + message="InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone", + ) - This field is a member of `oneof`_ ``_cloud_router_ipv6_address``. - cloud_router_ipv6_interface_id (str): - This field is not available. - This field is a member of `oneof`_ ``_cloud_router_ipv6_interface_id``. - configuration_constraints (google.cloud.compute_v1.types.InterconnectAttachmentConfigurationConstraints): - [Output Only] Constraints for this attachment, if any. The - attachment does not work if these constraints are not met. +class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone(proto.Message): + r"""[Output Only] The zones that Attachments in this group are present + in, in the given facilities. This is inherited from their + Interconnects. - This field is a member of `oneof`_ ``_configuration_constraints``. - creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. - This field is a member of `oneof`_ ``_creation_timestamp``. - customer_router_ip_address (str): - [Output Only] IPv4 address + prefix length to be configured - on the customer router subinterface for this interconnect - attachment. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_customer_router_ip_address``. - customer_router_ipv6_address (str): - [Output Only] IPv6 address + prefix length to be configured - on the customer router subinterface for this interconnect - attachment. + Attributes: + attachments (MutableSequence[str]): + Output only. [Output Only] URLs of Attachments in the given + zone, to the given region, on Interconnects in the given + facility and metro. Every Attachment in the AG has such an + entry. + zone (str): + Output only. [Output Only] The name of a zone, either + "zone1" or "zone2". - This field is a member of `oneof`_ ``_customer_router_ipv6_address``. - customer_router_ipv6_interface_id (str): - This field is not available. + This field is a member of `oneof`_ ``_zone``. + """ - This field is a member of `oneof`_ ``_customer_router_ipv6_interface_id``. - dataplane_version (int): - [Output Only] Dataplane version for this - InterconnectAttachment. This field is only present for - Dataplane version 2 and higher. Absence of this field in the - API output indicates that the Dataplane is version 1. + attachments: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=334744496, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + optional=True, + ) - This field is a member of `oneof`_ ``_dataplane_version``. - description (str): - An optional description of this resource. - This field is a member of `oneof`_ ``_description``. - edge_availability_domain (str): - Input only. Desired availability domain for the attachment. - Only available for type PARTNER, at creation time, and can - take one of the following values: - AVAILABILITY_DOMAIN_ANY - - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved - reliability, customers should configure a pair of - attachments, one per availability domain. The selected - availability domain will be provided to the Partner via the - pairing key, so that the provisioned circuit will lie in the - specified domain. If not specified, the value will default - to AVAILABILITY_DOMAIN_ANY. Check the EdgeAvailabilityDomain - enum for the list of possible values. +class InterconnectAttachmentGroupsGetOperationalStatusResponse(proto.Message): + r"""Response for the + InterconnectAttachmentGroupsGetOperationalStatusResponse. - This field is a member of `oneof`_ ``_edge_availability_domain``. - encryption (str): - Indicates the user-supplied encryption option of this VLAN - attachment (interconnectAttachment). Can only be specified - at attachment creation for PARTNER or DEDICATED attachments. - Possible values are: - NONE - This is the default value, - which means that the VLAN attachment carries unencrypted - traffic. VMs are able to send traffic to, or receive traffic - from, such a VLAN attachment. - IPSEC - The VLAN attachment - carries only encrypted traffic that is encrypted by an IPsec - device, such as an HA VPN gateway or third-party IPsec VPN. - VMs cannot directly send traffic to, or receive traffic - from, such a VLAN attachment. To use *HA VPN over Cloud - Interconnect*, the VLAN attachment must be created with this - option. Check the Encryption enum for the list of possible - values. - This field is a member of `oneof`_ ``_encryption``. - google_reference_id (str): - [Output Only] Google reference ID, to be used when raising - support tickets with Google or otherwise to debug backend - connectivity issues. [Deprecated] This field is not used. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_google_reference_id``. - id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Attributes: + etag (str): - This field is a member of `oneof`_ ``_id``. - interconnect (str): - URL of the underlying Interconnect object - that this attachment's traffic will traverse - through. + This field is a member of `oneof`_ ``_etag``. + result (google.cloud.compute_v1.types.InterconnectAttachmentGroupsOperationalStatus): - This field is a member of `oneof`_ ``_interconnect``. - ipsec_internal_addresses (MutableSequence[str]): - A list of URLs of addresses that have been - reserved for the VLAN attachment. Used only for - the VLAN attachment that has the encryption - option as IPSEC. The addresses must be regional - internal IP address ranges. When creating an HA - VPN gateway over the VLAN attachment, if the - attachment is configured to use a regional - internal IP address, then the VPN gateway's IP - address is allocated from the IP address range - specified here. For example, if the HA VPN - gateway's interface 0 is paired to this VLAN - attachment, then a regional internal IP address - for the VPN gateway interface 0 will be - allocated from the IP address specified for this - VLAN attachment. If this field is not specified - when creating the VLAN attachment, then later on - when creating an HA VPN gateway on this VLAN - attachment, the HA VPN gateway's IP address is - allocated from the regional external IP address - pool. - kind (str): - [Output Only] Type of the resource. Always - compute#interconnectAttachment for interconnect attachments. + This field is a member of `oneof`_ ``_result``. + """ - This field is a member of `oneof`_ ``_kind``. - label_fingerprint (str): - A fingerprint for the labels being applied to - this InterconnectAttachment, which is - essentially a hash of the labels set used for - optimistic locking. The fingerprint is initially - generated by Compute Engine and changes after - every request to modify or update labels. You - must always provide an up-to-date fingerprint - hash in order to update or change labels, - otherwise the request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve an - InterconnectAttachment. + etag: str = proto.Field( + proto.STRING, + number=3123477, + optional=True, + ) + result: "InterconnectAttachmentGroupsOperationalStatus" = proto.Field( + proto.MESSAGE, + number=139315229, + optional=True, + message="InterconnectAttachmentGroupsOperationalStatus", + ) - This field is a member of `oneof`_ ``_label_fingerprint``. - labels (MutableMapping[str, str]): - Labels for this resource. These can only be - added or modified by the setLabels method. Each - label key/value pair must comply with RFC1035. - Label values may be empty. - mtu (int): - Maximum Transmission Unit (MTU), in bytes, of - packets passing through this interconnect - attachment. Valid values are 1440, 1460, 1500, - and 8896. If not specified, the value will - default to 1440. - This field is a member of `oneof`_ ``_mtu``. - name (str): - Name of the resource. Provided by the client when the - resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 - characters long and match the regular expression - ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first - character must be a lowercase letter, and all following - characters must be a dash, lowercase letter, or digit, - except the last character, which cannot be a dash. +class InterconnectAttachmentGroupsListResponse(proto.Message): + r""" - This field is a member of `oneof`_ ``_name``. - operational_status (str): - [Output Only] The current status of whether or not this - interconnect attachment is functional, which can take one of - the following values: - OS_ACTIVE: The attachment has been - turned up and is ready to use. - OS_UNPROVISIONED: The - attachment is not ready to use yet, because turnup is not - complete. Check the OperationalStatus enum for the list of - possible values. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_operational_status``. - pairing_key (str): - [Output only for type PARTNER. Input only for - PARTNER_PROVIDER. Not present for DEDICATED]. The opaque - identifier of a PARTNER attachment used to initiate - provisioning with a selected partner. Of the form - "XXXXX/region/domain". + Attributes: + etag (str): - This field is a member of `oneof`_ ``_pairing_key``. - partner_asn (int): - Optional BGP ASN for the router supplied by a Layer 3 - Partner if they configured BGP on behalf of the customer. - Output only for PARTNER type, input only for - PARTNER_PROVIDER, not available for DEDICATED. + This field is a member of `oneof`_ ``_etag``. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. - This field is a member of `oneof`_ ``_partner_asn``. - partner_metadata (google.cloud.compute_v1.types.InterconnectAttachmentPartnerMetadata): - Informational metadata about Partner attachments from - Partners to display to customers. Output only for PARTNER - type, mutable for PARTNER_PROVIDER, not available for - DEDICATED. + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroup]): + A list of InterconnectAttachmentGroup + resources. + kind (str): - This field is a member of `oneof`_ ``_partner_metadata``. - private_interconnect_info (google.cloud.compute_v1.types.InterconnectAttachmentPrivateInfo): - [Output Only] Information specific to an - InterconnectAttachment. This property is populated if the - interconnect that this is attached to is of type DEDICATED. + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. - This field is a member of `oneof`_ ``_private_interconnect_info``. - region (str): - [Output Only] URL of the region where the regional - interconnect attachment resides. You must specify this field - as part of the HTTP request URL. It is not settable as a - field in the request body. + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + [Output Only] Server-defined URL for this resource. - This field is a member of `oneof`_ ``_region``. - remote_service (str): - [Output Only] If the attachment is on a Cross-Cloud - Interconnect connection, this field contains the - interconnect's remote location service provider. Example - values: "Amazon Web Services" "Microsoft Azure". The field - is set only for attachments on Cross-Cloud Interconnect - connections. Its value is copied from the - InterconnectRemoteLocation remoteService field. + This field is a member of `oneof`_ ``_self_link``. + unreachables (MutableSequence[str]): + Output only. [Output Only] Unreachable resources. + end_interface: MixerListResponseWithEtagBuilder + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. - This field is a member of `oneof`_ ``_remote_service``. - router (str): - URL of the Cloud Router to be used for - dynamic routing. This router must be in the same - region as this InterconnectAttachment. The - InterconnectAttachment will automatically - connect the Interconnect to the network & region - within which the Cloud Router is configured. + This field is a member of `oneof`_ ``_warning``. + """ - This field is a member of `oneof`_ ``_router``. - satisfies_pzs (bool): - [Output Only] Reserved for future use. + @property + def raw_page(self): + return self - This field is a member of `oneof`_ ``_satisfies_pzs``. - self_link (str): - [Output Only] Server-defined URL for the resource. + etag: str = proto.Field( + proto.STRING, + number=3123477, + optional=True, + ) + id: str = proto.Field( + proto.STRING, + number=3355, + optional=True, + ) + items: MutableSequence["InterconnectAttachmentGroup"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="InterconnectAttachmentGroup", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + unreachables: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=243372063, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) - This field is a member of `oneof`_ ``_self_link``. - stack_type (str): - The stack type for this interconnect attachment to identify - whether the IPv6 feature is enabled or not. If not - specified, IPV4_ONLY will be used. This field can be both - set at interconnect attachments creation and update - interconnect attachment operations. Check the StackType enum - for the list of possible values. - This field is a member of `oneof`_ ``_stack_type``. - state (str): - [Output Only] The current state of this attachment's - functionality. Enum values ACTIVE and UNPROVISIONED are - shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER - interconnect attachments, while enum values PENDING_PARTNER, - PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for - only PARTNER and PARTNER_PROVIDER interconnect attachments. - This state can take one of the following values: - ACTIVE: - The attachment has been turned up and is ready to use. - - UNPROVISIONED: The attachment is not ready to use yet, - because turnup is not complete. - PENDING_PARTNER: A - newly-created PARTNER attachment that has not yet been - configured on the Partner side. - PARTNER_REQUEST_RECEIVED: - A PARTNER attachment is in the process of provisioning after - a PARTNER_PROVIDER attachment was created that references - it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER - attachment that is waiting for a customer to activate it. - - DEFUNCT: The attachment was deleted externally and is no - longer functional. This could be because the associated - Interconnect was removed, or because the other side of a - Partner attachment was deleted. Check the State enum for the - list of possible values. +class InterconnectAttachmentGroupsOperationalStatus(proto.Message): + r""" - This field is a member of `oneof`_ ``_state``. - subnet_length (int): - Input only. Length of the IPv4 subnet mask. - Allowed values: - 29 (default) - 30 The default - value is 29, except for Cross-Cloud Interconnect - connections that use an - InterconnectRemoteLocation with a - constraints.subnetLengthRange.min equal to 30. - For example, connections that use an Azure - remote location fall into this category. In - these cases, the default value is 30, and - requesting 29 returns an error. Where both 29 - and 30 are allowed, 29 is preferred, because it - gives Google Cloud Support more debugging - visibility. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - This field is a member of `oneof`_ ``_subnet_length``. - type_ (str): - The type of interconnect attachment this is, which can take - one of the following values: - DEDICATED: an attachment to a - Dedicated Interconnect. - PARTNER: an attachment to a - Partner Interconnect, created by the customer. - - PARTNER_PROVIDER: an attachment to a Partner Interconnect, - created by the partner. Check the Type enum for the list of - possible values. + Attributes: + attachment_statuses (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupsOperationalStatusAttachmentStatus]): - This field is a member of `oneof`_ ``_type``. - vlan_tag8021q (int): - The IEEE 802.1Q VLAN tag for this attachment, - in the range 2-4093. Only specified at creation - time. + configured (google.cloud.compute_v1.types.InterconnectAttachmentGroupConfigured): - This field is a member of `oneof`_ ``_vlan_tag8021q``. - """ + This field is a member of `oneof`_ ``_configured``. + group_status (str): + Output only. Summarizes the status of the + group. Check the GroupStatus enum for the list + of possible values. - class Bandwidth(proto.Enum): - r"""Provisioned bandwidth capacity for the interconnect attachment. For - attachments of type DEDICATED, the user can set the bandwidth. For - attachments of type PARTNER, the Google Partner that is operating - the interconnect must set the bandwidth. Output only for PARTNER - type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one - of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s + This field is a member of `oneof`_ ``_group_status``. + intent (google.cloud.compute_v1.types.InterconnectAttachmentGroupIntent): - Values: - UNDEFINED_BANDWIDTH (0): - A value indicating that the enum field is not - set. - BPS_100G (49547952): - 100 Gbit/s - BPS_100M (49547958): - 100 Mbit/s - BPS_10G (278693006): - 10 Gbit/s - BPS_1G (355358448): - 1 Gbit/s - BPS_200M (49577749): - 200 Mbit/s - BPS_20G (278693967): - 20 Gbit/s - BPS_2G (355358479): - 2 Gbit/s - BPS_300M (49607540): - 300 Mbit/s - BPS_400M (49637331): - 400 Mbit/s - BPS_500M (49667122): - 500 Mbit/s - BPS_50G (278696850): - 50 Gbit/s - BPS_50M (278696856): - 50 Mbit/s - BPS_5G (355358572): - 5 Gbit/s - """ - UNDEFINED_BANDWIDTH = 0 - BPS_100G = 49547952 - BPS_100M = 49547958 - BPS_10G = 278693006 - BPS_1G = 355358448 - BPS_200M = 49577749 - BPS_20G = 278693967 - BPS_2G = 355358479 - BPS_300M = 49607540 - BPS_400M = 49637331 - BPS_500M = 49667122 - BPS_50G = 278696850 - BPS_50M = 278696856 - BPS_5G = 355358572 + This field is a member of `oneof`_ ``_intent``. + operational (google.cloud.compute_v1.types.InterconnectAttachmentGroupConfigured): + Output only. The operational state of the + group, including only active Attachments. - class EdgeAvailabilityDomain(proto.Enum): - r"""Input only. Desired availability domain for the attachment. Only - available for type PARTNER, at creation time, and can take one of - the following values: - AVAILABILITY_DOMAIN_ANY - - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved - reliability, customers should configure a pair of attachments, one - per availability domain. The selected availability domain will be - provided to the Partner via the pairing key, so that the provisioned - circuit will lie in the specified domain. If not specified, the - value will default to AVAILABILITY_DOMAIN_ANY. + This field is a member of `oneof`_ ``_operational``. + """ + + class GroupStatus(proto.Enum): + r"""Output only. Summarizes the status of the group. Values: - UNDEFINED_EDGE_AVAILABILITY_DOMAIN (0): + UNDEFINED_GROUP_STATUS (0): A value indicating that the enum field is not set. - AVAILABILITY_DOMAIN_1 (349552090): + DEGRADED (396890926): No description available. - AVAILABILITY_DOMAIN_2 (349552091): + FULLY_DOWN (255514647): No description available. - AVAILABILITY_DOMAIN_ANY (375256373): + FULLY_UP (504176464): + No description available. + UNSPECIFIED (526786327): No description available. """ - UNDEFINED_EDGE_AVAILABILITY_DOMAIN = 0 - AVAILABILITY_DOMAIN_1 = 349552090 - AVAILABILITY_DOMAIN_2 = 349552091 - AVAILABILITY_DOMAIN_ANY = 375256373 + UNDEFINED_GROUP_STATUS = 0 + DEGRADED = 396890926 + FULLY_DOWN = 255514647 + FULLY_UP = 504176464 + UNSPECIFIED = 526786327 - class Encryption(proto.Enum): - r"""Indicates the user-supplied encryption option of this VLAN - attachment (interconnectAttachment). Can only be specified at - attachment creation for PARTNER or DEDICATED attachments. Possible - values are: - NONE - This is the default value, which means that the - VLAN attachment carries unencrypted traffic. VMs are able to send - traffic to, or receive traffic from, such a VLAN attachment. - IPSEC - - The VLAN attachment carries only encrypted traffic that is - encrypted by an IPsec device, such as an HA VPN gateway or - third-party IPsec VPN. VMs cannot directly send traffic to, or - receive traffic from, such a VLAN attachment. To use *HA VPN over - Cloud Interconnect*, the VLAN attachment must be created with this - option. + attachment_statuses: MutableSequence[ + "InterconnectAttachmentGroupsOperationalStatusAttachmentStatus" + ] = proto.RepeatedField( + proto.MESSAGE, + number=491132860, + message="InterconnectAttachmentGroupsOperationalStatusAttachmentStatus", + ) + configured: "InterconnectAttachmentGroupConfigured" = proto.Field( + proto.MESSAGE, + number=295631422, + optional=True, + message="InterconnectAttachmentGroupConfigured", + ) + group_status: str = proto.Field( + proto.STRING, + number=338778546, + optional=True, + ) + intent: "InterconnectAttachmentGroupIntent" = proto.Field( + proto.MESSAGE, + number=426849948, + optional=True, + message="InterconnectAttachmentGroupIntent", + ) + operational: "InterconnectAttachmentGroupConfigured" = proto.Field( + proto.MESSAGE, + number=129704914, + optional=True, + message="InterconnectAttachmentGroupConfigured", + ) - Values: - UNDEFINED_ENCRYPTION (0): - A value indicating that the enum field is not - set. - IPSEC (69882282): - The interconnect attachment will carry only - encrypted traffic that is encrypted by an IPsec - device such as HA VPN gateway; VMs cannot - directly send traffic to or receive traffic from - such an interconnect attachment. To use HA VPN - over Cloud Interconnect, the interconnect - attachment must be created with this option. - NONE (2402104): - This is the default value, which means the - Interconnect Attachment will carry unencrypted - traffic. VMs will be able to send traffic to or - receive traffic from such interconnect - attachment. - """ - UNDEFINED_ENCRYPTION = 0 - IPSEC = 69882282 - NONE = 2402104 - class OperationalStatus(proto.Enum): - r"""[Output Only] The current status of whether or not this interconnect - attachment is functional, which can take one of the following - values: - OS_ACTIVE: The attachment has been turned up and is ready - to use. - OS_UNPROVISIONED: The attachment is not ready to use yet, - because turnup is not complete. +class InterconnectAttachmentGroupsOperationalStatusAttachmentStatus(proto.Message): + r"""The status of one Attachment in the group. List order is + arbitrary. - Values: - UNDEFINED_OPERATIONAL_STATUS (0): - A value indicating that the enum field is not - set. - OS_ACTIVE (55721409): - Indicates that attachment has been turned up - and is ready to use. - OS_UNPROVISIONED (239771840): - Indicates that attachment is not ready to use - yet, because turnup is not complete. - """ - UNDEFINED_OPERATIONAL_STATUS = 0 - OS_ACTIVE = 55721409 - OS_UNPROVISIONED = 239771840 - class StackType(proto.Enum): - r"""The stack type for this interconnect attachment to identify whether - the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will - be used. This field can be both set at interconnect attachments - creation and update interconnect attachment operations. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + admin_enabled (bool): + Output only. Whether this Attachment is + enabled. This becomes false when the customer + drains their Attachment. + + This field is a member of `oneof`_ ``_admin_enabled``. + attachment (str): + Output only. The URL of the Attachment being + described. + + This field is a member of `oneof`_ ``_attachment``. + is_active (str): + Output only. Whether this Attachment is participating in the + redundant configuration. This will be ACTIVE if and only if + the status below is CONNECTION_UP. Any INACTIVE Attachments + are excluded from the analysis that generates + operational.availabilitySLA. Check the IsActive enum for the + list of possible values. + + This field is a member of `oneof`_ ``_is_active``. + status (str): + Output only. Whether this Attachment is + active, and if so, whether BGP is up. Check the + Status enum for the list of possible values. + + This field is a member of `oneof`_ ``_status``. + """ + + class IsActive(proto.Enum): + r"""Output only. Whether this Attachment is participating in the + redundant configuration. This will be ACTIVE if and only if the + status below is CONNECTION_UP. Any INACTIVE Attachments are excluded + from the analysis that generates operational.availabilitySLA. Values: - UNDEFINED_STACK_TYPE (0): + UNDEFINED_IS_ACTIVE (0): A value indicating that the enum field is not set. - IPV4_IPV6 (22197249): - The interconnect attachment can have both - IPv4 and IPv6 addresses. - IPV4_ONLY (22373798): - The interconnect attachment will only be - assigned IPv4 addresses. + ACTIVE (314733318): + No description available. + INACTIVE (270421099): + No description available. + UNSPECIFIED (526786327): + No description available. """ - UNDEFINED_STACK_TYPE = 0 - IPV4_IPV6 = 22197249 - IPV4_ONLY = 22373798 + UNDEFINED_IS_ACTIVE = 0 + ACTIVE = 314733318 + INACTIVE = 270421099 + UNSPECIFIED = 526786327 - class State(proto.Enum): - r"""[Output Only] The current state of this attachment's functionality. - Enum values ACTIVE and UNPROVISIONED are shared by - DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect - attachments, while enum values PENDING_PARTNER, - PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only - PARTNER and PARTNER_PROVIDER interconnect attachments. This state - can take one of the following values: - ACTIVE: The attachment has - been turned up and is ready to use. - UNPROVISIONED: The attachment - is not ready to use yet, because turnup is not complete. - - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet - been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A - PARTNER attachment is in the process of provisioning after a - PARTNER_PROVIDER attachment was created that references it. - - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is - waiting for a customer to activate it. - DEFUNCT: The attachment was - deleted externally and is no longer functional. This could be - because the associated Interconnect was removed, or because the - other side of a Partner attachment was deleted. + class Status(proto.Enum): + r"""Output only. Whether this Attachment is active, and if so, + whether BGP is up. Values: - UNDEFINED_STATE (0): + UNDEFINED_STATUS (0): A value indicating that the enum field is not set. - ACTIVE (314733318): - Indicates that attachment has been turned up - and is ready to use. + ATTACHMENT_STATUS_UNKNOWN (472477561): + No description available. + CONNECTION_DISABLED (432687805): + No description available. + CONNECTION_DOWN (267552099): + No description available. + CONNECTION_UP (455585692): + No description available. DEFUNCT (115891759): - The attachment was deleted externally and is - no longer functional. This could be because the - associated Interconnect was wiped out, or - because the other side of a Partner attachment - was deleted. + No description available. + IPSEC_CONFIGURATION_NEEDED_STATUS (455203582): + No description available. + IPSEC_READY_TO_RESUME_FLOW_STATUS (384830596): + No description available. + IPV4_DOWN_IPV6_UP (277490992): + No description available. + IPV4_UP_IPV6_DOWN (316051248): + No description available. PARTNER_REQUEST_RECEIVED (513587304): - A PARTNER attachment is in the process of provisioning after - a PARTNER_PROVIDER attachment was created that references - it. + No description available. PENDING_CUSTOMER (167494054): - PARTNER or PARTNER_PROVIDER attachment that is waiting for - the customer to activate. + No description available. PENDING_PARTNER (387890656): - A newly created PARTNER attachment that has - not yet been configured on the Partner side. - STATE_UNSPECIFIED (470755401): + No description available. + PROVISIONED (355751956): + No description available. + ROUTER_CONFIGURATION_BROKEN (150505108): No description available. UNPROVISIONED (517333979): - Indicates that attachment is not ready to use - yet, because turnup is not complete. + No description available. """ - UNDEFINED_STATE = 0 - ACTIVE = 314733318 + UNDEFINED_STATUS = 0 + ATTACHMENT_STATUS_UNKNOWN = 472477561 + CONNECTION_DISABLED = 432687805 + CONNECTION_DOWN = 267552099 + CONNECTION_UP = 455585692 DEFUNCT = 115891759 + IPSEC_CONFIGURATION_NEEDED_STATUS = 455203582 + IPSEC_READY_TO_RESUME_FLOW_STATUS = 384830596 + IPV4_DOWN_IPV6_UP = 277490992 + IPV4_UP_IPV6_DOWN = 316051248 PARTNER_REQUEST_RECEIVED = 513587304 PENDING_CUSTOMER = 167494054 PENDING_PARTNER = 387890656 - STATE_UNSPECIFIED = 470755401 + PROVISIONED = 355751956 + ROUTER_CONFIGURATION_BROKEN = 150505108 UNPROVISIONED = 517333979 - class Type(proto.Enum): - r"""The type of interconnect attachment this is, which can take one of - the following values: - DEDICATED: an attachment to a Dedicated - Interconnect. - PARTNER: an attachment to a Partner Interconnect, - created by the customer. - PARTNER_PROVIDER: an attachment to a - Partner Interconnect, created by the partner. - - Values: - UNDEFINED_TYPE (0): - A value indicating that the enum field is not - set. - DEDICATED (258411983): - Attachment to a dedicated interconnect. - PARTNER (461924520): - Attachment to a partner interconnect, created - by the customer. - PARTNER_PROVIDER (483261352): - Attachment to a partner interconnect, created - by the partner. - """ - UNDEFINED_TYPE = 0 - DEDICATED = 258411983 - PARTNER = 461924520 - PARTNER_PROVIDER = 483261352 - admin_enabled: bool = proto.Field( proto.BOOL, number=445675089, optional=True, ) - attachment_group: str = proto.Field( + attachment: str = proto.Field( proto.STRING, - number=63442019, + number=183982371, optional=True, ) - bandwidth: str = proto.Field( + is_active: str = proto.Field( proto.STRING, - number=181715121, + number=114830267, optional=True, ) - candidate_ipv6_subnets: MutableSequence[str] = proto.RepeatedField( + status: str = proto.Field( proto.STRING, - number=70682522, + number=181260274, + optional=True, ) - candidate_subnets: MutableSequence[str] = proto.RepeatedField( + + +class InterconnectAttachmentL2Forwarding(proto.Message): + r"""L2 Interconnect Attachment related configuration. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + appliance_mappings (MutableMapping[str, google.cloud.compute_v1.types.InterconnectAttachmentL2ForwardingApplianceMapping]): + Optional. A map of VLAN tags to appliances + and optional inner mapping rules. If VLANs are + not explicitly mapped to any appliance, the + defaultApplianceIpAddress is used. + + Each VLAN tag can be a single number or a range + of numbers in the range of 1 to 4094, e.g., "1" + or "4001-4094". Non-empty and non-overlapping + VLAN tag ranges are enforced, and violating + operations will be rejected. + + The VLAN tags in the Ethernet header must use an + ethertype value of 0x88A8 or 0x8100. + default_appliance_ip_address (str): + Optional. A single IPv4 or IPv6 address used + as the default destination IP when there is no + VLAN mapping result found. + + Unset field (null-value) indicates the unmatched + packet should be dropped. + + This field is a member of `oneof`_ ``_default_appliance_ip_address``. + geneve_header (google.cloud.compute_v1.types.InterconnectAttachmentL2ForwardingGeneveHeader): + Optional. It represents the structure of a + Geneve (Generic Network Virtualization + Encapsulation) header, as defined in RFC8926. It + encapsulates packets from various protocols + (e.g., Ethernet, IPv4, IPv6) for use in network + virtualization environments. + + This field is a member of `oneof`_ ``_geneve_header``. + network (str): + Required. Resource URL of the network to + which this attachment belongs. + + This field is a member of `oneof`_ ``_network``. + tunnel_endpoint_ip_address (str): + Required. A single IPv4 or IPv6 address. This + address will be used as the source IP address + for packets sent to the appliances, and must be + used as the destination IP address for packets + that should be sent out through this attachment. + + This field is a member of `oneof`_ ``_tunnel_endpoint_ip_address``. + """ + + appliance_mappings: MutableMapping[ + str, "InterconnectAttachmentL2ForwardingApplianceMapping" + ] = proto.MapField( proto.STRING, - number=237842938, + proto.MESSAGE, + number=374529975, + message="InterconnectAttachmentL2ForwardingApplianceMapping", ) - cloud_router_ip_address: str = proto.Field( + default_appliance_ip_address: str = proto.Field( proto.STRING, - number=287392776, + number=536490476, optional=True, ) - cloud_router_ipv6_address: str = proto.Field( + geneve_header: "InterconnectAttachmentL2ForwardingGeneveHeader" = proto.Field( + proto.MESSAGE, + number=118688424, + optional=True, + message="InterconnectAttachmentL2ForwardingGeneveHeader", + ) + network: str = proto.Field( proto.STRING, - number=451922376, + number=232872494, optional=True, ) - cloud_router_ipv6_interface_id: str = proto.Field( + tunnel_endpoint_ip_address: str = proto.Field( proto.STRING, - number=521282701, + number=468740975, optional=True, ) - configuration_constraints: "InterconnectAttachmentConfigurationConstraints" = ( - proto.Field( - proto.MESSAGE, - number=179681389, - optional=True, - message="InterconnectAttachmentConfigurationConstraints", - ) + + +class InterconnectAttachmentL2ForwardingApplianceMapping(proto.Message): + r"""Two-level VLAN-to-Appliance mapping rule. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + appliance_ip_address (str): + Optional. A single IPv4 or IPv6 address used + as the destination IP address for ingress + packets that match on a VLAN tag, but do not + match a more specific inner VLAN tag. + + Unset field (null-value) indicates both VLAN + tags are required to be mapped. Otherwise, + defaultApplianceIpAddress is used. + + This field is a member of `oneof`_ ``_appliance_ip_address``. + inner_vlan_to_appliance_mappings (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping]): + Optional. Used to match against the inner + VLAN when the packet contains two VLAN tags. + + A list of mapping rules from inner VLAN tags to + IP addresses. If the inner VLAN is not + explicitly mapped to an IP address range, the + applianceIpAddress is used. + name (str): + Optional. The name of this appliance mapping + rule. + + This field is a member of `oneof`_ ``_name``. + """ + + appliance_ip_address: str = proto.Field( + proto.STRING, + number=57985710, + optional=True, ) - creation_timestamp: str = proto.Field( + inner_vlan_to_appliance_mappings: MutableSequence[ + "InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping" + ] = proto.RepeatedField( + proto.MESSAGE, + number=97387944, + message="InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping", + ) + name: str = proto.Field( proto.STRING, - number=30525366, + number=3373707, optional=True, ) - customer_router_ip_address: str = proto.Field( + + +class InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping( + proto.Message +): + r"""The inner VLAN-to-Appliance mapping. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + inner_appliance_ip_address (str): + Required in this object. A single IPv4 or + IPv6 address used as the destination IP address + for ingress packets that match on both VLAN + tags. + + This field is a member of `oneof`_ ``_inner_appliance_ip_address``. + inner_vlan_tags (MutableSequence[str]): + Required in this object. Used to match the inner VLAN tag on + the packet. Each entry can be a single number or a range of + numbers in the range of 1 to 4094, e.g., ["1", "4001-4094"] + is valid. Non-empty and Non-overlapping VLAN tag ranges are + enforced, and violating operations will be rejected. + + The inner VLAN tags must have an ethertype value of 0x8100. + """ + + inner_appliance_ip_address: str = proto.Field( proto.STRING, - number=332475761, + number=350619895, optional=True, ) - customer_router_ipv6_address: str = proto.Field( + inner_vlan_tags: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=290127089, + number=431186636, + ) + + +class InterconnectAttachmentL2ForwardingGeneveHeader(proto.Message): + r"""GeneveHeader related configurations. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + vni (int): + Optional. VNI is a 24-bit unique virtual + network identifier, from 0 to 16,777,215. + + This field is a member of `oneof`_ ``_vni``. + """ + + vni: int = proto.Field( + proto.UINT32, + number=116913, optional=True, ) - customer_router_ipv6_interface_id: str = proto.Field( + + +class InterconnectAttachmentList(proto.Message): + r"""Response to the list request, and contains a list of + interconnect attachments. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. + + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachment]): + A list of InterconnectAttachment resources. + kind (str): + Output only. [Output Only] Type of resource. + Alwayscompute#interconnectAttachmentList for lists of + interconnect attachments. + + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. + + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. + """ + + @property + def raw_page(self): + return self + + id: str = proto.Field( proto.STRING, - number=380994308, + number=3355, optional=True, ) - dataplane_version: int = proto.Field( - proto.INT32, - number=34920075, + items: MutableSequence["InterconnectAttachment"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="InterconnectAttachment", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, optional=True, ) - description: str = proto.Field( + next_page_token: str = proto.Field( proto.STRING, - number=422937596, + number=79797525, optional=True, ) - edge_availability_domain: str = proto.Field( + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + +class InterconnectAttachmentParams(proto.Message): + r"""Additional interconnect attachment parameters. + + Attributes: + resource_manager_tags (MutableMapping[str, str]): + Tag keys/values directly bound to this resource. Tag keys + and values have the same definition as resource manager + tags. The field is allowed for INSERT only. The keys/values + to set on the resource should be specified in either ID { : + } or Namespaced format { : }. For example the following are + valid inputs: + + - {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + "tagValues/456"} + - {"123/environment" : "production", "345/abc" : "xyz"} + Note: + - Invalid combinations of ID & namespaced format is not + supported. For instance: {"123/environment" : + "tagValues/444"} is invalid. + - Inconsistent format is not supported. For instance: + {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is + invalid. + """ + + resource_manager_tags: MutableMapping[str, str] = proto.MapField( + proto.STRING, proto.STRING, - number=71289510, - optional=True, + number=377671164, ) - encryption: str = proto.Field( + + +class InterconnectAttachmentPartnerMetadata(proto.Message): + r"""Informational metadata about Partner attachments from Partners to + display to customers. These fields are propagated from + PARTNER_PROVIDER attachments to their corresponding PARTNER + attachments. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + interconnect_name (str): + Plain text name of the Interconnect this + attachment is connected to, as displayed in the + Partner's portal. For instance "Chicago 1". This + value may be validated to match approved Partner + values. + + This field is a member of `oneof`_ ``_interconnect_name``. + partner_name (str): + Plain text name of the Partner providing this + attachment. This value may be validated to match + approved Partner values. + + This field is a member of `oneof`_ ``_partner_name``. + portal_url (str): + URL of the Partner's portal for this + Attachment. Partners may customise this to be a + deep link to the specific resource on the + Partner portal. This value may be validated to + match approved Partner values. + + This field is a member of `oneof`_ ``_portal_url``. + """ + + interconnect_name: str = proto.Field( proto.STRING, - number=97980291, + number=514963356, optional=True, ) - google_reference_id: str = proto.Field( + partner_name: str = proto.Field( proto.STRING, - number=534944469, + number=161747874, optional=True, ) - id: int = proto.Field( - proto.UINT64, - number=3355, + portal_url: str = proto.Field( + proto.STRING, + number=269182748, optional=True, ) - interconnect: str = proto.Field( - proto.STRING, - number=224601230, + + +class InterconnectAttachmentPrivateInfo(proto.Message): + r"""Information for an interconnect attachment when this belongs + to an interconnect of type DEDICATED. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + tag8021q (int): + [Output Only] 802.1q encapsulation tag to be used for + traffic between Google and the customer, going to and from + this network and region. + + This field is a member of `oneof`_ ``_tag8021q``. + """ + + tag8021q: int = proto.Field( + proto.UINT32, + number=271820992, optional=True, ) - ipsec_internal_addresses: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=407648565, + + +class InterconnectAttachmentsScopedList(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + interconnect_attachments (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachment]): + A list of interconnect attachments contained + in this scope. + warning (google.cloud.compute_v1.types.Warning): + Informational warning which replaces the list + of addresses when the list is empty. + + This field is a member of `oneof`_ ``_warning``. + """ + + interconnect_attachments: MutableSequence[ + "InterconnectAttachment" + ] = proto.RepeatedField( + proto.MESSAGE, + number=425388415, + message="InterconnectAttachment", ) - kind: str = proto.Field( - proto.STRING, - number=3292052, + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, optional=True, + message="Warning", ) - label_fingerprint: str = proto.Field( + + +class InterconnectCircuitInfo(proto.Message): + r"""Describes a single physical circuit between the Customer and + Google. CircuitInfo objects are created by Google, so all fields + are output only. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + customer_demarc_id (str): + Customer-side demarc ID for this circuit. + + This field is a member of `oneof`_ ``_customer_demarc_id``. + google_circuit_id (str): + Google-assigned unique ID for this circuit. + Assigned at circuit turn-up. + + This field is a member of `oneof`_ ``_google_circuit_id``. + google_demarc_id (str): + Google-side demarc ID for this circuit. + Assigned at circuit turn-up and provided by + Google to the customer in the LOA. + + This field is a member of `oneof`_ ``_google_demarc_id``. + """ + + customer_demarc_id: str = proto.Field( proto.STRING, - number=178124825, + number=28771859, optional=True, ) - labels: MutableMapping[str, str] = proto.MapField( - proto.STRING, + google_circuit_id: str = proto.Field( proto.STRING, - number=500195327, - ) - mtu: int = proto.Field( - proto.INT32, - number=108462, + number=262014711, optional=True, ) - name: str = proto.Field( + google_demarc_id: str = proto.Field( proto.STRING, - number=3373707, + number=448196270, optional=True, ) - operational_status: str = proto.Field( - proto.STRING, - number=201070847, - optional=True, + + +class InterconnectDiagnostics(proto.Message): + r"""Diagnostics information about the Interconnect connection, + which contains detailed and current technical information about + Google's side of the connection. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + arp_caches (MutableSequence[google.cloud.compute_v1.types.InterconnectDiagnosticsARPEntry]): + A list of InterconnectDiagnostics.ARPEntry + objects, describing individual neighbors + currently seen by the Google router in the ARP + cache for the Interconnect. + This will be empty when the Interconnect is not + bundled. + bundle_aggregation_type (str): + The aggregation type of the bundle interface. + Check the BundleAggregationType enum for the + list of possible values. + + This field is a member of `oneof`_ ``_bundle_aggregation_type``. + bundle_operational_status (str): + The operational status of the bundle + interface. Check the BundleOperationalStatus + enum for the list of possible values. + + This field is a member of `oneof`_ ``_bundle_operational_status``. + links (MutableSequence[google.cloud.compute_v1.types.InterconnectDiagnosticsLinkStatus]): + A list of InterconnectDiagnostics.LinkStatus + objects, describing the status for each link on + the Interconnect. + mac_address (str): + The MAC address of the Interconnect's bundle + interface. + + This field is a member of `oneof`_ ``_mac_address``. + """ + + class BundleAggregationType(proto.Enum): + r"""The aggregation type of the bundle interface. + + Values: + UNDEFINED_BUNDLE_AGGREGATION_TYPE (0): + A value indicating that the enum field is not + set. + BUNDLE_AGGREGATION_TYPE_LACP (27758925): + LACP is enabled. + BUNDLE_AGGREGATION_TYPE_STATIC (50678873): + LACP is disabled. + """ + UNDEFINED_BUNDLE_AGGREGATION_TYPE = 0 + BUNDLE_AGGREGATION_TYPE_LACP = 27758925 + BUNDLE_AGGREGATION_TYPE_STATIC = 50678873 + + class BundleOperationalStatus(proto.Enum): + r"""The operational status of the bundle interface. + + Values: + UNDEFINED_BUNDLE_OPERATIONAL_STATUS (0): + A value indicating that the enum field is not + set. + BUNDLE_OPERATIONAL_STATUS_DOWN (453842693): + If bundleAggregationType is LACP: LACP is not + established and/or all links in the bundle have + DOWN operational status. If + bundleAggregationType is STATIC: one or more + links in the bundle has DOWN operational status. + BUNDLE_OPERATIONAL_STATUS_UP (161366462): + If bundleAggregationType is LACP: LACP is + established and at least one link in the bundle + has UP operational status. If + bundleAggregationType is STATIC: all links in + the bundle (typically just one) have UP + operational status. + """ + UNDEFINED_BUNDLE_OPERATIONAL_STATUS = 0 + BUNDLE_OPERATIONAL_STATUS_DOWN = 453842693 + BUNDLE_OPERATIONAL_STATUS_UP = 161366462 + + arp_caches: MutableSequence[ + "InterconnectDiagnosticsARPEntry" + ] = proto.RepeatedField( + proto.MESSAGE, + number=414591761, + message="InterconnectDiagnosticsARPEntry", ) - pairing_key: str = proto.Field( + bundle_aggregation_type: str = proto.Field( proto.STRING, - number=439695464, - optional=True, - ) - partner_asn: int = proto.Field( - proto.INT64, - number=438166149, + number=434939028, optional=True, ) - partner_metadata: "InterconnectAttachmentPartnerMetadata" = proto.Field( - proto.MESSAGE, - number=65908934, + bundle_operational_status: str = proto.Field( + proto.STRING, + number=106433500, optional=True, - message="InterconnectAttachmentPartnerMetadata", ) - private_interconnect_info: "InterconnectAttachmentPrivateInfo" = proto.Field( + links: MutableSequence["InterconnectDiagnosticsLinkStatus"] = proto.RepeatedField( proto.MESSAGE, - number=237270531, - optional=True, - message="InterconnectAttachmentPrivateInfo", + number=102977465, + message="InterconnectDiagnosticsLinkStatus", ) - region: str = proto.Field( + mac_address: str = proto.Field( proto.STRING, - number=138946292, + number=332540164, optional=True, ) - remote_service: str = proto.Field( + + +class InterconnectDiagnosticsARPEntry(proto.Message): + r"""Describing the ARP neighbor entries seen on this link + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + ip_address (str): + The IP address of this ARP neighbor. + + This field is a member of `oneof`_ ``_ip_address``. + mac_address (str): + The MAC address of this ARP neighbor. + + This field is a member of `oneof`_ ``_mac_address``. + """ + + ip_address: str = proto.Field( proto.STRING, - number=391954364, + number=406272220, optional=True, ) - router: str = proto.Field( + mac_address: str = proto.Field( proto.STRING, - number=148608841, - optional=True, - ) - satisfies_pzs: bool = proto.Field( - proto.BOOL, - number=480964267, + number=332540164, optional=True, ) - self_link: str = proto.Field( + + +class InterconnectDiagnosticsLinkLACPStatus(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + google_system_id (str): + System ID of the port on Google's side of the + LACP exchange. + + This field is a member of `oneof`_ ``_google_system_id``. + neighbor_system_id (str): + System ID of the port on the neighbor's side + of the LACP exchange. + + This field is a member of `oneof`_ ``_neighbor_system_id``. + state (str): + The state of a LACP link, which can take one + of the following values: + + - ACTIVE: The link is configured and active + within the bundle. + - DETACHED: The link is not configured within + the bundle. This means that the rest of the + object should be empty. Check the State enum + for the list of possible values. + + This field is a member of `oneof`_ ``_state``. + """ + + class State(proto.Enum): + r"""The state of a LACP link, which can take one of the following + values: + + - ACTIVE: The link is configured and active within the + bundle. + - DETACHED: The link is not configured within the bundle. + This means that the rest of the object should be empty. + + Values: + UNDEFINED_STATE (0): + A value indicating that the enum field is not + set. + ACTIVE (314733318): + The link is configured and active within the + bundle. + DETACHED (216562546): + The link is not configured within the bundle, + this means the rest of the object should be + empty. + """ + UNDEFINED_STATE = 0 + ACTIVE = 314733318 + DETACHED = 216562546 + + google_system_id: str = proto.Field( proto.STRING, - number=456214797, + number=91210405, optional=True, ) - stack_type: str = proto.Field( + neighbor_system_id: str = proto.Field( proto.STRING, - number=425908881, + number=343821342, optional=True, ) state: str = proto.Field( @@ -52900,229 +62066,261 @@ class Type(proto.Enum): number=109757585, optional=True, ) - subnet_length: int = proto.Field( - proto.INT32, - number=279831048, - optional=True, - ) - type_: str = proto.Field( + + +class InterconnectDiagnosticsLinkOpticalPower(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + state (str): + The status of the current value when compared to the warning + and alarm levels for the receiving or transmitting + transceiver. Possible states include: + + :: + + - OK: The value has not crossed a warning threshold. + - LOW_WARNING: The value has crossed below the low + warning threshold. + - HIGH_WARNING: The value has + crossed above the high warning threshold. + - LOW_ALARM: The value has crossed below the low alarm + threshold. + - HIGH_ALARM: The value has crossed above the high alarm + threshold. + + Check the State enum for the list of possible values. + + This field is a member of `oneof`_ ``_state``. + value (float): + Value of the current receiving or + transmitting optical power, read in dBm. Take a + known good optical value, give it a 10% margin + and trigger warnings relative to that value. In + general, a -7dBm warning and a -11dBm alarm are + good optical value estimates for most links. + + This field is a member of `oneof`_ ``_value``. + """ + + class State(proto.Enum): + r"""The status of the current value when compared to the warning and + alarm levels for the receiving or transmitting transceiver. Possible + states include: + + :: + + - OK: The value has not crossed a warning threshold. + - LOW_WARNING: The value has crossed below the low + warning threshold. + - HIGH_WARNING: The value has + crossed above the high warning threshold. + - LOW_ALARM: The value has crossed below the low alarm + threshold. + - HIGH_ALARM: The value has crossed above the high alarm + threshold. + + Values: + UNDEFINED_STATE (0): + A value indicating that the enum field is not + set. + HIGH_ALARM (305363284): + The value has crossed above the high alarm + threshold. + HIGH_WARNING (220984799): + The value of the current optical power has + crossed above the high warning threshold. + LOW_ALARM (316659046): + The value of the current optical power has + crossed below the low alarm threshold. + LOW_WARNING (338793841): + The value of the current optical power has + crossed below the low warning threshold. + OK (2524): + The value of the current optical power has + not crossed a warning threshold. + """ + UNDEFINED_STATE = 0 + HIGH_ALARM = 305363284 + HIGH_WARNING = 220984799 + LOW_ALARM = 316659046 + LOW_WARNING = 338793841 + OK = 2524 + + state: str = proto.Field( proto.STRING, - number=3575610, + number=109757585, optional=True, ) - vlan_tag8021q: int = proto.Field( - proto.INT32, - number=119927836, + value: float = proto.Field( + proto.FLOAT, + number=111972721, optional=True, ) -class InterconnectAttachmentAggregatedList(proto.Message): +class InterconnectDiagnosticsLinkStatus(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + arp_caches (MutableSequence[google.cloud.compute_v1.types.InterconnectDiagnosticsARPEntry]): + A list of InterconnectDiagnostics.ARPEntry + objects, describing the ARP neighbor entries + seen on this link. This will be empty if the + link is bundled + circuit_id (str): + The unique ID for this link assigned during + turn up by Google. - This field is a member of `oneof`_ ``_id``. - items (MutableMapping[str, google.cloud.compute_v1.types.InterconnectAttachmentsScopedList]): - A list of InterconnectAttachmentsScopedList - resources. - kind (str): - [Output Only] Type of resource. Always - compute#interconnectAttachmentAggregatedList for aggregated - lists of interconnect attachments. + This field is a member of `oneof`_ ``_circuit_id``. + google_demarc (str): + The Demarc address assigned by Google and + provided in the LoA. - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + This field is a member of `oneof`_ ``_google_demarc``. + lacp_status (google.cloud.compute_v1.types.InterconnectDiagnosticsLinkLACPStatus): - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. + This field is a member of `oneof`_ ``_lacp_status``. + macsec (google.cloud.compute_v1.types.InterconnectDiagnosticsMacsecStatus): + Describes the status of MACsec encryption on + this link. - This field is a member of `oneof`_ ``_self_link``. - unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + This field is a member of `oneof`_ ``_macsec``. + operational_status (str): + The operational status of the link. + Check the OperationalStatus enum for the list of + possible values. - This field is a member of `oneof`_ ``_warning``. + This field is a member of `oneof`_ ``_operational_status``. + receiving_optical_power (google.cloud.compute_v1.types.InterconnectDiagnosticsLinkOpticalPower): + An InterconnectDiagnostics.LinkOpticalPower + object, describing the current value and status + of the received light level. + + This field is a member of `oneof`_ ``_receiving_optical_power``. + transmitting_optical_power (google.cloud.compute_v1.types.InterconnectDiagnosticsLinkOpticalPower): + An InterconnectDiagnostics.LinkOpticalPower + object, describing the current value and status + of the transmitted light level. + + This field is a member of `oneof`_ ``_transmitting_optical_power``. """ - @property - def raw_page(self): - return self + class OperationalStatus(proto.Enum): + r"""The operational status of the link. + + Values: + UNDEFINED_OPERATIONAL_STATUS (0): + A value indicating that the enum field is not + set. + LINK_OPERATIONAL_STATUS_DOWN (281653885): + The interface is unable to communicate with + the remote end. + LINK_OPERATIONAL_STATUS_UP (305879862): + The interface has low level communication + with the remote end. + """ + UNDEFINED_OPERATIONAL_STATUS = 0 + LINK_OPERATIONAL_STATUS_DOWN = 281653885 + LINK_OPERATIONAL_STATUS_UP = 305879862 - id: str = proto.Field( - proto.STRING, - number=3355, - optional=True, - ) - items: MutableMapping[str, "InterconnectAttachmentsScopedList"] = proto.MapField( - proto.STRING, + arp_caches: MutableSequence[ + "InterconnectDiagnosticsARPEntry" + ] = proto.RepeatedField( proto.MESSAGE, - number=100526016, - message="InterconnectAttachmentsScopedList", + number=414591761, + message="InterconnectDiagnosticsARPEntry", ) - kind: str = proto.Field( + circuit_id: str = proto.Field( proto.STRING, - number=3292052, + number=225180977, optional=True, ) - next_page_token: str = proto.Field( + google_demarc: str = proto.Field( proto.STRING, - number=79797525, + number=51084, optional=True, ) - self_link: str = proto.Field( - proto.STRING, - number=456214797, + lacp_status: "InterconnectDiagnosticsLinkLACPStatus" = proto.Field( + proto.MESSAGE, + number=361210415, optional=True, + message="InterconnectDiagnosticsLinkLACPStatus", ) - unreachables: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=243372063, - ) - warning: "Warning" = proto.Field( + macsec: "InterconnectDiagnosticsMacsecStatus" = proto.Field( proto.MESSAGE, - number=50704284, + number=528867490, optional=True, - message="Warning", + message="InterconnectDiagnosticsMacsecStatus", ) - - -class InterconnectAttachmentConfigurationConstraints(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - bgp_md5 (str): - [Output Only] Whether the attachment's BGP session - requires/allows/disallows BGP MD5 authentication. This can - take one of the following values: MD5_OPTIONAL, - MD5_REQUIRED, MD5_UNSUPPORTED. For example, a Cross-Cloud - Interconnect connection to a remote cloud provider that - requires BGP MD5 authentication has the - interconnectRemoteLocation - attachment_configuration_constraints.bgp_md5 field set to - MD5_REQUIRED, and that property is propagated to the - attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an - error is returned if MD5 is requested. Check the BgpMd5 enum - for the list of possible values. - - This field is a member of `oneof`_ ``_bgp_md5``. - bgp_peer_asn_ranges (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange]): - [Output Only] List of ASN ranges that the remote location is - known to support. Formatted as an array of inclusive ranges - {min: min-value, max: max-value}. For example, [{min: 123, - max: 123}, {min: 64512, max: 65534}] allows the peer ASN to - be 123 or anything in the range 64512-65534. This field is - only advisory. Although the API accepts other ranges, these - are the ranges that we recommend. - """ - - class BgpMd5(proto.Enum): - r"""[Output Only] Whether the attachment's BGP session - requires/allows/disallows BGP MD5 authentication. This can take one - of the following values: MD5_OPTIONAL, MD5_REQUIRED, - MD5_UNSUPPORTED. For example, a Cross-Cloud Interconnect connection - to a remote cloud provider that requires BGP MD5 authentication has - the interconnectRemoteLocation - attachment_configuration_constraints.bgp_md5 field set to - MD5_REQUIRED, and that property is propagated to the attachment. - Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if - MD5 is requested. - - Values: - UNDEFINED_BGP_MD5 (0): - A value indicating that the enum field is not - set. - MD5_OPTIONAL (532156673): - MD5_OPTIONAL: BGP MD5 authentication is supported and can - optionally be configured. - MD5_REQUIRED (218034496): - MD5_REQUIRED: BGP MD5 authentication must be configured. - MD5_UNSUPPORTED (86962388): - MD5_UNSUPPORTED: BGP MD5 authentication must not be - configured - """ - UNDEFINED_BGP_MD5 = 0 - MD5_OPTIONAL = 532156673 - MD5_REQUIRED = 218034496 - MD5_UNSUPPORTED = 86962388 - - bgp_md5: str = proto.Field( + operational_status: str = proto.Field( proto.STRING, - number=373093386, + number=201070847, optional=True, ) - bgp_peer_asn_ranges: MutableSequence[ - "InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange" - ] = proto.RepeatedField( + receiving_optical_power: "InterconnectDiagnosticsLinkOpticalPower" = proto.Field( proto.MESSAGE, - number=475946370, - message="InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange", + number=244717279, + optional=True, + message="InterconnectDiagnosticsLinkOpticalPower", + ) + transmitting_optical_power: "InterconnectDiagnosticsLinkOpticalPower" = proto.Field( + proto.MESSAGE, + number=459431197, + optional=True, + message="InterconnectDiagnosticsLinkOpticalPower", ) -class InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange(proto.Message): - r""" +class InterconnectDiagnosticsMacsecStatus(proto.Message): + r"""Describes the status of MACsec encryption on the link. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - max_ (int): + ckn (str): + Indicates the Connectivity Association Key + Name (CKN) currently being used if MACsec is + operational. - This field is a member of `oneof`_ ``_max``. - min_ (int): + This field is a member of `oneof`_ ``_ckn``. + operational (bool): + Indicates whether or not MACsec is + operational on this link. - This field is a member of `oneof`_ ``_min``. + This field is a member of `oneof`_ ``_operational``. """ - max_: int = proto.Field( - proto.UINT32, - number=107876, + ckn: str = proto.Field( + proto.STRING, + number=98566, optional=True, ) - min_: int = proto.Field( - proto.UINT32, - number=108114, + operational: bool = proto.Field( + proto.BOOL, + number=129704914, optional=True, ) -class InterconnectAttachmentGroup(proto.Message): - r"""An interconnect attachment group resource allows customers to - create, analyze, and expand highly available deployments. +class InterconnectGroup(proto.Message): + r"""An interconnect group resource allows customers to create, + analyze, and expand their redundant connections. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - attachments (MutableMapping[str, google.cloud.compute_v1.types.InterconnectAttachmentGroupAttachment]): - Attachments in the AttachmentGroup. Keys are - arbitrary user-specified strings. Users are - encouraged, but not required, to use their - preferred format for resource links as keys. - Note that there are add-members and - remove-members methods in gcloud. The size of - this map is limited by an "Attachments per - group" quota. - configured (google.cloud.compute_v1.types.InterconnectAttachmentGroupConfigured): + configured (google.cloud.compute_v1.types.InterconnectGroupConfigured): This field is a member of `oneof`_ ``_configured``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -53142,32 +62340,31 @@ class InterconnectAttachmentGroup(proto.Message): This field is a member of `oneof`_ ``_etag``. id (int): - [Output Only] The unique identifier for the resource type. - The server generates this identifier. + Output only. [Output Only] The unique identifier for the + resource type. The server generates this identifier. This field is a member of `oneof`_ ``_id``. - intent (google.cloud.compute_v1.types.InterconnectAttachmentGroupIntent): + intent (google.cloud.compute_v1.types.InterconnectGroupIntent): This field is a member of `oneof`_ ``_intent``. - interconnect_group (str): - The URL of an InterconnectGroup that groups - these Attachments' Interconnects. Customers do - not need to set this unless directed by Google - Support. - - This field is a member of `oneof`_ ``_interconnect_group``. + interconnects (MutableMapping[str, google.cloud.compute_v1.types.InterconnectGroupInterconnect]): + Interconnects in the InterconnectGroup. Keys + are arbitrary user-specified strings. Users are + encouraged, but not required, to use their + preferred format for resource links as keys. + Note that there are add-members and + remove-members methods in gcloud. The size of + this map is limited by an "Interconnects per + group" quota. kind (str): - [Output Only] Type of the resource. Always - compute#interconnectAttachmentGroup. + Output only. [Output Only] Type of the resource. Always + compute#InterconnectGroup This field is a member of `oneof`_ ``_kind``. - logical_structure (google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructure): - - This field is a member of `oneof`_ ``_logical_structure``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -53175,25 +62372,21 @@ class InterconnectAttachmentGroup(proto.Message): except the last character, which cannot be a dash. This field is a member of `oneof`_ ``_name``. + physical_structure (google.cloud.compute_v1.types.InterconnectGroupPhysicalStructure): + + This field is a member of `oneof`_ ``_physical_structure``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. """ - attachments: MutableMapping[ - str, "InterconnectAttachmentGroupAttachment" - ] = proto.MapField( - proto.STRING, - proto.MESSAGE, - number=334744496, - message="InterconnectAttachmentGroupAttachment", - ) - configured: "InterconnectAttachmentGroupConfigured" = proto.Field( + configured: "InterconnectGroupConfigured" = proto.Field( proto.MESSAGE, number=295631422, optional=True, - message="InterconnectAttachmentGroupConfigured", + message="InterconnectGroupConfigured", ) creation_timestamp: str = proto.Field( proto.STRING, @@ -53215,33 +62408,36 @@ class InterconnectAttachmentGroup(proto.Message): number=3355, optional=True, ) - intent: "InterconnectAttachmentGroupIntent" = proto.Field( + intent: "InterconnectGroupIntent" = proto.Field( proto.MESSAGE, number=426849948, optional=True, - message="InterconnectAttachmentGroupIntent", + message="InterconnectGroupIntent", ) - interconnect_group: str = proto.Field( + interconnects: MutableMapping[ + str, "InterconnectGroupInterconnect" + ] = proto.MapField( proto.STRING, - number=388651918, - optional=True, + proto.MESSAGE, + number=520187301, + message="InterconnectGroupInterconnect", ) kind: str = proto.Field( proto.STRING, number=3292052, optional=True, ) - logical_structure: "InterconnectAttachmentGroupLogicalStructure" = proto.Field( - proto.MESSAGE, - number=142412989, - optional=True, - message="InterconnectAttachmentGroupLogicalStructure", - ) name: str = proto.Field( proto.STRING, number=3373707, optional=True, ) + physical_structure: "InterconnectGroupPhysicalStructure" = proto.Field( + proto.MESSAGE, + number=195307531, + optional=True, + message="InterconnectGroupPhysicalStructure", + ) self_link: str = proto.Field( proto.STRING, number=456214797, @@ -53249,148 +62445,128 @@ class InterconnectAttachmentGroup(proto.Message): ) -class InterconnectAttachmentGroupAttachment(proto.Message): - r"""An Attachment in this AttachmentGroup. +class InterconnectGroupConfigured(proto.Message): + r"""[Output Only] The status of the group as configured. This has the + same structure as the operational field reported by the + OperationalStatus method, but does not take into account the + operational status of each resource. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - attachment (str): + topology_capability (google.cloud.compute_v1.types.InterconnectGroupConfiguredTopologyCapability): - This field is a member of `oneof`_ ``_attachment``. + This field is a member of `oneof`_ ``_topology_capability``. """ - attachment: str = proto.Field( - proto.STRING, - number=183982371, + topology_capability: "InterconnectGroupConfiguredTopologyCapability" = proto.Field( + proto.MESSAGE, + number=144190696, optional=True, + message="InterconnectGroupConfiguredTopologyCapability", ) -class InterconnectAttachmentGroupConfigured(proto.Message): - r"""[Output Only] The redundancy this group is configured to support. - The way a user queries what SLA their Attachment gets is by looking - at this field of the Attachment's AttachmentGroup. +class InterconnectGroupConfiguredTopologyCapability(proto.Message): + r"""[Output Only] How reliable this topology is configured to be, and + why this group does or does not meet the requirements for the + intended capability. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - availability_sla (google.cloud.compute_v1.types.InterconnectAttachmentGroupConfiguredAvailabilitySLA): - - This field is a member of `oneof`_ ``_availability_sla``. - """ - - availability_sla: "InterconnectAttachmentGroupConfiguredAvailabilitySLA" = ( - proto.Field( - proto.MESSAGE, - number=472702020, - optional=True, - message="InterconnectAttachmentGroupConfiguredAvailabilitySLA", - ) - ) - - -class InterconnectAttachmentGroupConfiguredAvailabilitySLA(proto.Message): - r"""[Output Only] Which SLA this group is configured to support, and why - this group does or does not meet that SLA's requirements. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + intended_capability_blockers (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers]): - Attributes: - effective_sla (str): - Check the EffectiveSla enum for the list of + supported_sla (str): + Check the SupportedSla enum for the list of possible values. - This field is a member of `oneof`_ ``_effective_sla``. - intended_sla_blockers (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers]): - + This field is a member of `oneof`_ ``_supported_sla``. """ - class EffectiveSla(proto.Enum): + class SupportedSla(proto.Enum): r""" Values: - UNDEFINED_EFFECTIVE_SLA (0): + UNDEFINED_SUPPORTED_SLA (0): A value indicating that the enum field is not set. - EFFECTIVE_SLA_UNSPECIFIED (491000744): - No description available. NO_SLA (161460618): No description available. PRODUCTION_CRITICAL (470416485): No description available. PRODUCTION_NON_CRITICAL (117399223): No description available. + UNSPECIFIED (526786327): + No description available. """ - UNDEFINED_EFFECTIVE_SLA = 0 - EFFECTIVE_SLA_UNSPECIFIED = 491000744 + UNDEFINED_SUPPORTED_SLA = 0 NO_SLA = 161460618 PRODUCTION_CRITICAL = 470416485 PRODUCTION_NON_CRITICAL = 117399223 + UNSPECIFIED = 526786327 - effective_sla: str = proto.Field( - proto.STRING, - number=144173712, - optional=True, - ) - intended_sla_blockers: MutableSequence[ - "InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers" + intended_capability_blockers: MutableSequence[ + "InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers" ] = proto.RepeatedField( proto.MESSAGE, - number=448370308, - message="InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers", + number=531644140, + message="InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers", + ) + supported_sla: str = proto.Field( + proto.STRING, + number=59292183, + optional=True, ) -class InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers( +class InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers( proto.Message ): - r"""[Output Only] Reasons why configuration.availabilitySLA.sla differs - from intent.availabilitySLA. This list is empty if and only if those - are the same. + r"""[Output Only] Reasons why configuration.topologyCapability.sla + differs from intent.topologyCapability. This list is empty if and + only if those are the same. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - attachments (MutableSequence[str]): - [Output Only] URLs of any particular Attachments to explain - this blocker in more detail. blocker_type (str): Check the BlockerType enum for the list of possible values. This field is a member of `oneof`_ ``_blocker_type``. documentation_link (str): - [Output Only] The url of Google Cloud public documentation - explaining this requirement. This is set for every type of - requirement. + Output only. [Output Only] The url of Google Cloud public + documentation explaining this requirement. This is set for + every type of requirement. This field is a member of `oneof`_ ``_documentation_link``. explanation (str): - [Output Only] A human-readable explanation of this - requirement and why it's not met. This is set for every type - of requirement. + Output only. [Output Only] A human-readable explanation of + this requirement and why it's not met. This is set for every + type of requirement. This field is a member of `oneof`_ ``_explanation``. + facilities (MutableSequence[str]): + Output only. [Output Only] Facilities used to explain this + blocker in more detail. Like + physicalStructure.metros.facilities.facility, this is a + numeric string like "5467". + interconnects (MutableSequence[str]): + Output only. [Output Only] Interconnects used to explain + this blocker in more detail. metros (MutableSequence[str]): - [Output Only] Metros used to explain this blocker in more - detail. These are three-letter lowercase strings like "iad". - This will be set for some blockers (like - NO_ATTACHMENTS_IN_METRO_AND_ZONE) but does not apply to - others. - regions (MutableSequence[str]): - [Output Only] Regions used to explain this blocker in more - detail. These are region names formatted like "us-central1". - This will be set for some blockers (like - INCOMPATIBLE_REGIONS) but does not apply to others. + Output only. [Output Only] Metros used to explain this + blocker in more detail. These are three-letter lowercase + strings like "iad". A blocker like INCOMPATIBLE_METROS will + specify the problematic metros in this field. zones (MutableSequence[str]): - [Output Only] Zones used to explain this blocker in more - detail. Format is "zone1" and/or "zone2". This will be set - for some blockers (like MISSING_ZONE) but does not apply to - others. + Output only. [Output Only] Zones used to explain this + blocker in more detail. Zone names are "zone1" and/or + "zone2". """ class BlockerType(proto.Enum): @@ -53400,34 +62576,27 @@ class BlockerType(proto.Enum): UNDEFINED_BLOCKER_TYPE (0): A value indicating that the enum field is not set. - BLOCKER_TYPE_UNSPECIFIED (429793623): - No description available. INCOMPATIBLE_METROS (290410432): No description available. - INCOMPATIBLE_REGIONS (6195033): - No description available. - MISSING_GLOBAL_ROUTING (165913635): + NOT_AVAILABLE (140722205): No description available. - NO_ATTACHMENTS (456535570): + NO_INTERCONNECTS (523549575): No description available. - NO_ATTACHMENTS_IN_METRO_AND_ZONE (51684135): + NO_INTERCONNECTS_IN_METRO_AND_ZONE (440966492): No description available. OTHER (75532016): No description available. + UNSPECIFIED (526786327): + No description available. """ UNDEFINED_BLOCKER_TYPE = 0 - BLOCKER_TYPE_UNSPECIFIED = 429793623 INCOMPATIBLE_METROS = 290410432 - INCOMPATIBLE_REGIONS = 6195033 - MISSING_GLOBAL_ROUTING = 165913635 - NO_ATTACHMENTS = 456535570 - NO_ATTACHMENTS_IN_METRO_AND_ZONE = 51684135 + NOT_AVAILABLE = 140722205 + NO_INTERCONNECTS = 523549575 + NO_INTERCONNECTS_IN_METRO_AND_ZONE = 440966492 OTHER = 75532016 + UNSPECIFIED = 526786327 - attachments: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=334744496, - ) blocker_type: str = proto.Field( proto.STRING, number=381194847, @@ -53443,13 +62612,17 @@ class BlockerType(proto.Enum): number=504745497, optional=True, ) - metros: MutableSequence[str] = proto.RepeatedField( + facilities: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=533067386, + number=536683137, ) - regions: MutableSequence[str] = proto.RepeatedField( + interconnects: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=12367871, + number=520187301, + ) + metros: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=533067386, ) zones: MutableSequence[str] = proto.RepeatedField( proto.STRING, @@ -53457,122 +62630,111 @@ class BlockerType(proto.Enum): ) -class InterconnectAttachmentGroupIntent(proto.Message): - r"""The user's intent for this AttachmentGroup. This is the only - required field besides the name that must be specified on group - creation. +class InterconnectGroupIntent(proto.Message): + r"""The user's intent for this group. This is the only required + field besides the name that must be specified on group creation. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - availability_sla (str): - Check the AvailabilitySla enum for the list - of possible values. + topology_capability (str): + Check the TopologyCapability enum for the + list of possible values. - This field is a member of `oneof`_ ``_availability_sla``. + This field is a member of `oneof`_ ``_topology_capability``. """ - class AvailabilitySla(proto.Enum): + class TopologyCapability(proto.Enum): r""" Values: - UNDEFINED_AVAILABILITY_SLA (0): + UNDEFINED_TOPOLOGY_CAPABILITY (0): A value indicating that the enum field is not set. - AVAILABILITY_SLA_UNSPECIFIED (11186044): - No description available. NO_SLA (161460618): No description available. PRODUCTION_CRITICAL (470416485): No description available. PRODUCTION_NON_CRITICAL (117399223): No description available. + UNSPECIFIED (526786327): + No description available. """ - UNDEFINED_AVAILABILITY_SLA = 0 - AVAILABILITY_SLA_UNSPECIFIED = 11186044 + UNDEFINED_TOPOLOGY_CAPABILITY = 0 NO_SLA = 161460618 PRODUCTION_CRITICAL = 470416485 PRODUCTION_NON_CRITICAL = 117399223 + UNSPECIFIED = 526786327 - availability_sla: str = proto.Field( + topology_capability: str = proto.Field( proto.STRING, - number=472702020, + number=144190696, optional=True, ) -class InterconnectAttachmentGroupLogicalStructure(proto.Message): - r"""[Output Only] An analysis of the logical layout of Attachments in - this group. Every Attachment in the group is shown once in this - structure. +class InterconnectGroupInterconnect(proto.Message): + r"""An Interconnect in this InterconnectGroup. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - regions (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructureRegion]): + interconnect (str): + The URL of an Interconnect in this group. All + Interconnects in the group are unique. + This field is a member of `oneof`_ ``_interconnect``. """ - regions: MutableSequence[ - "InterconnectAttachmentGroupLogicalStructureRegion" - ] = proto.RepeatedField( - proto.MESSAGE, - number=12367871, - message="InterconnectAttachmentGroupLogicalStructureRegion", + interconnect: str = proto.Field( + proto.STRING, + number=224601230, + optional=True, ) -class InterconnectAttachmentGroupLogicalStructureRegion(proto.Message): - r"""[Output Only] The regions Attachments in this group are in. - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields +class InterconnectGroupPhysicalStructure(proto.Message): + r"""[Output Only] An analysis of the physical layout of Interconnects in + this group. Every Interconnect in the group is shown once in this + structure. Attributes: - metros (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructureRegionMetro]): - - region (str): - [Output Only] The name of a region, like "us-central1". + metros (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupPhysicalStructureMetros]): - This field is a member of `oneof`_ ``_region``. """ metros: MutableSequence[ - "InterconnectAttachmentGroupLogicalStructureRegionMetro" + "InterconnectGroupPhysicalStructureMetros" ] = proto.RepeatedField( proto.MESSAGE, number=533067386, - message="InterconnectAttachmentGroupLogicalStructureRegionMetro", - ) - region: str = proto.Field( - proto.STRING, - number=138946292, - optional=True, + message="InterconnectGroupPhysicalStructureMetros", ) -class InterconnectAttachmentGroupLogicalStructureRegionMetro(proto.Message): - r"""[Output Only] The metros of Attachments in this group in this - region. - +class InterconnectGroupPhysicalStructureMetros(proto.Message): + r"""[Output Only] The metros Interconnects in this group are in. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - facilities (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructureRegionMetroFacility]): + facilities (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupPhysicalStructureMetrosFacilities]): metro (str): - [Output Only] The name of the metro, as a three-letter - lowercase string like "iad". This is the first component of - the location of an Interconnect. + Output only. [Output Only] The name of the metro, as a + three-letter lowercase string like "iad". This is the first + component of the location of Interconnects underneath this. This field is a member of `oneof`_ ``_metro``. """ facilities: MutableSequence[ - "InterconnectAttachmentGroupLogicalStructureRegionMetroFacility" + "InterconnectGroupPhysicalStructureMetrosFacilities" ] = proto.RepeatedField( proto.MESSAGE, number=536683137, - message="InterconnectAttachmentGroupLogicalStructureRegionMetroFacility", + message="InterconnectGroupPhysicalStructureMetrosFacilities", ) metro: str = proto.Field( proto.STRING, @@ -53581,2353 +62743,1903 @@ class InterconnectAttachmentGroupLogicalStructureRegionMetro(proto.Message): ) -class InterconnectAttachmentGroupLogicalStructureRegionMetroFacility(proto.Message): - r"""[Output Only] The facilities used for this group's Attachments' - Interconnects. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - facility (str): - [Output Only] The name of a facility, like "iad-1234". - - This field is a member of `oneof`_ ``_facility``. - zones (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone]): - - """ - - facility: str = proto.Field( - proto.STRING, - number=501116579, - optional=True, - ) - zones: MutableSequence[ - "InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone" - ] = proto.RepeatedField( - proto.MESSAGE, - number=116085319, - message="InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone", - ) - - -class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone(proto.Message): - r"""[Output Only] The zones that Attachments in this group are present - in, in the given facilities. This is inherited from their - Interconnects. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - attachments (MutableSequence[str]): - [Output Only] URLs of Attachments in the given zone, to the - given region, on Interconnects in the given facility and - metro. Every Attachment in the AG has such an entry. - zone (str): - [Output Only] The name of a zone, either "zone1" or "zone2". - - This field is a member of `oneof`_ ``_zone``. - """ - - attachments: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=334744496, - ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - optional=True, - ) - - -class InterconnectAttachmentGroupsGetOperationalStatusResponse(proto.Message): - r"""Response for the - InterconnectAttachmentGroupsGetOperationalStatusResponse. +class InterconnectGroupPhysicalStructureMetrosFacilities(proto.Message): + r"""[Output Only] The facilities Interconnects in this metro are present + in. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - etag (str): + facility (str): + Output only. [Output Only] The ID of this facility, as a + numeric string like "5467". This is the third component of + the location of Interconnects in this facility. - This field is a member of `oneof`_ ``_etag``. - result (google.cloud.compute_v1.types.InterconnectAttachmentGroupsOperationalStatus): + This field is a member of `oneof`_ ``_facility``. + zones (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupPhysicalStructureMetrosFacilitiesZones]): - This field is a member of `oneof`_ ``_result``. """ - etag: str = proto.Field( + facility: str = proto.Field( proto.STRING, - number=3123477, + number=501116579, optional=True, ) - result: "InterconnectAttachmentGroupsOperationalStatus" = proto.Field( + zones: MutableSequence[ + "InterconnectGroupPhysicalStructureMetrosFacilitiesZones" + ] = proto.RepeatedField( proto.MESSAGE, - number=139315229, - optional=True, - message="InterconnectAttachmentGroupsOperationalStatus", + number=116085319, + message="InterconnectGroupPhysicalStructureMetrosFacilitiesZones", ) -class InterconnectAttachmentGroupsListResponse(proto.Message): - r""" +class InterconnectGroupPhysicalStructureMetrosFacilitiesZones(proto.Message): + r"""[Output Only] The zones that Interconnects in this facility are + present in. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - etag (str): - - This field is a member of `oneof`_ ``_etag``. - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. - - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroup]): - A list of InterconnectAttachmentGroup - resources. - kind (str): - - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. - - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. - - This field is a member of `oneof`_ ``_self_link``. - unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. end_interface: - MixerListResponseWithEtagBuilder - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + interconnects (MutableSequence[str]): + Output only. [Output Only] URLs of Interconnects in this + redundancy group in the given metro, facility, and zone. + zone (str): + Output only. [Output Only] The name of the zone, either + "zone1" or "zone2". This is the second component of the + location of Interconnects in this facility. - This field is a member of `oneof`_ ``_warning``. + This field is a member of `oneof`_ ``_zone``. """ - @property - def raw_page(self): - return self - - etag: str = proto.Field( - proto.STRING, - number=3123477, - optional=True, - ) - id: str = proto.Field( - proto.STRING, - number=3355, - optional=True, - ) - items: MutableSequence["InterconnectAttachmentGroup"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="InterconnectAttachmentGroup", - ) - kind: str = proto.Field( - proto.STRING, - number=3292052, - optional=True, - ) - next_page_token: str = proto.Field( - proto.STRING, - number=79797525, - optional=True, - ) - self_link: str = proto.Field( + interconnects: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=456214797, - optional=True, + number=520187301, ) - unreachables: MutableSequence[str] = proto.RepeatedField( + zone: str = proto.Field( proto.STRING, - number=243372063, - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, + number=3744684, optional=True, - message="Warning", ) -class InterconnectAttachmentGroupsOperationalStatus(proto.Message): +class InterconnectGroupsCreateMembers(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - attachment_statuses (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachmentGroupsOperationalStatusAttachmentStatus]): - - configured (google.cloud.compute_v1.types.InterconnectAttachmentGroupConfigured): - - This field is a member of `oneof`_ ``_configured``. - group_status (str): - Summarizes the status of the group. - Check the GroupStatus enum for the list of - possible values. + intent_mismatch_behavior (str): + How to behave when + configured.topologyCapability.supportedSLA would + not equal intent.topologyCapability after this + call. Check the IntentMismatchBehavior enum for + the list of possible values. - This field is a member of `oneof`_ ``_group_status``. - intent (google.cloud.compute_v1.types.InterconnectAttachmentGroupIntent): + This field is a member of `oneof`_ ``_intent_mismatch_behavior``. + interconnects (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupsCreateMembersInterconnectInput]): - This field is a member of `oneof`_ ``_intent``. - operational (google.cloud.compute_v1.types.InterconnectAttachmentGroupConfigured): - The operational state of the group, including - only active Attachments. + template_interconnect (google.cloud.compute_v1.types.InterconnectGroupsCreateMembersInterconnectInput): + Parameters for the Interconnects to create. - This field is a member of `oneof`_ ``_operational``. + This field is a member of `oneof`_ ``_template_interconnect``. """ - class GroupStatus(proto.Enum): - r"""Summarizes the status of the group. + class IntentMismatchBehavior(proto.Enum): + r"""How to behave when configured.topologyCapability.supportedSLA + would not equal intent.topologyCapability after this call. Values: - UNDEFINED_GROUP_STATUS (0): + UNDEFINED_INTENT_MISMATCH_BEHAVIOR (0): A value indicating that the enum field is not set. - DEGRADED (396890926): - No description available. - FULLY_DOWN (255514647): + CREATE (385389820): No description available. - FULLY_UP (504176464): + REJECT (266102687): No description available. UNSPECIFIED (526786327): No description available. """ - UNDEFINED_GROUP_STATUS = 0 - DEGRADED = 396890926 - FULLY_DOWN = 255514647 - FULLY_UP = 504176464 + UNDEFINED_INTENT_MISMATCH_BEHAVIOR = 0 + CREATE = 385389820 + REJECT = 266102687 UNSPECIFIED = 526786327 - attachment_statuses: MutableSequence[ - "InterconnectAttachmentGroupsOperationalStatusAttachmentStatus" - ] = proto.RepeatedField( - proto.MESSAGE, - number=491132860, - message="InterconnectAttachmentGroupsOperationalStatusAttachmentStatus", - ) - configured: "InterconnectAttachmentGroupConfigured" = proto.Field( - proto.MESSAGE, - number=295631422, - optional=True, - message="InterconnectAttachmentGroupConfigured", - ) - group_status: str = proto.Field( + intent_mismatch_behavior: str = proto.Field( proto.STRING, - number=338778546, + number=164408000, optional=True, ) - intent: "InterconnectAttachmentGroupIntent" = proto.Field( + interconnects: MutableSequence[ + "InterconnectGroupsCreateMembersInterconnectInput" + ] = proto.RepeatedField( proto.MESSAGE, - number=426849948, - optional=True, - message="InterconnectAttachmentGroupIntent", + number=520187301, + message="InterconnectGroupsCreateMembersInterconnectInput", ) - operational: "InterconnectAttachmentGroupConfigured" = proto.Field( - proto.MESSAGE, - number=129704914, - optional=True, - message="InterconnectAttachmentGroupConfigured", + template_interconnect: "InterconnectGroupsCreateMembersInterconnectInput" = ( + proto.Field( + proto.MESSAGE, + number=224745523, + optional=True, + message="InterconnectGroupsCreateMembersInterconnectInput", + ) ) -class InterconnectAttachmentGroupsOperationalStatusAttachmentStatus(proto.Message): - r"""The status of one Attachment in the group. List order is - arbitrary. - +class InterconnectGroupsCreateMembersInterconnectInput(proto.Message): + r"""LINT.IfChange .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: admin_enabled (bool): - Whether this Attachment is enabled. This - becomes false when the customer drains their - Attachment. + Administrative status of the interconnect. + When this is set to true, the Interconnect is + functional and can carry traffic. When set to + false, no packets can be carried over the + interconnect and no BGP routes are exchanged + over it. By default, the status is set to true. This field is a member of `oneof`_ ``_admin_enabled``. - attachment (str): - The URL of the Attachment being described. + customer_name (str): + Customer name, to put in the Letter of + Authorization as the party authorized to request + a crossconnect. - This field is a member of `oneof`_ ``_attachment``. - is_active (str): - Whether this Attachment is participating in the redundant - configuration. This will be ACTIVE if and only if the status - below is CONNECTION_UP. Any INACTIVE Attachments are - excluded from the analysis that generates - operational.availabilitySLA. Check the IsActive enum for the - list of possible values. + This field is a member of `oneof`_ ``_customer_name``. + description (str): + An optional description of this resource. + Provide this property when you create the + resource. - This field is a member of `oneof`_ ``_is_active``. - status (str): - Whether this Attachment is active, and if so, - whether BGP is up. Check the Status enum for the - list of possible values. + This field is a member of `oneof`_ ``_description``. + facility (str): + A zone-free location to use for all + Interconnects created in this call, like + "iad-1234". - This field is a member of `oneof`_ ``_status``. - """ + This field is a member of `oneof`_ ``_facility``. + interconnect_type (str): + Type of interconnect, which can take one of the following + values: - class IsActive(proto.Enum): - r"""Whether this Attachment is participating in the redundant - configuration. This will be ACTIVE if and only if the status below - is CONNECTION_UP. Any INACTIVE Attachments are excluded from the - analysis that generates operational.availabilitySLA. + :: - Values: - UNDEFINED_IS_ACTIVE (0): - A value indicating that the enum field is not - set. - ACTIVE (314733318): - No description available. - INACTIVE (270421099): - No description available. - UNSPECIFIED (526786327): - No description available. - """ - UNDEFINED_IS_ACTIVE = 0 - ACTIVE = 314733318 - INACTIVE = 270421099 - UNSPECIFIED = 526786327 + - PARTNER: A partner-managed interconnection shared between + customers though a partner. + - DEDICATED: A dedicated physical + interconnection with the customer. - class Status(proto.Enum): - r"""Whether this Attachment is active, and if so, whether BGP is - up. + Note that a value IT_PRIVATE has been deprecated in favor of + DEDICATED. Check the InterconnectType enum for the list of + possible values. - Values: - UNDEFINED_STATUS (0): - A value indicating that the enum field is not - set. - ATTACHMENT_STATUS_UNKNOWN (472477561): - No description available. - CONNECTION_DISABLED (432687805): - No description available. - CONNECTION_DOWN (267552099): - No description available. - CONNECTION_UP (455585692): - No description available. - DEFUNCT (115891759): - No description available. - IPSEC_CONFIGURATION_NEEDED_STATUS (455203582): - No description available. - IPSEC_READY_TO_RESUME_FLOW_STATUS (384830596): - No description available. - IPV4_DOWN_IPV6_UP (277490992): - No description available. - IPV4_UP_IPV6_DOWN (316051248): - No description available. - PARTNER_REQUEST_RECEIVED (513587304): - No description available. - PENDING_CUSTOMER (167494054): - No description available. - PENDING_PARTNER (387890656): - No description available. - PROVISIONED (355751956): - No description available. - ROUTER_CONFIGURATION_BROKEN (150505108): - No description available. - UNPROVISIONED (517333979): - No description available. - """ - UNDEFINED_STATUS = 0 - ATTACHMENT_STATUS_UNKNOWN = 472477561 - CONNECTION_DISABLED = 432687805 - CONNECTION_DOWN = 267552099 - CONNECTION_UP = 455585692 - DEFUNCT = 115891759 - IPSEC_CONFIGURATION_NEEDED_STATUS = 455203582 - IPSEC_READY_TO_RESUME_FLOW_STATUS = 384830596 - IPV4_DOWN_IPV6_UP = 277490992 - IPV4_UP_IPV6_DOWN = 316051248 - PARTNER_REQUEST_RECEIVED = 513587304 - PENDING_CUSTOMER = 167494054 - PENDING_PARTNER = 387890656 - PROVISIONED = 355751956 - ROUTER_CONFIGURATION_BROKEN = 150505108 - UNPROVISIONED = 517333979 + This field is a member of `oneof`_ ``_interconnect_type``. + link_type (str): + Type of link requested, which can take one of the following + values: - admin_enabled: bool = proto.Field( - proto.BOOL, - number=445675089, - optional=True, - ) - attachment: str = proto.Field( - proto.STRING, - number=183982371, - optional=True, - ) - is_active: str = proto.Field( - proto.STRING, - number=114830267, - optional=True, - ) - status: str = proto.Field( - proto.STRING, - number=181260274, - optional=True, - ) + :: + - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics + - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. + - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + optics. -class InterconnectAttachmentList(proto.Message): - r"""Response to the list request, and contains a list of - interconnect attachments. + Note that this field indicates the speed of each of the + links in the bundle, not the speed of the entire bundle. + Check the LinkType enum for the list of possible values. + This field is a member of `oneof`_ ``_link_type``. + name (str): + Name of the Interconnects to be created. This must be + specified on the template and/or on each individual + interconnect. The name, if not empty, must be 1-63 + characters long, and comply with RFC1035. Specifically, any + nonempty name must be 1-63 characters long and match the + regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which + means the first character must be a lowercase letter, and + all following characters must be a dash, lowercase letter, + or digit, except the last character, which cannot be a dash. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_name``. + noc_contact_email (str): + Email address to contact the customer NOC for + operations and maintenance notifications + regarding this Interconnect. If specified, this + will be used for notifications in addition to + all other forms described, such as Cloud + Monitoring logs alerting and Cloud + Notifications. This field is required for users + who sign up for Cloud Interconnect using + workforce identity federation. - Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + This field is a member of `oneof`_ ``_noc_contact_email``. + remote_location (str): + Indicates that this is a Cross-Cloud + Interconnect. This field specifies the location + outside of Google's network that the + interconnect is connected to. - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachment]): - A list of InterconnectAttachment resources. - kind (str): - [Output Only] Type of resource. Always - compute#interconnectAttachmentList for lists of interconnect - attachments. + This field is a member of `oneof`_ ``_remote_location``. + requested_features (MutableSequence[str]): + Optional. List of features requested for this Interconnect + connection, which can take one of the following values: - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + :: - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. + - IF_MACSEC: If specified, then the connection is created on MACsec + capable hardware ports. If not specified, non-MACsec capable ports will + also be considered. + - IF_CROSS_SITE_NETWORK: If specified, then the connection is created + exclusively for Cross-Site Networking. The connection can not be used for + Cross-Site Networking unless this feature is specified. - This field is a member of `oneof`_ ``_self_link``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Check the RequestedFeatures enum for the list of possible + values. + requested_link_count (int): + Target number of physical links in the link + bundle, as requested by the customer. - This field is a member of `oneof`_ ``_warning``. + This field is a member of `oneof`_ ``_requested_link_count``. """ - @property - def raw_page(self): - return self + class InterconnectType(proto.Enum): + r"""Type of interconnect, which can take one of the following values: - id: str = proto.Field( - proto.STRING, - number=3355, + :: + + - PARTNER: A partner-managed interconnection shared between + customers though a partner. + - DEDICATED: A dedicated physical + interconnection with the customer. + + Note that a value IT_PRIVATE has been deprecated in favor of + DEDICATED. + + Values: + UNDEFINED_INTERCONNECT_TYPE (0): + A value indicating that the enum field is not + set. + DEDICATED (258411983): + A dedicated physical interconnection with the + customer. + IT_PRIVATE (335677007): + [Deprecated] A private, physical interconnection with the + customer. + PARTNER (461924520): + A partner-managed interconnection shared + between customers via partner. + """ + UNDEFINED_INTERCONNECT_TYPE = 0 + DEDICATED = 258411983 + IT_PRIVATE = 335677007 + PARTNER = 461924520 + + class LinkType(proto.Enum): + r"""Type of link requested, which can take one of the following values: + + :: + + - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics + - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. + - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 + optics. + + Note that this field indicates the speed of each of the links in the + bundle, not the speed of the entire bundle. + + Values: + UNDEFINED_LINK_TYPE (0): + A value indicating that the enum field is not + set. + LINK_TYPE_ETHERNET_100G_LR (337672551): + 100G Ethernet, LR Optics. + LINK_TYPE_ETHERNET_10G_LR (236739749): + 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; + LINK_TYPE_ETHERNET_400G_LR4 (127023690): + 400G Ethernet, LR4 Optics. + """ + UNDEFINED_LINK_TYPE = 0 + LINK_TYPE_ETHERNET_100G_LR = 337672551 + LINK_TYPE_ETHERNET_10G_LR = 236739749 + LINK_TYPE_ETHERNET_400G_LR4 = 127023690 + + class RequestedFeatures(proto.Enum): + r""" + + Values: + UNDEFINED_REQUESTED_FEATURES (0): + A value indicating that the enum field is not + set. + IF_CROSS_SITE_NETWORK (469111095): + Cross-Site Networking + IF_L2_FORWARDING (125563860): + L2 Interconnect Attachment Forwarding + IF_MACSEC (396279300): + Media Access Control security (MACsec) + """ + UNDEFINED_REQUESTED_FEATURES = 0 + IF_CROSS_SITE_NETWORK = 469111095 + IF_L2_FORWARDING = 125563860 + IF_MACSEC = 396279300 + + admin_enabled: bool = proto.Field( + proto.BOOL, + number=445675089, optional=True, ) - items: MutableSequence["InterconnectAttachment"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="InterconnectAttachment", - ) - kind: str = proto.Field( + customer_name: str = proto.Field( proto.STRING, - number=3292052, + number=3665484, optional=True, ) - next_page_token: str = proto.Field( + description: str = proto.Field( proto.STRING, - number=79797525, + number=422937596, optional=True, ) - self_link: str = proto.Field( + facility: str = proto.Field( proto.STRING, - number=456214797, - optional=True, - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, + number=501116579, optional=True, - message="Warning", ) - - -class InterconnectAttachmentPartnerMetadata(proto.Message): - r"""Informational metadata about Partner attachments from Partners to - display to customers. These fields are propagated from - PARTNER_PROVIDER attachments to their corresponding PARTNER - attachments. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - interconnect_name (str): - Plain text name of the Interconnect this - attachment is connected to, as displayed in the - Partner's portal. For instance "Chicago 1". This - value may be validated to match approved Partner - values. - - This field is a member of `oneof`_ ``_interconnect_name``. - partner_name (str): - Plain text name of the Partner providing this - attachment. This value may be validated to match - approved Partner values. - - This field is a member of `oneof`_ ``_partner_name``. - portal_url (str): - URL of the Partner's portal for this - Attachment. Partners may customise this to be a - deep link to the specific resource on the - Partner portal. This value may be validated to - match approved Partner values. - - This field is a member of `oneof`_ ``_portal_url``. - """ - - interconnect_name: str = proto.Field( + interconnect_type: str = proto.Field( + proto.STRING, + number=515165259, + optional=True, + ) + link_type: str = proto.Field( proto.STRING, - number=514963356, + number=523207775, optional=True, ) - partner_name: str = proto.Field( + name: str = proto.Field( proto.STRING, - number=161747874, + number=3373707, optional=True, ) - portal_url: str = proto.Field( + noc_contact_email: str = proto.Field( proto.STRING, - number=269182748, + number=14072832, optional=True, ) - - -class InterconnectAttachmentPrivateInfo(proto.Message): - r"""Information for an interconnect attachment when this belongs - to an interconnect of type DEDICATED. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - tag8021q (int): - [Output Only] 802.1q encapsulation tag to be used for - traffic between Google and the customer, going to and from - this network and region. - - This field is a member of `oneof`_ ``_tag8021q``. - """ - - tag8021q: int = proto.Field( - proto.UINT32, - number=271820992, + remote_location: str = proto.Field( + proto.STRING, + number=324388750, + optional=True, + ) + requested_features: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=461240814, + ) + requested_link_count: int = proto.Field( + proto.INT32, + number=45051387, optional=True, ) -class InterconnectAttachmentsScopedList(proto.Message): +class InterconnectGroupsCreateMembersRequest(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - interconnect_attachments (MutableSequence[google.cloud.compute_v1.types.InterconnectAttachment]): - A list of interconnect attachments contained - in this scope. - warning (google.cloud.compute_v1.types.Warning): - Informational warning which replaces the list - of addresses when the list is empty. + request (google.cloud.compute_v1.types.InterconnectGroupsCreateMembers): - This field is a member of `oneof`_ ``_warning``. + This field is a member of `oneof`_ ``_request``. """ - interconnect_attachments: MutableSequence[ - "InterconnectAttachment" - ] = proto.RepeatedField( - proto.MESSAGE, - number=425388415, - message="InterconnectAttachment", - ) - warning: "Warning" = proto.Field( + request: "InterconnectGroupsCreateMembers" = proto.Field( proto.MESSAGE, - number=50704284, + number=21951119, optional=True, - message="Warning", + message="InterconnectGroupsCreateMembers", ) -class InterconnectCircuitInfo(proto.Message): - r"""Describes a single physical circuit between the Customer and - Google. CircuitInfo objects are created by Google, so all fields - are output only. +class InterconnectGroupsGetOperationalStatusResponse(proto.Message): + r"""Response for the + InterconnectGroupsGetOperationalStatusResponse. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - customer_demarc_id (str): - Customer-side demarc ID for this circuit. - - This field is a member of `oneof`_ ``_customer_demarc_id``. - google_circuit_id (str): - Google-assigned unique ID for this circuit. - Assigned at circuit turn-up. + etag (str): - This field is a member of `oneof`_ ``_google_circuit_id``. - google_demarc_id (str): - Google-side demarc ID for this circuit. - Assigned at circuit turn-up and provided by - Google to the customer in the LOA. + This field is a member of `oneof`_ ``_etag``. + result (google.cloud.compute_v1.types.InterconnectGroupsOperationalStatus): - This field is a member of `oneof`_ ``_google_demarc_id``. + This field is a member of `oneof`_ ``_result``. """ - customer_demarc_id: str = proto.Field( - proto.STRING, - number=28771859, - optional=True, - ) - google_circuit_id: str = proto.Field( + etag: str = proto.Field( proto.STRING, - number=262014711, + number=3123477, optional=True, ) - google_demarc_id: str = proto.Field( - proto.STRING, - number=448196270, + result: "InterconnectGroupsOperationalStatus" = proto.Field( + proto.MESSAGE, + number=139315229, optional=True, + message="InterconnectGroupsOperationalStatus", ) -class InterconnectDiagnostics(proto.Message): - r"""Diagnostics information about the Interconnect connection, - which contains detailed and current technical information about - Google's side of the connection. - +class InterconnectGroupsListResponse(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - arp_caches (MutableSequence[google.cloud.compute_v1.types.InterconnectDiagnosticsARPEntry]): - A list of InterconnectDiagnostics.ARPEntry - objects, describing individual neighbors - currently seen by the Google router in the ARP - cache for the Interconnect. This will be empty - when the Interconnect is not bundled. - bundle_aggregation_type (str): - The aggregation type of the bundle interface. - Check the BundleAggregationType enum for the - list of possible values. + etag (str): - This field is a member of `oneof`_ ``_bundle_aggregation_type``. - bundle_operational_status (str): - The operational status of the bundle - interface. Check the BundleOperationalStatus - enum for the list of possible values. + This field is a member of `oneof`_ ``_etag``. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. - This field is a member of `oneof`_ ``_bundle_operational_status``. - links (MutableSequence[google.cloud.compute_v1.types.InterconnectDiagnosticsLinkStatus]): - A list of InterconnectDiagnostics.LinkStatus - objects, describing the status for each link on - the Interconnect. - mac_address (str): - The MAC address of the Interconnect's bundle - interface. + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.InterconnectGroup]): + A list of InterconnectGroup resources. + kind (str): - This field is a member of `oneof`_ ``_mac_address``. - """ + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. - class BundleAggregationType(proto.Enum): - r"""The aggregation type of the bundle interface. + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + [Output Only] Server-defined URL for this resource. - Values: - UNDEFINED_BUNDLE_AGGREGATION_TYPE (0): - A value indicating that the enum field is not - set. - BUNDLE_AGGREGATION_TYPE_LACP (27758925): - LACP is enabled. - BUNDLE_AGGREGATION_TYPE_STATIC (50678873): - LACP is disabled. - """ - UNDEFINED_BUNDLE_AGGREGATION_TYPE = 0 - BUNDLE_AGGREGATION_TYPE_LACP = 27758925 - BUNDLE_AGGREGATION_TYPE_STATIC = 50678873 + This field is a member of `oneof`_ ``_self_link``. + unreachables (MutableSequence[str]): + Output only. [Output Only] Unreachable resources. + end_interface: MixerListResponseWithEtagBuilder + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. - class BundleOperationalStatus(proto.Enum): - r"""The operational status of the bundle interface. + This field is a member of `oneof`_ ``_warning``. + """ - Values: - UNDEFINED_BUNDLE_OPERATIONAL_STATUS (0): - A value indicating that the enum field is not - set. - BUNDLE_OPERATIONAL_STATUS_DOWN (453842693): - If bundleAggregationType is LACP: LACP is not - established and/or all links in the bundle have - DOWN operational status. If - bundleAggregationType is STATIC: one or more - links in the bundle has DOWN operational status. - BUNDLE_OPERATIONAL_STATUS_UP (161366462): - If bundleAggregationType is LACP: LACP is - established and at least one link in the bundle - has UP operational status. If - bundleAggregationType is STATIC: all links in - the bundle (typically just one) have UP - operational status. - """ - UNDEFINED_BUNDLE_OPERATIONAL_STATUS = 0 - BUNDLE_OPERATIONAL_STATUS_DOWN = 453842693 - BUNDLE_OPERATIONAL_STATUS_UP = 161366462 + @property + def raw_page(self): + return self - arp_caches: MutableSequence[ - "InterconnectDiagnosticsARPEntry" - ] = proto.RepeatedField( - proto.MESSAGE, - number=414591761, - message="InterconnectDiagnosticsARPEntry", - ) - bundle_aggregation_type: str = proto.Field( + etag: str = proto.Field( proto.STRING, - number=434939028, + number=3123477, optional=True, ) - bundle_operational_status: str = proto.Field( + id: str = proto.Field( proto.STRING, - number=106433500, + number=3355, optional=True, ) - links: MutableSequence["InterconnectDiagnosticsLinkStatus"] = proto.RepeatedField( + items: MutableSequence["InterconnectGroup"] = proto.RepeatedField( proto.MESSAGE, - number=102977465, - message="InterconnectDiagnosticsLinkStatus", + number=100526016, + message="InterconnectGroup", ) - mac_address: str = proto.Field( + kind: str = proto.Field( proto.STRING, - number=332540164, + number=3292052, optional=True, ) - - -class InterconnectDiagnosticsARPEntry(proto.Message): - r"""Describing the ARP neighbor entries seen on this link - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - ip_address (str): - The IP address of this ARP neighbor. - - This field is a member of `oneof`_ ``_ip_address``. - mac_address (str): - The MAC address of this ARP neighbor. - - This field is a member of `oneof`_ ``_mac_address``. - """ - - ip_address: str = proto.Field( + next_page_token: str = proto.Field( proto.STRING, - number=406272220, + number=79797525, optional=True, ) - mac_address: str = proto.Field( + self_link: str = proto.Field( proto.STRING, - number=332540164, + number=456214797, optional=True, ) + unreachables: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=243372063, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) -class InterconnectDiagnosticsLinkLACPStatus(proto.Message): - r""" +class InterconnectGroupsOperationalStatus(proto.Message): + r"""Request to get the status of the interconnect group with + extra detail. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - google_system_id (str): - System ID of the port on Google's side of the - LACP exchange. + configured (google.cloud.compute_v1.types.InterconnectGroupConfigured): + Output only. The configuration analysis, as + returned by Get. - This field is a member of `oneof`_ ``_google_system_id``. - neighbor_system_id (str): - System ID of the port on the neighbor's side - of the LACP exchange. + This field is a member of `oneof`_ ``_configured``. + group_status (str): + Output only. Summarizes the status of the + group. Check the GroupStatus enum for the list + of possible values. - This field is a member of `oneof`_ ``_neighbor_system_id``. - state (str): - The state of a LACP link, which can take one - of the following values: - ACTIVE: The link is - configured and active within the bundle. - - DETACHED: The link is not configured within the - bundle. This means that the rest of the object - should be empty. Check the State enum for the - list of possible values. + This field is a member of `oneof`_ ``_group_status``. + intent (google.cloud.compute_v1.types.InterconnectGroupIntent): + Output only. The intent of the resource, as + returned by Get. - This field is a member of `oneof`_ ``_state``. + This field is a member of `oneof`_ ``_intent``. + interconnect_statuses (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupsOperationalStatusInterconnectStatus]): + + operational (google.cloud.compute_v1.types.InterconnectGroupConfigured): + Output only. The operational state of the + group, including only active Interconnects. + + This field is a member of `oneof`_ ``_operational``. """ - class State(proto.Enum): - r"""The state of a LACP link, which can take one of the following - values: - ACTIVE: The link is configured and active within the - bundle. - DETACHED: The link is not configured within the - bundle. This means that the rest of the object should be empty. + class GroupStatus(proto.Enum): + r"""Output only. Summarizes the status of the group. Values: - UNDEFINED_STATE (0): + UNDEFINED_GROUP_STATUS (0): A value indicating that the enum field is not set. - ACTIVE (314733318): - The link is configured and active within the - bundle. - DETACHED (216562546): - The link is not configured within the bundle, - this means the rest of the object should be - empty. + DEGRADED (396890926): + No description available. + FULLY_DOWN (255514647): + No description available. + FULLY_UP (504176464): + No description available. + GROUPS_STATUS_UNSPECIFIED (261932693): + No description available. """ - UNDEFINED_STATE = 0 - ACTIVE = 314733318 - DETACHED = 216562546 + UNDEFINED_GROUP_STATUS = 0 + DEGRADED = 396890926 + FULLY_DOWN = 255514647 + FULLY_UP = 504176464 + GROUPS_STATUS_UNSPECIFIED = 261932693 - google_system_id: str = proto.Field( - proto.STRING, - number=91210405, + configured: "InterconnectGroupConfigured" = proto.Field( + proto.MESSAGE, + number=295631422, optional=True, + message="InterconnectGroupConfigured", ) - neighbor_system_id: str = proto.Field( + group_status: str = proto.Field( proto.STRING, - number=343821342, + number=338778546, optional=True, ) - state: str = proto.Field( - proto.STRING, - number=109757585, + intent: "InterconnectGroupIntent" = proto.Field( + proto.MESSAGE, + number=426849948, optional=True, + message="InterconnectGroupIntent", ) - - -class InterconnectDiagnosticsLinkOpticalPower(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - state (str): - The status of the current value when compared to the warning - and alarm levels for the receiving or transmitting - transceiver. Possible states include: - OK: The value has - not crossed a warning threshold. - LOW_WARNING: The value - has crossed below the low warning threshold. - HIGH_WARNING: - The value has crossed above the high warning threshold. - - LOW_ALARM: The value has crossed below the low alarm - threshold. - HIGH_ALARM: The value has crossed above the - high alarm threshold. Check the State enum for the list of - possible values. - - This field is a member of `oneof`_ ``_state``. - value (float): - Value of the current receiving or - transmitting optical power, read in dBm. Take a - known good optical value, give it a 10% margin - and trigger warnings relative to that value. In - general, a -7dBm warning and a -11dBm alarm are - good optical value estimates for most links. - - This field is a member of `oneof`_ ``_value``. - """ - - class State(proto.Enum): - r"""The status of the current value when compared to the warning and - alarm levels for the receiving or transmitting transceiver. Possible - states include: - OK: The value has not crossed a warning threshold. - - LOW_WARNING: The value has crossed below the low warning - threshold. - HIGH_WARNING: The value has crossed above the high - warning threshold. - LOW_ALARM: The value has crossed below the low - alarm threshold. - HIGH_ALARM: The value has crossed above the high - alarm threshold. - - Values: - UNDEFINED_STATE (0): - A value indicating that the enum field is not - set. - HIGH_ALARM (305363284): - The value has crossed above the high alarm - threshold. - HIGH_WARNING (220984799): - The value of the current optical power has - crossed above the high warning threshold. - LOW_ALARM (316659046): - The value of the current optical power has - crossed below the low alarm threshold. - LOW_WARNING (338793841): - The value of the current optical power has - crossed below the low warning threshold. - OK (2524): - The value of the current optical power has - not crossed a warning threshold. - """ - UNDEFINED_STATE = 0 - HIGH_ALARM = 305363284 - HIGH_WARNING = 220984799 - LOW_ALARM = 316659046 - LOW_WARNING = 338793841 - OK = 2524 - - state: str = proto.Field( - proto.STRING, - number=109757585, - optional=True, + interconnect_statuses: MutableSequence[ + "InterconnectGroupsOperationalStatusInterconnectStatus" + ] = proto.RepeatedField( + proto.MESSAGE, + number=446756017, + message="InterconnectGroupsOperationalStatusInterconnectStatus", ) - value: float = proto.Field( - proto.FLOAT, - number=111972721, + operational: "InterconnectGroupConfigured" = proto.Field( + proto.MESSAGE, + number=129704914, optional=True, + message="InterconnectGroupConfigured", ) -class InterconnectDiagnosticsLinkStatus(proto.Message): - r""" +class InterconnectGroupsOperationalStatusInterconnectStatus(proto.Message): + r"""The status of one Interconnect in the group. The order is + arbitrary. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - arp_caches (MutableSequence[google.cloud.compute_v1.types.InterconnectDiagnosticsARPEntry]): - A list of InterconnectDiagnostics.ARPEntry - objects, describing the ARP neighbor entries - seen on this link. This will be empty if the - link is bundled - circuit_id (str): - The unique ID for this link assigned during - turn up by Google. - - This field is a member of `oneof`_ ``_circuit_id``. - google_demarc (str): - The Demarc address assigned by Google and - provided in the LoA. - - This field is a member of `oneof`_ ``_google_demarc``. - lacp_status (google.cloud.compute_v1.types.InterconnectDiagnosticsLinkLACPStatus): - - This field is a member of `oneof`_ ``_lacp_status``. - macsec (google.cloud.compute_v1.types.InterconnectDiagnosticsMacsecStatus): - Describes the status of MACsec encryption on - this link. + admin_enabled (bool): + Output only. Whether the Interconnect is + enabled. - This field is a member of `oneof`_ ``_macsec``. - operational_status (str): - The operational status of the link. - Check the OperationalStatus enum for the list of - possible values. + This field is a member of `oneof`_ ``_admin_enabled``. + diagnostics (google.cloud.compute_v1.types.InterconnectDiagnostics): + Output only. The diagnostics of the + Interconnect, as returned by the existing + get-diagnostics method. - This field is a member of `oneof`_ ``_operational_status``. - receiving_optical_power (google.cloud.compute_v1.types.InterconnectDiagnosticsLinkOpticalPower): - An InterconnectDiagnostics.LinkOpticalPower - object, describing the current value and status - of the received light level. + This field is a member of `oneof`_ ``_diagnostics``. + interconnect (str): + Output only. The URL of the Interconnect + being described. - This field is a member of `oneof`_ ``_receiving_optical_power``. - transmitting_optical_power (google.cloud.compute_v1.types.InterconnectDiagnosticsLinkOpticalPower): - An InterconnectDiagnostics.LinkOpticalPower - object, describing the current value and status - of the transmitted light level. + This field is a member of `oneof`_ ``_interconnect``. + is_active (str): + Output only. Whether this interconnect is + participating in the redundant configuration. + Check the IsActive enum for the list of possible + values. - This field is a member of `oneof`_ ``_transmitting_optical_power``. + This field is a member of `oneof`_ ``_is_active``. """ - class OperationalStatus(proto.Enum): - r"""The operational status of the link. + class IsActive(proto.Enum): + r"""Output only. Whether this interconnect is participating in + the redundant configuration. Values: - UNDEFINED_OPERATIONAL_STATUS (0): + UNDEFINED_IS_ACTIVE (0): A value indicating that the enum field is not set. - LINK_OPERATIONAL_STATUS_DOWN (281653885): - The interface is unable to communicate with - the remote end. - LINK_OPERATIONAL_STATUS_UP (305879862): - The interface has low level communication - with the remote end. + ACTIVE (314733318): + No description available. + INACTIVE (270421099): + No description available. + IS_ACTIVE_UNSPECIFIED (274948243): + No description available. """ - UNDEFINED_OPERATIONAL_STATUS = 0 - LINK_OPERATIONAL_STATUS_DOWN = 281653885 - LINK_OPERATIONAL_STATUS_UP = 305879862 + UNDEFINED_IS_ACTIVE = 0 + ACTIVE = 314733318 + INACTIVE = 270421099 + IS_ACTIVE_UNSPECIFIED = 274948243 - arp_caches: MutableSequence[ - "InterconnectDiagnosticsARPEntry" - ] = proto.RepeatedField( - proto.MESSAGE, - number=414591761, - message="InterconnectDiagnosticsARPEntry", - ) - circuit_id: str = proto.Field( - proto.STRING, - number=225180977, - optional=True, - ) - google_demarc: str = proto.Field( - proto.STRING, - number=51084, - optional=True, - ) - lacp_status: "InterconnectDiagnosticsLinkLACPStatus" = proto.Field( - proto.MESSAGE, - number=361210415, + admin_enabled: bool = proto.Field( + proto.BOOL, + number=445675089, optional=True, - message="InterconnectDiagnosticsLinkLACPStatus", ) - macsec: "InterconnectDiagnosticsMacsecStatus" = proto.Field( + diagnostics: "InterconnectDiagnostics" = proto.Field( proto.MESSAGE, - number=528867490, + number=333355436, optional=True, - message="InterconnectDiagnosticsMacsecStatus", + message="InterconnectDiagnostics", ) - operational_status: str = proto.Field( + interconnect: str = proto.Field( proto.STRING, - number=201070847, - optional=True, - ) - receiving_optical_power: "InterconnectDiagnosticsLinkOpticalPower" = proto.Field( - proto.MESSAGE, - number=244717279, - optional=True, - message="InterconnectDiagnosticsLinkOpticalPower", - ) - transmitting_optical_power: "InterconnectDiagnosticsLinkOpticalPower" = proto.Field( - proto.MESSAGE, - number=459431197, + number=224601230, optional=True, - message="InterconnectDiagnosticsLinkOpticalPower", ) - - -class InterconnectDiagnosticsMacsecStatus(proto.Message): - r"""Describes the status of MACsec encryption on the link. - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - ckn (str): - Indicates the Connectivity Association Key - Name (CKN) currently being used if MACsec is - operational. - - This field is a member of `oneof`_ ``_ckn``. - operational (bool): - Indicates whether or not MACsec is - operational on this link. - - This field is a member of `oneof`_ ``_operational``. - """ - - ckn: str = proto.Field( + is_active: str = proto.Field( proto.STRING, - number=98566, - optional=True, - ) - operational: bool = proto.Field( - proto.BOOL, - number=129704914, + number=114830267, optional=True, ) -class InterconnectGroup(proto.Message): - r"""An interconnect group resource allows customers to create, - analyze, and expand their redundant connections. +class InterconnectList(proto.Message): + r"""Response to the list request, and contains a list of + interconnects. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - configured (google.cloud.compute_v1.types.InterconnectGroupConfigured): - - This field is a member of `oneof`_ ``_configured``. - creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. - - This field is a member of `oneof`_ ``_creation_timestamp``. - description (str): - An optional description of this resource. - Provide this property when you create the - resource. - - This field is a member of `oneof`_ ``_description``. - etag (str): - Opaque system-generated token that uniquely - identifies the configuration. If provided when - patching a configuration in update mode, the - provided token must match the current token or - the update is rejected. This provides a reliable - means of doing read-modify-write (optimistic - locking) as described by API 154. - - This field is a member of `oneof`_ ``_etag``. - id (int): - [Output Only] The unique identifier for the resource type. - The server generates this identifier. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. This field is a member of `oneof`_ ``_id``. - intent (google.cloud.compute_v1.types.InterconnectGroupIntent): - - This field is a member of `oneof`_ ``_intent``. - interconnects (MutableMapping[str, google.cloud.compute_v1.types.InterconnectGroupInterconnect]): - Interconnects in the InterconnectGroup. Keys - are arbitrary user-specified strings. Users are - encouraged, but not required, to use their - preferred format for resource links as keys. - Note that there are add-members and - remove-members methods in gcloud. The size of - this map is limited by an "Interconnects per - group" quota. + items (MutableSequence[google.cloud.compute_v1.types.Interconnect]): + A list of Interconnect resources. kind (str): - [Output Only] Type of the resource. Always - compute#InterconnectGroup + Output only. [Output Only] Type of resource. + Alwayscompute#interconnectList for lists of interconnects. This field is a member of `oneof`_ ``_kind``. - name (str): - Name of the resource. Provided by the client when the - resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 - characters long and match the regular expression - ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first - character must be a lowercase letter, and all following - characters must be a dash, lowercase letter, or digit, - except the last character, which cannot be a dash. - - This field is a member of `oneof`_ ``_name``. - physical_structure (google.cloud.compute_v1.types.InterconnectGroupPhysicalStructure): + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. - This field is a member of `oneof`_ ``_physical_structure``. + This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. """ - configured: "InterconnectGroupConfigured" = proto.Field( - proto.MESSAGE, - number=295631422, - optional=True, - message="InterconnectGroupConfigured", - ) - creation_timestamp: str = proto.Field( - proto.STRING, - number=30525366, - optional=True, - ) - description: str = proto.Field( - proto.STRING, - number=422937596, - optional=True, - ) - etag: str = proto.Field( + @property + def raw_page(self): + return self + + id: str = proto.Field( proto.STRING, - number=3123477, - optional=True, - ) - id: int = proto.Field( - proto.UINT64, number=3355, optional=True, ) - intent: "InterconnectGroupIntent" = proto.Field( - proto.MESSAGE, - number=426849948, - optional=True, - message="InterconnectGroupIntent", - ) - interconnects: MutableMapping[ - str, "InterconnectGroupInterconnect" - ] = proto.MapField( - proto.STRING, + items: MutableSequence["Interconnect"] = proto.RepeatedField( proto.MESSAGE, - number=520187301, - message="InterconnectGroupInterconnect", + number=100526016, + message="Interconnect", ) kind: str = proto.Field( proto.STRING, number=3292052, optional=True, ) - name: str = proto.Field( + next_page_token: str = proto.Field( proto.STRING, - number=3373707, - optional=True, - ) - physical_structure: "InterconnectGroupPhysicalStructure" = proto.Field( - proto.MESSAGE, - number=195307531, + number=79797525, optional=True, - message="InterconnectGroupPhysicalStructure", ) self_link: str = proto.Field( proto.STRING, number=456214797, optional=True, ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) -class InterconnectGroupConfigured(proto.Message): - r"""[Output Only] The status of the group as configured. This has the - same structure as the operational field reported by the - OperationalStatus method, but does not take into account the - operational status of each resource. +class InterconnectLocation(proto.Message): + r"""Represents an Interconnect Attachment (VLAN) Location + resource. + You can use this resource to find location details about an + Interconnect attachment (VLAN). For more information about + interconnect attachments, read Creating VLAN Attachments. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - topology_capability (google.cloud.compute_v1.types.InterconnectGroupConfiguredTopologyCapability): + address (str): + Output only. [Output Only] The postal address of the Point + of Presence, each line in the address is separated by a + newline character. - This field is a member of `oneof`_ ``_topology_capability``. - """ + This field is a member of `oneof`_ ``_address``. + availability_zone (str): + [Output Only] Availability zone for this + InterconnectLocation. Within a metropolitan area (metro), + maintenance will not be simultaneously scheduled in more + than one availability zone. Example: "zone1" or "zone2". - topology_capability: "InterconnectGroupConfiguredTopologyCapability" = proto.Field( - proto.MESSAGE, - number=144190696, - optional=True, - message="InterconnectGroupConfiguredTopologyCapability", - ) + This field is a member of `oneof`_ ``_availability_zone``. + available_features (MutableSequence[str]): + [Output only] List of features available at this + InterconnectLocation, which can take one of the following + values: + :: -class InterconnectGroupConfiguredTopologyCapability(proto.Message): - r"""[Output Only] How reliable this topology is configured to be, and - why this group does or does not meet the requirements for the - intended capability. + - IF_MACSEC + - IF_CROSS_SITE_NETWORK + Check the AvailableFeatures enum for the list of possible + values. + available_link_types (MutableSequence[str]): + [Output only] List of link types available at this + InterconnectLocation, which can take one of the following + values: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + :: - Attributes: - intended_capability_blockers (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers]): + - LINK_TYPE_ETHERNET_10G_LR + - LINK_TYPE_ETHERNET_100G_LR + - LINK_TYPE_ETHERNET_400G_LR4 - supported_sla (str): - Check the SupportedSla enum for the list of - possible values. + Check the AvailableLinkTypes enum for the list of possible + values. + city (str): + [Output Only] Metropolitan area designator that indicates + which city an interconnect is located. For example: + "Chicago, IL", "Amsterdam, Netherlands". - This field is a member of `oneof`_ ``_supported_sla``. - """ + This field is a member of `oneof`_ ``_city``. + continent (str): + [Output Only] Continent for this location, which can take + one of the following values: - class SupportedSla(proto.Enum): - r""" + :: - Values: - UNDEFINED_SUPPORTED_SLA (0): - A value indicating that the enum field is not - set. - NO_SLA (161460618): - No description available. - PRODUCTION_CRITICAL (470416485): - No description available. - PRODUCTION_NON_CRITICAL (117399223): - No description available. - UNSPECIFIED (526786327): - No description available. - """ - UNDEFINED_SUPPORTED_SLA = 0 - NO_SLA = 161460618 - PRODUCTION_CRITICAL = 470416485 - PRODUCTION_NON_CRITICAL = 117399223 - UNSPECIFIED = 526786327 + - AFRICA + - ASIA_PAC + - EUROPE + - NORTH_AMERICA + - SOUTH_AMERICA - intended_capability_blockers: MutableSequence[ - "InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers" - ] = proto.RepeatedField( - proto.MESSAGE, - number=531644140, - message="InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers", - ) - supported_sla: str = proto.Field( - proto.STRING, - number=59292183, - optional=True, - ) + Check the Continent enum for the list of possible values. + This field is a member of `oneof`_ ``_continent``. + creation_timestamp (str): + Output only. [Output Only] Creation timestamp inRFC3339 text + format. -class InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers( - proto.Message -): - r"""[Output Only] Reasons why configuration.topologyCapability.sla - differs from intent.topologyCapability. This list is empty if and - only if those are the same. + This field is a member of `oneof`_ ``_creation_timestamp``. + cross_site_interconnect_infos (MutableSequence[google.cloud.compute_v1.types.InterconnectLocationCrossSiteInterconnectInfo]): + [Output Only] A list of + InterconnectLocation.CrossSiteInterconnectInfo objects, that + describe where Cross-Site Interconnect wires may connect to + from this location and associated connection parameters. + Cross-Site Interconnect isn't allowed to locations which are + not listed. + description (str): + Output only. [Output Only] An optional description of the + resource. + This field is a member of `oneof`_ ``_description``. + facility_provider (str): + Output only. [Output Only] The name of the provider for this + facility (e.g., EQUINIX). - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_facility_provider``. + facility_provider_facility_id (str): + Output only. [Output Only] A provider-assigned Identifier + for this facility (e.g., Ashburn-DC1). - Attributes: - blocker_type (str): - Check the BlockerType enum for the list of - possible values. + This field is a member of `oneof`_ ``_facility_provider_facility_id``. + id (int): + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. - This field is a member of `oneof`_ ``_blocker_type``. - documentation_link (str): - [Output Only] The url of Google Cloud public documentation - explaining this requirement. This is set for every type of - requirement. + This field is a member of `oneof`_ ``_id``. + kind (str): + Output only. [Output Only] Type of the resource. + Alwayscompute#interconnectLocation for interconnect + locations. - This field is a member of `oneof`_ ``_documentation_link``. - explanation (str): - [Output Only] A human-readable explanation of this - requirement and why it's not met. This is set for every type - of requirement. + This field is a member of `oneof`_ ``_kind``. + name (str): + Output only. [Output Only] Name of the resource. - This field is a member of `oneof`_ ``_explanation``. - facilities (MutableSequence[str]): - [Output Only] Facilities used to explain this blocker in - more detail. Like - physicalStructure.metros.facilities.facility, this is a - numeric string like "5467". - interconnects (MutableSequence[str]): - [Output Only] Interconnects used to explain this blocker in - more detail. - metros (MutableSequence[str]): - [Output Only] Metros used to explain this blocker in more - detail. These are three-letter lowercase strings like "iad". - A blocker like INCOMPATIBLE_METROS will specify the - problematic metros in this field. - zones (MutableSequence[str]): - [Output Only] Zones used to explain this blocker in more - detail. Zone names are "zone1" and/or "zone2". + This field is a member of `oneof`_ ``_name``. + peeringdb_facility_id (str): + Output only. [Output Only] The peeringdb identifier for this + facility (corresponding with a netfac type in peeringdb). + + This field is a member of `oneof`_ ``_peeringdb_facility_id``. + region_infos (MutableSequence[google.cloud.compute_v1.types.InterconnectLocationRegionInfo]): + Output only. [Output Only] A list of + InterconnectLocation.RegionInfo objects, that describe + parameters pertaining to the relation between this + InterconnectLocation and various Google Cloud regions. + self_link (str): + Output only. [Output Only] Server-defined URL for the + resource. + + This field is a member of `oneof`_ ``_self_link``. + single_region_production_critical_peer_locations (MutableSequence[str]): + Output only. [Output Only] URLs of the other locations that + can pair up with this location to support Single-Region + 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are + Single-Region 99.99% peer locations of each other. + status (str): + [Output Only] The status of this InterconnectLocation, which + can take one of the following values: + + :: + + - CLOSED: The InterconnectLocation is closed and is unavailable for + provisioning new Interconnects. + - AVAILABLE: The InterconnectLocation is available for provisioning new + Interconnects. + + Check the Status enum for the list of possible values. + + This field is a member of `oneof`_ ``_status``. + supports_pzs (bool): + Output only. [Output Only] Reserved for future use. + + This field is a member of `oneof`_ ``_supports_pzs``. """ - class BlockerType(proto.Enum): + class AvailableFeatures(proto.Enum): r""" Values: - UNDEFINED_BLOCKER_TYPE (0): + UNDEFINED_AVAILABLE_FEATURES (0): A value indicating that the enum field is not set. - INCOMPATIBLE_METROS (290410432): + IF_CROSS_SITE_NETWORK (469111095): + Cross-Site Networking + IF_L2_FORWARDING (125563860): + L2 Interconnect Attachment Forwarding + IF_MACSEC (396279300): + Media Access Control security (MACsec) + """ + UNDEFINED_AVAILABLE_FEATURES = 0 + IF_CROSS_SITE_NETWORK = 469111095 + IF_L2_FORWARDING = 125563860 + IF_MACSEC = 396279300 + + class AvailableLinkTypes(proto.Enum): + r""" + + Values: + UNDEFINED_AVAILABLE_LINK_TYPES (0): + A value indicating that the enum field is not + set. + LINK_TYPE_ETHERNET_100G_LR (337672551): + 100G Ethernet, LR Optics. + LINK_TYPE_ETHERNET_10G_LR (236739749): + 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; + LINK_TYPE_ETHERNET_400G_LR4 (127023690): + 400G Ethernet, LR4 Optics. + """ + UNDEFINED_AVAILABLE_LINK_TYPES = 0 + LINK_TYPE_ETHERNET_100G_LR = 337672551 + LINK_TYPE_ETHERNET_10G_LR = 236739749 + LINK_TYPE_ETHERNET_400G_LR4 = 127023690 + + class Continent(proto.Enum): + r"""[Output Only] Continent for this location, which can take one of the + following values: + + :: + + - AFRICA + - ASIA_PAC + - EUROPE + - NORTH_AMERICA + - SOUTH_AMERICA + + Values: + UNDEFINED_CONTINENT (0): + A value indicating that the enum field is not + set. + AFRICA (317443706): No description available. - NOT_AVAILABLE (140722205): + ASIA_PAC (119782269): No description available. - NO_INTERCONNECTS (523549575): + C_AFRICA (71993846): No description available. - NO_INTERCONNECTS_IN_METRO_AND_ZONE (440966492): + C_ASIA_PAC (465668089): No description available. - OTHER (75532016): + C_EUROPE (200369438): No description available. - UNSPECIFIED (526786327): + C_NORTH_AMERICA (275697048): + No description available. + C_SOUTH_AMERICA (397149792): + No description available. + EUROPE (445819298): + No description available. + NORTH_AMERICA (448015508): + No description available. + SOUTH_AMERICA (32597340): No description available. """ - UNDEFINED_BLOCKER_TYPE = 0 - INCOMPATIBLE_METROS = 290410432 - NOT_AVAILABLE = 140722205 - NO_INTERCONNECTS = 523549575 - NO_INTERCONNECTS_IN_METRO_AND_ZONE = 440966492 - OTHER = 75532016 - UNSPECIFIED = 526786327 + UNDEFINED_CONTINENT = 0 + AFRICA = 317443706 + ASIA_PAC = 119782269 + C_AFRICA = 71993846 + C_ASIA_PAC = 465668089 + C_EUROPE = 200369438 + C_NORTH_AMERICA = 275697048 + C_SOUTH_AMERICA = 397149792 + EUROPE = 445819298 + NORTH_AMERICA = 448015508 + SOUTH_AMERICA = 32597340 - blocker_type: str = proto.Field( + class Status(proto.Enum): + r"""[Output Only] The status of this InterconnectLocation, which can + take one of the following values: + + :: + + - CLOSED: The InterconnectLocation is closed and is unavailable for + provisioning new Interconnects. + - AVAILABLE: The InterconnectLocation is available for provisioning new + Interconnects. + + Values: + UNDEFINED_STATUS (0): + A value indicating that the enum field is not + set. + AVAILABLE (442079913): + The InterconnectLocation is available for + provisioning new Interconnects. + CLOSED (380163436): + The InterconnectLocation is closed for + provisioning new Interconnects. + """ + UNDEFINED_STATUS = 0 + AVAILABLE = 442079913 + CLOSED = 380163436 + + address: str = proto.Field( proto.STRING, - number=381194847, + number=462920692, optional=True, ) - documentation_link: str = proto.Field( + availability_zone: str = proto.Field( proto.STRING, - number=93465183, + number=158459920, optional=True, ) - explanation: str = proto.Field( + available_features: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=504745497, + number=496344307, + ) + available_link_types: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=509504298, + ) + city: str = proto.Field( + proto.STRING, + number=3053931, optional=True, ) - facilities: MutableSequence[str] = proto.RepeatedField( + continent: str = proto.Field( proto.STRING, - number=536683137, + number=133442996, + optional=True, ) - interconnects: MutableSequence[str] = proto.RepeatedField( + creation_timestamp: str = proto.Field( + proto.STRING, + number=30525366, + optional=True, + ) + cross_site_interconnect_infos: MutableSequence[ + "InterconnectLocationCrossSiteInterconnectInfo" + ] = proto.RepeatedField( + proto.MESSAGE, + number=248573837, + message="InterconnectLocationCrossSiteInterconnectInfo", + ) + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + facility_provider: str = proto.Field( + proto.STRING, + number=533303309, + optional=True, + ) + facility_provider_facility_id: str = proto.Field( + proto.STRING, + number=87269125, + optional=True, + ) + id: int = proto.Field( + proto.UINT64, + number=3355, + optional=True, + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + name: str = proto.Field( + proto.STRING, + number=3373707, + optional=True, + ) + peeringdb_facility_id: str = proto.Field( + proto.STRING, + number=536567094, + optional=True, + ) + region_infos: MutableSequence[ + "InterconnectLocationRegionInfo" + ] = proto.RepeatedField( + proto.MESSAGE, + number=312194170, + message="InterconnectLocationRegionInfo", + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + single_region_production_critical_peer_locations: MutableSequence[ + str + ] = proto.RepeatedField( proto.STRING, - number=520187301, + number=439537103, ) - metros: MutableSequence[str] = proto.RepeatedField( + status: str = proto.Field( proto.STRING, - number=533067386, + number=181260274, + optional=True, ) - zones: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=116085319, + supports_pzs: bool = proto.Field( + proto.BOOL, + number=83983214, + optional=True, ) -class InterconnectGroupIntent(proto.Message): - r"""The user's intent for this group. This is the only required - field besides the name that must be specified on group creation. +class InterconnectLocationCrossSiteInterconnectInfo(proto.Message): + r"""Information about Cross-Site Interconnect wires which may be + created between the containing location and another remote + location. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - topology_capability (str): - Check the TopologyCapability enum for the - list of possible values. + city (str): + Output only. The remote location for + Cross-Site Interconnect wires. This specifies an + InterconnectLocation city (metropolitan area + designator), which itself may match multiple + InterconnectLocations. - This field is a member of `oneof`_ ``_topology_capability``. + This field is a member of `oneof`_ ``_city``. """ - class TopologyCapability(proto.Enum): - r""" - - Values: - UNDEFINED_TOPOLOGY_CAPABILITY (0): - A value indicating that the enum field is not - set. - NO_SLA (161460618): - No description available. - PRODUCTION_CRITICAL (470416485): - No description available. - PRODUCTION_NON_CRITICAL (117399223): - No description available. - UNSPECIFIED (526786327): - No description available. - """ - UNDEFINED_TOPOLOGY_CAPABILITY = 0 - NO_SLA = 161460618 - PRODUCTION_CRITICAL = 470416485 - PRODUCTION_NON_CRITICAL = 117399223 - UNSPECIFIED = 526786327 - - topology_capability: str = proto.Field( + city: str = proto.Field( proto.STRING, - number=144190696, + number=3053931, optional=True, ) -class InterconnectGroupInterconnect(proto.Message): - r"""An Interconnect in this InterconnectGroup. +class InterconnectLocationList(proto.Message): + r"""Response to the list request, and contains a list of + interconnect locations. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - interconnect (str): - The URL of an Interconnect in this group. All - Interconnects in the group are unique. - - This field is a member of `oneof`_ ``_interconnect``. - """ + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. - interconnect: str = proto.Field( - proto.STRING, - number=224601230, - optional=True, - ) + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.InterconnectLocation]): + A list of InterconnectLocation resources. + kind (str): + Output only. [Output Only] Type of resource. + Alwayscompute#interconnectLocationList for lists of + interconnect locations. + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. -class InterconnectGroupPhysicalStructure(proto.Message): - r"""[Output Only] An analysis of the physical layout of Interconnects in - this group. Every Interconnect in the group is shown once in this - structure. + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + Output only. [Output Only] Server-defined URL for this + resource. - Attributes: - metros (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupPhysicalStructureMetros]): + This field is a member of `oneof`_ ``_self_link``. + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + This field is a member of `oneof`_ ``_warning``. """ - metros: MutableSequence[ - "InterconnectGroupPhysicalStructureMetros" - ] = proto.RepeatedField( - proto.MESSAGE, - number=533067386, - message="InterconnectGroupPhysicalStructureMetros", - ) - - -class InterconnectGroupPhysicalStructureMetros(proto.Message): - r"""[Output Only] The metros Interconnects in this group are in. - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - facilities (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupPhysicalStructureMetrosFacilities]): - - metro (str): - [Output Only] The name of the metro, as a three-letter - lowercase string like "iad". This is the first component of - the location of Interconnects underneath this. - - This field is a member of `oneof`_ ``_metro``. - """ + @property + def raw_page(self): + return self - facilities: MutableSequence[ - "InterconnectGroupPhysicalStructureMetrosFacilities" - ] = proto.RepeatedField( + id: str = proto.Field( + proto.STRING, + number=3355, + optional=True, + ) + items: MutableSequence["InterconnectLocation"] = proto.RepeatedField( proto.MESSAGE, - number=536683137, - message="InterconnectGroupPhysicalStructureMetrosFacilities", + number=100526016, + message="InterconnectLocation", ) - metro: str = proto.Field( + kind: str = proto.Field( proto.STRING, - number=103787801, + number=3292052, optional=True, ) - - -class InterconnectGroupPhysicalStructureMetrosFacilities(proto.Message): - r"""[Output Only] The facilities Interconnects in this metro are present - in. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - facility (str): - [Output Only] The ID of this facility, as a numeric string - like "5467". This is the third component of the location of - Interconnects in this facility. - - This field is a member of `oneof`_ ``_facility``. - zones (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupPhysicalStructureMetrosFacilitiesZones]): - - """ - - facility: str = proto.Field( + next_page_token: str = proto.Field( proto.STRING, - number=501116579, + number=79797525, optional=True, ) - zones: MutableSequence[ - "InterconnectGroupPhysicalStructureMetrosFacilitiesZones" - ] = proto.RepeatedField( - proto.MESSAGE, - number=116085319, - message="InterconnectGroupPhysicalStructureMetrosFacilitiesZones", - ) - - -class InterconnectGroupPhysicalStructureMetrosFacilitiesZones(proto.Message): - r"""[Output Only] The zones that Interconnects in this facility are - present in. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - interconnects (MutableSequence[str]): - [Output Only] URLs of Interconnects in this redundancy group - in the given metro, facility, and zone. - zone (str): - [Output Only] The name of the zone, either "zone1" or - "zone2". This is the second component of the location of - Interconnects in this facility. - - This field is a member of `oneof`_ ``_zone``. - """ - - interconnects: MutableSequence[str] = proto.RepeatedField( + self_link: str = proto.Field( proto.STRING, - number=520187301, + number=456214797, + optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, optional=True, + message="Warning", ) -class InterconnectGroupsCreateMembers(proto.Message): - r""" +class InterconnectLocationRegionInfo(proto.Message): + r"""Information about any potential InterconnectAttachments + between an Interconnect at a specific InterconnectLocation, and + a specific Cloud Region. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - intent_mismatch_behavior (str): - How to behave when - configured.topologyCapability.supportedSLA would - not equal intent.topologyCapability after this - call. Check the IntentMismatchBehavior enum for - the list of possible values. + expected_rtt_ms (int): + Output only. Expected round-trip time in + milliseconds, from this InterconnectLocation to + a VM in this region. - This field is a member of `oneof`_ ``_intent_mismatch_behavior``. - interconnects (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupsCreateMembersInterconnectInput]): + This field is a member of `oneof`_ ``_expected_rtt_ms``. + l2_forwarding_enabled (bool): + Output only. Identifies whether L2 + Interconnect Attachments can be created in this + region for interconnects that are in this + location. - template_interconnect (google.cloud.compute_v1.types.InterconnectGroupsCreateMembersInterconnectInput): - Parameters for the Interconnects to create. + This field is a member of `oneof`_ ``_l2_forwarding_enabled``. + location_presence (str): + Output only. Identifies the network presence + of this location. Check the LocationPresence + enum for the list of possible values. - This field is a member of `oneof`_ ``_template_interconnect``. + This field is a member of `oneof`_ ``_location_presence``. + region (str): + Output only. URL for the region of this + location. + + This field is a member of `oneof`_ ``_region``. """ - class IntentMismatchBehavior(proto.Enum): - r"""How to behave when configured.topologyCapability.supportedSLA - would not equal intent.topologyCapability after this call. + class LocationPresence(proto.Enum): + r"""Output only. Identifies the network presence of this + location. Values: - UNDEFINED_INTENT_MISMATCH_BEHAVIOR (0): + UNDEFINED_LOCATION_PRESENCE (0): A value indicating that the enum field is not set. - CREATE (385389820): - No description available. - REJECT (266102687): - No description available. - UNSPECIFIED (526786327): - No description available. + GLOBAL (494663587): + This region is not in any common network + presence with this InterconnectLocation. + LOCAL_REGION (403535464): + This region shares the same regional network + presence as this InterconnectLocation. + LP_GLOBAL (429584062): + [Deprecated] This region is not in any common network + presence with this InterconnectLocation. + LP_LOCAL_REGION (488598851): + [Deprecated] This region shares the same regional network + presence as this InterconnectLocation. """ - UNDEFINED_INTENT_MISMATCH_BEHAVIOR = 0 - CREATE = 385389820 - REJECT = 266102687 - UNSPECIFIED = 526786327 + UNDEFINED_LOCATION_PRESENCE = 0 + GLOBAL = 494663587 + LOCAL_REGION = 403535464 + LP_GLOBAL = 429584062 + LP_LOCAL_REGION = 488598851 - intent_mismatch_behavior: str = proto.Field( - proto.STRING, - number=164408000, + expected_rtt_ms: int = proto.Field( + proto.INT64, + number=422543866, optional=True, ) - interconnects: MutableSequence[ - "InterconnectGroupsCreateMembersInterconnectInput" - ] = proto.RepeatedField( - proto.MESSAGE, - number=520187301, - message="InterconnectGroupsCreateMembersInterconnectInput", + l2_forwarding_enabled: bool = proto.Field( + proto.BOOL, + number=241364888, + optional=True, ) - template_interconnect: "InterconnectGroupsCreateMembersInterconnectInput" = ( - proto.Field( - proto.MESSAGE, - number=224745523, - optional=True, - message="InterconnectGroupsCreateMembersInterconnectInput", - ) + location_presence: str = proto.Field( + proto.STRING, + number=101517893, + optional=True, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + optional=True, ) -class InterconnectGroupsCreateMembersInterconnectInput(proto.Message): - r"""LINT.IfChange +class InterconnectMacsec(proto.Message): + r"""Configuration information for enabling Media Access Control + security (MACsec) on this Cloud Interconnect connection between + Google and your on-premises router. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - admin_enabled (bool): - Administrative status of the interconnect. - When this is set to true, the Interconnect is - functional and can carry traffic. When set to - false, no packets can be carried over the - interconnect and no BGP routes are exchanged - over it. By default, the status is set to true. - - This field is a member of `oneof`_ ``_admin_enabled``. - customer_name (str): - Customer name, to put in the Letter of - Authorization as the party authorized to request - a crossconnect. + fail_open (bool): + If set to true, the Interconnect connection + is configured with ashould-secure MACsec + security policy, that allows the Google router + to fallback to cleartext traffic if the MKA + session cannot be established. By default, the + Interconnect connection is configured with + amust-secure security policy that drops all + traffic if the MKA session cannot be established + with your router. - This field is a member of `oneof`_ ``_customer_name``. - description (str): - An optional description of this resource. - Provide this property when you create the - resource. + This field is a member of `oneof`_ ``_fail_open``. + pre_shared_keys (MutableSequence[google.cloud.compute_v1.types.InterconnectMacsecPreSharedKey]): + Required. A keychain placeholder describing a + set of named key objects along with their start + times. A MACsec CKN/CAK is generated for each + key in the key chain. Google router + automatically picks the key with the most recent + startTime when establishing or re-establishing a + MACsec secure link. + """ - This field is a member of `oneof`_ ``_description``. - facility (str): - A zone-free location to use for all - Interconnects created in this call, like - "iad-1234". + fail_open: bool = proto.Field( + proto.BOOL, + number=532597451, + optional=True, + ) + pre_shared_keys: MutableSequence[ + "InterconnectMacsecPreSharedKey" + ] = proto.RepeatedField( + proto.MESSAGE, + number=420308466, + message="InterconnectMacsecPreSharedKey", + ) - This field is a member of `oneof`_ ``_facility``. - interconnect_type (str): - Type of interconnect, which can take one of the following - values: - PARTNER: A partner-managed interconnection shared - between customers though a partner. - DEDICATED: A dedicated - physical interconnection with the customer. Note that a - value IT_PRIVATE has been deprecated in favor of DEDICATED. - Check the InterconnectType enum for the list of possible - values. - This field is a member of `oneof`_ ``_interconnect_type``. - link_type (str): - Type of link requested, which can take one of the following - values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR - optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR - optics. - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with - LR4 optics. Note that this field indicates the speed of each - of the links in the bundle, not the speed of the entire - bundle. Check the LinkType enum for the list of possible - values. +class InterconnectMacsecConfig(proto.Message): + r"""MACsec configuration information for the Interconnect + connection. Contains the generated Connectivity Association Key + Name (CKN) and the key (CAK) for this Interconnect connection. - This field is a member of `oneof`_ ``_link_type``. - name (str): - Name of the Interconnects to be created. This must be - specified on the template and/or on each individual - interconnect. The name, if not empty, must be 1-63 - characters long, and comply with RFC1035. Specifically, any - nonempty name must be 1-63 characters long and match the - regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which - means the first character must be a lowercase letter, and - all following characters must be a dash, lowercase letter, - or digit, except the last character, which cannot be a dash. + Attributes: + pre_shared_keys (MutableSequence[google.cloud.compute_v1.types.InterconnectMacsecConfigPreSharedKey]): + A keychain placeholder describing a set of + named key objects along with their start times. + A MACsec CKN/CAK is generated for each key in + the key chain. Google router automatically picks + the key with the most recent startTime when + establishing or re-establishing a MACsec secure + link. + """ - This field is a member of `oneof`_ ``_name``. - noc_contact_email (str): - Email address to contact the customer NOC for - operations and maintenance notifications - regarding this Interconnect. If specified, this - will be used for notifications in addition to - all other forms described, such as Cloud - Monitoring logs alerting and Cloud - Notifications. This field is required for users - who sign up for Cloud Interconnect using - workforce identity federation. + pre_shared_keys: MutableSequence[ + "InterconnectMacsecConfigPreSharedKey" + ] = proto.RepeatedField( + proto.MESSAGE, + number=420308466, + message="InterconnectMacsecConfigPreSharedKey", + ) - This field is a member of `oneof`_ ``_noc_contact_email``. - remote_location (str): - Indicates that this is a Cross-Cloud - Interconnect. This field specifies the location - outside of Google's network that the - interconnect is connected to. - This field is a member of `oneof`_ ``_remote_location``. - requested_features (MutableSequence[str]): - Optional. List of features requested for this Interconnect - connection, which can take one of the following values: - - IF_MACSEC If specified then the connection is created on - MACsec capable hardware ports. If not specified, the default - value is false, which allocates non-MACsec capable ports - first if available. This parameter can be provided only with - Interconnect INSERT. It isn't valid for Interconnect PATCH. - Check the RequestedFeatures enum for the list of possible - values. - requested_link_count (int): - Target number of physical links in the link - bundle, as requested by the customer. +class InterconnectMacsecConfigPreSharedKey(proto.Message): + r"""Describes a pre-shared key used to setup MACsec in static + connectivity association key (CAK) mode. - This field is a member of `oneof`_ ``_requested_link_count``. - """ - class InterconnectType(proto.Enum): - r"""Type of interconnect, which can take one of the following values: - - PARTNER: A partner-managed interconnection shared between customers - though a partner. - DEDICATED: A dedicated physical interconnection - with the customer. Note that a value IT_PRIVATE has been deprecated - in favor of DEDICATED. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - Values: - UNDEFINED_INTERCONNECT_TYPE (0): - A value indicating that the enum field is not - set. - DEDICATED (258411983): - A dedicated physical interconnection with the - customer. - IT_PRIVATE (335677007): - [Deprecated] A private, physical interconnection with the - customer. - PARTNER (461924520): - A partner-managed interconnection shared - between customers via partner. - """ - UNDEFINED_INTERCONNECT_TYPE = 0 - DEDICATED = 258411983 - IT_PRIVATE = 335677007 - PARTNER = 461924520 + Attributes: + cak (str): + An auto-generated Connectivity Association + Key (CAK) for this key. - class LinkType(proto.Enum): - r"""Type of link requested, which can take one of the following values: - - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. - - LINK_TYPE_ETHERNET_400G_LR4: A 400G Ethernet with LR4 optics. Note - that this field indicates the speed of each of the links in the - bundle, not the speed of the entire bundle. + This field is a member of `oneof`_ ``_cak``. + ckn (str): + An auto-generated Connectivity Association + Key Name (CKN) for this key. - Values: - UNDEFINED_LINK_TYPE (0): - A value indicating that the enum field is not - set. - LINK_TYPE_ETHERNET_100G_LR (337672551): - 100G Ethernet, LR Optics. - LINK_TYPE_ETHERNET_10G_LR (236739749): - 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; - LINK_TYPE_ETHERNET_400G_LR4 (127023690): - 400G Ethernet, LR4 Optics. - """ - UNDEFINED_LINK_TYPE = 0 - LINK_TYPE_ETHERNET_100G_LR = 337672551 - LINK_TYPE_ETHERNET_10G_LR = 236739749 - LINK_TYPE_ETHERNET_400G_LR4 = 127023690 + This field is a member of `oneof`_ ``_ckn``. + name (str): + User provided name for this pre-shared key. - class RequestedFeatures(proto.Enum): - r""" + This field is a member of `oneof`_ ``_name``. + start_time (str): + User provided timestamp on or after which + this key is valid. - Values: - UNDEFINED_REQUESTED_FEATURES (0): - A value indicating that the enum field is not - set. - IF_MACSEC (396279300): - Media Access Control security (MACsec) - """ - UNDEFINED_REQUESTED_FEATURES = 0 - IF_MACSEC = 396279300 + This field is a member of `oneof`_ ``_start_time``. + """ - admin_enabled: bool = proto.Field( - proto.BOOL, - number=445675089, - optional=True, - ) - customer_name: str = proto.Field( - proto.STRING, - number=3665484, - optional=True, - ) - description: str = proto.Field( - proto.STRING, - number=422937596, - optional=True, - ) - facility: str = proto.Field( - proto.STRING, - number=501116579, - optional=True, - ) - interconnect_type: str = proto.Field( - proto.STRING, - number=515165259, - optional=True, - ) - link_type: str = proto.Field( - proto.STRING, - number=523207775, - optional=True, - ) - name: str = proto.Field( - proto.STRING, - number=3373707, - optional=True, - ) - noc_contact_email: str = proto.Field( + cak: str = proto.Field( proto.STRING, - number=14072832, + number=98253, optional=True, ) - remote_location: str = proto.Field( + ckn: str = proto.Field( proto.STRING, - number=324388750, + number=98566, optional=True, ) - requested_features: MutableSequence[str] = proto.RepeatedField( + name: str = proto.Field( proto.STRING, - number=461240814, - ) - requested_link_count: int = proto.Field( - proto.INT32, - number=45051387, + number=3373707, optional=True, ) - - -class InterconnectGroupsCreateMembersRequest(proto.Message): - r""" - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - request (google.cloud.compute_v1.types.InterconnectGroupsCreateMembers): - - This field is a member of `oneof`_ ``_request``. - """ - - request: "InterconnectGroupsCreateMembers" = proto.Field( - proto.MESSAGE, - number=21951119, + start_time: str = proto.Field( + proto.STRING, + number=37467274, optional=True, - message="InterconnectGroupsCreateMembers", ) -class InterconnectGroupsGetOperationalStatusResponse(proto.Message): - r"""Response for the - InterconnectGroupsGetOperationalStatusResponse. +class InterconnectMacsecPreSharedKey(proto.Message): + r"""Describes a pre-shared key used to setup MACsec in static + connectivity association key (CAK) mode. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - etag (str): + name (str): + Required. A name for this pre-shared key. The name must be + 1-63 characters long, and comply withRFC1035. Specifically, + the name must be 1-63 characters long and match the regular + expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the + first character must be a lowercase letter, and all + following characters must be a dash, lowercase letter, or + digit, except the last character, which cannot be a dash. - This field is a member of `oneof`_ ``_etag``. - result (google.cloud.compute_v1.types.InterconnectGroupsOperationalStatus): + This field is a member of `oneof`_ ``_name``. + start_time (str): + A RFC3339 timestamp on or after which the key + is valid. startTime can be in the future. If the + keychain has a single key, startTime can be + omitted. If the keychain has multiple keys, + startTime is mandatory for each key. The start + times of keys must be in increasing order. The + start times of two consecutive keys must be at + least 6 hours apart. - This field is a member of `oneof`_ ``_result``. + This field is a member of `oneof`_ ``_start_time``. """ - etag: str = proto.Field( + name: str = proto.Field( proto.STRING, - number=3123477, + number=3373707, optional=True, ) - result: "InterconnectGroupsOperationalStatus" = proto.Field( - proto.MESSAGE, - number=139315229, + start_time: str = proto.Field( + proto.STRING, + number=37467274, optional=True, - message="InterconnectGroupsOperationalStatus", ) -class InterconnectGroupsListResponse(proto.Message): - r""" +class InterconnectOutageNotification(proto.Message): + r"""Description of a planned outage on this Interconnect. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - etag (str): + affected_circuits (MutableSequence[str]): + If issue_type is IT_PARTIAL_OUTAGE, a list of the + Google-side circuit IDs that will be affected. + description (str): + A description about the purpose of the + outage. - This field is a member of `oneof`_ ``_etag``. - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + This field is a member of `oneof`_ ``_description``. + end_time (int): + Scheduled end time for the outage + (milliseconds since Unix epoch). - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.InterconnectGroup]): - A list of InterconnectGroup resources. - kind (str): + This field is a member of `oneof`_ ``_end_time``. + issue_type (str): + Form this outage is expected to take, which can take one of + the following values: - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + :: - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. + - OUTAGE: The Interconnect may be completely out of service for + some or all of the specified window. + - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole + should remain up, but with reduced bandwidth. - This field is a member of `oneof`_ ``_self_link``. - unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. end_interface: - MixerListResponseWithEtagBuilder - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Note that the versions of this enum prefixed with "IT\_" + have been deprecated in favor of the unprefixed values. + Check the IssueType enum for the list of possible values. - This field is a member of `oneof`_ ``_warning``. - """ + This field is a member of `oneof`_ ``_issue_type``. + name (str): + Unique identifier for this outage + notification. - @property - def raw_page(self): - return self + This field is a member of `oneof`_ ``_name``. + source (str): + The party that generated this notification, which can take + the following value: - etag: str = proto.Field( - proto.STRING, - number=3123477, - optional=True, - ) - id: str = proto.Field( - proto.STRING, - number=3355, - optional=True, - ) - items: MutableSequence["InterconnectGroup"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="InterconnectGroup", - ) - kind: str = proto.Field( - proto.STRING, - number=3292052, - optional=True, - ) - next_page_token: str = proto.Field( - proto.STRING, - number=79797525, - optional=True, - ) - self_link: str = proto.Field( - proto.STRING, - number=456214797, - optional=True, - ) - unreachables: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=243372063, - ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, - optional=True, - message="Warning", - ) + :: + - GOOGLE: this notification as generated by Google. -class InterconnectGroupsOperationalStatus(proto.Message): - r"""Request to get the status of the interconnect group with - extra detail. + Note that the value of NSRC_GOOGLE has been deprecated in + favor of GOOGLE. Check the Source enum for the list of + possible values. + This field is a member of `oneof`_ ``_source``. + start_time (int): + Scheduled start time for the outage + (milliseconds since Unix epoch). - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_start_time``. + state (str): + State of this notification, which can take one of the + following values: - Attributes: - configured (google.cloud.compute_v1.types.InterconnectGroupConfigured): - The configuration analysis, as returned by - Get. + :: - This field is a member of `oneof`_ ``_configured``. - group_status (str): - Summarizes the status of the group. - Check the GroupStatus enum for the list of - possible values. + - ACTIVE: This outage notification is active. The event could be in + the past, present, or future. See start_time and end_time for + scheduling. + - CANCELLED: The outage associated with this notification was cancelled + before the outage was due to start. + - COMPLETED: The outage associated with this notification is complete. - This field is a member of `oneof`_ ``_group_status``. - intent (google.cloud.compute_v1.types.InterconnectGroupIntent): - The intent of the resource, as returned by - Get. + Note that the versions of this enum prefixed with "NS\_" + have been deprecated in favor of the unprefixed values. + Check the State enum for the list of possible values. - This field is a member of `oneof`_ ``_intent``. - interconnect_statuses (MutableSequence[google.cloud.compute_v1.types.InterconnectGroupsOperationalStatusInterconnectStatus]): + This field is a member of `oneof`_ ``_state``. + """ - operational (google.cloud.compute_v1.types.InterconnectGroupConfigured): - The operational state of the group, including - only active Interconnects. + class IssueType(proto.Enum): + r"""Form this outage is expected to take, which can take one of the + following values: - This field is a member of `oneof`_ ``_operational``. - """ + :: - class GroupStatus(proto.Enum): - r"""Summarizes the status of the group. + - OUTAGE: The Interconnect may be completely out of service for + some or all of the specified window. + - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole + should remain up, but with reduced bandwidth. + + Note that the versions of this enum prefixed with "IT\_" have been + deprecated in favor of the unprefixed values. Values: - UNDEFINED_GROUP_STATUS (0): + UNDEFINED_ISSUE_TYPE (0): A value indicating that the enum field is not set. - DEGRADED (396890926): - No description available. - FULLY_DOWN (255514647): - No description available. - FULLY_UP (504176464): - No description available. - GROUPS_STATUS_UNSPECIFIED (261932693): - No description available. + IT_OUTAGE (175779973): + [Deprecated] The Interconnect may be completely out of + service for some or all of the specified window. + IT_PARTIAL_OUTAGE (92103971): + [Deprecated] Some circuits comprising the Interconnect will + be out of service during the expected window. The + interconnect as a whole should remain up, albeit with + reduced bandwidth. + OUTAGE (195285745): + The Interconnect may be completely out of + service for some or all of the specified window. + PARTIAL_OUTAGE (147053455): + Some circuits comprising the Interconnect + will be out of service during the expected + window. The interconnect as a whole should + remain up, albeit with reduced bandwidth. """ - UNDEFINED_GROUP_STATUS = 0 - DEGRADED = 396890926 - FULLY_DOWN = 255514647 - FULLY_UP = 504176464 - GROUPS_STATUS_UNSPECIFIED = 261932693 - - configured: "InterconnectGroupConfigured" = proto.Field( - proto.MESSAGE, - number=295631422, - optional=True, - message="InterconnectGroupConfigured", - ) - group_status: str = proto.Field( - proto.STRING, - number=338778546, - optional=True, - ) - intent: "InterconnectGroupIntent" = proto.Field( - proto.MESSAGE, - number=426849948, - optional=True, - message="InterconnectGroupIntent", - ) - interconnect_statuses: MutableSequence[ - "InterconnectGroupsOperationalStatusInterconnectStatus" - ] = proto.RepeatedField( - proto.MESSAGE, - number=446756017, - message="InterconnectGroupsOperationalStatusInterconnectStatus", - ) - operational: "InterconnectGroupConfigured" = proto.Field( - proto.MESSAGE, - number=129704914, - optional=True, - message="InterconnectGroupConfigured", - ) - + UNDEFINED_ISSUE_TYPE = 0 + IT_OUTAGE = 175779973 + IT_PARTIAL_OUTAGE = 92103971 + OUTAGE = 195285745 + PARTIAL_OUTAGE = 147053455 -class InterconnectGroupsOperationalStatusInterconnectStatus(proto.Message): - r"""The status of one Interconnect in the group. The order is - arbitrary. + class Source(proto.Enum): + r"""The party that generated this notification, which can take the + following value: + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + - GOOGLE: this notification as generated by Google. - Attributes: - admin_enabled (bool): - Whether the Interconnect is enabled. + Note that the value of NSRC_GOOGLE has been deprecated in favor of + GOOGLE. - This field is a member of `oneof`_ ``_admin_enabled``. - diagnostics (google.cloud.compute_v1.types.InterconnectDiagnostics): - The diagnostics of the Interconnect, as - returned by the existing get-diagnostics method. + Values: + UNDEFINED_SOURCE (0): + A value indicating that the enum field is not + set. + GOOGLE (497439289): + This notification was generated by Google. + NSRC_GOOGLE (510574562): + [Deprecated] This notification was generated by Google. + """ + UNDEFINED_SOURCE = 0 + GOOGLE = 497439289 + NSRC_GOOGLE = 510574562 - This field is a member of `oneof`_ ``_diagnostics``. - interconnect (str): - The URL of the Interconnect being described. + class State(proto.Enum): + r"""State of this notification, which can take one of the following + values: - This field is a member of `oneof`_ ``_interconnect``. - is_active (str): - Whether this interconnect is participating in - the redundant configuration. Check the IsActive - enum for the list of possible values. + :: - This field is a member of `oneof`_ ``_is_active``. - """ + - ACTIVE: This outage notification is active. The event could be in + the past, present, or future. See start_time and end_time for + scheduling. + - CANCELLED: The outage associated with this notification was cancelled + before the outage was due to start. + - COMPLETED: The outage associated with this notification is complete. - class IsActive(proto.Enum): - r"""Whether this interconnect is participating in the redundant - configuration. + Note that the versions of this enum prefixed with "NS\_" have been + deprecated in favor of the unprefixed values. Values: - UNDEFINED_IS_ACTIVE (0): + UNDEFINED_STATE (0): A value indicating that the enum field is not set. ACTIVE (314733318): - No description available. - INACTIVE (270421099): - No description available. - IS_ACTIVE_UNSPECIFIED (274948243): - No description available. + This outage notification is active. The event could be in + the future, present, or past. See start_time and end_time + for scheduling. + CANCELLED (41957681): + The outage associated with this notification + was cancelled before the outage was due to + start. + COMPLETED (309921323): + The outage associated with this notification + is complete. + NS_ACTIVE (252563136): + [Deprecated] This outage notification is active. The event + could be in the future, present, or past. See start_time and + end_time for scheduling. + NS_CANCELED (506579411): + [Deprecated] The outage associated with this notification + was canceled before the outage was due to start. """ - UNDEFINED_IS_ACTIVE = 0 + UNDEFINED_STATE = 0 ACTIVE = 314733318 - INACTIVE = 270421099 - IS_ACTIVE_UNSPECIFIED = 274948243 + CANCELLED = 41957681 + COMPLETED = 309921323 + NS_ACTIVE = 252563136 + NS_CANCELED = 506579411 - admin_enabled: bool = proto.Field( - proto.BOOL, - number=445675089, - optional=True, + affected_circuits: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=177717013, ) - diagnostics: "InterconnectDiagnostics" = proto.Field( - proto.MESSAGE, - number=333355436, + description: str = proto.Field( + proto.STRING, + number=422937596, optional=True, - message="InterconnectDiagnostics", ) - interconnect: str = proto.Field( - proto.STRING, - number=224601230, + end_time: int = proto.Field( + proto.INT64, + number=114938801, optional=True, ) - is_active: str = proto.Field( + issue_type: str = proto.Field( proto.STRING, - number=114830267, + number=369639136, optional=True, ) - - -class InterconnectList(proto.Message): - r"""Response to the list request, and contains a list of - interconnects. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. - - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.Interconnect]): - A list of Interconnect resources. - kind (str): - [Output Only] Type of resource. Always - compute#interconnectList for lists of interconnects. - - This field is a member of `oneof`_ ``_kind``. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. - - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. - - This field is a member of `oneof`_ ``_self_link``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. - - This field is a member of `oneof`_ ``_warning``. - """ - - @property - def raw_page(self): - return self - - id: str = proto.Field( + name: str = proto.Field( proto.STRING, - number=3355, + number=3373707, optional=True, ) - items: MutableSequence["Interconnect"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="Interconnect", - ) - kind: str = proto.Field( + source: str = proto.Field( proto.STRING, - number=3292052, + number=177235995, optional=True, ) - next_page_token: str = proto.Field( - proto.STRING, - number=79797525, + start_time: int = proto.Field( + proto.INT64, + number=37467274, optional=True, ) - self_link: str = proto.Field( + state: str = proto.Field( proto.STRING, - number=456214797, + number=109757585, optional=True, ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, - optional=True, - message="Warning", + + +class InterconnectParams(proto.Message): + r"""Additional interconnect parameters. + + Attributes: + resource_manager_tags (MutableMapping[str, str]): + Tag keys/values directly bound to this resource. Tag keys + and values have the same definition as resource manager + tags. The field is allowed for INSERT only. The keys/values + to set on the resource should be specified in either ID { : + } or Namespaced format { : }. For example the following are + valid inputs: + + - {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + "tagValues/456"} + - {"123/environment" : "production", "345/abc" : "xyz"} + Note: + - Invalid combinations of ID & namespaced format is not + supported. For instance: {"123/environment" : + "tagValues/444"} is invalid. + - Inconsistent format is not supported. For instance: + {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is + invalid. + """ + + resource_manager_tags: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=377671164, ) -class InterconnectLocation(proto.Message): - r"""Represents an Interconnect Attachment (VLAN) Location - resource. You can use this resource to find location details - about an Interconnect attachment (VLAN). For more information - about interconnect attachments, read Creating VLAN Attachments. +class InterconnectRemoteLocation(proto.Message): + r"""Represents a Cross-Cloud Interconnect Remote Location + resource. + You can use this resource to find remote location details about + an Interconnect attachment (VLAN). .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: address (str): - [Output Only] The postal address of the Point of Presence, - each line in the address is separated by a newline - character. + Output only. [Output Only] The postal address of the Point + of Presence, each line in the address is separated by a + newline character. This field is a member of `oneof`_ ``_address``. - availability_zone (str): - [Output Only] Availability zone for this - InterconnectLocation. Within a metropolitan area (metro), - maintenance will not be simultaneously scheduled in more - than one availability zone. Example: "zone1" or "zone2". + attachment_configuration_constraints (google.cloud.compute_v1.types.InterconnectAttachmentConfigurationConstraints): + Output only. [Output Only] Subset of fields from + InterconnectAttachment's \|configurationConstraints\| field + that apply to all attachments for this remote location. - This field is a member of `oneof`_ ``_availability_zone``. - available_features (MutableSequence[str]): - [Output only] List of features available at this - InterconnectLocation, which can take one of the following - values: - IF_MACSEC Check the AvailableFeatures enum for the - list of possible values. - available_link_types (MutableSequence[str]): - [Output only] List of link types available at this - InterconnectLocation, which can take one of the following - values: - LINK_TYPE_ETHERNET_10G_LR - - LINK_TYPE_ETHERNET_100G_LR - LINK_TYPE_ETHERNET_400G_LR4 - Check the AvailableLinkTypes enum for the list of possible - values. + This field is a member of `oneof`_ ``_attachment_configuration_constraints``. city (str): - [Output Only] Metropolitan area designator that indicates - which city an interconnect is located. For example: - "Chicago, IL", "Amsterdam, Netherlands". + Output only. [Output Only] Metropolitan area designator that + indicates which city an interconnect is located. For + example: "Chicago, IL", "Amsterdam, Netherlands". This field is a member of `oneof`_ ``_city``. + constraints (google.cloud.compute_v1.types.InterconnectRemoteLocationConstraints): + Output only. [Output Only] Constraints on the parameters for + creating Cross-Cloud Interconnect and associated + InterconnectAttachments. + + This field is a member of `oneof`_ ``_constraints``. continent (str): - [Output Only] Continent for this location, which can take - one of the following values: - AFRICA - ASIA_PAC - EUROPE - - NORTH_AMERICA - SOUTH_AMERICA Check the Continent enum for - the list of possible values. + Output only. [Output Only] Continent for this location, + which can take one of the following values: + + :: + + - AFRICA + - ASIA_PAC + - EUROPE + - NORTH_AMERICA + - SOUTH_AMERICA + + Check the Continent enum for the list of possible values. This field is a member of `oneof`_ ``_continent``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): - [Output Only] An optional description of the resource. + Output only. [Output Only] An optional description of the + resource. This field is a member of `oneof`_ ``_description``. facility_provider (str): - [Output Only] The name of the provider for this facility - (e.g., EQUINIX). + Output only. [Output Only] The name of the provider for this + facility (e.g., EQUINIX). This field is a member of `oneof`_ ``_facility_provider``. facility_provider_facility_id (str): - [Output Only] A provider-assigned Identifier for this - facility (e.g., Ashburn-DC1). + Output only. [Output Only] A provider-assigned Identifier + for this facility (e.g., Ashburn-DC1). This field is a member of `oneof`_ ``_facility_provider_facility_id``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#interconnectLocation for interconnect locations. + Output only. [Output Only] Type of the resource. + Alwayscompute#interconnectRemoteLocation for interconnect + remote locations. This field is a member of `oneof`_ ``_kind``. + lacp (str): + Output only. [Output Only] Link Aggregation Control Protocol + (LACP) constraints, which can take one of the following + values: LACP_SUPPORTED, LACP_UNSUPPORTED Check the Lacp enum + for the list of possible values. + + This field is a member of `oneof`_ ``_lacp``. + max_lag_size100_gbps (int): + Output only. [Output Only] The maximum number of 100 Gbps + ports supported in a link aggregation group (LAG). When + linkType is 100 Gbps, requestedLinkCount cannot exceed + max_lag_size_100_gbps. + + This field is a member of `oneof`_ ``_max_lag_size100_gbps``. + max_lag_size10_gbps (int): + Output only. [Output Only] The maximum number of 10 Gbps + ports supported in a link aggregation group (LAG). When + linkType is 10 Gbps, requestedLinkCount cannot exceed + max_lag_size_10_gbps. + + This field is a member of `oneof`_ ``_max_lag_size10_gbps``. + max_lag_size400_gbps (int): + Output only. [Output Only] The maximum number of 400 Gbps + ports supported in a link aggregation group (LAG). When + linkType is 400 Gbps, requestedLinkCount cannot exceed + max_lag_size_400_gbps. + + This field is a member of `oneof`_ ``_max_lag_size400_gbps``. name (str): - [Output Only] Name of the resource. + Output only. [Output Only] Name of the resource. This field is a member of `oneof`_ ``_name``. peeringdb_facility_id (str): - [Output Only] The peeringdb identifier for this facility - (corresponding with a netfac type in peeringdb). + Output only. [Output Only] The peeringdb identifier for this + facility (corresponding with a netfac type in peeringdb). This field is a member of `oneof`_ ``_peeringdb_facility_id``. - region_infos (MutableSequence[google.cloud.compute_v1.types.InterconnectLocationRegionInfo]): - [Output Only] A list of InterconnectLocation.RegionInfo - objects, that describe parameters pertaining to the relation - between this InterconnectLocation and various Google Cloud - regions. - self_link (str): - [Output Only] Server-defined URL for the resource. - - This field is a member of `oneof`_ ``_self_link``. - single_region_production_critical_peer_locations (MutableSequence[str]): - [Output Only] URLs of the other locations that can pair up - with this location to support Single-Region 99.99% SLA. E.g. - iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% peer - locations of each other. - status (str): - [Output Only] The status of this InterconnectLocation, which - can take one of the following values: - CLOSED: The - InterconnectLocation is closed and is unavailable for - provisioning new Interconnects. - AVAILABLE: The - InterconnectLocation is available for provisioning new - Interconnects. Check the Status enum for the list of - possible values. + permitted_connections (MutableSequence[google.cloud.compute_v1.types.InterconnectRemoteLocationPermittedConnections]): + Output only. [Output Only] Permitted connections. + remote_service (str): + Output only. [Output Only] Indicates the service provider + present at the remote location. Example values: "Amazon Web + Services", "Microsoft Azure". - This field is a member of `oneof`_ ``_status``. - supports_pzs (bool): - [Output Only] Reserved for future use. + This field is a member of `oneof`_ ``_remote_service``. + self_link (str): + Output only. [Output Only] Server-defined URL for the + resource. - This field is a member of `oneof`_ ``_supports_pzs``. - """ + This field is a member of `oneof`_ ``_self_link``. + status (str): + Output only. [Output Only] The status of this + InterconnectRemoteLocation, which can take one of the + following values: - class AvailableFeatures(proto.Enum): - r""" + :: - Values: - UNDEFINED_AVAILABLE_FEATURES (0): - A value indicating that the enum field is not - set. - IF_MACSEC (396279300): - Media Access Control security (MACsec) - """ - UNDEFINED_AVAILABLE_FEATURES = 0 - IF_MACSEC = 396279300 + - CLOSED: The InterconnectRemoteLocation is closed and is unavailable + for provisioning new Cross-Cloud Interconnects. + - AVAILABLE: The + InterconnectRemoteLocation is available for provisioning new + Cross-Cloud Interconnects. - class AvailableLinkTypes(proto.Enum): - r""" + Check the Status enum for the list of possible values. - Values: - UNDEFINED_AVAILABLE_LINK_TYPES (0): - A value indicating that the enum field is not - set. - LINK_TYPE_ETHERNET_100G_LR (337672551): - 100G Ethernet, LR Optics. - LINK_TYPE_ETHERNET_10G_LR (236739749): - 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; - LINK_TYPE_ETHERNET_400G_LR4 (127023690): - 400G Ethernet, LR4 Optics. - """ - UNDEFINED_AVAILABLE_LINK_TYPES = 0 - LINK_TYPE_ETHERNET_100G_LR = 337672551 - LINK_TYPE_ETHERNET_10G_LR = 236739749 - LINK_TYPE_ETHERNET_400G_LR4 = 127023690 + This field is a member of `oneof`_ ``_status``. + """ class Continent(proto.Enum): - r"""[Output Only] Continent for this location, which can take one of the - following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - - SOUTH_AMERICA + r"""Output only. [Output Only] Continent for this location, which can + take one of the following values: + + :: + + - AFRICA + - ASIA_PAC + - EUROPE + - NORTH_AMERICA + - SOUTH_AMERICA Values: UNDEFINED_CONTINENT (0): @@ -55937,16 +64649,6 @@ class Continent(proto.Enum): No description available. ASIA_PAC (119782269): No description available. - C_AFRICA (71993846): - No description available. - C_ASIA_PAC (465668089): - No description available. - C_EUROPE (200369438): - No description available. - C_NORTH_AMERICA (275697048): - No description available. - C_SOUTH_AMERICA (397149792): - No description available. EUROPE (445819298): No description available. NORTH_AMERICA (448015508): @@ -55957,32 +64659,55 @@ class Continent(proto.Enum): UNDEFINED_CONTINENT = 0 AFRICA = 317443706 ASIA_PAC = 119782269 - C_AFRICA = 71993846 - C_ASIA_PAC = 465668089 - C_EUROPE = 200369438 - C_NORTH_AMERICA = 275697048 - C_SOUTH_AMERICA = 397149792 EUROPE = 445819298 NORTH_AMERICA = 448015508 SOUTH_AMERICA = 32597340 + class Lacp(proto.Enum): + r"""Output only. [Output Only] Link Aggregation Control Protocol (LACP) + constraints, which can take one of the following values: + LACP_SUPPORTED, LACP_UNSUPPORTED + + Values: + UNDEFINED_LACP (0): + A value indicating that the enum field is not + set. + LACP_SUPPORTED (339576113): + LACP_SUPPORTED: LACP is supported, and enabled by default on + the Cross-Cloud Interconnect. + LACP_UNSUPPORTED (203930104): + LACP_UNSUPPORTED: LACP is not supported and is not be + enabled on this port. GetDiagnostics shows + bundleAggregationType as "static". GCP does not support LAGs + without LACP, so requestedLinkCount must be 1. + """ + UNDEFINED_LACP = 0 + LACP_SUPPORTED = 339576113 + LACP_UNSUPPORTED = 203930104 + class Status(proto.Enum): - r"""[Output Only] The status of this InterconnectLocation, which can - take one of the following values: - CLOSED: The InterconnectLocation - is closed and is unavailable for provisioning new Interconnects. - - AVAILABLE: The InterconnectLocation is available for provisioning - new Interconnects. + r"""Output only. [Output Only] The status of this + InterconnectRemoteLocation, which can take one of the following + values: + + :: + + - CLOSED: The InterconnectRemoteLocation is closed and is unavailable + for provisioning new Cross-Cloud Interconnects. + - AVAILABLE: The + InterconnectRemoteLocation is available for provisioning new + Cross-Cloud Interconnects. Values: UNDEFINED_STATUS (0): A value indicating that the enum field is not set. AVAILABLE (442079913): - The InterconnectLocation is available for - provisioning new Interconnects. + The InterconnectRemoteLocation is available + for provisioning new Cross-Cloud Interconnects. CLOSED (380163436): - The InterconnectLocation is closed for - provisioning new Interconnects. + The InterconnectRemoteLocation is closed for + provisioning new Cross-Cloud Interconnects. """ UNDEFINED_STATUS = 0 AVAILABLE = 442079913 @@ -55993,24 +64718,23 @@ class Status(proto.Enum): number=462920692, optional=True, ) - availability_zone: str = proto.Field( - proto.STRING, - number=158459920, + attachment_configuration_constraints: "InterconnectAttachmentConfigurationConstraints" = proto.Field( + proto.MESSAGE, + number=326825041, optional=True, - ) - available_features: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=496344307, - ) - available_link_types: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=509504298, + message="InterconnectAttachmentConfigurationConstraints", ) city: str = proto.Field( proto.STRING, number=3053931, optional=True, ) + constraints: "InterconnectRemoteLocationConstraints" = proto.Field( + proto.MESSAGE, + number=3909174, + optional=True, + message="InterconnectRemoteLocationConstraints", + ) continent: str = proto.Field( proto.STRING, number=133442996, @@ -56046,6 +64770,26 @@ class Status(proto.Enum): number=3292052, optional=True, ) + lacp: str = proto.Field( + proto.STRING, + number=3313826, + optional=True, + ) + max_lag_size100_gbps: int = proto.Field( + proto.INT32, + number=245219253, + optional=True, + ) + max_lag_size10_gbps: int = proto.Field( + proto.INT32, + number=294007573, + optional=True, + ) + max_lag_size400_gbps: int = proto.Field( + proto.INT32, + number=104941138, + optional=True, + ) name: str = proto.Field( proto.STRING, number=3373707, @@ -56056,39 +64800,184 @@ class Status(proto.Enum): number=536567094, optional=True, ) - region_infos: MutableSequence[ - "InterconnectLocationRegionInfo" + permitted_connections: MutableSequence[ + "InterconnectRemoteLocationPermittedConnections" ] = proto.RepeatedField( proto.MESSAGE, - number=312194170, - message="InterconnectLocationRegionInfo", + number=442063278, + message="InterconnectRemoteLocationPermittedConnections", ) - self_link: str = proto.Field( + remote_service: str = proto.Field( proto.STRING, - number=456214797, + number=391954364, optional=True, ) - single_region_production_critical_peer_locations: MutableSequence[ - str - ] = proto.RepeatedField( + self_link: str = proto.Field( proto.STRING, - number=439537103, + number=456214797, + optional=True, ) status: str = proto.Field( proto.STRING, number=181260274, optional=True, ) - supports_pzs: bool = proto.Field( - proto.BOOL, - number=83983214, + + +class InterconnectRemoteLocationConstraints(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + port_pair_remote_location (str): + Output only. [Output Only] Port pair remote location + constraints, which can take one of the following values: + PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, + PORT_PAIR_MATCHING_REMOTE_LOCATION. + + Google Cloud API refers only to individual ports, but the UI + uses this field when ordering a pair of ports, to prevent + users from accidentally ordering something that is + incompatible with their cloud provider. Specifically, when + ordering a redundant pair of Cross-Cloud Interconnect ports, + and one of them uses a remote location with + portPairMatchingRemoteLocation set to matching, the UI + requires that both ports use the same remote location. Check + the PortPairRemoteLocation enum for the list of possible + values. + + This field is a member of `oneof`_ ``_port_pair_remote_location``. + port_pair_vlan (str): + Output only. [Output Only] Port pair VLAN constraints, which + can take one of the following values: + PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN Check + the PortPairVlan enum for the list of possible values. + + This field is a member of `oneof`_ ``_port_pair_vlan``. + subnet_length_range (google.cloud.compute_v1.types.InterconnectRemoteLocationConstraintsSubnetLengthRange): + Output only. [Output Only] + + [min-length, max-length] + + The minimum and maximum value (inclusive) for the IPv4 + subnet length. + + For example, an interconnectRemoteLocation for Azure has + {min: 30, max: 30} because Azure requires /30 subnets. + + This range specifies the values supported by both cloud + providers. Interconnect currently supports /29 and /30 IPv4 + subnet lengths. If a remote cloud has no constraint on IPv4 + subnet length, the range would thus be {min: 29, max: 30}. + + This field is a member of `oneof`_ ``_subnet_length_range``. + """ + + class PortPairRemoteLocation(proto.Enum): + r"""Output only. [Output Only] Port pair remote location constraints, + which can take one of the following values: + PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, + PORT_PAIR_MATCHING_REMOTE_LOCATION. + + Google Cloud API refers only to individual ports, but the UI uses + this field when ordering a pair of ports, to prevent users from + accidentally ordering something that is incompatible with their + cloud provider. Specifically, when ordering a redundant pair of + Cross-Cloud Interconnect ports, and one of them uses a remote + location with portPairMatchingRemoteLocation set to matching, the UI + requires that both ports use the same remote location. + + Values: + UNDEFINED_PORT_PAIR_REMOTE_LOCATION (0): + A value indicating that the enum field is not + set. + PORT_PAIR_MATCHING_REMOTE_LOCATION (207291859): + If PORT_PAIR_MATCHING_REMOTE_LOCATION, the remote cloud + provider allocates ports in pairs, and the user should + choose the same remote location for both ports. + PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION (60609829): + If PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, a user may opt + to provision a redundant pair of Cross-Cloud Interconnects + using two different remote locations in the same city. + """ + UNDEFINED_PORT_PAIR_REMOTE_LOCATION = 0 + PORT_PAIR_MATCHING_REMOTE_LOCATION = 207291859 + PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION = 60609829 + + class PortPairVlan(proto.Enum): + r"""Output only. [Output Only] Port pair VLAN constraints, which can + take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, + PORT_PAIR_MATCHING_VLAN + + Values: + UNDEFINED_PORT_PAIR_VLAN (0): + A value indicating that the enum field is not + set. + PORT_PAIR_MATCHING_VLAN (250295358): + If PORT_PAIR_MATCHING_VLAN, the Interconnect for this + attachment is part of a pair of ports that should have + matching VLAN allocations. This occurs with Cross-Cloud + Interconnect to Azure remote locations. While GCP's API does + not explicitly group pairs of ports, the UI uses this field + to ensure matching VLAN ids when configuring a redundant + VLAN pair. + PORT_PAIR_UNCONSTRAINED_VLAN (175227948): + PORT_PAIR_UNCONSTRAINED_VLAN means there is no constraint. + """ + UNDEFINED_PORT_PAIR_VLAN = 0 + PORT_PAIR_MATCHING_VLAN = 250295358 + PORT_PAIR_UNCONSTRAINED_VLAN = 175227948 + + port_pair_remote_location: str = proto.Field( + proto.STRING, + number=495917351, + optional=True, + ) + port_pair_vlan: str = proto.Field( + proto.STRING, + number=478214506, optional=True, ) + subnet_length_range: "InterconnectRemoteLocationConstraintsSubnetLengthRange" = ( + proto.Field( + proto.MESSAGE, + number=184473670, + optional=True, + message="InterconnectRemoteLocationConstraintsSubnetLengthRange", + ) + ) -class InterconnectLocationList(proto.Message): +class InterconnectRemoteLocationConstraintsSubnetLengthRange(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + max_ (int): + + This field is a member of `oneof`_ ``_max``. + min_ (int): + + This field is a member of `oneof`_ ``_min``. + """ + + max_: int = proto.Field( + proto.INT32, + number=107876, + optional=True, + ) + min_: int = proto.Field( + proto.INT32, + number=108114, + optional=True, + ) + + +class InterconnectRemoteLocationList(proto.Message): r"""Response to the list request, and contains a list of - interconnect locations. + interconnect remote locations. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -56099,25 +64988,27 @@ class InterconnectLocationList(proto.Message): the server. This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.InterconnectLocation]): - A list of InterconnectLocation resources. + items (MutableSequence[google.cloud.compute_v1.types.InterconnectRemoteLocation]): + A list of InterconnectRemoteLocation + resources. kind (str): - [Output Only] Type of resource. Always - compute#interconnectLocationList for lists of interconnect - locations. + Output only. [Output Only] Type of resource. + Alwayscompute#interconnectRemoteLocationList for lists of + interconnect remote locations. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of + [Output Only] This token lets you get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -56135,10 +65026,10 @@ def raw_page(self): number=3355, optional=True, ) - items: MutableSequence["InterconnectLocation"] = proto.RepeatedField( + items: MutableSequence["InterconnectRemoteLocation"] = proto.RepeatedField( proto.MESSAGE, number=100526016, - message="InterconnectLocation", + message="InterconnectRemoteLocation", ) kind: str = proto.Field( proto.STRING, @@ -56163,416 +65054,345 @@ def raw_page(self): ) -class InterconnectLocationRegionInfo(proto.Message): - r"""Information about any potential InterconnectAttachments - between an Interconnect at a specific InterconnectLocation, and - a specific Cloud Region. - +class InterconnectRemoteLocationPermittedConnections(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - expected_rtt_ms (int): - Expected round-trip time in milliseconds, - from this InterconnectLocation to a VM in this - region. - - This field is a member of `oneof`_ ``_expected_rtt_ms``. - location_presence (str): - Identifies the network presence of this - location. Check the LocationPresence enum for - the list of possible values. - - This field is a member of `oneof`_ ``_location_presence``. - region (str): - URL for the region of this location. + interconnect_location (str): + Output only. [Output Only] URL of an Interconnect location + that is permitted to connect to this Interconnect remote + location. - This field is a member of `oneof`_ ``_region``. + This field is a member of `oneof`_ ``_interconnect_location``. """ - class LocationPresence(proto.Enum): - r"""Identifies the network presence of this location. - - Values: - UNDEFINED_LOCATION_PRESENCE (0): - A value indicating that the enum field is not - set. - GLOBAL (494663587): - This region is not in any common network - presence with this InterconnectLocation. - LOCAL_REGION (403535464): - This region shares the same regional network - presence as this InterconnectLocation. - LP_GLOBAL (429584062): - [Deprecated] This region is not in any common network - presence with this InterconnectLocation. - LP_LOCAL_REGION (488598851): - [Deprecated] This region shares the same regional network - presence as this InterconnectLocation. - """ - UNDEFINED_LOCATION_PRESENCE = 0 - GLOBAL = 494663587 - LOCAL_REGION = 403535464 - LP_GLOBAL = 429584062 - LP_LOCAL_REGION = 488598851 - - expected_rtt_ms: int = proto.Field( - proto.INT64, - number=422543866, - optional=True, - ) - location_presence: str = proto.Field( - proto.STRING, - number=101517893, - optional=True, - ) - region: str = proto.Field( + interconnect_location: str = proto.Field( proto.STRING, - number=138946292, + number=492235846, optional=True, ) -class InterconnectMacsec(proto.Message): - r"""Configuration information for enabling Media Access Control - security (MACsec) on this Cloud Interconnect connection between - Google and your on-premises router. - +class InterconnectsGetDiagnosticsResponse(proto.Message): + r"""Response for the InterconnectsGetDiagnosticsRequest. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - fail_open (bool): - If set to true, the Interconnect connection - is configured with a should-secure MACsec - security policy, that allows the Google router - to fallback to cleartext traffic if the MKA - session cannot be established. By default, the - Interconnect connection is configured with a - must-secure security policy that drops all - traffic if the MKA session cannot be established - with your router. + result (google.cloud.compute_v1.types.InterconnectDiagnostics): - This field is a member of `oneof`_ ``_fail_open``. - pre_shared_keys (MutableSequence[google.cloud.compute_v1.types.InterconnectMacsecPreSharedKey]): - Required. A keychain placeholder describing a - set of named key objects along with their start - times. A MACsec CKN/CAK is generated for each - key in the key chain. Google router - automatically picks the key with the most recent - startTime when establishing or re-establishing a - MACsec secure link. + This field is a member of `oneof`_ ``_result``. """ - fail_open: bool = proto.Field( - proto.BOOL, - number=532597451, - optional=True, - ) - pre_shared_keys: MutableSequence[ - "InterconnectMacsecPreSharedKey" - ] = proto.RepeatedField( + result: "InterconnectDiagnostics" = proto.Field( proto.MESSAGE, - number=420308466, - message="InterconnectMacsecPreSharedKey", + number=139315229, + optional=True, + message="InterconnectDiagnostics", ) -class InterconnectMacsecConfig(proto.Message): - r"""MACsec configuration information for the Interconnect - connection. Contains the generated Connectivity Association Key - Name (CKN) and the key (CAK) for this Interconnect connection. +class InterconnectsGetMacsecConfigResponse(proto.Message): + r"""Response for the InterconnectsGetMacsecConfigRequest. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - pre_shared_keys (MutableSequence[google.cloud.compute_v1.types.InterconnectMacsecConfigPreSharedKey]): - A keychain placeholder describing a set of - named key objects along with their start times. - A MACsec CKN/CAK is generated for each key in - the key chain. Google router automatically picks - the key with the most recent startTime when - establishing or re-establishing a MACsec secure - link. + etag (str): + end_interface: MixerGetResponseWithEtagBuilder + + This field is a member of `oneof`_ ``_etag``. + result (google.cloud.compute_v1.types.InterconnectMacsecConfig): + + This field is a member of `oneof`_ ``_result``. """ - pre_shared_keys: MutableSequence[ - "InterconnectMacsecConfigPreSharedKey" - ] = proto.RepeatedField( + etag: str = proto.Field( + proto.STRING, + number=3123477, + optional=True, + ) + result: "InterconnectMacsecConfig" = proto.Field( proto.MESSAGE, - number=420308466, - message="InterconnectMacsecConfigPreSharedKey", + number=139315229, + optional=True, + message="InterconnectMacsecConfig", ) -class InterconnectMacsecConfigPreSharedKey(proto.Message): - r"""Describes a pre-shared key used to setup MACsec in static - connectivity association key (CAK) mode. +class InvalidateCacheUrlMapRequest(proto.Message): + r"""A request message for UrlMaps.InvalidateCache. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - cak (str): - An auto-generated Connectivity Association - Key (CAK) for this key. - - This field is a member of `oneof`_ ``_cak``. - ckn (str): - An auto-generated Connectivity Association - Key Name (CKN) for this key. - - This field is a member of `oneof`_ ``_ckn``. - name (str): - User provided name for this pre-shared key. - - This field is a member of `oneof`_ ``_name``. - start_time (str): - User provided timestamp on or after which - this key is valid. + cache_invalidation_rule_resource (google.cloud.compute_v1.types.CacheInvalidationRule): + The body resource for this request + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). - This field is a member of `oneof`_ ``_start_time``. + This field is a member of `oneof`_ ``_request_id``. + url_map (str): + Name of the UrlMap scoping this request. """ - cak: str = proto.Field( - proto.STRING, - number=98253, - optional=True, + cache_invalidation_rule_resource: "CacheInvalidationRule" = proto.Field( + proto.MESSAGE, + number=312795565, + message="CacheInvalidationRule", ) - ckn: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=98566, - optional=True, + number=227560217, ) - name: str = proto.Field( + request_id: str = proto.Field( proto.STRING, - number=3373707, + number=37109963, optional=True, ) - start_time: str = proto.Field( + url_map: str = proto.Field( proto.STRING, - number=37467274, - optional=True, + number=367020684, ) -class InterconnectMacsecPreSharedKey(proto.Message): - r"""Describes a pre-shared key used to setup MACsec in static - connectivity association key (CAK) mode. - +class Items(proto.Message): + r"""Metadata .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - name (str): - Required. A name for this pre-shared key. The name must be - 1-63 characters long, and comply with RFC1035. Specifically, - the name must be 1-63 characters long and match the regular - expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the - first character must be a lowercase letter, and all - following characters must be a dash, lowercase letter, or - digit, except the last character, which cannot be a dash. + key (str): + Key for the metadata entry. Keys must conform to the + following regexp: [a-zA-Z0-9-\_]+, and be less than 128 + bytes in length. This is reflected as part of a URL in the + metadata server. Additionally, to avoid ambiguity, keys must + not conflict with any other metadata keys for the project. - This field is a member of `oneof`_ ``_name``. - start_time (str): - A RFC3339 timestamp on or after which the key - is valid. startTime can be in the future. If the - keychain has a single key, startTime can be - omitted. If the keychain has multiple keys, - startTime is mandatory for each key. The start - times of keys must be in increasing order. The - start times of two consecutive keys must be at - least 6 hours apart. + This field is a member of `oneof`_ ``_key``. + value (str): + Value for the metadata entry. These are + free-form strings, and only have meaning as + interpreted by the image running in the + instance. The only restriction placed on values + is that their size must be less than or equal to + 262144 bytes (256 KiB). - This field is a member of `oneof`_ ``_start_time``. + This field is a member of `oneof`_ ``_value``. """ - name: str = proto.Field( + key: str = proto.Field( proto.STRING, - number=3373707, + number=106079, optional=True, ) - start_time: str = proto.Field( + value: str = proto.Field( proto.STRING, - number=37467274, + number=111972721, optional=True, ) -class InterconnectOutageNotification(proto.Message): - r"""Description of a planned outage on this Interconnect. +class License(proto.Message): + r"""Represents a License resource. + + A License represents billing and aggregate usage data forpublic + andmarketplace images. *Caution* This resource is intended for use + only by third-party partners who are creatingCloud Marketplace + images. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - affected_circuits (MutableSequence[str]): - If issue_type is IT_PARTIAL_OUTAGE, a list of the - Google-side circuit IDs that will be affected. + allowed_replacement_licenses (MutableSequence[str]): + Specifies licenseCodes of licenses that can replace this + license. Note: such replacements are allowed even if + removable_from_disk is false. + appendable_to_disk (bool): + If true, this license can be appended to an + existing disk's set of licenses. + + This field is a member of `oneof`_ ``_appendable_to_disk``. + charges_use_fee (bool): + [Output Only] Deprecated. This field no longer reflects + whether a license charges a usage fee. + + This field is a member of `oneof`_ ``_charges_use_fee``. + creation_timestamp (str): + Output only. [Output Only] Creation timestamp inRFC3339 text + format. + + This field is a member of `oneof`_ ``_creation_timestamp``. description (str): - A description about the purpose of the - outage. + An optional textual description of the + resource; provided by the client when the + resource is created. This field is a member of `oneof`_ ``_description``. - end_time (int): - Scheduled end time for the outage - (milliseconds since Unix epoch). + id (int): + [Output Only] The unique identifier for the resource. This + identifier is defined by the server. - This field is a member of `oneof`_ ``_end_time``. - issue_type (str): - Form this outage is expected to take, which can take one of - the following values: - OUTAGE: The Interconnect may be - completely out of service for some or all of the specified - window. - PARTIAL_OUTAGE: Some circuits comprising the - Interconnect as a whole should remain up, but with reduced - bandwidth. Note that the versions of this enum prefixed with - "IT\_" have been deprecated in favor of the unprefixed - values. Check the IssueType enum for the list of possible - values. + This field is a member of `oneof`_ ``_id``. + incompatible_licenses (MutableSequence[str]): + Specifies licenseCodes of licenses that are + incompatible with this license. If a license is + incompatible with this license, it cannot be + attached to the same disk or image. + kind (str): + Output only. [Output Only] Type of resource. Always + compute#license for licenses. - This field is a member of `oneof`_ ``_issue_type``. + This field is a member of `oneof`_ ``_kind``. + license_code (int): + [Output Only] The unique code used to attach this license to + images, snapshots, and disks. + + This field is a member of `oneof`_ ``_license_code``. + minimum_retention (google.cloud.compute_v1.types.Duration): + If set, this license will be unable to be removed or + replaced once attached to a disk until the minimum_retention + period has passed. + + This field is a member of `oneof`_ ``_minimum_retention``. + multi_tenant_only (bool): + If true, this license can only be used on VMs + on multi tenant nodes. + + This field is a member of `oneof`_ ``_multi_tenant_only``. name (str): - Unique identifier for this outage - notification. + Name of the resource. The name must be 1-63 + characters long and comply withRFC1035. This field is a member of `oneof`_ ``_name``. - source (str): - The party that generated this notification, which can take - the following value: - GOOGLE: this notification as - generated by Google. Note that the value of NSRC_GOOGLE has - been deprecated in favor of GOOGLE. Check the Source enum - for the list of possible values. - - This field is a member of `oneof`_ ``_source``. - start_time (int): - Scheduled start time for the outage - (milliseconds since Unix epoch). + os_license (bool): + If true, indicates this is an OS license. + Only one OS license can be attached to a disk or + image at a time. - This field is a member of `oneof`_ ``_start_time``. - state (str): - State of this notification, which can take one of the - following values: - ACTIVE: This outage notification is - active. The event could be in the past, present, or future. - See start_time and end_time for scheduling. - CANCELLED: The - outage associated with this notification was cancelled - before the outage was due to start. - COMPLETED: The outage - associated with this notification is complete. Note that the - versions of this enum prefixed with "NS\_" have been - deprecated in favor of the unprefixed values. Check the - State enum for the list of possible values. + This field is a member of `oneof`_ ``_os_license``. + removable_from_disk (bool): + If true, this license can be removed from a + disk's set of licenses, with no replacement + license needed. - This field is a member of `oneof`_ ``_state``. - """ + This field is a member of `oneof`_ ``_removable_from_disk``. + required_coattached_licenses (MutableSequence[str]): + Specifies the set of permissible coattached + licenseCodes of licenses that satisfy the + coattachment requirement of this license. At + least one license from the set must be attached + to the same disk or image as this license. + resource_requirements (google.cloud.compute_v1.types.LicenseResourceRequirements): + [Input Only] Deprecated. - class IssueType(proto.Enum): - r"""Form this outage is expected to take, which can take one of the - following values: - OUTAGE: The Interconnect may be completely out - of service for some or all of the specified window. - - PARTIAL_OUTAGE: Some circuits comprising the Interconnect as a whole - should remain up, but with reduced bandwidth. Note that the versions - of this enum prefixed with "IT\_" have been deprecated in favor of - the unprefixed values. + This field is a member of `oneof`_ ``_resource_requirements``. + self_link (str): + Output only. [Output Only] Server-defined URL for the + resource. - Values: - UNDEFINED_ISSUE_TYPE (0): - A value indicating that the enum field is not - set. - IT_OUTAGE (175779973): - [Deprecated] The Interconnect may be completely out of - service for some or all of the specified window. - IT_PARTIAL_OUTAGE (92103971): - [Deprecated] Some circuits comprising the Interconnect will - be out of service during the expected window. The - interconnect as a whole should remain up, albeit with - reduced bandwidth. - OUTAGE (195285745): - The Interconnect may be completely out of - service for some or all of the specified window. - PARTIAL_OUTAGE (147053455): - Some circuits comprising the Interconnect - will be out of service during the expected - window. The interconnect as a whole should - remain up, albeit with reduced bandwidth. - """ - UNDEFINED_ISSUE_TYPE = 0 - IT_OUTAGE = 175779973 - IT_PARTIAL_OUTAGE = 92103971 - OUTAGE = 195285745 - PARTIAL_OUTAGE = 147053455 + This field is a member of `oneof`_ ``_self_link``. + self_link_with_id (str): + Output only. [Output Only] Server-defined URL for this + resource with the resource id. - class Source(proto.Enum): - r"""The party that generated this notification, which can take the - following value: - GOOGLE: this notification as generated by Google. - Note that the value of NSRC_GOOGLE has been deprecated in favor of - GOOGLE. + This field is a member of `oneof`_ ``_self_link_with_id``. + sole_tenant_only (bool): + If true, this license can only be used on VMs + on sole tenant nodes. - Values: - UNDEFINED_SOURCE (0): - A value indicating that the enum field is not - set. - GOOGLE (497439289): - This notification was generated by Google. - NSRC_GOOGLE (510574562): - [Deprecated] This notification was generated by Google. - """ - UNDEFINED_SOURCE = 0 - GOOGLE = 497439289 - NSRC_GOOGLE = 510574562 + This field is a member of `oneof`_ ``_sole_tenant_only``. + transferable (bool): + If false, licenses will not be copied from + the source resource when creating an image from + a disk, disk from snapshot, or snapshot from + disk. - class State(proto.Enum): - r"""State of this notification, which can take one of the following - values: - ACTIVE: This outage notification is active. The event - could be in the past, present, or future. See start_time and - end_time for scheduling. - CANCELLED: The outage associated with - this notification was cancelled before the outage was due to start. - - COMPLETED: The outage associated with this notification is - complete. Note that the versions of this enum prefixed with "NS\_" - have been deprecated in favor of the unprefixed values. + This field is a member of `oneof`_ ``_transferable``. + update_timestamp (str): + Output only. [Output Only] Last update timestamp inRFC3339 + text format. - Values: - UNDEFINED_STATE (0): - A value indicating that the enum field is not - set. - ACTIVE (314733318): - This outage notification is active. The event could be in - the future, present, or past. See start_time and end_time - for scheduling. - CANCELLED (41957681): - The outage associated with this notification - was cancelled before the outage was due to - start. - COMPLETED (309921323): - The outage associated with this notification - is complete. - NS_ACTIVE (252563136): - [Deprecated] This outage notification is active. The event - could be in the future, present, or past. See start_time and - end_time for scheduling. - NS_CANCELED (506579411): - [Deprecated] The outage associated with this notification - was canceled before the outage was due to start. - """ - UNDEFINED_STATE = 0 - ACTIVE = 314733318 - CANCELLED = 41957681 - COMPLETED = 309921323 - NS_ACTIVE = 252563136 - NS_CANCELED = 506579411 + This field is a member of `oneof`_ ``_update_timestamp``. + """ - affected_circuits: MutableSequence[str] = proto.RepeatedField( + allowed_replacement_licenses: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=177717013, + number=195677718, + ) + appendable_to_disk: bool = proto.Field( + proto.BOOL, + number=16959254, + optional=True, + ) + charges_use_fee: bool = proto.Field( + proto.BOOL, + number=372412622, + optional=True, + ) + creation_timestamp: str = proto.Field( + proto.STRING, + number=30525366, + optional=True, ) description: str = proto.Field( proto.STRING, number=422937596, optional=True, ) - end_time: int = proto.Field( - proto.INT64, - number=114938801, + id: int = proto.Field( + proto.UINT64, + number=3355, optional=True, ) - issue_type: str = proto.Field( + incompatible_licenses: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=369639136, + number=334239768, + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + license_code: int = proto.Field( + proto.UINT64, + number=1467179, + optional=True, + ) + minimum_retention: "Duration" = proto.Field( + proto.MESSAGE, + number=155398189, + optional=True, + message="Duration", + ) + multi_tenant_only: bool = proto.Field( + proto.BOOL, + number=274395163, optional=True, ) name: str = proto.Field( @@ -56580,251 +65400,138 @@ class State(proto.Enum): number=3373707, optional=True, ) - source: str = proto.Field( + os_license: bool = proto.Field( + proto.BOOL, + number=487986406, + optional=True, + ) + removable_from_disk: bool = proto.Field( + proto.BOOL, + number=25854638, + optional=True, + ) + required_coattached_licenses: MutableSequence[str] = proto.RepeatedField( proto.STRING, - number=177235995, + number=129195265, + ) + resource_requirements: "LicenseResourceRequirements" = proto.Field( + proto.MESSAGE, + number=214292769, optional=True, + message="LicenseResourceRequirements", ) - start_time: int = proto.Field( - proto.INT64, - number=37467274, + self_link: str = proto.Field( + proto.STRING, + number=456214797, optional=True, ) - state: str = proto.Field( + self_link_with_id: str = proto.Field( proto.STRING, - number=109757585, + number=44520962, + optional=True, + ) + sole_tenant_only: bool = proto.Field( + proto.BOOL, + number=427525559, + optional=True, + ) + transferable: bool = proto.Field( + proto.BOOL, + number=4349893, + optional=True, + ) + update_timestamp: str = proto.Field( + proto.STRING, + number=120894752, optional=True, ) -class InterconnectRemoteLocation(proto.Message): - r"""Represents a Cross-Cloud Interconnect Remote Location - resource. You can use this resource to find remote location - details about an Interconnect attachment (VLAN). +class LicenseCode(proto.Message): + r"""Represents a License Code resource. + + A License Code is a unique identifier used to represent alicense + resource. *Caution* This resource is intended for use only by + third-party partners who are creatingCloud Marketplace images. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - address (str): - [Output Only] The postal address of the Point of Presence, - each line in the address is separated by a newline - character. - - This field is a member of `oneof`_ ``_address``. - attachment_configuration_constraints (google.cloud.compute_v1.types.InterconnectAttachmentConfigurationConstraints): - [Output Only] Subset of fields from InterconnectAttachment's - \|configurationConstraints\| field that apply to all - attachments for this remote location. - - This field is a member of `oneof`_ ``_attachment_configuration_constraints``. - city (str): - [Output Only] Metropolitan area designator that indicates - which city an interconnect is located. For example: - "Chicago, IL", "Amsterdam, Netherlands". - - This field is a member of `oneof`_ ``_city``. - constraints (google.cloud.compute_v1.types.InterconnectRemoteLocationConstraints): - [Output Only] Constraints on the parameters for creating - Cross-Cloud Interconnect and associated - InterconnectAttachments. - - This field is a member of `oneof`_ ``_constraints``. - continent (str): - [Output Only] Continent for this location, which can take - one of the following values: - AFRICA - ASIA_PAC - EUROPE - - NORTH_AMERICA - SOUTH_AMERICA Check the Continent enum for - the list of possible values. - - This field is a member of `oneof`_ ``_continent``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): - [Output Only] An optional description of the resource. + Output only. [Output Only] Description of this License Code. This field is a member of `oneof`_ ``_description``. - facility_provider (str): - [Output Only] The name of the provider for this facility - (e.g., EQUINIX). - - This field is a member of `oneof`_ ``_facility_provider``. - facility_provider_facility_id (str): - [Output Only] A provider-assigned Identifier for this - facility (e.g., Ashburn-DC1). - - This field is a member of `oneof`_ ``_facility_provider_facility_id``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#interconnectRemoteLocation for interconnect remote - locations. + Output only. [Output Only] Type of resource. Always + compute#licenseCode for licenses. This field is a member of `oneof`_ ``_kind``. - lacp (str): - [Output Only] Link Aggregation Control Protocol (LACP) - constraints, which can take one of the following values: - LACP_SUPPORTED, LACP_UNSUPPORTED Check the Lacp enum for the - list of possible values. - - This field is a member of `oneof`_ ``_lacp``. - max_lag_size100_gbps (int): - [Output Only] The maximum number of 100 Gbps ports supported - in a link aggregation group (LAG). When linkType is 100 - Gbps, requestedLinkCount cannot exceed - max_lag_size_100_gbps. - - This field is a member of `oneof`_ ``_max_lag_size100_gbps``. - max_lag_size10_gbps (int): - [Output Only] The maximum number of 10 Gbps ports supported - in a link aggregation group (LAG). When linkType is 10 Gbps, - requestedLinkCount cannot exceed max_lag_size_10_gbps. - - This field is a member of `oneof`_ ``_max_lag_size10_gbps``. - max_lag_size400_gbps (int): - [Output Only] The maximum number of 400 Gbps ports supported - in a link aggregation group (LAG). When linkType is 400 - Gbps, requestedLinkCount cannot exceed - max_lag_size_400_gbps. - - This field is a member of `oneof`_ ``_max_lag_size400_gbps``. + license_alias (MutableSequence[google.cloud.compute_v1.types.LicenseCodeLicenseAlias]): + [Output Only] URL and description aliases of Licenses with + the same License Code. name (str): - [Output Only] Name of the resource. + Output only. [Output Only] Name of the resource. The name is + 1-20 characters long and must be a valid 64 bit integer. This field is a member of `oneof`_ ``_name``. - peeringdb_facility_id (str): - [Output Only] The peeringdb identifier for this facility - (corresponding with a netfac type in peeringdb). - - This field is a member of `oneof`_ ``_peeringdb_facility_id``. - permitted_connections (MutableSequence[google.cloud.compute_v1.types.InterconnectRemoteLocationPermittedConnections]): - [Output Only] Permitted connections. - remote_service (str): - [Output Only] Indicates the service provider present at the - remote location. Example values: "Amazon Web Services", - "Microsoft Azure". - - This field is a member of `oneof`_ ``_remote_service``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. - status (str): - [Output Only] The status of this InterconnectRemoteLocation, - which can take one of the following values: - CLOSED: The - InterconnectRemoteLocation is closed and is unavailable for - provisioning new Cross-Cloud Interconnects. - AVAILABLE: The - InterconnectRemoteLocation is available for provisioning new - Cross-Cloud Interconnects. Check the Status enum for the - list of possible values. + state (str): + Output only. [Output Only] Current state of this License + Code. Check the State enum for the list of possible values. - This field is a member of `oneof`_ ``_status``. + This field is a member of `oneof`_ ``_state``. + transferable (bool): + Output only. [Output Only] If true, the license will remain + attached when creating images or snapshots from disks. + Otherwise, the license is not transferred. + + This field is a member of `oneof`_ ``_transferable``. """ - class Continent(proto.Enum): - r"""[Output Only] Continent for this location, which can take one of the - following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - - SOUTH_AMERICA + class State(proto.Enum): + r"""Output only. [Output Only] Current state of this License Code. Values: - UNDEFINED_CONTINENT (0): + UNDEFINED_STATE (0): A value indicating that the enum field is not set. - AFRICA (317443706): - No description available. - ASIA_PAC (119782269): - No description available. - EUROPE (445819298): - No description available. - NORTH_AMERICA (448015508): - No description available. - SOUTH_AMERICA (32597340): + DISABLED (516696700): + Machines are not allowed to attach boot disks + with this License Code. Requests to create new + resources with this license will be rejected. + ENABLED (182130465): + Use is allowed for anyone with USE_READ_ONLY access to this + License Code. + RESTRICTED (261551195): + Use of this license is limited to a project + whitelist. + STATE_UNSPECIFIED (470755401): No description available. + TERMINATED (250018339): + Reserved state. """ - UNDEFINED_CONTINENT = 0 - AFRICA = 317443706 - ASIA_PAC = 119782269 - EUROPE = 445819298 - NORTH_AMERICA = 448015508 - SOUTH_AMERICA = 32597340 - - class Lacp(proto.Enum): - r"""[Output Only] Link Aggregation Control Protocol (LACP) constraints, - which can take one of the following values: LACP_SUPPORTED, - LACP_UNSUPPORTED - - Values: - UNDEFINED_LACP (0): - A value indicating that the enum field is not - set. - LACP_SUPPORTED (339576113): - LACP_SUPPORTED: LACP is supported, and enabled by default on - the Cross-Cloud Interconnect. - LACP_UNSUPPORTED (203930104): - LACP_UNSUPPORTED: LACP is not supported and is not be - enabled on this port. GetDiagnostics shows - bundleAggregationType as "static". GCP does not support LAGs - without LACP, so requestedLinkCount must be 1. - """ - UNDEFINED_LACP = 0 - LACP_SUPPORTED = 339576113 - LACP_UNSUPPORTED = 203930104 - - class Status(proto.Enum): - r"""[Output Only] The status of this InterconnectRemoteLocation, which - can take one of the following values: - CLOSED: The - InterconnectRemoteLocation is closed and is unavailable for - provisioning new Cross-Cloud Interconnects. - AVAILABLE: The - InterconnectRemoteLocation is available for provisioning new - Cross-Cloud Interconnects. - - Values: - UNDEFINED_STATUS (0): - A value indicating that the enum field is not - set. - AVAILABLE (442079913): - The InterconnectRemoteLocation is available - for provisioning new Cross-Cloud Interconnects. - CLOSED (380163436): - The InterconnectRemoteLocation is closed for - provisioning new Cross-Cloud Interconnects. - """ - UNDEFINED_STATUS = 0 - AVAILABLE = 442079913 - CLOSED = 380163436 + UNDEFINED_STATE = 0 + DISABLED = 516696700 + ENABLED = 182130465 + RESTRICTED = 261551195 + STATE_UNSPECIFIED = 470755401 + TERMINATED = 250018339 - address: str = proto.Field( - proto.STRING, - number=462920692, - optional=True, - ) - attachment_configuration_constraints: "InterconnectAttachmentConfigurationConstraints" = proto.Field( - proto.MESSAGE, - number=326825041, - optional=True, - message="InterconnectAttachmentConfigurationConstraints", - ) - city: str = proto.Field( - proto.STRING, - number=3053931, - optional=True, - ) - constraints: "InterconnectRemoteLocationConstraints" = proto.Field( - proto.MESSAGE, - number=3909174, - optional=True, - message="InterconnectRemoteLocationConstraints", - ) - continent: str = proto.Field( - proto.STRING, - number=133442996, - optional=True, - ) creation_timestamp: str = proto.Field( proto.STRING, number=30525366, @@ -56835,16 +65542,6 @@ class Status(proto.Enum): number=422937596, optional=True, ) - facility_provider: str = proto.Field( - proto.STRING, - number=533303309, - optional=True, - ) - facility_provider_facility_id: str = proto.Field( - proto.STRING, - number=87269125, - optional=True, - ) id: int = proto.Field( proto.UINT64, number=3355, @@ -56855,46 +65552,14 @@ class Status(proto.Enum): number=3292052, optional=True, ) - lacp: str = proto.Field( - proto.STRING, - number=3313826, - optional=True, - ) - max_lag_size100_gbps: int = proto.Field( - proto.INT32, - number=245219253, - optional=True, - ) - max_lag_size10_gbps: int = proto.Field( - proto.INT32, - number=294007573, - optional=True, - ) - max_lag_size400_gbps: int = proto.Field( - proto.INT32, - number=104941138, - optional=True, - ) - name: str = proto.Field( - proto.STRING, - number=3373707, - optional=True, - ) - peeringdb_facility_id: str = proto.Field( - proto.STRING, - number=536567094, - optional=True, - ) - permitted_connections: MutableSequence[ - "InterconnectRemoteLocationPermittedConnections" - ] = proto.RepeatedField( + license_alias: MutableSequence["LicenseCodeLicenseAlias"] = proto.RepeatedField( proto.MESSAGE, - number=442063278, - message="InterconnectRemoteLocationPermittedConnections", + number=43550930, + message="LicenseCodeLicenseAlias", ) - remote_service: str = proto.Field( + name: str = proto.Field( proto.STRING, - number=391954364, + number=3373707, optional=True, ) self_link: str = proto.Field( @@ -56902,159 +65567,116 @@ class Status(proto.Enum): number=456214797, optional=True, ) - status: str = proto.Field( + state: str = proto.Field( proto.STRING, - number=181260274, + number=109757585, + optional=True, + ) + transferable: bool = proto.Field( + proto.BOOL, + number=4349893, optional=True, ) -class InterconnectRemoteLocationConstraints(proto.Message): +class LicenseCodeLicenseAlias(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - port_pair_remote_location (str): - [Output Only] Port pair remote location constraints, which - can take one of the following values: - PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, - PORT_PAIR_MATCHING_REMOTE_LOCATION. Google Cloud API refers - only to individual ports, but the UI uses this field when - ordering a pair of ports, to prevent users from accidentally - ordering something that is incompatible with their cloud - provider. Specifically, when ordering a redundant pair of - Cross-Cloud Interconnect ports, and one of them uses a - remote location with portPairMatchingRemoteLocation set to - matching, the UI requires that both ports use the same - remote location. Check the PortPairRemoteLocation enum for - the list of possible values. - - This field is a member of `oneof`_ ``_port_pair_remote_location``. - port_pair_vlan (str): - [Output Only] Port pair VLAN constraints, which can take one - of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, - PORT_PAIR_MATCHING_VLAN Check the PortPairVlan enum for the - list of possible values. + description (str): + Output only. [Output Only] Description of this License Code. - This field is a member of `oneof`_ ``_port_pair_vlan``. - subnet_length_range (google.cloud.compute_v1.types.InterconnectRemoteLocationConstraintsSubnetLengthRange): - [Output Only] [min-length, max-length] The minimum and - maximum value (inclusive) for the IPv4 subnet length. For - example, an interconnectRemoteLocation for Azure has {min: - 30, max: 30} because Azure requires /30 subnets. This range - specifies the values supported by both cloud providers. - Interconnect currently supports /29 and /30 IPv4 subnet - lengths. If a remote cloud has no constraint on IPv4 subnet - length, the range would thus be {min: 29, max: 30}. + This field is a member of `oneof`_ ``_description``. + self_link (str): + Output only. [Output Only] URL of license corresponding to + this License Code. - This field is a member of `oneof`_ ``_subnet_length_range``. + This field is a member of `oneof`_ ``_self_link``. """ - class PortPairRemoteLocation(proto.Enum): - r"""[Output Only] Port pair remote location constraints, which can take - one of the following values: - PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, - PORT_PAIR_MATCHING_REMOTE_LOCATION. Google Cloud API refers only to - individual ports, but the UI uses this field when ordering a pair of - ports, to prevent users from accidentally ordering something that is - incompatible with their cloud provider. Specifically, when ordering - a redundant pair of Cross-Cloud Interconnect ports, and one of them - uses a remote location with portPairMatchingRemoteLocation set to - matching, the UI requires that both ports use the same remote - location. + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) - Values: - UNDEFINED_PORT_PAIR_REMOTE_LOCATION (0): - A value indicating that the enum field is not - set. - PORT_PAIR_MATCHING_REMOTE_LOCATION (207291859): - If PORT_PAIR_MATCHING_REMOTE_LOCATION, the remote cloud - provider allocates ports in pairs, and the user should - choose the same remote location for both ports. - PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION (60609829): - If PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, a user may opt - to provision a redundant pair of Cross-Cloud Interconnects - using two different remote locations in the same city. - """ - UNDEFINED_PORT_PAIR_REMOTE_LOCATION = 0 - PORT_PAIR_MATCHING_REMOTE_LOCATION = 207291859 - PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION = 60609829 - class PortPairVlan(proto.Enum): - r"""[Output Only] Port pair VLAN constraints, which can take one of the - following values: PORT_PAIR_UNCONSTRAINED_VLAN, - PORT_PAIR_MATCHING_VLAN +class LicenseResourceCommitment(proto.Message): + r"""Commitment for a particular license resource. - Values: - UNDEFINED_PORT_PAIR_VLAN (0): - A value indicating that the enum field is not - set. - PORT_PAIR_MATCHING_VLAN (250295358): - If PORT_PAIR_MATCHING_VLAN, the Interconnect for this - attachment is part of a pair of ports that should have - matching VLAN allocations. This occurs with Cross-Cloud - Interconnect to Azure remote locations. While GCP's API does - not explicitly group pairs of ports, the UI uses this field - to ensure matching VLAN ids when configuring a redundant - VLAN pair. - PORT_PAIR_UNCONSTRAINED_VLAN (175227948): - PORT_PAIR_UNCONSTRAINED_VLAN means there is no constraint. - """ - UNDEFINED_PORT_PAIR_VLAN = 0 - PORT_PAIR_MATCHING_VLAN = 250295358 - PORT_PAIR_UNCONSTRAINED_VLAN = 175227948 + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - port_pair_remote_location: str = proto.Field( - proto.STRING, - number=495917351, + Attributes: + amount (int): + The number of licenses you plan to purchase. + + This field is a member of `oneof`_ ``_amount``. + cores_per_license (str): + The number of cores per license. + + This field is a member of `oneof`_ ``_cores_per_license``. + license_ (str): + The applicable license URI. + + This field is a member of `oneof`_ ``_license``. + """ + + amount: int = proto.Field( + proto.INT64, + number=196759640, optional=True, ) - port_pair_vlan: str = proto.Field( + cores_per_license: str = proto.Field( proto.STRING, - number=478214506, + number=32482324, optional=True, ) - subnet_length_range: "InterconnectRemoteLocationConstraintsSubnetLengthRange" = ( - proto.Field( - proto.MESSAGE, - number=184473670, - optional=True, - message="InterconnectRemoteLocationConstraintsSubnetLengthRange", - ) + license_: str = proto.Field( + proto.STRING, + number=166757441, + optional=True, ) -class InterconnectRemoteLocationConstraintsSubnetLengthRange(proto.Message): +class LicenseResourceRequirements(proto.Message): r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - max_ (int): + min_guest_cpu_count (int): + [Input Only] Deprecated. This field no longer reflects the + minimum number of guest cpus required to use the Instance. - This field is a member of `oneof`_ ``_max``. - min_ (int): + This field is a member of `oneof`_ ``_min_guest_cpu_count``. + min_memory_mb (int): + [Input Only] Deprecated. This field no longer reflects the + minimum memory required to use the Instance. - This field is a member of `oneof`_ ``_min``. + This field is a member of `oneof`_ ``_min_memory_mb``. """ - max_: int = proto.Field( + min_guest_cpu_count: int = proto.Field( proto.INT32, - number=107876, + number=477964836, optional=True, ) - min_: int = proto.Field( + min_memory_mb: int = proto.Field( proto.INT32, - number=108114, + number=504785894, optional=True, ) -class InterconnectRemoteLocationList(proto.Message): - r"""Response to the list request, and contains a list of - interconnect remote locations. - +class LicensesListResponse(proto.Message): + r""" .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -57064,26 +65686,20 @@ class InterconnectRemoteLocationList(proto.Message): the server. This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.InterconnectRemoteLocation]): - A list of InterconnectRemoteLocation - resources. - kind (str): - [Output Only] Type of resource. Always - compute#interconnectRemoteLocationList for lists of - interconnect remote locations. - - This field is a member of `oneof`_ ``_kind``. + items (MutableSequence[google.cloud.compute_v1.types.License]): + A list of License resources. next_page_token (str): - [Output Only] This token lets you get the next page of + [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -57101,15 +65717,10 @@ def raw_page(self): number=3355, optional=True, ) - items: MutableSequence["InterconnectRemoteLocation"] = proto.RepeatedField( + items: MutableSequence["License"] = proto.RepeatedField( proto.MESSAGE, number=100526016, - message="InterconnectRemoteLocation", - ) - kind: str = proto.Field( - proto.STRING, - number=3292052, - optional=True, + message="License", ) next_page_token: str = proto.Field( proto.STRING, @@ -57129,680 +65740,1020 @@ def raw_page(self): ) -class InterconnectRemoteLocationPermittedConnections(proto.Message): - r""" +class ListAcceleratorTypesRequest(proto.Message): + r"""A request message for AcceleratorTypes.List. See the method + description for details. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - interconnect_location (str): - [Output Only] URL of an Interconnect location that is - permitted to connect to this Interconnect remote location. + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. - This field is a member of `oneof`_ ``_interconnect_location``. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: + + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. + + This field is a member of `oneof`_ ``_filter``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. + + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. + + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. + + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. + + This field is a member of `oneof`_ ``_page_token``. + project (str): + Project ID for this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. + + This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone for this request. """ - interconnect_location: str = proto.Field( + filter: str = proto.Field( proto.STRING, - number=492235846, + number=336120696, + optional=True, + ) + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, + ) + order_by: str = proto.Field( + proto.STRING, + number=160562920, + optional=True, + ) + page_token: str = proto.Field( + proto.STRING, + number=19994697, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class InterconnectsGetDiagnosticsResponse(proto.Message): - r"""Response for the InterconnectsGetDiagnosticsRequest. +class ListAddressesRequest(proto.Message): + r"""A request message for Addresses.List. See the method + description for details. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - result (google.cloud.compute_v1.types.InterconnectDiagnostics): + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. - This field is a member of `oneof`_ ``_result``. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: + + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. + + This field is a member of `oneof`_ ``_filter``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. + + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. + + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. + + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. + + This field is a member of `oneof`_ ``_page_token``. + project (str): + Project ID for this request. + region (str): + Name of the region for this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. + + This field is a member of `oneof`_ ``_return_partial_success``. """ - result: "InterconnectDiagnostics" = proto.Field( - proto.MESSAGE, - number=139315229, + filter: str = proto.Field( + proto.STRING, + number=336120696, + optional=True, + ) + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, + ) + order_by: str = proto.Field( + proto.STRING, + number=160562920, + optional=True, + ) + page_token: str = proto.Field( + proto.STRING, + number=19994697, + optional=True, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, optional=True, - message="InterconnectDiagnostics", ) -class InterconnectsGetMacsecConfigResponse(proto.Message): - r"""Response for the InterconnectsGetMacsecConfigRequest. +class ListAssociationsFirewallPolicyRequest(proto.Message): + r"""A request message for FirewallPolicies.ListAssociations. See + the method description for details. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - etag (str): - end_interface: MixerGetResponseWithEtagBuilder - - This field is a member of `oneof`_ ``_etag``. - result (google.cloud.compute_v1.types.InterconnectMacsecConfig): + target_resource (str): + The target resource to list associations. It + is an organization, or a folder. - This field is a member of `oneof`_ ``_result``. + This field is a member of `oneof`_ ``_target_resource``. """ - etag: str = proto.Field( + target_resource: str = proto.Field( proto.STRING, - number=3123477, + number=467318524, optional=True, ) - result: "InterconnectMacsecConfig" = proto.Field( - proto.MESSAGE, - number=139315229, + + +class ListAssociationsOrganizationSecurityPolicyRequest(proto.Message): + r"""A request message for + OrganizationSecurityPolicies.ListAssociations. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + target_resource (str): + The target resource to list associations. It + is an organization, or a folder. + + This field is a member of `oneof`_ ``_target_resource``. + """ + + target_resource: str = proto.Field( + proto.STRING, + number=467318524, optional=True, - message="InterconnectMacsecConfig", ) -class InvalidateCacheUrlMapRequest(proto.Message): - r"""A request message for UrlMaps.InvalidateCache. See the method +class ListAutoscalersRequest(proto.Message): + r"""A request message for Autoscalers.List. See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - cache_invalidation_rule_resource (google.cloud.compute_v1.types.CacheInvalidationRule): - The body resource for this request + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: + + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. + + This field is a member of `oneof`_ ``_filter``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. + + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. + + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. + + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. + + This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - request_id (str): - An optional request ID to identify requests. - Specify a unique request ID so that if you must - retry your request, the server will know to - ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. - This field is a member of `oneof`_ ``_request_id``. - url_map (str): - Name of the UrlMap scoping this request. + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. + + This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + Name of the zone for this request. """ - cache_invalidation_rule_resource: "CacheInvalidationRule" = proto.Field( - proto.MESSAGE, - number=312795565, - message="CacheInvalidationRule", + filter: str = proto.Field( + proto.STRING, + number=336120696, + optional=True, + ) + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, + ) + order_by: str = proto.Field( + proto.STRING, + number=160562920, + optional=True, + ) + page_token: str = proto.Field( + proto.STRING, + number=19994697, + optional=True, ) project: str = proto.Field( proto.STRING, number=227560217, ) - request_id: str = proto.Field( - proto.STRING, - number=37109963, + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, optional=True, ) - url_map: str = proto.Field( + zone: str = proto.Field( proto.STRING, - number=367020684, + number=3744684, ) -class Items(proto.Message): - r"""Metadata +class ListAvailableFeaturesRegionSslPoliciesRequest(proto.Message): + r"""A request message for + RegionSslPolicies.ListAvailableFeatures. See the method + description for details. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - key (str): - Key for the metadata entry. Keys must conform to the - following regexp: [a-zA-Z0-9-\_]+, and be less than 128 - bytes in length. This is reflected as part of a URL in the - metadata server. Additionally, to avoid ambiguity, keys must - not conflict with any other metadata keys for the project. - - This field is a member of `oneof`_ ``_key``. - value (str): - Value for the metadata entry. These are - free-form strings, and only have meaning as - interpreted by the image running in the - instance. The only restriction placed on values - is that their size must be less than or equal to - 262144 bytes (256 KiB). + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. - This field is a member of `oneof`_ ``_value``. - """ + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - key: str = proto.Field( - proto.STRING, - number=106079, - optional=True, - ) - value: str = proto.Field( - proto.STRING, - number=111972721, - optional=True, - ) + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: -class License(proto.Message): - r"""Represents a License resource. A License represents billing and - aggregate usage data for public and marketplace images. *Caution* - This resource is intended for use only by third-party partners who - are creating Cloud Marketplace images. + :: + labels.owner:* - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. - Attributes: - allowed_replacement_licenses (MutableSequence[str]): - Specifies licenseCodes of licenses that can replace this - license. Note: such replacements are allowed even if - removable_from_disk is false. - appendable_to_disk (bool): - If true, this license can be appended to an - existing disk's set of licenses. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: - This field is a member of `oneof`_ ``_appendable_to_disk``. - charges_use_fee (bool): - [Output Only] Deprecated. This field no longer reflects - whether a license charges a usage fee. + :: - This field is a member of `oneof`_ ``_charges_use_fee``. - creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - This field is a member of `oneof`_ ``_creation_timestamp``. - description (str): - An optional textual description of the - resource; provided by the client when the - resource is created. + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: - This field is a member of `oneof`_ ``_description``. - id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + :: - This field is a member of `oneof`_ ``_id``. - incompatible_licenses (MutableSequence[str]): - Specifies licenseCodes of licenses that are - incompatible with this license. If a license is - incompatible with this license, it cannot be - attached to the same disk or image. - kind (str): - [Output Only] Type of resource. Always compute#license for - licenses. + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) - This field is a member of `oneof`_ ``_kind``. - license_code (int): - [Output Only] The unique code used to attach this license to - images, snapshots, and disks. + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: - This field is a member of `oneof`_ ``_license_code``. - minimum_retention (google.cloud.compute_v1.types.Duration): - If set, this license will be unable to be removed or - replaced once attached to a disk until the minimum_retention - period has passed. + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` - This field is a member of `oneof`_ ``_minimum_retention``. - multi_tenant_only (bool): - If true, this license can only be used on VMs - on multi tenant nodes. + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. - This field is a member of `oneof`_ ``_multi_tenant_only``. - name (str): - Name of the resource. The name must be 1-63 - characters long and comply with RFC1035. + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. - This field is a member of `oneof`_ ``_name``. - os_license (bool): - If true, indicates this is an OS license. - Only one OS license can be attached to a disk or - image at a time. + You cannot combine constraints on multiple fields using + regular expressions. - This field is a member of `oneof`_ ``_os_license``. - removable_from_disk (bool): - If true, this license can be removed from a - disk's set of licenses, with no replacement - license needed. + This field is a member of `oneof`_ ``_filter``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) - This field is a member of `oneof`_ ``_removable_from_disk``. - required_coattached_licenses (MutableSequence[str]): - Specifies the set of permissible coattached - licenseCodes of licenses that satisfy the - coattachment requirement of this license. At - least one license from the set must be attached - to the same disk or image as this license. - resource_requirements (google.cloud.compute_v1.types.LicenseResourceRequirements): - [Input Only] Deprecated. + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. - This field is a member of `oneof`_ ``_resource_requirements``. - self_link (str): - [Output Only] Server-defined URL for the resource. + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. - This field is a member of `oneof`_ ``_self_link``. - self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. - This field is a member of `oneof`_ ``_self_link_with_id``. - sole_tenant_only (bool): - If true, this license can only be used on VMs - on sole tenant nodes. + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. - This field is a member of `oneof`_ ``_sole_tenant_only``. - transferable (bool): - If false, licenses will not be copied from - the source resource when creating an image from - a disk, disk from snapshot, or snapshot from - disk. + This field is a member of `oneof`_ ``_page_token``. + project (str): + Project ID for this request. + region (str): + Name of the region scoping this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. - This field is a member of `oneof`_ ``_transferable``. - update_timestamp (str): - [Output Only] Last update timestamp in RFC3339 text format. + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. - This field is a member of `oneof`_ ``_update_timestamp``. + This field is a member of `oneof`_ ``_return_partial_success``. """ - allowed_replacement_licenses: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=195677718, - ) - appendable_to_disk: bool = proto.Field( - proto.BOOL, - number=16959254, - optional=True, - ) - charges_use_fee: bool = proto.Field( - proto.BOOL, - number=372412622, - optional=True, - ) - creation_timestamp: str = proto.Field( - proto.STRING, - number=30525366, - optional=True, - ) - description: str = proto.Field( - proto.STRING, - number=422937596, - optional=True, - ) - id: int = proto.Field( - proto.UINT64, - number=3355, - optional=True, - ) - incompatible_licenses: MutableSequence[str] = proto.RepeatedField( - proto.STRING, - number=334239768, - ) - kind: str = proto.Field( + filter: str = proto.Field( proto.STRING, - number=3292052, - optional=True, - ) - license_code: int = proto.Field( - proto.UINT64, - number=1467179, - optional=True, - ) - minimum_retention: "Duration" = proto.Field( - proto.MESSAGE, - number=155398189, + number=336120696, optional=True, - message="Duration", ) - multi_tenant_only: bool = proto.Field( - proto.BOOL, - number=274395163, + max_results: int = proto.Field( + proto.UINT32, + number=54715419, optional=True, ) - name: str = proto.Field( + order_by: str = proto.Field( proto.STRING, - number=3373707, - optional=True, - ) - os_license: bool = proto.Field( - proto.BOOL, - number=487986406, - optional=True, - ) - removable_from_disk: bool = proto.Field( - proto.BOOL, - number=25854638, + number=160562920, optional=True, ) - required_coattached_licenses: MutableSequence[str] = proto.RepeatedField( + page_token: str = proto.Field( proto.STRING, - number=129195265, - ) - resource_requirements: "LicenseResourceRequirements" = proto.Field( - proto.MESSAGE, - number=214292769, + number=19994697, optional=True, - message="LicenseResourceRequirements", ) - self_link: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=456214797, - optional=True, + number=227560217, ) - self_link_with_id: str = proto.Field( + region: str = proto.Field( proto.STRING, - number=44520962, - optional=True, - ) - sole_tenant_only: bool = proto.Field( - proto.BOOL, - number=427525559, - optional=True, + number=138946292, ) - transferable: bool = proto.Field( + return_partial_success: bool = proto.Field( proto.BOOL, - number=4349893, - optional=True, - ) - update_timestamp: str = proto.Field( - proto.STRING, - number=120894752, + number=517198390, optional=True, ) -class LicenseCode(proto.Message): - r"""Represents a License Code resource. A License Code is a unique - identifier used to represent a license resource. *Caution* This - resource is intended for use only by third-party partners who are - creating Cloud Marketplace images. +class ListAvailableFeaturesSslPoliciesRequest(proto.Message): + r"""A request message for SslPolicies.ListAvailableFeatures. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. - This field is a member of `oneof`_ ``_creation_timestamp``. - description (str): - [Output Only] Description of this License Code. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_description``. - id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_id``. - kind (str): - [Output Only] Type of resource. Always compute#licenseCode - for licenses. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_kind``. - license_alias (MutableSequence[google.cloud.compute_v1.types.LicenseCodeLicenseAlias]): - [Output Only] URL and description aliases of Licenses with - the same License Code. - name (str): - [Output Only] Name of the resource. The name is 1-20 - characters long and must be a valid 64 bit integer. + :: - This field is a member of `oneof`_ ``_name``. - self_link (str): - [Output Only] Server-defined URL for the resource. + labels.owner:* - This field is a member of `oneof`_ ``_self_link``. - state (str): - [Output Only] Current state of this License Code. Check the - State enum for the list of possible values. + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. - This field is a member of `oneof`_ ``_state``. - transferable (bool): - [Output Only] If true, the license will remain attached when - creating images or snapshots from disks. Otherwise, the - license is not transferred. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: - This field is a member of `oneof`_ ``_transferable``. - """ + :: - class State(proto.Enum): - r"""[Output Only] Current state of this License Code. + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - Values: - UNDEFINED_STATE (0): - A value indicating that the enum field is not - set. - DISABLED (516696700): - Machines are not allowed to attach boot disks - with this License Code. Requests to create new - resources with this license will be rejected. - ENABLED (182130465): - Use is allowed for anyone with USE_READ_ONLY access to this - License Code. - RESTRICTED (261551195): - Use of this license is limited to a project - whitelist. - STATE_UNSPECIFIED (470755401): - No description available. - TERMINATED (250018339): - Reserved state. - """ - UNDEFINED_STATE = 0 - DISABLED = 516696700 - ENABLED = 182130465 - RESTRICTED = 261551195 - STATE_UNSPECIFIED = 470755401 - TERMINATED = 250018339 + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: - creation_timestamp: str = proto.Field( - proto.STRING, - number=30525366, - optional=True, - ) - description: str = proto.Field( + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: + + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. + + This field is a member of `oneof`_ ``_filter``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. + + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. + + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. + + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. + + This field is a member of `oneof`_ ``_page_token``. + project (str): + Project ID for this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. + + This field is a member of `oneof`_ ``_return_partial_success``. + """ + + filter: str = proto.Field( proto.STRING, - number=422937596, - optional=True, - ) - id: int = proto.Field( - proto.UINT64, - number=3355, + number=336120696, optional=True, ) - kind: str = proto.Field( - proto.STRING, - number=3292052, + max_results: int = proto.Field( + proto.UINT32, + number=54715419, optional=True, ) - license_alias: MutableSequence["LicenseCodeLicenseAlias"] = proto.RepeatedField( - proto.MESSAGE, - number=43550930, - message="LicenseCodeLicenseAlias", - ) - name: str = proto.Field( + order_by: str = proto.Field( proto.STRING, - number=3373707, + number=160562920, optional=True, ) - self_link: str = proto.Field( + page_token: str = proto.Field( proto.STRING, - number=456214797, + number=19994697, optional=True, ) - state: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=109757585, - optional=True, + number=227560217, ) - transferable: bool = proto.Field( + return_partial_success: bool = proto.Field( proto.BOOL, - number=4349893, + number=517198390, optional=True, ) -class LicenseCodeLicenseAlias(proto.Message): - r""" +class ListBackendBucketsRequest(proto.Message): + r"""A request message for BackendBuckets.List. See the method + description for details. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - description (str): - [Output Only] Description of this License Code. - - This field is a member of `oneof`_ ``_description``. - self_link (str): - [Output Only] URL of license corresponding to this License - Code. - - This field is a member of `oneof`_ ``_self_link``. - """ - - description: str = proto.Field( - proto.STRING, - number=422937596, - optional=True, - ) - self_link: str = proto.Field( - proto.STRING, - number=456214797, - optional=True, - ) + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. -class LicenseResourceCommitment(proto.Message): - r"""Commitment for a particular license resource. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - Attributes: - amount (int): - The number of licenses you plan to purchase. + :: - This field is a member of `oneof`_ ``_amount``. - cores_per_license (str): - The number of cores per license. + labels.owner:* - This field is a member of `oneof`_ ``_cores_per_license``. - license_ (str): - The applicable license URI. + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. - This field is a member of `oneof`_ ``_license``. - """ + To filter on multiple expressions, provide each separate + expression within parentheses. For example: - amount: int = proto.Field( - proto.INT64, - number=196759640, - optional=True, - ) - cores_per_license: str = proto.Field( - proto.STRING, - number=32482324, - optional=True, - ) - license_: str = proto.Field( - proto.STRING, - number=166757441, - optional=True, - ) + :: + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") -class LicenseResourceRequirements(proto.Message): - r""" + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + :: - Attributes: - min_guest_cpu_count (int): - [Input Only] Deprecated. This field no longer reflects the - minimum number of guest cpus required to use the Instance. + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) - This field is a member of `oneof`_ ``_min_guest_cpu_count``. - min_memory_mb (int): - [Input Only] Deprecated. This field no longer reflects the - minimum memory required to use the Instance. + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: - This field is a member of `oneof`_ ``_min_memory_mb``. - """ + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` - min_guest_cpu_count: int = proto.Field( - proto.INT32, - number=477964836, - optional=True, - ) - min_memory_mb: int = proto.Field( - proto.INT32, - number=504785894, - optional=True, - ) + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. -class LicensesListResponse(proto.Message): - r""" + You cannot combine constraints on multiple fields using + regular expressions. - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + This field is a member of `oneof`_ ``_filter``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) - Attributes: - id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. - This field is a member of `oneof`_ ``_id``. - items (MutableSequence[google.cloud.compute_v1.types.License]): - A list of License resources. - next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. - This field is a member of `oneof`_ ``_next_page_token``. - self_link (str): - [Output Only] Server-defined URL for this resource. + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. - This field is a member of `oneof`_ ``_self_link``. - warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. - This field is a member of `oneof`_ ``_warning``. - """ + This field is a member of `oneof`_ ``_page_token``. + project (str): + Project ID for this request. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. - @property - def raw_page(self): - return self + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. - id: str = proto.Field( + This field is a member of `oneof`_ ``_return_partial_success``. + """ + + filter: str = proto.Field( proto.STRING, - number=3355, + number=336120696, optional=True, ) - items: MutableSequence["License"] = proto.RepeatedField( - proto.MESSAGE, - number=100526016, - message="License", + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, ) - next_page_token: str = proto.Field( + order_by: str = proto.Field( proto.STRING, - number=79797525, + number=160562920, optional=True, ) - self_link: str = proto.Field( + page_token: str = proto.Field( proto.STRING, - number=456214797, + number=19994697, optional=True, ) - warning: "Warning" = proto.Field( - proto.MESSAGE, - number=50704284, + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, optional=True, - message="Warning", ) -class ListAcceleratorTypesRequest(proto.Message): - r"""A request message for AcceleratorTypes.List. See the method +class ListBackendServicesRequest(proto.Message): + r"""A request message for BackendServices.List. See the method description for details. @@ -57815,42 +66766,69 @@ class ListAcceleratorTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -57865,13 +66843,17 @@ class ListAcceleratorTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -57886,15 +66868,14 @@ class ListAcceleratorTypesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. """ filter: str = proto.Field( @@ -57926,62 +66907,97 @@ class ListAcceleratorTypesRequest(proto.Message): number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListAddressesRequest(proto.Message): - r"""A request message for Addresses.List. See the method +class ListBgpRoutesRoutersRequest(proto.Message): + r"""A request message for Routers.ListBgpRoutes. See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + address_family (str): + (Required) limit results to this address + family (either IPv4 or IPv6) Check the + AddressFamily enum for the list of possible + values. + + This field is a member of `oneof`_ ``_address_family``. + destination_prefix (str): + Limit results to destinations that are + subnets of this CIDR range + + This field is a member of `oneof`_ ``_destination_prefix``. filter (str): A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -57996,13 +67012,17 @@ class ListAddressesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -58012,6 +67032,16 @@ class ListAddressesRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. + peer (str): + (Required) limit results to the BGP peer with + the given name. Name should conform to RFC1035. + + This field is a member of `oneof`_ ``_peer``. + policy_applied (bool): + When true, the method returns post-policy + routes. Otherwise, it returns pre-policy routes. + + This field is a member of `oneof`_ ``_policy_applied``. project (str): Project ID for this request. region (str): @@ -58019,15 +67049,76 @@ class ListAddressesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + route_type (str): + (Required) limit results to this type of + route (either LEARNED or ADVERTISED) + Check the RouteType enum for the list of + possible values. + + This field is a member of `oneof`_ ``_route_type``. + router (str): + Name or id of the resource for this request. + Name should conform to RFC1035. """ + class AddressFamily(proto.Enum): + r"""(Required) limit results to this address family (either IPv4 + or IPv6) + + Values: + UNDEFINED_ADDRESS_FAMILY (0): + A value indicating that the enum field is not + set. + IPV4 (2254341): + No description available. + IPV6 (2254343): + No description available. + UNSPECIFIED_IP_VERSION (72938440): + No description available. + """ + UNDEFINED_ADDRESS_FAMILY = 0 + IPV4 = 2254341 + IPV6 = 2254343 + UNSPECIFIED_IP_VERSION = 72938440 + + class RouteType(proto.Enum): + r"""(Required) limit results to this type of route (either + LEARNED or ADVERTISED) + + Values: + UNDEFINED_ROUTE_TYPE (0): + A value indicating that the enum field is not + set. + ADVERTISED (20302109): + No description available. + LEARNED (231892419): + No description available. + UNSPECIFIED_ROUTE_TYPE (248064440): + No description available. + """ + UNDEFINED_ROUTE_TYPE = 0 + ADVERTISED = 20302109 + LEARNED = 231892419 + UNSPECIFIED_ROUTE_TYPE = 248064440 + + address_family: str = proto.Field( + proto.STRING, + number=173744655, + optional=True, + ) + destination_prefix: str = proto.Field( + proto.STRING, + number=263872483, + optional=True, + ) filter: str = proto.Field( proto.STRING, number=336120696, @@ -58048,6 +67139,16 @@ class ListAddressesRequest(proto.Message): number=19994697, optional=True, ) + peer: str = proto.Field( + proto.STRING, + number=3436898, + optional=True, + ) + policy_applied: bool = proto.Field( + proto.BOOL, + number=379464304, + optional=True, + ) project: str = proto.Field( proto.STRING, number=227560217, @@ -58061,55 +67162,19 @@ class ListAddressesRequest(proto.Message): number=517198390, optional=True, ) - - -class ListAssociationsFirewallPolicyRequest(proto.Message): - r"""A request message for FirewallPolicies.ListAssociations. See - the method description for details. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - target_resource (str): - The target resource to list associations. It - is an organization, or a folder. - - This field is a member of `oneof`_ ``_target_resource``. - """ - - target_resource: str = proto.Field( + route_type: str = proto.Field( proto.STRING, - number=467318524, + number=375888752, optional=True, ) - - -class ListAssociationsOrganizationSecurityPolicyRequest(proto.Message): - r"""A request message for - OrganizationSecurityPolicies.ListAssociations. See the method - description for details. - - - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields - - Attributes: - target_resource (str): - The target resource to list associations. It - is an organization, or a folder. - - This field is a member of `oneof`_ ``_target_resource``. - """ - - target_resource: str = proto.Field( + router: str = proto.Field( proto.STRING, - number=467318524, - optional=True, + number=148608841, ) -class ListAutoscalersRequest(proto.Message): - r"""A request message for Autoscalers.List. See the method +class ListCrossSiteNetworksRequest(proto.Message): + r"""A request message for CrossSiteNetworks.List. See the method description for details. @@ -58122,42 +67187,69 @@ class ListAutoscalersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -58172,13 +67264,17 @@ class ListAutoscalersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -58193,15 +67289,14 @@ class ListAutoscalersRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - Name of the zone for this request. """ filter: str = proto.Field( @@ -58233,15 +67328,10 @@ class ListAutoscalersRequest(proto.Message): number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListAvailableFeaturesRegionSslPoliciesRequest(proto.Message): - r"""A request message for - RegionSslPolicies.ListAvailableFeatures. See the method +class ListDiskTypesRequest(proto.Message): + r"""A request message for DiskTypes.List. See the method description for details. @@ -58254,42 +67344,69 @@ class ListAvailableFeaturesRegionSslPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -58304,13 +67421,17 @@ class ListAvailableFeaturesRegionSslPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -58322,18 +67443,19 @@ class ListAvailableFeaturesRegionSslPoliciesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone for this request. """ filter: str = proto.Field( @@ -58360,20 +67482,20 @@ class ListAvailableFeaturesRegionSslPoliciesRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListAvailableFeaturesSslPoliciesRequest(proto.Message): - r"""A request message for SslPolicies.ListAvailableFeatures. See - the method description for details. +class ListDisksRequest(proto.Message): + r"""A request message for Disks.List. See the method description + for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -58385,42 +67507,69 @@ class ListAvailableFeaturesSslPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -58435,13 +67584,17 @@ class ListAvailableFeaturesSslPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -58456,13 +67609,16 @@ class ListAvailableFeaturesSslPoliciesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone for this request. """ filter: str = proto.Field( @@ -58494,10 +67650,14 @@ class ListAvailableFeaturesSslPoliciesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListBackendBucketsRequest(proto.Message): - r"""A request message for BackendBuckets.List. See the method +class ListDisksStoragePoolsRequest(proto.Message): + r"""A request message for StoragePools.ListDisks. See the method description for details. @@ -58510,42 +67670,69 @@ class ListBackendBucketsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -58560,13 +67747,17 @@ class ListBackendBucketsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -58581,13 +67772,18 @@ class ListBackendBucketsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + storage_pool (str): + Name of the storage pool to list disks of. + zone (str): + The name of the zone for this request. """ filter: str = proto.Field( @@ -58619,11 +67815,19 @@ class ListBackendBucketsRequest(proto.Message): number=517198390, optional=True, ) + storage_pool: str = proto.Field( + proto.STRING, + number=360473440, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListBackendServicesRequest(proto.Message): - r"""A request message for BackendServices.List. See the method - description for details. +class ListErrorsInstanceGroupManagersRequest(proto.Message): + r"""A request message for InstanceGroupManagers.ListErrors. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -58635,44 +67839,76 @@ class ListBackendServicesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. + instance_group_manager (str): + The name of the managed instance group. It must be a string + that meets the requirements in RFC1035, or an unsigned long + integer: must match regexp pattern: + (?:`a-z `__?)|1-9{0,19}. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -58685,13 +67921,17 @@ class ListBackendServicesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -58706,13 +67946,18 @@ class ListBackendServicesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of thezone where the managed + instance group is located. + It should conform to RFC1035. """ filter: str = proto.Field( @@ -58720,6 +67965,10 @@ class ListBackendServicesRequest(proto.Message): number=336120696, optional=True, ) + instance_group_manager: str = proto.Field( + proto.STRING, + number=249363395, + ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -58744,72 +67993,96 @@ class ListBackendServicesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListBgpRoutesRoutersRequest(proto.Message): - r"""A request message for Routers.ListBgpRoutes. See the method - description for details. +class ListErrorsRegionInstanceGroupManagersRequest(proto.Message): + r"""A request message for RegionInstanceGroupManagers.ListErrors. + See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - address_family (str): - (Required) limit results to this address - family (either IPv4 or IPv6) Check the - AddressFamily enum for the list of possible - values. - - This field is a member of `oneof`_ ``_address_family``. - destination_prefix (str): - Limit results to destinations that are - subnets of this CIDR range - - This field is a member of `oneof`_ ``_destination_prefix``. filter (str): A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. + instance_group_manager (str): + The name of the managed instance group. It must be a string + that meets the requirements in RFC1035, or an unsigned long + integer: must match regexp pattern: + (?:`a-z `__?)|1-9{0,19}. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -58822,13 +68095,17 @@ class ListBgpRoutesRoutersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -58838,96 +68115,33 @@ class ListBgpRoutesRoutersRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. - peer (str): - (Required) limit results to the BGP peer with - the given name. Name should conform to RFC1035. - - This field is a member of `oneof`_ ``_peer``. - policy_applied (bool): - When true, the method returns post-policy - routes. Otherwise, it returns pre-policy routes. - - This field is a member of `oneof`_ ``_policy_applied``. project (str): Project ID for this request. region (str): - Name of the region for this request. + Name of the region scoping this request. + This should conform to RFC1035. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - route_type (str): - (Required) limit results to this type of - route (either LEARNED or ADVERTISED) Check the - RouteType enum for the list of possible values. - - This field is a member of `oneof`_ ``_route_type``. - router (str): - Name or id of the resource for this request. - Name should conform to RFC1035. """ - class AddressFamily(proto.Enum): - r"""(Required) limit results to this address family (either IPv4 - or IPv6) - - Values: - UNDEFINED_ADDRESS_FAMILY (0): - A value indicating that the enum field is not - set. - IPV4 (2254341): - No description available. - IPV6 (2254343): - No description available. - UNSPECIFIED_IP_VERSION (72938440): - No description available. - """ - UNDEFINED_ADDRESS_FAMILY = 0 - IPV4 = 2254341 - IPV6 = 2254343 - UNSPECIFIED_IP_VERSION = 72938440 - - class RouteType(proto.Enum): - r"""(Required) limit results to this type of route (either - LEARNED or ADVERTISED) - - Values: - UNDEFINED_ROUTE_TYPE (0): - A value indicating that the enum field is not - set. - ADVERTISED (20302109): - No description available. - LEARNED (231892419): - No description available. - UNSPECIFIED_ROUTE_TYPE (248064440): - No description available. - """ - UNDEFINED_ROUTE_TYPE = 0 - ADVERTISED = 20302109 - LEARNED = 231892419 - UNSPECIFIED_ROUTE_TYPE = 248064440 - - address_family: str = proto.Field( - proto.STRING, - number=173744655, - optional=True, - ) - destination_prefix: str = proto.Field( - proto.STRING, - number=263872483, - optional=True, - ) filter: str = proto.Field( proto.STRING, number=336120696, optional=True, ) + instance_group_manager: str = proto.Field( + proto.STRING, + number=249363395, + ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -58943,16 +68157,6 @@ class RouteType(proto.Enum): number=19994697, optional=True, ) - peer: str = proto.Field( - proto.STRING, - number=3436898, - optional=True, - ) - policy_applied: bool = proto.Field( - proto.BOOL, - number=379464304, - optional=True, - ) project: str = proto.Field( proto.STRING, number=227560217, @@ -58966,20 +68170,11 @@ class RouteType(proto.Enum): number=517198390, optional=True, ) - route_type: str = proto.Field( - proto.STRING, - number=375888752, - optional=True, - ) - router: str = proto.Field( - proto.STRING, - number=148608841, - ) -class ListDiskTypesRequest(proto.Message): - r"""A request message for DiskTypes.List. See the method - description for details. +class ListExternalVpnGatewaysRequest(proto.Message): + r"""A request message for ExternalVpnGateways.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -58991,42 +68186,69 @@ class ListDiskTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -59041,13 +68263,17 @@ class ListDiskTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -59062,15 +68288,14 @@ class ListDiskTypesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. """ filter: str = proto.Field( @@ -59102,15 +68327,11 @@ class ListDiskTypesRequest(proto.Message): number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListDisksRequest(proto.Message): - r"""A request message for Disks.List. See the method description - for details. +class ListFirewallPoliciesRequest(proto.Message): + r"""A request message for FirewallPolicies.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -59122,42 +68343,69 @@ class ListDisksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -59172,13 +68420,17 @@ class ListDisksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -59188,20 +68440,24 @@ class ListDisksRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. - project (str): - Project ID for this request. + parent_id (str): + Parent ID for this request. The ID can be either be + "folders/[FOLDER_ID]" if the parent is a folder or + "organizations/[ORGANIZATION_ID]" if the parent is an + organization. + + This field is a member of `oneof`_ ``_parent_id``. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. """ filter: str = proto.Field( @@ -59224,23 +68480,20 @@ class ListDisksRequest(proto.Message): number=19994697, optional=True, ) - project: str = proto.Field( + parent_id: str = proto.Field( proto.STRING, - number=227560217, + number=459714768, + optional=True, ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListDisksStoragePoolsRequest(proto.Message): - r"""A request message for StoragePools.ListDisks. See the method +class ListFirewallsRequest(proto.Message): + r"""A request message for Firewalls.List. See the method description for details. @@ -59253,42 +68506,69 @@ class ListDisksStoragePoolsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -59303,13 +68583,17 @@ class ListDisksStoragePoolsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -59324,17 +68608,14 @@ class ListDisksStoragePoolsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - storage_pool (str): - Name of the storage pool to list disks of. - zone (str): - The name of the zone for this request. """ filter: str = proto.Field( @@ -59366,19 +68647,11 @@ class ListDisksStoragePoolsRequest(proto.Message): number=517198390, optional=True, ) - storage_pool: str = proto.Field( - proto.STRING, - number=360473440, - ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListErrorsInstanceGroupManagersRequest(proto.Message): - r"""A request message for InstanceGroupManagers.ListErrors. See - the method description for details. +class ListForwardingRulesRequest(proto.Message): + r"""A request message for ForwardingRules.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -59390,49 +68663,71 @@ class ListErrorsInstanceGroupManagersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. - instance_group_manager (str): - The name of the managed instance group. It must be a string - that meets the requirements in RFC1035, or an unsigned long - integer: must match regexp pattern: - (?:`a-z `__?)|1-9{0,19}. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -59445,13 +68740,17 @@ class ListErrorsInstanceGroupManagersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -59463,20 +68762,19 @@ class ListErrorsInstanceGroupManagersRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone where the managed - instance group is located. It should conform to - RFC1035. """ filter: str = proto.Field( @@ -59484,10 +68782,6 @@ class ListErrorsInstanceGroupManagersRequest(proto.Message): number=336120696, optional=True, ) - instance_group_manager: str = proto.Field( - proto.STRING, - number=249363395, - ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -59507,20 +68801,20 @@ class ListErrorsInstanceGroupManagersRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListErrorsRegionInstanceGroupManagersRequest(proto.Message): - r"""A request message for RegionInstanceGroupManagers.ListErrors. - See the method description for details. +class ListFutureReservationsRequest(proto.Message): + r"""A request message for FutureReservations.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -59532,49 +68826,71 @@ class ListErrorsRegionInstanceGroupManagersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. - instance_group_manager (str): - The name of the managed instance group. It must be a string - that meets the requirements in RFC1035, or an unsigned long - integer: must match regexp pattern: - (?:`a-z `__?)|1-9{0,19}. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -59587,13 +68903,17 @@ class ListErrorsRegionInstanceGroupManagersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -59605,19 +68925,20 @@ class ListErrorsRegionInstanceGroupManagersRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region scoping this request. This - should conform to RFC1035. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + Name of the zone for this request. Name + should conform to RFC1035. """ filter: str = proto.Field( @@ -59625,10 +68946,6 @@ class ListErrorsRegionInstanceGroupManagersRequest(proto.Message): number=336120696, optional=True, ) - instance_group_manager: str = proto.Field( - proto.STRING, - number=249363395, - ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -59648,20 +68965,20 @@ class ListErrorsRegionInstanceGroupManagersRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListExternalVpnGatewaysRequest(proto.Message): - r"""A request message for ExternalVpnGateways.List. See the - method description for details. +class ListGlobalAddressesRequest(proto.Message): + r"""A request message for GlobalAddresses.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -59673,42 +68990,69 @@ class ListExternalVpnGatewaysRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -59723,13 +69067,17 @@ class ListExternalVpnGatewaysRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -59744,10 +69092,11 @@ class ListExternalVpnGatewaysRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -59784,9 +69133,9 @@ class ListExternalVpnGatewaysRequest(proto.Message): ) -class ListFirewallPoliciesRequest(proto.Message): - r"""A request message for FirewallPolicies.List. See the method - description for details. +class ListGlobalForwardingRulesRequest(proto.Message): + r"""A request message for GlobalForwardingRules.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -59798,42 +69147,69 @@ class ListFirewallPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -59848,13 +69224,17 @@ class ListFirewallPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -59864,20 +69244,16 @@ class ListFirewallPoliciesRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. - parent_id (str): - Parent ID for this request. The ID can be either be - "folders/[FOLDER_ID]" if the parent is a folder or - "organizations/[ORGANIZATION_ID]" if the parent is an - organization. - - This field is a member of `oneof`_ ``_parent_id``. + project (str): + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -59903,10 +69279,9 @@ class ListFirewallPoliciesRequest(proto.Message): number=19994697, optional=True, ) - parent_id: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=459714768, - optional=True, + number=227560217, ) return_partial_success: bool = proto.Field( proto.BOOL, @@ -59915,9 +69290,9 @@ class ListFirewallPoliciesRequest(proto.Message): ) -class ListFirewallsRequest(proto.Message): - r"""A request message for Firewalls.List. See the method - description for details. +class ListGlobalNetworkEndpointGroupsRequest(proto.Message): + r"""A request message for GlobalNetworkEndpointGroups.List. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -59929,42 +69304,69 @@ class ListFirewallsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -59979,13 +69381,17 @@ class ListFirewallsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -60000,10 +69406,11 @@ class ListFirewallsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -60040,8 +69447,8 @@ class ListFirewallsRequest(proto.Message): ) -class ListForwardingRulesRequest(proto.Message): - r"""A request message for ForwardingRules.List. See the method +class ListGlobalOperationsRequest(proto.Message): + r"""A request message for GlobalOperations.List. See the method description for details. @@ -60054,42 +69461,69 @@ class ListForwardingRulesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -60104,13 +69538,17 @@ class ListForwardingRulesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -60122,15 +69560,14 @@ class ListForwardingRulesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -60160,9 +69597,165 @@ class ListForwardingRulesRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( + return_partial_success: bool = proto.Field( + proto.BOOL, + number=517198390, + optional=True, + ) + + +class ListGlobalOrganizationOperationsRequest(proto.Message): + r"""A request message for GlobalOrganizationOperations.List. See + the method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + filter (str): + A filter expression that filters resources listed in the + response. Most Compute resources support two types of filter + expressions: expressions that support regular expressions + and expressions that follow API improvement proposal + AIP-160. These two types of filter expressions cannot be + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + + By default, each expression is an ``AND`` expression. + However, you can include ``AND`` and ``OR`` expressions + explicitly. For example: + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + + If you want to use a regular expression, use the ``eq`` + (equal) or ``ne`` (not equal) operator against a single + un-parenthesized expression with or without quotes or + against multiple parenthesized expressions. Examples: + + ``fieldname eq unquoted literal`` + ``fieldname eq 'single quoted literal'`` + ``fieldname eq "double quoted literal"`` + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. + + This field is a member of `oneof`_ ``_filter``. + max_results (int): + The maximum number of results per page that should be + returned. If the number of available results is larger than + ``maxResults``, Compute Engine returns a ``nextPageToken`` + that can be used to get the next page of results in + subsequent list requests. Acceptable values are ``0`` to + ``500``, inclusive. (Default: ``500``) + + This field is a member of `oneof`_ ``_max_results``. + order_by (str): + Sorts list results by a certain order. By default, results + are returned in alphanumerical order based on the resource + name. + + You can also sort results in descending order based on the + creation timestamp using + ``orderBy="creationTimestamp desc"``. This sorts results + based on the ``creationTimestamp`` field in reverse + chronological order (newest result first). Use this to sort + resources like operations so that the newest operation is + returned first. + + Currently, only sorting by ``name`` or + ``creationTimestamp desc`` is supported. + + This field is a member of `oneof`_ ``_order_by``. + page_token (str): + Specifies a page token to use. Set ``pageToken`` to the + ``nextPageToken`` returned by a previous list request to get + the next page of results. + + This field is a member of `oneof`_ ``_page_token``. + parent_id (str): + Parent ID for this request. + + This field is a member of `oneof`_ ``_parent_id``. + return_partial_success (bool): + Opt-in for partial success behavior which + provides partial results in case of failure. The + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no + resources, with an error code. + + This field is a member of `oneof`_ ``_return_partial_success``. + """ + + filter: str = proto.Field( proto.STRING, - number=138946292, + number=336120696, + optional=True, + ) + max_results: int = proto.Field( + proto.UINT32, + number=54715419, + optional=True, + ) + order_by: str = proto.Field( + proto.STRING, + number=160562920, + optional=True, + ) + page_token: str = proto.Field( + proto.STRING, + number=19994697, + optional=True, + ) + parent_id: str = proto.Field( + proto.STRING, + number=459714768, + optional=True, ) return_partial_success: bool = proto.Field( proto.BOOL, @@ -60171,9 +69764,9 @@ class ListForwardingRulesRequest(proto.Message): ) -class ListGlobalAddressesRequest(proto.Message): - r"""A request message for GlobalAddresses.List. See the method - description for details. +class ListGlobalPublicDelegatedPrefixesRequest(proto.Message): + r"""A request message for GlobalPublicDelegatedPrefixes.List. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -60185,42 +69778,69 @@ class ListGlobalAddressesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -60235,13 +69855,17 @@ class ListGlobalAddressesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -60256,10 +69880,11 @@ class ListGlobalAddressesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -60296,9 +69921,9 @@ class ListGlobalAddressesRequest(proto.Message): ) -class ListGlobalForwardingRulesRequest(proto.Message): - r"""A request message for GlobalForwardingRules.List. See the - method description for details. +class ListHealthChecksRequest(proto.Message): + r"""A request message for HealthChecks.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -60310,42 +69935,69 @@ class ListGlobalForwardingRulesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -60360,13 +70012,17 @@ class ListGlobalForwardingRulesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -60381,10 +70037,11 @@ class ListGlobalForwardingRulesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -60421,9 +70078,9 @@ class ListGlobalForwardingRulesRequest(proto.Message): ) -class ListGlobalNetworkEndpointGroupsRequest(proto.Message): - r"""A request message for GlobalNetworkEndpointGroups.List. See - the method description for details. +class ListImagesRequest(proto.Message): + r"""A request message for Images.List. See the method description + for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -60435,42 +70092,69 @@ class ListGlobalNetworkEndpointGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -60485,13 +70169,17 @@ class ListGlobalNetworkEndpointGroupsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -60506,10 +70194,11 @@ class ListGlobalNetworkEndpointGroupsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -60546,8 +70235,9 @@ class ListGlobalNetworkEndpointGroupsRequest(proto.Message): ) -class ListGlobalOperationsRequest(proto.Message): - r"""A request message for GlobalOperations.List. See the method +class ListInstanceGroupManagerResizeRequestsRequest(proto.Message): + r"""A request message for + InstanceGroupManagerResizeRequests.List. See the method description for details. @@ -60560,44 +70250,74 @@ class ListGlobalOperationsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. + instance_group_manager (str): + The name of the managed instance group. The + name should conform to RFC1035. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -60610,13 +70330,17 @@ class ListGlobalOperationsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -60631,13 +70355,18 @@ class ListGlobalOperationsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of thezone where the managed + instance group is located. The name should + conform to RFC1035. """ filter: str = proto.Field( @@ -60645,6 +70374,10 @@ class ListGlobalOperationsRequest(proto.Message): number=336120696, optional=True, ) + instance_group_manager: str = proto.Field( + proto.STRING, + number=249363395, + ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -60669,11 +70402,15 @@ class ListGlobalOperationsRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListGlobalOrganizationOperationsRequest(proto.Message): - r"""A request message for GlobalOrganizationOperations.List. See - the method description for details. +class ListInstanceGroupManagersRequest(proto.Message): + r"""A request message for InstanceGroupManagers.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -60685,42 +70422,69 @@ class ListGlobalOrganizationOperationsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -60735,13 +70499,17 @@ class ListGlobalOrganizationOperationsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -60751,20 +70519,22 @@ class ListGlobalOrganizationOperationsRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. - parent_id (str): - Parent ID for this request. - - This field is a member of `oneof`_ ``_parent_id``. + project (str): + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of thezone where the managed + instance group is located. """ filter: str = proto.Field( @@ -60787,21 +70557,24 @@ class ListGlobalOrganizationOperationsRequest(proto.Message): number=19994697, optional=True, ) - parent_id: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=459714768, - optional=True, + number=227560217, ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListGlobalPublicDelegatedPrefixesRequest(proto.Message): - r"""A request message for GlobalPublicDelegatedPrefixes.List. See - the method description for details. +class ListInstanceGroupsRequest(proto.Message): + r"""A request message for InstanceGroups.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -60813,42 +70586,69 @@ class ListGlobalPublicDelegatedPrefixesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -60863,13 +70663,17 @@ class ListGlobalPublicDelegatedPrefixesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -60884,13 +70688,17 @@ class ListGlobalPublicDelegatedPrefixesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of thezone + where the instance group is located. """ filter: str = proto.Field( @@ -60922,10 +70730,14 @@ class ListGlobalPublicDelegatedPrefixesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListHealthChecksRequest(proto.Message): - r"""A request message for HealthChecks.List. See the method +class ListInstanceTemplatesRequest(proto.Message): + r"""A request message for InstanceTemplates.List. See the method description for details. @@ -60938,42 +70750,69 @@ class ListHealthChecksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -60988,13 +70827,17 @@ class ListHealthChecksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -61009,10 +70852,11 @@ class ListHealthChecksRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -61049,9 +70893,9 @@ class ListHealthChecksRequest(proto.Message): ) -class ListImagesRequest(proto.Message): - r"""A request message for Images.List. See the method description - for details. +class ListInstancesInstanceGroupsRequest(proto.Message): + r"""A request message for InstanceGroups.ListInstances. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -61063,44 +70907,76 @@ class ListImagesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. + instance_group (str): + The name of the instance group from which you + want to generate a list of included instances. + instance_groups_list_instances_request_resource (google.cloud.compute_v1.types.InstanceGroupsListInstancesRequest): + The body resource for this request max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -61113,13 +70989,17 @@ class ListImagesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -61134,13 +71014,17 @@ class ListImagesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone + where the instance group is located. """ filter: str = proto.Field( @@ -61148,6 +71032,15 @@ class ListImagesRequest(proto.Message): number=336120696, optional=True, ) + instance_group: str = proto.Field( + proto.STRING, + number=81095253, + ) + instance_groups_list_instances_request_resource: "InstanceGroupsListInstancesRequest" = proto.Field( + proto.MESSAGE, + number=476255263, + message="InstanceGroupsListInstancesRequest", + ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -61172,12 +71065,15 @@ class ListImagesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListInstanceGroupManagerResizeRequestsRequest(proto.Message): - r"""A request message for - InstanceGroupManagerResizeRequests.List. See the method - description for details. +class ListInstancesRegionInstanceGroupsRequest(proto.Message): + r"""A request message for RegionInstanceGroups.ListInstances. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -61189,47 +71085,74 @@ class ListInstanceGroupManagerResizeRequestsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. - instance_group_manager (str): - The name of the managed instance group. The - name should conform to RFC1035. + instance_group (str): + Name of the regional instance group for which + we want to list the instances. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -61242,13 +71165,17 @@ class ListInstanceGroupManagerResizeRequestsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -61260,20 +71187,21 @@ class ListInstanceGroupManagerResizeRequestsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region scoping this request. + region_instance_groups_list_instances_request_resource (google.cloud.compute_v1.types.RegionInstanceGroupsListInstancesRequest): + The body resource for this request return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone where the managed - instance group is located. The name should - conform to RFC1035. """ filter: str = proto.Field( @@ -61281,9 +71209,9 @@ class ListInstanceGroupManagerResizeRequestsRequest(proto.Message): number=336120696, optional=True, ) - instance_group_manager: str = proto.Field( + instance_group: str = proto.Field( proto.STRING, - number=249363395, + number=81095253, ) max_results: int = proto.Field( proto.UINT32, @@ -61304,20 +71232,25 @@ class ListInstanceGroupManagerResizeRequestsRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + region_instance_groups_list_instances_request_resource: "RegionInstanceGroupsListInstancesRequest" = proto.Field( + proto.MESSAGE, + number=48239828, + message="RegionInstanceGroupsListInstancesRequest", + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListInstanceGroupManagersRequest(proto.Message): - r"""A request message for InstanceGroupManagers.List. See the - method description for details. +class ListInstancesRequest(proto.Message): + r"""A request message for Instances.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -61329,42 +71262,69 @@ class ListInstanceGroupManagersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -61379,13 +71339,17 @@ class ListInstanceGroupManagersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -61400,16 +71364,16 @@ class ListInstanceGroupManagersRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. zone (str): - The name of the zone where the managed - instance group is located. + The name of the zone for this request. """ filter: str = proto.Field( @@ -61447,8 +71411,8 @@ class ListInstanceGroupManagersRequest(proto.Message): ) -class ListInstanceGroupsRequest(proto.Message): - r"""A request message for InstanceGroups.List. See the method +class ListInstantSnapshotsRequest(proto.Message): + r"""A request message for InstantSnapshots.List. See the method description for details. @@ -61461,42 +71425,69 @@ class ListInstanceGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -61511,13 +71502,17 @@ class ListInstanceGroupsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -61532,16 +71527,16 @@ class ListInstanceGroupsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. zone (str): - The name of the zone where the instance group - is located. + The name of the zone for this request. """ filter: str = proto.Field( @@ -61579,9 +71574,9 @@ class ListInstanceGroupsRequest(proto.Message): ) -class ListInstanceTemplatesRequest(proto.Message): - r"""A request message for InstanceTemplates.List. See the method - description for details. +class ListInterconnectAttachmentGroupsRequest(proto.Message): + r"""A request message for InterconnectAttachmentGroups.List. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -61593,42 +71588,69 @@ class ListInstanceTemplatesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -61643,13 +71665,17 @@ class ListInstanceTemplatesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -61664,10 +71690,11 @@ class ListInstanceTemplatesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -61704,8 +71731,8 @@ class ListInstanceTemplatesRequest(proto.Message): ) -class ListInstancesInstanceGroupsRequest(proto.Message): - r"""A request message for InstanceGroups.ListInstances. See the +class ListInterconnectAttachmentsRequest(proto.Message): + r"""A request message for InterconnectAttachments.List. See the method description for details. @@ -61718,193 +71745,71 @@ class ListInstancesInstanceGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` - By default, each expression is an ``AND`` expression. - However, you can include ``AND`` and ``OR`` expressions - explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` - If you want to use a regular expression, use the ``eq`` - (equal) or ``ne`` (not equal) operator against a single - un-parenthesized expression with or without quotes or - against multiple parenthesized expressions. Examples: - ``fieldname eq unquoted literal`` - ``fieldname eq 'single quoted literal'`` - ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + mixed in one request. - This field is a member of `oneof`_ ``_filter``. - instance_group (str): - The name of the instance group from which you - want to generate a list of included instances. - instance_groups_list_instances_request_resource (google.cloud.compute_v1.types.InstanceGroupsListInstancesRequest): - The body resource for this request - max_results (int): - The maximum number of results per page that should be - returned. If the number of available results is larger than - ``maxResults``, Compute Engine returns a ``nextPageToken`` - that can be used to get the next page of results in - subsequent list requests. Acceptable values are ``0`` to - ``500``, inclusive. (Default: ``500``) - - This field is a member of `oneof`_ ``_max_results``. - order_by (str): - Sorts list results by a certain order. By default, results - are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using - ``orderBy="creationTimestamp desc"``. This sorts results - based on the ``creationTimestamp`` field in reverse - chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or - ``creationTimestamp desc`` is supported. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_order_by``. - page_token (str): - Specifies a page token to use. Set ``pageToken`` to the - ``nextPageToken`` returned by a previous list request to get - the next page of results. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_page_token``. - project (str): - Project ID for this request. - return_partial_success (bool): - Opt-in for partial success behavior which - provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no - resources, with an error code. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone where the instance group - is located. - """ + :: - filter: str = proto.Field( - proto.STRING, - number=336120696, - optional=True, - ) - instance_group: str = proto.Field( - proto.STRING, - number=81095253, - ) - instance_groups_list_instances_request_resource: "InstanceGroupsListInstancesRequest" = proto.Field( - proto.MESSAGE, - number=476255263, - message="InstanceGroupsListInstancesRequest", - ) - max_results: int = proto.Field( - proto.UINT32, - number=54715419, - optional=True, - ) - order_by: str = proto.Field( - proto.STRING, - number=160562920, - optional=True, - ) - page_token: str = proto.Field( - proto.STRING, - number=19994697, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - return_partial_success: bool = proto.Field( - proto.BOOL, - number=517198390, - optional=True, - ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) + labels.owner:* + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. -class ListInstancesRegionInstanceGroupsRequest(proto.Message): - r"""A request message for RegionInstanceGroups.ListInstances. See - the method description for details. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - Attributes: - filter (str): - A filter expression that filters resources listed in the - response. Most Compute resources support two types of filter - expressions: expressions that support regular expressions - and expressions that follow API improvement proposal - AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. - instance_group (str): - Name of the regional instance group for which - we want to list the instances. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -61917,13 +71822,17 @@ class ListInstancesRegionInstanceGroupsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -61936,16 +71845,15 @@ class ListInstancesRegionInstanceGroupsRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region scoping this request. - region_instance_groups_list_instances_request_resource (google.cloud.compute_v1.types.RegionInstanceGroupsListInstancesRequest): - The body resource for this request + Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -61956,10 +71864,6 @@ class ListInstancesRegionInstanceGroupsRequest(proto.Message): number=336120696, optional=True, ) - instance_group: str = proto.Field( - proto.STRING, - number=81095253, - ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -61983,11 +71887,6 @@ class ListInstancesRegionInstanceGroupsRequest(proto.Message): proto.STRING, number=138946292, ) - region_instance_groups_list_instances_request_resource: "RegionInstanceGroupsListInstancesRequest" = proto.Field( - proto.MESSAGE, - number=48239828, - message="RegionInstanceGroupsListInstancesRequest", - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -61995,8 +71894,8 @@ class ListInstancesRegionInstanceGroupsRequest(proto.Message): ) -class ListInstancesRequest(proto.Message): - r"""A request message for Instances.List. See the method +class ListInterconnectGroupsRequest(proto.Message): + r"""A request message for InterconnectGroups.List. See the method description for details. @@ -62009,42 +71908,69 @@ class ListInstancesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -62059,13 +71985,17 @@ class ListInstancesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -62080,15 +72010,14 @@ class ListInstancesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. """ filter: str = proto.Field( @@ -62120,15 +72049,11 @@ class ListInstancesRequest(proto.Message): number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListInstantSnapshotsRequest(proto.Message): - r"""A request message for InstantSnapshots.List. See the method - description for details. +class ListInterconnectLocationsRequest(proto.Message): + r"""A request message for InterconnectLocations.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -62140,42 +72065,69 @@ class ListInstantSnapshotsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -62190,13 +72142,17 @@ class ListInstantSnapshotsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -62211,15 +72167,14 @@ class ListInstantSnapshotsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. """ filter: str = proto.Field( @@ -62251,14 +72206,10 @@ class ListInstantSnapshotsRequest(proto.Message): number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListInterconnectAttachmentGroupsRequest(proto.Message): - r"""A request message for InterconnectAttachmentGroups.List. See +class ListInterconnectRemoteLocationsRequest(proto.Message): + r"""A request message for InterconnectRemoteLocations.List. See the method description for details. @@ -62271,42 +72222,69 @@ class ListInterconnectAttachmentGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -62321,13 +72299,17 @@ class ListInterconnectAttachmentGroupsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -62342,10 +72324,11 @@ class ListInterconnectAttachmentGroupsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -62382,9 +72365,9 @@ class ListInterconnectAttachmentGroupsRequest(proto.Message): ) -class ListInterconnectAttachmentsRequest(proto.Message): - r"""A request message for InterconnectAttachments.List. See the - method description for details. +class ListInterconnectsRequest(proto.Message): + r"""A request message for Interconnects.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -62396,42 +72379,69 @@ class ListInterconnectAttachmentsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -62446,13 +72456,17 @@ class ListInterconnectAttachmentsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -62464,15 +72478,14 @@ class ListInterconnectAttachmentsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -62502,10 +72515,6 @@ class ListInterconnectAttachmentsRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -62513,8 +72522,8 @@ class ListInterconnectAttachmentsRequest(proto.Message): ) -class ListInterconnectGroupsRequest(proto.Message): - r"""A request message for InterconnectGroups.List. See the method +class ListLicensesRequest(proto.Message): + r"""A request message for Licenses.List. See the method description for details. @@ -62527,167 +72536,69 @@ class ListInterconnectGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` - By default, each expression is an ``AND`` expression. - However, you can include ``AND`` and ``OR`` expressions - explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` - If you want to use a regular expression, use the ``eq`` - (equal) or ``ne`` (not equal) operator against a single - un-parenthesized expression with or without quotes or - against multiple parenthesized expressions. Examples: - ``fieldname eq unquoted literal`` - ``fieldname eq 'single quoted literal'`` - ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. - - This field is a member of `oneof`_ ``_filter``. - max_results (int): - The maximum number of results per page that should be - returned. If the number of available results is larger than - ``maxResults``, Compute Engine returns a ``nextPageToken`` - that can be used to get the next page of results in - subsequent list requests. Acceptable values are ``0`` to - ``500``, inclusive. (Default: ``500``) + mixed in one request. - This field is a member of `oneof`_ ``_max_results``. - order_by (str): - Sorts list results by a certain order. By default, results - are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using - ``orderBy="creationTimestamp desc"``. This sorts results - based on the ``creationTimestamp`` field in reverse - chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or - ``creationTimestamp desc`` is supported. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_order_by``. - page_token (str): - Specifies a page token to use. Set ``pageToken`` to the - ``nextPageToken`` returned by a previous list request to get - the next page of results. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_page_token``. - project (str): - Project ID for this request. - return_partial_success (bool): - Opt-in for partial success behavior which - provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no - resources, with an error code. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_return_partial_success``. - """ + :: - filter: str = proto.Field( - proto.STRING, - number=336120696, - optional=True, - ) - max_results: int = proto.Field( - proto.UINT32, - number=54715419, - optional=True, - ) - order_by: str = proto.Field( - proto.STRING, - number=160562920, - optional=True, - ) - page_token: str = proto.Field( - proto.STRING, - number=19994697, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - return_partial_success: bool = proto.Field( - proto.BOOL, - number=517198390, - optional=True, - ) + labels.owner:* + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. -class ListInterconnectLocationsRequest(proto.Message): - r"""A request message for InterconnectLocations.List. See the - method description for details. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - Attributes: - filter (str): - A filter expression that filters resources listed in the - response. Most Compute resources support two types of filter - expressions: expressions that support regular expressions - and expressions that follow API improvement proposal - AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -62702,13 +72613,17 @@ class ListInterconnectLocationsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -62723,10 +72638,11 @@ class ListInterconnectLocationsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -62763,9 +72679,9 @@ class ListInterconnectLocationsRequest(proto.Message): ) -class ListInterconnectRemoteLocationsRequest(proto.Message): - r"""A request message for InterconnectRemoteLocations.List. See - the method description for details. +class ListMachineImagesRequest(proto.Message): + r"""A request message for MachineImages.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -62777,42 +72693,69 @@ class ListInterconnectRemoteLocationsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -62827,13 +72770,17 @@ class ListInterconnectRemoteLocationsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -62848,10 +72795,11 @@ class ListInterconnectRemoteLocationsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -62888,8 +72836,8 @@ class ListInterconnectRemoteLocationsRequest(proto.Message): ) -class ListInterconnectsRequest(proto.Message): - r"""A request message for Interconnects.List. See the method +class ListMachineTypesRequest(proto.Message): + r"""A request message for MachineTypes.List. See the method description for details. @@ -62902,42 +72850,69 @@ class ListInterconnectsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -62952,13 +72927,17 @@ class ListInterconnectsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -62973,13 +72952,16 @@ class ListInterconnectsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone for this request. """ filter: str = proto.Field( @@ -63011,10 +72993,15 @@ class ListInterconnectsRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListLicensesRequest(proto.Message): - r"""A request message for Licenses.List. See the method +class ListManagedInstancesInstanceGroupManagersRequest(proto.Message): + r"""A request message for + InstanceGroupManagers.ListManagedInstances. See the method description for details. @@ -63027,44 +73014,73 @@ class ListLicensesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. + instance_group_manager (str): + The name of the managed instance group. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -63077,13 +73093,17 @@ class ListLicensesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -63098,13 +73118,17 @@ class ListLicensesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of thezone where the managed + instance group is located. """ filter: str = proto.Field( @@ -63112,6 +73136,10 @@ class ListLicensesRequest(proto.Message): number=336120696, optional=True, ) + instance_group_manager: str = proto.Field( + proto.STRING, + number=249363395, + ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -63136,10 +73164,15 @@ class ListLicensesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListMachineImagesRequest(proto.Message): - r"""A request message for MachineImages.List. See the method +class ListManagedInstancesRegionInstanceGroupManagersRequest(proto.Message): + r"""A request message for + RegionInstanceGroupManagers.ListManagedInstances. See the method description for details. @@ -63152,44 +73185,73 @@ class ListMachineImagesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. + instance_group_manager (str): + The name of the managed instance group. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -63202,13 +73264,17 @@ class ListMachineImagesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -63220,13 +73286,16 @@ class ListMachineImagesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -63237,6 +73306,10 @@ class ListMachineImagesRequest(proto.Message): number=336120696, optional=True, ) + instance_group_manager: str = proto.Field( + proto.STRING, + number=249363395, + ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -63256,6 +73329,10 @@ class ListMachineImagesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -63263,8 +73340,8 @@ class ListMachineImagesRequest(proto.Message): ) -class ListMachineTypesRequest(proto.Message): - r"""A request message for MachineTypes.List. See the method +class ListNetworkAttachmentsRequest(proto.Message): + r"""A request message for NetworkAttachments.List. See the method description for details. @@ -63277,42 +73354,69 @@ class ListMachineTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -63327,13 +73431,17 @@ class ListMachineTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -63345,18 +73453,19 @@ class ListMachineTypesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region of this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. """ filter: str = proto.Field( @@ -63383,21 +73492,20 @@ class ListMachineTypesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListManagedInstancesInstanceGroupManagersRequest(proto.Message): - r"""A request message for - InstanceGroupManagers.ListManagedInstances. See the method - description for details. +class ListNetworkEndpointGroupsRequest(proto.Message): + r"""A request message for NetworkEndpointGroups.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -63409,46 +73517,71 @@ class ListManagedInstancesInstanceGroupManagersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. - instance_group_manager (str): - The name of the managed instance group. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -63461,13 +73594,17 @@ class ListManagedInstancesInstanceGroupManagersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -63482,16 +73619,18 @@ class ListManagedInstancesInstanceGroupManagersRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. zone (str): - The name of the zone where the managed - instance group is located. + The name of thezone + where the network endpoint group is located. It + should comply with RFC1035. """ filter: str = proto.Field( @@ -63499,10 +73638,6 @@ class ListManagedInstancesInstanceGroupManagersRequest(proto.Message): number=336120696, optional=True, ) - instance_group_manager: str = proto.Field( - proto.STRING, - number=249363395, - ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -63533,9 +73668,9 @@ class ListManagedInstancesInstanceGroupManagersRequest(proto.Message): ) -class ListManagedInstancesRegionInstanceGroupManagersRequest(proto.Message): +class ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest(proto.Message): r"""A request message for - RegionInstanceGroupManagers.ListManagedInstances. See the method + GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. @@ -63548,46 +73683,71 @@ class ListManagedInstancesRegionInstanceGroupManagersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. - instance_group_manager (str): - The name of the managed instance group. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -63597,16 +73757,25 @@ class ListManagedInstancesRegionInstanceGroupManagersRequest(proto.Message): ``500``, inclusive. (Default: ``500``) This field is a member of `oneof`_ ``_max_results``. + network_endpoint_group (str): + The name of the network endpoint group from + which you want to generate a list of included + network endpoints. It should comply with + RFC1035. order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -63618,15 +73787,14 @@ class ListManagedInstancesRegionInstanceGroupManagersRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -63637,15 +73805,15 @@ class ListManagedInstancesRegionInstanceGroupManagersRequest(proto.Message): number=336120696, optional=True, ) - instance_group_manager: str = proto.Field( - proto.STRING, - number=249363395, - ) max_results: int = proto.Field( proto.UINT32, number=54715419, optional=True, ) + network_endpoint_group: str = proto.Field( + proto.STRING, + number=433907078, + ) order_by: str = proto.Field( proto.STRING, number=160562920, @@ -63660,10 +73828,6 @@ class ListManagedInstancesRegionInstanceGroupManagersRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -63671,8 +73835,9 @@ class ListManagedInstancesRegionInstanceGroupManagersRequest(proto.Message): ) -class ListNetworkAttachmentsRequest(proto.Message): - r"""A request message for NetworkAttachments.List. See the method +class ListNetworkEndpointsNetworkEndpointGroupsRequest(proto.Message): + r"""A request message for + NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. @@ -63685,42 +73850,69 @@ class ListNetworkAttachmentsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -63732,16 +73924,27 @@ class ListNetworkAttachmentsRequest(proto.Message): ``500``, inclusive. (Default: ``500``) This field is a member of `oneof`_ ``_max_results``. + network_endpoint_group (str): + The name of the network endpoint group from + which you want to generate a list of included + network endpoints. It should comply with + RFC1035. + network_endpoint_groups_list_endpoints_request_resource (google.cloud.compute_v1.types.NetworkEndpointGroupsListEndpointsRequest): + The body resource for this request order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -63753,18 +73956,21 @@ class ListNetworkAttachmentsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region of this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone where + the network endpoint group is located. It should + comply with RFC1035. """ filter: str = proto.Field( @@ -63777,6 +73983,15 @@ class ListNetworkAttachmentsRequest(proto.Message): number=54715419, optional=True, ) + network_endpoint_group: str = proto.Field( + proto.STRING, + number=433907078, + ) + network_endpoint_groups_list_endpoints_request_resource: "NetworkEndpointGroupsListEndpointsRequest" = proto.Field( + proto.MESSAGE, + number=59493390, + message="NetworkEndpointGroupsListEndpointsRequest", + ) order_by: str = proto.Field( proto.STRING, number=160562920, @@ -63791,20 +74006,21 @@ class ListNetworkAttachmentsRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListNetworkEndpointGroupsRequest(proto.Message): - r"""A request message for NetworkEndpointGroups.List. See the - method description for details. +class ListNetworkEndpointsRegionNetworkEndpointGroupsRequest(proto.Message): + r"""A request message for + RegionNetworkEndpointGroups.ListNetworkEndpoints. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -63816,42 +74032,69 @@ class ListNetworkEndpointGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -63863,16 +74106,25 @@ class ListNetworkEndpointGroupsRequest(proto.Message): ``500``, inclusive. (Default: ``500``) This field is a member of `oneof`_ ``_max_results``. + network_endpoint_group (str): + The name of the network endpoint group from + which you want to generate a list of included + network endpoints. It should comply with + RFC1035. order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -63884,20 +74136,21 @@ class ListNetworkEndpointGroupsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + The name of theregion + where the network endpoint group is located. It + should comply with RFC1035. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone where the network - endpoint group is located. It should comply with - RFC1035. """ filter: str = proto.Field( @@ -63910,6 +74163,10 @@ class ListNetworkEndpointGroupsRequest(proto.Message): number=54715419, optional=True, ) + network_endpoint_group: str = proto.Field( + proto.STRING, + number=433907078, + ) order_by: str = proto.Field( proto.STRING, number=160562920, @@ -63924,21 +74181,20 @@ class ListNetworkEndpointGroupsRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest(proto.Message): - r"""A request message for - GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method - description for details. +class ListNetworkFirewallPoliciesRequest(proto.Message): + r"""A request message for NetworkFirewallPolicies.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -63950,42 +74206,69 @@ class ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -63997,21 +74280,20 @@ class ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest(proto.Message): ``500``, inclusive. (Default: ``500``) This field is a member of `oneof`_ ``_max_results``. - network_endpoint_group (str): - The name of the network endpoint group from - which you want to generate a list of included - network endpoints. It should comply with - RFC1035. order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -64026,10 +74308,11 @@ class ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -64045,10 +74328,6 @@ class ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest(proto.Message): number=54715419, optional=True, ) - network_endpoint_group: str = proto.Field( - proto.STRING, - number=433907078, - ) order_by: str = proto.Field( proto.STRING, number=160562920, @@ -64070,9 +74349,8 @@ class ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest(proto.Message): ) -class ListNetworkEndpointsNetworkEndpointGroupsRequest(proto.Message): - r"""A request message for - NetworkEndpointGroups.ListNetworkEndpoints. See the method +class ListNetworkProfilesRequest(proto.Message): + r"""A request message for NetworkProfiles.List. See the method description for details. @@ -64085,42 +74363,69 @@ class ListNetworkEndpointsNetworkEndpointGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -64132,23 +74437,20 @@ class ListNetworkEndpointsNetworkEndpointGroupsRequest(proto.Message): ``500``, inclusive. (Default: ``500``) This field is a member of `oneof`_ ``_max_results``. - network_endpoint_group (str): - The name of the network endpoint group from - which you want to generate a list of included - network endpoints. It should comply with - RFC1035. - network_endpoint_groups_list_endpoints_request_resource (google.cloud.compute_v1.types.NetworkEndpointGroupsListEndpointsRequest): - The body resource for this request order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -64163,17 +74465,14 @@ class ListNetworkEndpointsNetworkEndpointGroupsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone where the network - endpoint group is located. It should comply with - RFC1035. """ filter: str = proto.Field( @@ -64186,15 +74485,6 @@ class ListNetworkEndpointsNetworkEndpointGroupsRequest(proto.Message): number=54715419, optional=True, ) - network_endpoint_group: str = proto.Field( - proto.STRING, - number=433907078, - ) - network_endpoint_groups_list_endpoints_request_resource: "NetworkEndpointGroupsListEndpointsRequest" = proto.Field( - proto.MESSAGE, - number=59493390, - message="NetworkEndpointGroupsListEndpointsRequest", - ) order_by: str = proto.Field( proto.STRING, number=160562920, @@ -64214,15 +74504,10 @@ class ListNetworkEndpointsNetworkEndpointGroupsRequest(proto.Message): number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListNetworkEndpointsRegionNetworkEndpointGroupsRequest(proto.Message): - r"""A request message for - RegionNetworkEndpointGroups.ListNetworkEndpoints. See the method +class ListNetworksRequest(proto.Message): + r"""A request message for Networks.List. See the method description for details. @@ -64235,42 +74520,69 @@ class ListNetworkEndpointsRegionNetworkEndpointGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -64282,21 +74594,20 @@ class ListNetworkEndpointsRegionNetworkEndpointGroupsRequest(proto.Message): ``500``, inclusive. (Default: ``500``) This field is a member of `oneof`_ ``_max_results``. - network_endpoint_group (str): - The name of the network endpoint group from - which you want to generate a list of included - network endpoints. It should comply with - RFC1035. order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -64308,17 +74619,14 @@ class ListNetworkEndpointsRegionNetworkEndpointGroupsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - The name of the region where the network - endpoint group is located. It should comply with - RFC1035. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -64334,10 +74642,6 @@ class ListNetworkEndpointsRegionNetworkEndpointGroupsRequest(proto.Message): number=54715419, optional=True, ) - network_endpoint_group: str = proto.Field( - proto.STRING, - number=433907078, - ) order_by: str = proto.Field( proto.STRING, number=160562920, @@ -64352,10 +74656,6 @@ class ListNetworkEndpointsRegionNetworkEndpointGroupsRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -64363,9 +74663,9 @@ class ListNetworkEndpointsRegionNetworkEndpointGroupsRequest(proto.Message): ) -class ListNetworkFirewallPoliciesRequest(proto.Message): - r"""A request message for NetworkFirewallPolicies.List. See the - method description for details. +class ListNodeGroupsRequest(proto.Message): + r"""A request message for NodeGroups.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -64377,42 +74677,69 @@ class ListNetworkFirewallPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -64427,13 +74754,17 @@ class ListNetworkFirewallPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -64448,13 +74779,16 @@ class ListNetworkFirewallPoliciesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone for this request. """ filter: str = proto.Field( @@ -64486,10 +74820,14 @@ class ListNetworkFirewallPoliciesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListNetworkProfilesRequest(proto.Message): - r"""A request message for NetworkProfiles.List. See the method +class ListNodeTemplatesRequest(proto.Message): + r"""A request message for NodeTemplates.List. See the method description for details. @@ -64502,42 +74840,69 @@ class ListNetworkProfilesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -64552,13 +74917,17 @@ class ListNetworkProfilesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -64570,13 +74939,16 @@ class ListNetworkProfilesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + The name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -64606,6 +74978,10 @@ class ListNetworkProfilesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -64613,8 +74989,8 @@ class ListNetworkProfilesRequest(proto.Message): ) -class ListNetworksRequest(proto.Message): - r"""A request message for Networks.List. See the method +class ListNodeTypesRequest(proto.Message): + r"""A request message for NodeTypes.List. See the method description for details. @@ -64627,42 +75003,69 @@ class ListNetworksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -64677,13 +75080,17 @@ class ListNetworksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -64698,13 +75105,16 @@ class ListNetworksRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone for this request. """ filter: str = proto.Field( @@ -64736,10 +75146,14 @@ class ListNetworksRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListNodeGroupsRequest(proto.Message): - r"""A request message for NodeGroups.List. See the method +class ListNodesNodeGroupsRequest(proto.Message): + r"""A request message for NodeGroups.ListNodes. See the method description for details. @@ -64752,42 +75166,69 @@ class ListNodeGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -64799,16 +75240,23 @@ class ListNodeGroupsRequest(proto.Message): ``500``, inclusive. (Default: ``500``) This field is a member of `oneof`_ ``_max_results``. + node_group (str): + Name of the NodeGroup resource whose nodes + you want to list. order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -64823,10 +75271,11 @@ class ListNodeGroupsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -64844,6 +75293,10 @@ class ListNodeGroupsRequest(proto.Message): number=54715419, optional=True, ) + node_group: str = proto.Field( + proto.STRING, + number=469958146, + ) order_by: str = proto.Field( proto.STRING, number=160562920, @@ -64869,9 +75322,9 @@ class ListNodeGroupsRequest(proto.Message): ) -class ListNodeTemplatesRequest(proto.Message): - r"""A request message for NodeTemplates.List. See the method - description for details. +class ListOrganizationSecurityPoliciesRequest(proto.Message): + r"""A request message for OrganizationSecurityPolicies.List. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -64883,42 +75336,69 @@ class ListNodeTemplatesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -64933,13 +75413,17 @@ class ListNodeTemplatesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -64949,17 +75433,18 @@ class ListNodeTemplatesRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. - project (str): - Project ID for this request. - region (str): - The name of the region for this request. + parent_id (str): + Parent ID for this request. + + This field is a member of `oneof`_ ``_parent_id``. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -64985,13 +75470,10 @@ class ListNodeTemplatesRequest(proto.Message): number=19994697, optional=True, ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - region: str = proto.Field( + parent_id: str = proto.Field( proto.STRING, - number=138946292, + number=459714768, + optional=True, ) return_partial_success: bool = proto.Field( proto.BOOL, @@ -65000,8 +75482,8 @@ class ListNodeTemplatesRequest(proto.Message): ) -class ListNodeTypesRequest(proto.Message): - r"""A request message for NodeTypes.List. See the method +class ListPacketMirroringsRequest(proto.Message): + r"""A request message for PacketMirrorings.List. See the method description for details. @@ -65014,42 +75496,69 @@ class ListNodeTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -65064,13 +75573,17 @@ class ListNodeTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -65082,18 +75595,19 @@ class ListNodeTypesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. """ filter: str = proto.Field( @@ -65120,67 +75634,100 @@ class ListNodeTypesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListNodesNodeGroupsRequest(proto.Message): - r"""A request message for NodeGroups.ListNodes. See the method - description for details. +class ListPeeringRoutesNetworksRequest(proto.Message): + r"""A request message for Networks.ListPeeringRoutes. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + direction (str): + The direction of the exchanged routes. + Check the Direction enum for the list of + possible values. + + This field is a member of `oneof`_ ``_direction``. filter (str): A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -65192,19 +75739,22 @@ class ListNodesNodeGroupsRequest(proto.Message): ``500``, inclusive. (Default: ``500``) This field is a member of `oneof`_ ``_max_results``. - node_group (str): - Name of the NodeGroup resource whose nodes - you want to list. + network (str): + Name of the network for this request. order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -65214,22 +75764,53 @@ class ListNodesNodeGroupsRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. + peering_name (str): + The response will show routes exchanged over + the given peering connection. + + This field is a member of `oneof`_ ``_peering_name``. project (str): Project ID for this request. + region (str): + The region of the request. The response will + include all subnet routes, static routes and + dynamic routes in the region. + + This field is a member of `oneof`_ ``_region``. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. """ + class Direction(proto.Enum): + r"""The direction of the exchanged routes. + + Values: + UNDEFINED_DIRECTION (0): + A value indicating that the enum field is not + set. + INCOMING (338552870): + For routes exported from peer network. + OUTGOING (307438444): + For routes exported from local network. + """ + UNDEFINED_DIRECTION = 0 + INCOMING = 338552870 + OUTGOING = 307438444 + + direction: str = proto.Field( + proto.STRING, + number=111150975, + optional=True, + ) filter: str = proto.Field( proto.STRING, number=336120696, @@ -65240,9 +75821,9 @@ class ListNodesNodeGroupsRequest(proto.Message): number=54715419, optional=True, ) - node_group: str = proto.Field( + network: str = proto.Field( proto.STRING, - number=469958146, + number=232872494, ) order_by: str = proto.Field( proto.STRING, @@ -65254,24 +75835,31 @@ class ListNodesNodeGroupsRequest(proto.Message): number=19994697, optional=True, ) + peering_name: str = proto.Field( + proto.STRING, + number=249571370, + optional=True, + ) project: str = proto.Field( proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + optional=True, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListOrganizationSecurityPoliciesRequest(proto.Message): - r"""A request message for OrganizationSecurityPolicies.List. See - the method description for details. +class ListPerInstanceConfigsInstanceGroupManagersRequest(proto.Message): + r"""A request message for + InstanceGroupManagers.ListPerInstanceConfigs. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -65283,44 +75871,74 @@ class ListOrganizationSecurityPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. + instance_group_manager (str): + The name of the managed instance group. It + should conform to RFC1035. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -65333,13 +75951,17 @@ class ListOrganizationSecurityPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -65349,20 +75971,23 @@ class ListOrganizationSecurityPoliciesRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. - parent_id (str): - Parent ID for this request. - - This field is a member of `oneof`_ ``_parent_id``. + project (str): + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of thezone + where the managed instance group is located. + It should conform to RFC1035. """ filter: str = proto.Field( @@ -65370,6 +75995,10 @@ class ListOrganizationSecurityPoliciesRequest(proto.Message): number=336120696, optional=True, ) + instance_group_manager: str = proto.Field( + proto.STRING, + number=249363395, + ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -65385,21 +76014,25 @@ class ListOrganizationSecurityPoliciesRequest(proto.Message): number=19994697, optional=True, ) - parent_id: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=459714768, - optional=True, + number=227560217, ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListPacketMirroringsRequest(proto.Message): - r"""A request message for PacketMirrorings.List. See the method - description for details. +class ListPerInstanceConfigsRegionInstanceGroupManagersRequest(proto.Message): + r"""A request message for + RegionInstanceGroupManagers.ListPerInstanceConfigs. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -65411,44 +76044,74 @@ class ListPacketMirroringsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. + instance_group_manager (str): + The name of the managed instance group. It + should conform to RFC1035. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -65461,13 +76124,17 @@ class ListPacketMirroringsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -65480,14 +76147,16 @@ class ListPacketMirroringsRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region for this request. + Name of the region scoping this request, + should conform to RFC1035. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -65498,6 +76167,10 @@ class ListPacketMirroringsRequest(proto.Message): number=336120696, optional=True, ) + instance_group_manager: str = proto.Field( + proto.STRING, + number=249363395, + ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -65528,62 +76201,84 @@ class ListPacketMirroringsRequest(proto.Message): ) -class ListPeeringRoutesNetworksRequest(proto.Message): - r"""A request message for Networks.ListPeeringRoutes. See the - method description for details. +class ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest(proto.Message): + r"""A request message for + OrganizationSecurityPolicies.ListPreconfiguredExpressionSets. + See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: - direction (str): - The direction of the exchanged routes. - Check the Direction enum for the list of - possible values. - - This field is a member of `oneof`_ ``_direction``. filter (str): A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -65595,18 +76290,20 @@ class ListPeeringRoutesNetworksRequest(proto.Message): ``500``, inclusive. (Default: ``500``) This field is a member of `oneof`_ ``_max_results``. - network (str): - Name of the network for this request. order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -65616,52 +76313,23 @@ class ListPeeringRoutesNetworksRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. - peering_name (str): - The response will show routes exchanged over - the given peering connection. - - This field is a member of `oneof`_ ``_peering_name``. - project (str): - Project ID for this request. - region (str): - The region of the request. The response will - include all subnet routes, static routes and - dynamic routes in the region. + parent_id (str): + Parent ID for this request. - This field is a member of `oneof`_ ``_region``. + This field is a member of `oneof`_ ``_parent_id``. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. """ - class Direction(proto.Enum): - r"""The direction of the exchanged routes. - - Values: - UNDEFINED_DIRECTION (0): - A value indicating that the enum field is not - set. - INCOMING (338552870): - For routes exported from peer network. - OUTGOING (307438444): - For routes exported from local network. - """ - UNDEFINED_DIRECTION = 0 - INCOMING = 338552870 - OUTGOING = 307438444 - - direction: str = proto.Field( - proto.STRING, - number=111150975, - optional=True, - ) filter: str = proto.Field( proto.STRING, number=336120696, @@ -65672,10 +76340,6 @@ class Direction(proto.Enum): number=54715419, optional=True, ) - network: str = proto.Field( - proto.STRING, - number=232872494, - ) order_by: str = proto.Field( proto.STRING, number=160562920, @@ -65686,18 +76350,9 @@ class Direction(proto.Enum): number=19994697, optional=True, ) - peering_name: str = proto.Field( - proto.STRING, - number=249571370, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - region: str = proto.Field( + parent_id: str = proto.Field( proto.STRING, - number=138946292, + number=459714768, optional=True, ) return_partial_success: bool = proto.Field( @@ -65707,9 +76362,9 @@ class Direction(proto.Enum): ) -class ListPerInstanceConfigsInstanceGroupManagersRequest(proto.Message): +class ListPreconfiguredExpressionSetsSecurityPoliciesRequest(proto.Message): r"""A request message for - InstanceGroupManagers.ListPerInstanceConfigs. See the method + SecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details. @@ -65722,47 +76377,71 @@ class ListPerInstanceConfigsInstanceGroupManagersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. - instance_group_manager (str): - The name of the managed instance group. It - should conform to RFC1035. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -65775,13 +76454,17 @@ class ListPerInstanceConfigsInstanceGroupManagersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -65796,17 +76479,14 @@ class ListPerInstanceConfigsInstanceGroupManagersRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone where the managed - instance group is located. It should conform to - RFC1035. """ filter: str = proto.Field( @@ -65814,10 +76494,6 @@ class ListPerInstanceConfigsInstanceGroupManagersRequest(proto.Message): number=336120696, optional=True, ) - instance_group_manager: str = proto.Field( - proto.STRING, - number=249363395, - ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -65842,16 +76518,11 @@ class ListPerInstanceConfigsInstanceGroupManagersRequest(proto.Message): number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListPerInstanceConfigsRegionInstanceGroupManagersRequest(proto.Message): - r"""A request message for - RegionInstanceGroupManagers.ListPerInstanceConfigs. See the - method description for details. +class ListPreviewFeaturesRequest(proto.Message): + r"""A request message for PreviewFeatures.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -65863,47 +76534,71 @@ class ListPerInstanceConfigsRegionInstanceGroupManagersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. - instance_group_manager (str): - The name of the managed instance group. It - should conform to RFC1035. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -65916,13 +76611,17 @@ class ListPerInstanceConfigsRegionInstanceGroupManagersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -65934,16 +76633,14 @@ class ListPerInstanceConfigsRegionInstanceGroupManagersRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region scoping this request, - should conform to RFC1035. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -65954,10 +76651,6 @@ class ListPerInstanceConfigsRegionInstanceGroupManagersRequest(proto.Message): number=336120696, optional=True, ) - instance_group_manager: str = proto.Field( - proto.STRING, - number=249363395, - ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -65977,10 +76670,6 @@ class ListPerInstanceConfigsRegionInstanceGroupManagersRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -65988,10 +76677,9 @@ class ListPerInstanceConfigsRegionInstanceGroupManagersRequest(proto.Message): ) -class ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest(proto.Message): - r"""A request message for - OrganizationSecurityPolicies.ListPreconfiguredExpressionSets. - See the method description for details. +class ListPublicAdvertisedPrefixesRequest(proto.Message): + r"""A request message for PublicAdvertisedPrefixes.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -66003,42 +76691,69 @@ class ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest(proto.M expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -66053,13 +76768,17 @@ class ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest(proto.M order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -66069,17 +76788,16 @@ class ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest(proto.M the next page of results. This field is a member of `oneof`_ ``_page_token``. - parent_id (str): - Parent ID for this request. - - This field is a member of `oneof`_ ``_parent_id``. + project (str): + Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -66105,10 +76823,9 @@ class ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest(proto.M number=19994697, optional=True, ) - parent_id: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=459714768, - optional=True, + number=227560217, ) return_partial_success: bool = proto.Field( proto.BOOL, @@ -66117,10 +76834,9 @@ class ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest(proto.M ) -class ListPreconfiguredExpressionSetsSecurityPoliciesRequest(proto.Message): - r"""A request message for - SecurityPolicies.ListPreconfiguredExpressionSets. See the method - description for details. +class ListPublicDelegatedPrefixesRequest(proto.Message): + r"""A request message for PublicDelegatedPrefixes.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -66132,42 +76848,69 @@ class ListPreconfiguredExpressionSetsSecurityPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -66182,13 +76925,17 @@ class ListPreconfiguredExpressionSetsSecurityPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -66200,13 +76947,16 @@ class ListPreconfiguredExpressionSetsSecurityPoliciesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region of this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -66236,6 +76986,10 @@ class ListPreconfiguredExpressionSetsSecurityPoliciesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -66243,8 +76997,8 @@ class ListPreconfiguredExpressionSetsSecurityPoliciesRequest(proto.Message): ) -class ListPreviewFeaturesRequest(proto.Message): - r"""A request message for PreviewFeatures.List. See the method +class ListReferrersInstancesRequest(proto.Message): + r"""A request message for Instances.ListReferrers. See the method description for details. @@ -66257,44 +77011,75 @@ class ListPreviewFeaturesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. + instance (str): + Name of the target instance scoping this + request, or '-' if the request should span over + all instances in the container. max_results (int): The maximum number of results per page that should be returned. If the number of available results is larger than @@ -66307,13 +77092,17 @@ class ListPreviewFeaturesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -66328,13 +77117,16 @@ class ListPreviewFeaturesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone for this request. """ filter: str = proto.Field( @@ -66342,6 +77134,10 @@ class ListPreviewFeaturesRequest(proto.Message): number=336120696, optional=True, ) + instance: str = proto.Field( + proto.STRING, + number=18257045, + ) max_results: int = proto.Field( proto.UINT32, number=54715419, @@ -66366,11 +77162,15 @@ class ListPreviewFeaturesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListPublicAdvertisedPrefixesRequest(proto.Message): - r"""A request message for PublicAdvertisedPrefixes.List. See the - method description for details. +class ListRegionAutoscalersRequest(proto.Message): + r"""A request message for RegionAutoscalers.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -66382,42 +77182,69 @@ class ListPublicAdvertisedPrefixesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -66432,13 +77259,17 @@ class ListPublicAdvertisedPrefixesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -66450,13 +77281,16 @@ class ListPublicAdvertisedPrefixesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -66486,6 +77320,10 @@ class ListPublicAdvertisedPrefixesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -66493,8 +77331,8 @@ class ListPublicAdvertisedPrefixesRequest(proto.Message): ) -class ListPublicDelegatedPrefixesRequest(proto.Message): - r"""A request message for PublicDelegatedPrefixes.List. See the +class ListRegionBackendServicesRequest(proto.Message): + r"""A request message for RegionBackendServices.List. See the method description for details. @@ -66507,42 +77345,69 @@ class ListPublicDelegatedPrefixesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -66557,13 +77422,17 @@ class ListPublicDelegatedPrefixesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -66576,14 +77445,15 @@ class ListPublicDelegatedPrefixesRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region of this request. + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -66624,8 +77494,8 @@ class ListPublicDelegatedPrefixesRequest(proto.Message): ) -class ListReferrersInstancesRequest(proto.Message): - r"""A request message for Instances.ListReferrers. See the method +class ListRegionCommitmentsRequest(proto.Message): + r"""A request message for RegionCommitments.List. See the method description for details. @@ -66638,181 +77508,69 @@ class ListReferrersInstancesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` - By default, each expression is an ``AND`` expression. - However, you can include ``AND`` and ``OR`` expressions - explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` - If you want to use a regular expression, use the ``eq`` - (equal) or ``ne`` (not equal) operator against a single - un-parenthesized expression with or without quotes or - against multiple parenthesized expressions. Examples: - ``fieldname eq unquoted literal`` - ``fieldname eq 'single quoted literal'`` - ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + mixed in one request. - This field is a member of `oneof`_ ``_filter``. - instance (str): - Name of the target instance scoping this - request, or '-' if the request should span over - all instances in the container. - max_results (int): - The maximum number of results per page that should be - returned. If the number of available results is larger than - ``maxResults``, Compute Engine returns a ``nextPageToken`` - that can be used to get the next page of results in - subsequent list requests. Acceptable values are ``0`` to - ``500``, inclusive. (Default: ``500``) - - This field is a member of `oneof`_ ``_max_results``. - order_by (str): - Sorts list results by a certain order. By default, results - are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using - ``orderBy="creationTimestamp desc"``. This sorts results - based on the ``creationTimestamp`` field in reverse - chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or - ``creationTimestamp desc`` is supported. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_order_by``. - page_token (str): - Specifies a page token to use. Set ``pageToken`` to the - ``nextPageToken`` returned by a previous list request to get - the next page of results. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_page_token``. - project (str): - Project ID for this request. - return_partial_success (bool): - Opt-in for partial success behavior which - provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no - resources, with an error code. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. - """ + :: - filter: str = proto.Field( - proto.STRING, - number=336120696, - optional=True, - ) - instance: str = proto.Field( - proto.STRING, - number=18257045, - ) - max_results: int = proto.Field( - proto.UINT32, - number=54715419, - optional=True, - ) - order_by: str = proto.Field( - proto.STRING, - number=160562920, - optional=True, - ) - page_token: str = proto.Field( - proto.STRING, - number=19994697, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - return_partial_success: bool = proto.Field( - proto.BOOL, - number=517198390, - optional=True, - ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) + labels.owner:* + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. -class ListRegionAutoscalersRequest(proto.Message): - r"""A request message for RegionAutoscalers.List. See the method - description for details. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - Attributes: - filter (str): - A filter expression that filters resources listed in the - response. Most Compute resources support two types of filter - expressions: expressions that support regular expressions - and expressions that follow API improvement proposal - AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -66827,13 +77585,17 @@ class ListRegionAutoscalersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -66846,14 +77608,15 @@ class ListRegionAutoscalersRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region scoping this request. + Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -66894,9 +77657,9 @@ class ListRegionAutoscalersRequest(proto.Message): ) -class ListRegionBackendServicesRequest(proto.Message): - r"""A request message for RegionBackendServices.List. See the - method description for details. +class ListRegionDiskTypesRequest(proto.Message): + r"""A request message for RegionDiskTypes.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -66908,42 +77671,69 @@ class ListRegionBackendServicesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -66958,13 +77748,17 @@ class ListRegionBackendServicesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -66977,14 +77771,15 @@ class ListRegionBackendServicesRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region scoping this request. + The name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -67025,8 +77820,8 @@ class ListRegionBackendServicesRequest(proto.Message): ) -class ListRegionCommitmentsRequest(proto.Message): - r"""A request message for RegionCommitments.List. See the method +class ListRegionDisksRequest(proto.Message): + r"""A request message for RegionDisks.List. See the method description for details. @@ -67039,42 +77834,69 @@ class ListRegionCommitmentsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -67089,13 +77911,17 @@ class ListRegionCommitmentsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -67112,10 +77938,11 @@ class ListRegionCommitmentsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -67156,9 +77983,9 @@ class ListRegionCommitmentsRequest(proto.Message): ) -class ListRegionDiskTypesRequest(proto.Message): - r"""A request message for RegionDiskTypes.List. See the method - description for details. +class ListRegionHealthCheckServicesRequest(proto.Message): + r"""A request message for RegionHealthCheckServices.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -67170,42 +77997,69 @@ class ListRegionDiskTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -67220,13 +78074,17 @@ class ListRegionDiskTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -67239,14 +78097,15 @@ class ListRegionDiskTypesRequest(proto.Message): project (str): Project ID for this request. region (str): - The name of the region for this request. + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -67287,8 +78146,8 @@ class ListRegionDiskTypesRequest(proto.Message): ) -class ListRegionDisksRequest(proto.Message): - r"""A request message for RegionDisks.List. See the method +class ListRegionHealthChecksRequest(proto.Message): + r"""A request message for RegionHealthChecks.List. See the method description for details. @@ -67301,42 +78160,69 @@ class ListRegionDisksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -67351,13 +78237,17 @@ class ListRegionDisksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -67370,14 +78260,15 @@ class ListRegionDisksRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region for this request. + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -67418,9 +78309,9 @@ class ListRegionDisksRequest(proto.Message): ) -class ListRegionHealthCheckServicesRequest(proto.Message): - r"""A request message for RegionHealthCheckServices.List. See the - method description for details. +class ListRegionInstanceGroupManagersRequest(proto.Message): + r"""A request message for RegionInstanceGroupManagers.List. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -67432,42 +78323,69 @@ class ListRegionHealthCheckServicesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -67482,13 +78400,17 @@ class ListRegionHealthCheckServicesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -67505,10 +78427,11 @@ class ListRegionHealthCheckServicesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -67549,9 +78472,9 @@ class ListRegionHealthCheckServicesRequest(proto.Message): ) -class ListRegionHealthChecksRequest(proto.Message): - r"""A request message for RegionHealthChecks.List. See the method - description for details. +class ListRegionInstanceGroupsRequest(proto.Message): + r"""A request message for RegionInstanceGroups.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -67563,42 +78486,69 @@ class ListRegionHealthChecksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -67613,13 +78563,17 @@ class ListRegionHealthChecksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -67636,10 +78590,11 @@ class ListRegionHealthChecksRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -67680,9 +78635,9 @@ class ListRegionHealthChecksRequest(proto.Message): ) -class ListRegionInstanceGroupManagersRequest(proto.Message): - r"""A request message for RegionInstanceGroupManagers.List. See - the method description for details. +class ListRegionInstanceTemplatesRequest(proto.Message): + r"""A request message for RegionInstanceTemplates.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -67694,42 +78649,69 @@ class ListRegionInstanceGroupManagersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -67744,13 +78726,17 @@ class ListRegionInstanceGroupManagersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -67763,14 +78749,15 @@ class ListRegionInstanceGroupManagersRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region scoping this request. + The name of the regions for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -67811,8 +78798,8 @@ class ListRegionInstanceGroupManagersRequest(proto.Message): ) -class ListRegionInstanceGroupsRequest(proto.Message): - r"""A request message for RegionInstanceGroups.List. See the +class ListRegionInstantSnapshotsRequest(proto.Message): + r"""A request message for RegionInstantSnapshots.List. See the method description for details. @@ -67825,42 +78812,69 @@ class ListRegionInstanceGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -67875,13 +78889,17 @@ class ListRegionInstanceGroupsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -67894,14 +78912,15 @@ class ListRegionInstanceGroupsRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region scoping this request. + The name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -67942,9 +78961,9 @@ class ListRegionInstanceGroupsRequest(proto.Message): ) -class ListRegionInstanceTemplatesRequest(proto.Message): - r"""A request message for RegionInstanceTemplates.List. See the - method description for details. +class ListRegionNetworkEndpointGroupsRequest(proto.Message): + r"""A request message for RegionNetworkEndpointGroups.List. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -67956,42 +78975,69 @@ class ListRegionInstanceTemplatesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -68006,13 +79052,17 @@ class ListRegionInstanceTemplatesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -68025,14 +79075,17 @@ class ListRegionInstanceTemplatesRequest(proto.Message): project (str): Project ID for this request. region (str): - The name of the regions for this request. + The name of theregion + where the network endpoint group is located. It + should comply with RFC1035. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -68073,9 +79126,9 @@ class ListRegionInstanceTemplatesRequest(proto.Message): ) -class ListRegionInstantSnapshotsRequest(proto.Message): - r"""A request message for RegionInstantSnapshots.List. See the - method description for details. +class ListRegionNetworkFirewallPoliciesRequest(proto.Message): + r"""A request message for RegionNetworkFirewallPolicies.List. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -68087,42 +79140,69 @@ class ListRegionInstantSnapshotsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -68137,13 +79217,17 @@ class ListRegionInstantSnapshotsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -68156,14 +79240,15 @@ class ListRegionInstantSnapshotsRequest(proto.Message): project (str): Project ID for this request. region (str): - The name of the region for this request. + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -68204,8 +79289,8 @@ class ListRegionInstantSnapshotsRequest(proto.Message): ) -class ListRegionNetworkEndpointGroupsRequest(proto.Message): - r"""A request message for RegionNetworkEndpointGroups.List. See +class ListRegionNotificationEndpointsRequest(proto.Message): + r"""A request message for RegionNotificationEndpoints.List. See the method description for details. @@ -68218,42 +79303,69 @@ class ListRegionNetworkEndpointGroupsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -68268,13 +79380,17 @@ class ListRegionNetworkEndpointGroupsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -68287,16 +79403,15 @@ class ListRegionNetworkEndpointGroupsRequest(proto.Message): project (str): Project ID for this request. region (str): - The name of the region where the network - endpoint group is located. It should comply with - RFC1035. + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -68337,9 +79452,9 @@ class ListRegionNetworkEndpointGroupsRequest(proto.Message): ) -class ListRegionNetworkFirewallPoliciesRequest(proto.Message): - r"""A request message for RegionNetworkFirewallPolicies.List. See - the method description for details. +class ListRegionOperationsRequest(proto.Message): + r"""A request message for RegionOperations.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -68351,42 +79466,69 @@ class ListRegionNetworkFirewallPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -68401,13 +79543,17 @@ class ListRegionNetworkFirewallPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -68420,14 +79566,15 @@ class ListRegionNetworkFirewallPoliciesRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region scoping this request. + Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -68468,9 +79615,9 @@ class ListRegionNetworkFirewallPoliciesRequest(proto.Message): ) -class ListRegionNotificationEndpointsRequest(proto.Message): - r"""A request message for RegionNotificationEndpoints.List. See - the method description for details. +class ListRegionSecurityPoliciesRequest(proto.Message): + r"""A request message for RegionSecurityPolicies.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -68482,42 +79629,69 @@ class ListRegionNotificationEndpointsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -68532,13 +79706,17 @@ class ListRegionNotificationEndpointsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -68555,10 +79733,11 @@ class ListRegionNotificationEndpointsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -68599,9 +79778,9 @@ class ListRegionNotificationEndpointsRequest(proto.Message): ) -class ListRegionOperationsRequest(proto.Message): - r"""A request message for RegionOperations.List. See the method - description for details. +class ListRegionSslCertificatesRequest(proto.Message): + r"""A request message for RegionSslCertificates.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -68613,42 +79792,69 @@ class ListRegionOperationsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -68663,13 +79869,17 @@ class ListRegionOperationsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -68682,14 +79892,15 @@ class ListRegionOperationsRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region for this request. + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -68730,9 +79941,9 @@ class ListRegionOperationsRequest(proto.Message): ) -class ListRegionSecurityPoliciesRequest(proto.Message): - r"""A request message for RegionSecurityPolicies.List. See the - method description for details. +class ListRegionSslPoliciesRequest(proto.Message): + r"""A request message for RegionSslPolicies.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -68744,42 +79955,69 @@ class ListRegionSecurityPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -68794,13 +80032,17 @@ class ListRegionSecurityPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -68817,10 +80059,11 @@ class ListRegionSecurityPoliciesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -68861,8 +80104,8 @@ class ListRegionSecurityPoliciesRequest(proto.Message): ) -class ListRegionSslCertificatesRequest(proto.Message): - r"""A request message for RegionSslCertificates.List. See the +class ListRegionTargetHttpProxiesRequest(proto.Message): + r"""A request message for RegionTargetHttpProxies.List. See the method description for details. @@ -68875,42 +80118,69 @@ class ListRegionSslCertificatesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -68925,13 +80195,17 @@ class ListRegionSslCertificatesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -68948,10 +80222,11 @@ class ListRegionSslCertificatesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -68992,9 +80267,9 @@ class ListRegionSslCertificatesRequest(proto.Message): ) -class ListRegionSslPoliciesRequest(proto.Message): - r"""A request message for RegionSslPolicies.List. See the method - description for details. +class ListRegionTargetHttpsProxiesRequest(proto.Message): + r"""A request message for RegionTargetHttpsProxies.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -69006,42 +80281,69 @@ class ListRegionSslPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -69056,13 +80358,17 @@ class ListRegionSslPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -69079,10 +80385,11 @@ class ListRegionSslPoliciesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -69123,8 +80430,8 @@ class ListRegionSslPoliciesRequest(proto.Message): ) -class ListRegionTargetHttpProxiesRequest(proto.Message): - r"""A request message for RegionTargetHttpProxies.List. See the +class ListRegionTargetTcpProxiesRequest(proto.Message): + r"""A request message for RegionTargetTcpProxies.List. See the method description for details. @@ -69137,42 +80444,69 @@ class ListRegionTargetHttpProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -69187,13 +80521,17 @@ class ListRegionTargetHttpProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -69210,10 +80548,11 @@ class ListRegionTargetHttpProxiesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -69254,9 +80593,9 @@ class ListRegionTargetHttpProxiesRequest(proto.Message): ) -class ListRegionTargetHttpsProxiesRequest(proto.Message): - r"""A request message for RegionTargetHttpsProxies.List. See the - method description for details. +class ListRegionUrlMapsRequest(proto.Message): + r"""A request message for RegionUrlMaps.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -69268,42 +80607,69 @@ class ListRegionTargetHttpsProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -69318,13 +80684,17 @@ class ListRegionTargetHttpsProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -69341,10 +80711,11 @@ class ListRegionTargetHttpsProxiesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -69385,9 +80756,9 @@ class ListRegionTargetHttpsProxiesRequest(proto.Message): ) -class ListRegionTargetTcpProxiesRequest(proto.Message): - r"""A request message for RegionTargetTcpProxies.List. See the - method description for details. +class ListRegionZonesRequest(proto.Message): + r"""A request message for RegionZones.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -69399,42 +80770,69 @@ class ListRegionTargetTcpProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -69449,13 +80847,17 @@ class ListRegionTargetTcpProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -69468,14 +80870,15 @@ class ListRegionTargetTcpProxiesRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region scoping this request. + Region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -69516,8 +80919,8 @@ class ListRegionTargetTcpProxiesRequest(proto.Message): ) -class ListRegionUrlMapsRequest(proto.Message): - r"""A request message for RegionUrlMaps.List. See the method +class ListRegionsRequest(proto.Message): + r"""A request message for Regions.List. See the method description for details. @@ -69530,42 +80933,69 @@ class ListRegionUrlMapsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -69580,13 +81010,17 @@ class ListRegionUrlMapsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -69598,15 +81032,14 @@ class ListRegionUrlMapsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -69636,10 +81069,6 @@ class ListRegionUrlMapsRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -69647,8 +81076,8 @@ class ListRegionUrlMapsRequest(proto.Message): ) -class ListRegionZonesRequest(proto.Message): - r"""A request message for RegionZones.List. See the method +class ListReservationBlocksRequest(proto.Message): + r"""A request message for ReservationBlocks.List. See the method description for details. @@ -69661,42 +81090,69 @@ class ListRegionZonesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -69711,13 +81167,17 @@ class ListRegionZonesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -69729,18 +81189,24 @@ class ListRegionZonesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Region for this request. + reservation (str): + The name of the reservation. + Name should conform to RFC1035 or be a resource + ID. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + Name of the zone for this request. Zone name + should conform to RFC1035. """ filter: str = proto.Field( @@ -69767,20 +81233,24 @@ class ListRegionZonesRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( + reservation: str = proto.Field( proto.STRING, - number=138946292, + number=47530956, ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListRegionsRequest(proto.Message): - r"""A request message for Regions.List. See the method - description for details. +class ListReservationSubBlocksRequest(proto.Message): + r"""A request message for ReservationSubBlocks.List. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -69792,42 +81262,69 @@ class ListRegionsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -69842,13 +81339,17 @@ class ListRegionsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -69858,18 +81359,26 @@ class ListRegionsRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. + parent_name (str): + The name of the parent reservation and parent block. In the + format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} project (str): Project ID for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + Name of the zone for this request. Zone name + should conform to RFC1035. """ filter: str = proto.Field( @@ -69892,6 +81401,10 @@ class ListRegionsRequest(proto.Message): number=19994697, optional=True, ) + parent_name: str = proto.Field( + proto.STRING, + number=478151936, + ) project: str = proto.Field( proto.STRING, number=227560217, @@ -69901,10 +81414,14 @@ class ListRegionsRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListReservationBlocksRequest(proto.Message): - r"""A request message for ReservationBlocks.List. See the method +class ListReservationsRequest(proto.Message): + r"""A request message for Reservations.List. See the method description for details. @@ -69917,42 +81434,69 @@ class ListReservationBlocksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -69967,13 +81511,17 @@ class ListReservationBlocksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -69985,22 +81533,19 @@ class ListReservationBlocksRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - reservation (str): - The name of the reservation. Name should - conform to RFC1035 or be a resource ID. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. zone (str): - Name of the zone for this request. Zone name - should conform to RFC1035. + Name of the zone for this request. """ filter: str = proto.Field( @@ -70027,10 +81572,6 @@ class ListReservationBlocksRequest(proto.Message): proto.STRING, number=227560217, ) - reservation: str = proto.Field( - proto.STRING, - number=47530956, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -70042,9 +81583,9 @@ class ListReservationBlocksRequest(proto.Message): ) -class ListReservationSubBlocksRequest(proto.Message): - r"""A request message for ReservationSubBlocks.List. See the - method description for details. +class ListResourcePoliciesRequest(proto.Message): + r"""A request message for ResourcePolicies.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -70056,42 +81597,69 @@ class ListReservationSubBlocksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -70106,13 +81674,17 @@ class ListReservationSubBlocksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -70122,25 +81694,21 @@ class ListReservationSubBlocksRequest(proto.Message): the next page of results. This field is a member of `oneof`_ ``_page_token``. - parent_name (str): - The name of the parent reservation and parent block. In the - format of - reservations/{reservation_name}/reservationBlocks/{reservation_block_name} project (str): Project ID for this request. + region (str): + Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - Name of the zone for this request. Zone name - should conform to RFC1035. """ filter: str = proto.Field( @@ -70163,28 +81731,24 @@ class ListReservationSubBlocksRequest(proto.Message): number=19994697, optional=True, ) - parent_name: str = proto.Field( - proto.STRING, - number=478151936, - ) project: str = proto.Field( proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListReservationsRequest(proto.Message): - r"""A request message for Reservations.List. See the method - description for details. +class ListRoutePoliciesRoutersRequest(proto.Message): + r"""A request message for Routers.ListRoutePolicies. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -70196,42 +81760,69 @@ class ListReservationsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -70246,13 +81837,17 @@ class ListReservationsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -70264,18 +81859,22 @@ class ListReservationsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - Name of the zone for this request. + router (str): + Name or id of the resource for this request. + Name should conform to RFC1035. """ filter: str = proto.Field( @@ -70302,19 +81901,23 @@ class ListReservationsRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( + router: str = proto.Field( proto.STRING, - number=3744684, + number=148608841, ) -class ListResourcePoliciesRequest(proto.Message): - r"""A request message for ResourcePolicies.List. See the method +class ListRoutersRequest(proto.Message): + r"""A request message for Routers.List. See the method description for details. @@ -70327,42 +81930,69 @@ class ListResourcePoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -70377,13 +82007,17 @@ class ListResourcePoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -70400,10 +82034,11 @@ class ListResourcePoliciesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -70444,9 +82079,9 @@ class ListResourcePoliciesRequest(proto.Message): ) -class ListRoutePoliciesRoutersRequest(proto.Message): - r"""A request message for Routers.ListRoutePolicies. See the - method description for details. +class ListRoutesRequest(proto.Message): + r"""A request message for Routes.List. See the method description + for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -70458,42 +82093,69 @@ class ListRoutePoliciesRoutersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -70508,13 +82170,17 @@ class ListRoutePoliciesRoutersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -70526,21 +82192,17 @@ class ListRoutePoliciesRoutersRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - router (str): - Name or id of the resource for this request. - Name should conform to RFC1035. """ filter: str = proto.Field( @@ -70567,23 +82229,15 @@ class ListRoutePoliciesRoutersRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - router: str = proto.Field( - proto.STRING, - number=148608841, - ) -class ListRoutersRequest(proto.Message): - r"""A request message for Routers.List. See the method +class ListSecurityPoliciesRequest(proto.Message): + r"""A request message for SecurityPolicies.List. See the method description for details. @@ -70596,42 +82250,69 @@ class ListRoutersRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -70646,13 +82327,17 @@ class ListRoutersRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -70664,15 +82349,14 @@ class ListRoutersRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -70702,10 +82386,6 @@ class ListRoutersRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -70713,9 +82393,9 @@ class ListRoutersRequest(proto.Message): ) -class ListRoutesRequest(proto.Message): - r"""A request message for Routes.List. See the method description - for details. +class ListServiceAttachmentsRequest(proto.Message): + r"""A request message for ServiceAttachments.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -70727,42 +82407,69 @@ class ListRoutesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -70777,13 +82484,17 @@ class ListRoutesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -70795,13 +82506,16 @@ class ListRoutesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region of this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -70831,6 +82545,10 @@ class ListRoutesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -70838,8 +82556,8 @@ class ListRoutesRequest(proto.Message): ) -class ListSecurityPoliciesRequest(proto.Message): - r"""A request message for SecurityPolicies.List. See the method +class ListSnapshotsRequest(proto.Message): + r"""A request message for Snapshots.List. See the method description for details. @@ -70852,42 +82570,69 @@ class ListSecurityPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -70902,13 +82647,17 @@ class ListSecurityPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -70923,10 +82672,11 @@ class ListSecurityPoliciesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -70963,8 +82713,8 @@ class ListSecurityPoliciesRequest(proto.Message): ) -class ListServiceAttachmentsRequest(proto.Message): - r"""A request message for ServiceAttachments.List. See the method +class ListSslCertificatesRequest(proto.Message): + r"""A request message for SslCertificates.List. See the method description for details. @@ -70977,42 +82727,69 @@ class ListServiceAttachmentsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -71027,13 +82804,17 @@ class ListServiceAttachmentsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -71045,15 +82826,14 @@ class ListServiceAttachmentsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region of this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -71083,10 +82863,6 @@ class ListServiceAttachmentsRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -71094,8 +82870,8 @@ class ListServiceAttachmentsRequest(proto.Message): ) -class ListSnapshotsRequest(proto.Message): - r"""A request message for Snapshots.List. See the method +class ListSslPoliciesRequest(proto.Message): + r"""A request message for SslPolicies.List. See the method description for details. @@ -71108,42 +82884,69 @@ class ListSnapshotsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -71158,13 +82961,17 @@ class ListSnapshotsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -71179,10 +82986,11 @@ class ListSnapshotsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -71219,8 +83027,8 @@ class ListSnapshotsRequest(proto.Message): ) -class ListSslCertificatesRequest(proto.Message): - r"""A request message for SslCertificates.List. See the method +class ListStoragePoolTypesRequest(proto.Message): + r"""A request message for StoragePoolTypes.List. See the method description for details. @@ -71233,42 +83041,69 @@ class ListSslCertificatesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -71283,13 +83118,17 @@ class ListSslCertificatesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -71304,13 +83143,16 @@ class ListSslCertificatesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone for this request. """ filter: str = proto.Field( @@ -71342,10 +83184,14 @@ class ListSslCertificatesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListSslPoliciesRequest(proto.Message): - r"""A request message for SslPolicies.List. See the method +class ListStoragePoolsRequest(proto.Message): + r"""A request message for StoragePools.List. See the method description for details. @@ -71358,42 +83204,69 @@ class ListSslPoliciesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -71408,13 +83281,17 @@ class ListSslPoliciesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -71429,13 +83306,16 @@ class ListSslPoliciesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + The name of the zone for this request. """ filter: str = proto.Field( @@ -71467,10 +83347,14 @@ class ListSslPoliciesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListStoragePoolTypesRequest(proto.Message): - r"""A request message for StoragePoolTypes.List. See the method +class ListSubnetworksRequest(proto.Message): + r"""A request message for Subnetworks.List. See the method description for details. @@ -71483,42 +83367,69 @@ class ListStoragePoolTypesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -71533,13 +83444,17 @@ class ListStoragePoolTypesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -71551,20 +83466,55 @@ class ListStoragePoolTypesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. + views (str): + Defines the extra views returned back in the subnetwork + resource. Supported values: + + :: + + - WITH_UTILIZATION: Utilization data is included in the + response. + + Check the Views enum for the list of possible values. + + This field is a member of `oneof`_ ``_views``. """ + class Views(proto.Enum): + r"""Defines the extra views returned back in the subnetwork resource. + Supported values: + + :: + + - WITH_UTILIZATION: Utilization data is included in the + response. + + Values: + UNDEFINED_VIEWS (0): + A value indicating that the enum field is not + set. + DEFAULT (115302945): + No description available. + WITH_UTILIZATION (504090633): + Utilization data is included in the response. + """ + UNDEFINED_VIEWS = 0 + DEFAULT = 115302945 + WITH_UTILIZATION = 504090633 + filter: str = proto.Field( proto.STRING, number=336120696, @@ -71589,19 +83539,24 @@ class ListStoragePoolTypesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - zone: str = proto.Field( + views: str = proto.Field( proto.STRING, - number=3744684, + number=112204398, + optional=True, ) -class ListStoragePoolsRequest(proto.Message): - r"""A request message for StoragePools.List. See the method +class ListTargetGrpcProxiesRequest(proto.Message): + r"""A request message for TargetGrpcProxies.List. See the method description for details. @@ -71614,42 +83569,69 @@ class ListStoragePoolsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -71664,13 +83646,17 @@ class ListStoragePoolsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -71685,15 +83671,14 @@ class ListStoragePoolsRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - The name of the zone for this request. """ filter: str = proto.Field( @@ -71725,14 +83710,10 @@ class ListStoragePoolsRequest(proto.Message): number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListSubnetworksRequest(proto.Message): - r"""A request message for Subnetworks.List. See the method +class ListTargetHttpProxiesRequest(proto.Message): + r"""A request message for TargetHttpProxies.List. See the method description for details. @@ -71745,42 +83726,69 @@ class ListSubnetworksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -71795,13 +83803,17 @@ class ListSubnetworksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -71813,45 +83825,19 @@ class ListSubnetworksRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - views (str): - Defines the extra views returned back in the subnetwork - resource. Supported values: - WITH_UTILIZATION: Utilization - data is included in the response. Check the Views enum for - the list of possible values. - - This field is a member of `oneof`_ ``_views``. """ - class Views(proto.Enum): - r"""Defines the extra views returned back in the subnetwork resource. - Supported values: - WITH_UTILIZATION: Utilization data is included - in the response. - - Values: - UNDEFINED_VIEWS (0): - A value indicating that the enum field is not - set. - DEFAULT (115302945): - No description available. - WITH_UTILIZATION (504090633): - Utilization data is included in the response. - """ - UNDEFINED_VIEWS = 0 - DEFAULT = 115302945 - WITH_UTILIZATION = 504090633 - filter: str = proto.Field( proto.STRING, number=336120696, @@ -71876,24 +83862,15 @@ class Views(proto.Enum): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - views: str = proto.Field( - proto.STRING, - number=112204398, - optional=True, - ) -class ListTargetGrpcProxiesRequest(proto.Message): - r"""A request message for TargetGrpcProxies.List. See the method +class ListTargetHttpsProxiesRequest(proto.Message): + r"""A request message for TargetHttpsProxies.List. See the method description for details. @@ -71906,42 +83883,69 @@ class ListTargetGrpcProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -71956,13 +83960,17 @@ class ListTargetGrpcProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -71977,10 +83985,11 @@ class ListTargetGrpcProxiesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -72017,8 +84026,8 @@ class ListTargetGrpcProxiesRequest(proto.Message): ) -class ListTargetHttpProxiesRequest(proto.Message): - r"""A request message for TargetHttpProxies.List. See the method +class ListTargetInstancesRequest(proto.Message): + r"""A request message for TargetInstances.List. See the method description for details. @@ -72031,42 +84040,69 @@ class ListTargetHttpProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -72081,13 +84117,17 @@ class ListTargetHttpProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -72102,13 +84142,16 @@ class ListTargetHttpProxiesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + Name of the zone scoping this request. """ filter: str = proto.Field( @@ -72140,10 +84183,14 @@ class ListTargetHttpProxiesRequest(proto.Message): number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListTargetHttpsProxiesRequest(proto.Message): - r"""A request message for TargetHttpsProxies.List. See the method +class ListTargetPoolsRequest(proto.Message): + r"""A request message for TargetPools.List. See the method description for details. @@ -72156,42 +84203,69 @@ class ListTargetHttpsProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -72206,13 +84280,17 @@ class ListTargetHttpsProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -72224,13 +84302,16 @@ class ListTargetHttpsProxiesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -72260,6 +84341,10 @@ class ListTargetHttpsProxiesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -72267,8 +84352,8 @@ class ListTargetHttpsProxiesRequest(proto.Message): ) -class ListTargetInstancesRequest(proto.Message): - r"""A request message for TargetInstances.List. See the method +class ListTargetSslProxiesRequest(proto.Message): + r"""A request message for TargetSslProxies.List. See the method description for details. @@ -72281,42 +84366,69 @@ class ListTargetInstancesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -72331,13 +84443,17 @@ class ListTargetInstancesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -72352,15 +84468,14 @@ class ListTargetInstancesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - Name of the zone scoping this request. """ filter: str = proto.Field( @@ -72392,14 +84507,10 @@ class ListTargetInstancesRequest(proto.Message): number=517198390, optional=True, ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) -class ListTargetPoolsRequest(proto.Message): - r"""A request message for TargetPools.List. See the method +class ListTargetTcpProxiesRequest(proto.Message): + r"""A request message for TargetTcpProxies.List. See the method description for details. @@ -72412,42 +84523,69 @@ class ListTargetPoolsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -72462,13 +84600,17 @@ class ListTargetPoolsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -72480,15 +84622,14 @@ class ListTargetPoolsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region scoping this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -72518,10 +84659,6 @@ class ListTargetPoolsRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -72529,8 +84666,8 @@ class ListTargetPoolsRequest(proto.Message): ) -class ListTargetSslProxiesRequest(proto.Message): - r"""A request message for TargetSslProxies.List. See the method +class ListTargetVpnGatewaysRequest(proto.Message): + r"""A request message for TargetVpnGateways.List. See the method description for details. @@ -72543,42 +84680,69 @@ class ListTargetSslProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -72593,13 +84757,17 @@ class ListTargetSslProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -72611,13 +84779,16 @@ class ListTargetSslProxiesRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -72647,6 +84818,10 @@ class ListTargetSslProxiesRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -72654,8 +84829,8 @@ class ListTargetSslProxiesRequest(proto.Message): ) -class ListTargetTcpProxiesRequest(proto.Message): - r"""A request message for TargetTcpProxies.List. See the method +class ListUrlMapsRequest(proto.Message): + r"""A request message for UrlMaps.List. See the method description for details. @@ -72668,42 +84843,69 @@ class ListTargetTcpProxiesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -72718,13 +84920,17 @@ class ListTargetTcpProxiesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -72739,10 +84945,11 @@ class ListTargetTcpProxiesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -72779,9 +84986,9 @@ class ListTargetTcpProxiesRequest(proto.Message): ) -class ListTargetVpnGatewaysRequest(proto.Message): - r"""A request message for TargetVpnGateways.List. See the method - description for details. +class ListUsableBackendServicesRequest(proto.Message): + r"""A request message for BackendServices.ListUsable. See the + method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -72793,42 +85000,69 @@ class ListTargetVpnGatewaysRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -72843,13 +85077,17 @@ class ListTargetVpnGatewaysRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -72861,15 +85099,14 @@ class ListTargetVpnGatewaysRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -72899,10 +85136,6 @@ class ListTargetVpnGatewaysRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -72910,9 +85143,9 @@ class ListTargetVpnGatewaysRequest(proto.Message): ) -class ListUrlMapsRequest(proto.Message): - r"""A request message for UrlMaps.List. See the method - description for details. +class ListUsableRegionBackendServicesRequest(proto.Message): + r"""A request message for RegionBackendServices.ListUsable. See + the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -72924,42 +85157,69 @@ class ListUrlMapsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -72974,13 +85234,17 @@ class ListUrlMapsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -72992,13 +85256,18 @@ class ListUrlMapsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region scoping this request. + It must be a string that meets the requirements + in RFC1035. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -73028,6 +85297,10 @@ class ListUrlMapsRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -73035,9 +85308,9 @@ class ListUrlMapsRequest(proto.Message): ) -class ListUsableBackendServicesRequest(proto.Message): - r"""A request message for BackendServices.ListUsable. See the - method description for details. +class ListUsableSubnetworksRequest(proto.Message): + r"""A request message for Subnetworks.ListUsable. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -73049,42 +85322,69 @@ class ListUsableBackendServicesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -73099,13 +85399,17 @@ class ListUsableBackendServicesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -73120,13 +85424,21 @@ class ListUsableBackendServicesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + service_project (str): + The project id or project number in which the subnetwork is + intended to be used. Only applied for Shared VPC. See + `Shared VPC + documentation `__ + + This field is a member of `oneof`_ ``_service_project``. """ filter: str = proto.Field( @@ -73158,11 +85470,16 @@ class ListUsableBackendServicesRequest(proto.Message): number=517198390, optional=True, ) + service_project: str = proto.Field( + proto.STRING, + number=530592655, + optional=True, + ) -class ListUsableRegionBackendServicesRequest(proto.Message): - r"""A request message for RegionBackendServices.ListUsable. See - the method description for details. +class ListVpnGatewaysRequest(proto.Message): + r"""A request message for VpnGateways.List. See the method + description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -73174,42 +85491,69 @@ class ListUsableRegionBackendServicesRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -73224,13 +85568,17 @@ class ListUsableRegionBackendServicesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -73243,16 +85591,15 @@ class ListUsableRegionBackendServicesRequest(proto.Message): project (str): Project ID for this request. region (str): - Name of the region scoping this request. It - must be a string that meets the requirements in - RFC1035. + Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -73293,8 +85640,8 @@ class ListUsableRegionBackendServicesRequest(proto.Message): ) -class ListUsableSubnetworksRequest(proto.Message): - r"""A request message for Subnetworks.ListUsable. See the method +class ListVpnTunnelsRequest(proto.Message): + r"""A request message for VpnTunnels.List. See the method description for details. @@ -73307,42 +85654,69 @@ class ListUsableSubnetworksRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -73357,13 +85731,17 @@ class ListUsableSubnetworksRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -73375,23 +85753,19 @@ class ListUsableSubnetworksRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. + region (str): + Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. - service_project (str): - The project id or project number in which the subnetwork is - intended to be used. Only applied for Shared VPC. See - `Shared VPC - documentation `__ - - This field is a member of `oneof`_ ``_service_project``. """ filter: str = proto.Field( @@ -73418,68 +85792,96 @@ class ListUsableSubnetworksRequest(proto.Message): proto.STRING, number=227560217, ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) - service_project: str = proto.Field( - proto.STRING, - number=530592655, - optional=True, - ) -class ListVpnGatewaysRequest(proto.Message): - r"""A request message for VpnGateways.List. See the method +class ListWireGroupsRequest(proto.Message): + r"""A request message for WireGroups.List. See the method description for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + cross_site_network (str): + filter (str): A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -73494,13 +85896,17 @@ class ListVpnGatewaysRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -73512,20 +85918,23 @@ class ListVpnGatewaysRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region for this request. return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. """ + cross_site_network: str = proto.Field( + proto.STRING, + number=108192469, + ) filter: str = proto.Field( proto.STRING, number=336120696, @@ -73550,10 +85959,6 @@ class ListVpnGatewaysRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, @@ -73561,8 +85966,8 @@ class ListVpnGatewaysRequest(proto.Message): ) -class ListVpnTunnelsRequest(proto.Message): - r"""A request message for VpnTunnels.List. See the method +class ListXpnHostsProjectsRequest(proto.Message): + r"""A request message for Projects.ListXpnHosts. See the method description for details. @@ -73575,42 +85980,69 @@ class ListVpnTunnelsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -73625,13 +86057,17 @@ class ListVpnTunnelsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -73643,15 +86079,16 @@ class ListVpnTunnelsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - region (str): - Name of the region for this request. + projects_list_xpn_hosts_request_resource (google.cloud.compute_v1.types.ProjectsListXpnHostsRequest): + The body resource for this request return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -73681,9 +86118,12 @@ class ListVpnTunnelsRequest(proto.Message): proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, + projects_list_xpn_hosts_request_resource: "ProjectsListXpnHostsRequest" = ( + proto.Field( + proto.MESSAGE, + number=238266391, + message="ProjectsListXpnHostsRequest", + ) ) return_partial_success: bool = proto.Field( proto.BOOL, @@ -73692,8 +86132,8 @@ class ListVpnTunnelsRequest(proto.Message): ) -class ListXpnHostsProjectsRequest(proto.Message): - r"""A request message for Projects.ListXpnHosts. See the method +class ListZoneOperationsRequest(proto.Message): + r"""A request message for ZoneOperations.List. See the method description for details. @@ -73706,42 +86146,69 @@ class ListXpnHostsProjectsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. + mixed in one request. + + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. + For example, if you are filtering Compute Engine instances, you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` + specifying ``name != example-instance``. + + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: + + :: + + labels.owner:* + + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. + + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + + :: + + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") + By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -73756,13 +86223,17 @@ class ListXpnHostsProjectsRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -73774,18 +86245,19 @@ class ListXpnHostsProjectsRequest(proto.Message): This field is a member of `oneof`_ ``_page_token``. project (str): Project ID for this request. - projects_list_xpn_hosts_request_resource (google.cloud.compute_v1.types.ProjectsListXpnHostsRequest): - The body resource for this request return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. + zone (str): + Name of the zone for request. """ filter: str = proto.Field( @@ -73812,23 +86284,20 @@ class ListXpnHostsProjectsRequest(proto.Message): proto.STRING, number=227560217, ) - projects_list_xpn_hosts_request_resource: "ProjectsListXpnHostsRequest" = ( - proto.Field( - proto.MESSAGE, - number=238266391, - message="ProjectsListXpnHostsRequest", - ) - ) return_partial_success: bool = proto.Field( proto.BOOL, number=517198390, optional=True, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) -class ListZoneOperationsRequest(proto.Message): - r"""A request message for ZoneOperations.List. See the method - description for details. +class ListZonesRequest(proto.Message): + r"""A request message for Zones.List. See the method description + for details. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -73840,173 +86309,69 @@ class ListZoneOperationsRequest(proto.Message): expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` - By default, each expression is an ``AND`` expression. - However, you can include ``AND`` and ``OR`` expressions - explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` - If you want to use a regular expression, use the ``eq`` - (equal) or ``ne`` (not equal) operator against a single - un-parenthesized expression with or without quotes or - against multiple parenthesized expressions. Examples: - ``fieldname eq unquoted literal`` - ``fieldname eq 'single quoted literal'`` - ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. - - This field is a member of `oneof`_ ``_filter``. - max_results (int): - The maximum number of results per page that should be - returned. If the number of available results is larger than - ``maxResults``, Compute Engine returns a ``nextPageToken`` - that can be used to get the next page of results in - subsequent list requests. Acceptable values are ``0`` to - ``500``, inclusive. (Default: ``500``) + mixed in one request. - This field is a member of `oneof`_ ``_max_results``. - order_by (str): - Sorts list results by a certain order. By default, results - are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using - ``orderBy="creationTimestamp desc"``. This sorts results - based on the ``creationTimestamp`` field in reverse - chronological order (newest result first). Use this to sort - resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or - ``creationTimestamp desc`` is supported. + If you want to use AIP-160, your expression must specify the + field name, an operator, and the value that you want to use + for filtering. The value must be a string, a number, or a + boolean. The operator must be either ``=``, ``!=``, ``>``, + ``<``, ``<=``, ``>=`` or ``:``. - This field is a member of `oneof`_ ``_order_by``. - page_token (str): - Specifies a page token to use. Set ``pageToken`` to the - ``nextPageToken`` returned by a previous list request to get - the next page of results. + For example, if you are filtering Compute Engine instances, + you can exclude instances named ``example-instance`` by + specifying ``name != example-instance``. - This field is a member of `oneof`_ ``_page_token``. - project (str): - Project ID for this request. - return_partial_success (bool): - Opt-in for partial success behavior which - provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no - resources, with an error code. + The ``:*`` comparison can be used to test whether a key has + been defined. For example, to find all objects with + ``owner`` label use: - This field is a member of `oneof`_ ``_return_partial_success``. - zone (str): - Name of the zone for request. - """ + :: - filter: str = proto.Field( - proto.STRING, - number=336120696, - optional=True, - ) - max_results: int = proto.Field( - proto.UINT32, - number=54715419, - optional=True, - ) - order_by: str = proto.Field( - proto.STRING, - number=160562920, - optional=True, - ) - page_token: str = proto.Field( - proto.STRING, - number=19994697, - optional=True, - ) - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - return_partial_success: bool = proto.Field( - proto.BOOL, - number=517198390, - optional=True, - ) - zone: str = proto.Field( - proto.STRING, - number=3744684, - ) + labels.owner:* + You can also filter nested fields. For example, you could + specify ``scheduling.automaticRestart = false`` to include + instances only if they are not scheduled for automatic + restarts. You can use filtering on nested fields to filter + based onresource labels. -class ListZonesRequest(proto.Message): - r"""A request message for Zones.List. See the method description - for details. + To filter on multiple expressions, provide each separate + expression within parentheses. For example: + :: - .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + (scheduling.automaticRestart = true) + (cpuPlatform = "Intel Skylake") - Attributes: - filter (str): - A filter expression that filters resources listed in the - response. Most Compute resources support two types of filter - expressions: expressions that support regular expressions - and expressions that follow API improvement proposal - AIP-160. These two types of filter expressions cannot be - mixed in one request. If you want to use AIP-160, your - expression must specify the field name, an operator, and the - value that you want to use for filtering. The value must be - a string, a number, or a boolean. The operator must be - either ``=``, ``!=``, ``>``, ``<``, ``<=``, ``>=`` or ``:``. - For example, if you are filtering Compute Engine instances, - you can exclude instances named ``example-instance`` by - specifying ``name != example-instance``. The ``:*`` - comparison can be used to test whether a key has been - defined. For example, to find all objects with ``owner`` - label use: ``labels.owner:*`` You can also filter nested - fields. For example, you could specify - ``scheduling.automaticRestart = false`` to include instances - only if they are not scheduled for automatic restarts. You - can use filtering on nested fields to filter based on - resource labels. To filter on multiple expressions, provide - each separate expression within parentheses. For example: - ``(scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")`` By default, each expression is an ``AND`` expression. However, you can include ``AND`` and ``OR`` expressions explicitly. For example: - ``(cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true)`` + + :: + + (cpuPlatform = "Intel Skylake") OR + (cpuPlatform = "Intel Broadwell") AND + (scheduling.automaticRestart = true) + If you want to use a regular expression, use the ``eq`` (equal) or ``ne`` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: + ``fieldname eq unquoted literal`` ``fieldname eq 'single quoted literal'`` ``fieldname eq "double quoted literal"`` - ``(fieldname1 eq literal) (fieldname2 ne "literal")`` The - literal value is interpreted as a regular expression using - Google RE2 library syntax. The literal value must match the - entire field. For example, to filter for instances that do - not end with name "instance", you would use - ``name ne .*instance``. You cannot combine constraints on - multiple fields using regular expressions. + ``(fieldname1 eq literal) (fieldname2 ne "literal")`` + + The literal value is interpreted as a regular expression + using GoogleRE2 library syntax. The literal value must match + the entire field. + + For example, to filter for instances that do not end with + name "instance", you would use ``name ne .*instance``. + + You cannot combine constraints on multiple fields using + regular expressions. This field is a member of `oneof`_ ``_filter``. max_results (int): @@ -74021,13 +86386,17 @@ class ListZonesRequest(proto.Message): order_by (str): Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource - name. You can also sort results in descending order based on - the creation timestamp using + name. + + You can also sort results in descending order based on the + creation timestamp using ``orderBy="creationTimestamp desc"``. This sorts results based on the ``creationTimestamp`` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is - returned first. Currently, only sorting by ``name`` or + returned first. + + Currently, only sorting by ``name`` or ``creationTimestamp desc`` is supported. This field is a member of `oneof`_ ``_order_by``. @@ -74042,10 +86411,11 @@ class ListZonesRequest(proto.Message): return_partial_success (bool): Opt-in for partial success behavior which provides partial results in case of failure. The - default value is false. For example, when - partial success behavior is enabled, - aggregatedList for a single zone scope either - returns all resources in the zone or no + default value is false. + + For example, when partial success behavior is + enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. This field is a member of `oneof`_ ``_return_partial_success``. @@ -74240,14 +86610,14 @@ class LocationPolicyLocation(proto.Message): This field is a member of `oneof`_ ``_constraints``. preference (str): Preference for a given location. Set to - either ALLOW or DENY. Check the Preference enum + either ALLOW orDENY. Check the Preference enum for the list of possible values. This field is a member of `oneof`_ ``_preference``. """ class Preference(proto.Enum): - r"""Preference for a given location. Set to either ALLOW or DENY. + r"""Preference for a given location. Set to either ALLOW orDENY. Values: UNDEFINED_PREFERENCE (0): @@ -74300,19 +86670,20 @@ class LocationPolicyLocationConstraints(proto.Message): class MachineImage(proto.Message): - r"""Represents a machine image resource. A machine image is a - Compute Engine resource that stores all the configuration, - metadata, permissions, and data from one or more disks required - to create a Virtual machine (VM) instance. For more information, - see Machine images. + r"""Represents a machine image resource. + + A machine image is a Compute Engine resource that stores all the + configuration, metadata, permissions, and data from one or more + disks required to create a Virtual machine (VM) instance. For + more information, seeMachine images. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] The creation timestamp for this machine image - in RFC3339 text format. + Output only. [Output Only] The creation timestamp for this + machine image inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -74328,8 +86699,8 @@ class MachineImage(proto.Message): This field is a member of `oneof`_ ``_guest_flush``. id (int): - [Output Only] A unique identifier for this machine image. - The server defines this identifier. + Output only. [Output Only] A unique identifier for this + machine image. The server defines this identifier. This field is a member of `oneof`_ ``_id``. instance_properties (google.cloud.compute_v1.types.InstanceProperties): @@ -74337,8 +86708,8 @@ class MachineImage(proto.Message): This field is a member of `oneof`_ ``_instance_properties``. kind (str): - [Output Only] The resource type, which is always - compute#machineImage for machine image. + Output only. [Output Only] The resource type, which is + alwayscompute#machineImage for machine image. This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -74349,36 +86720,40 @@ class MachineImage(proto.Message): Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order - to update or change labels. To see the latest - fingerprint, make get() request to the machine - image. + to update or change labels. + + To see the latest fingerprint, make get() + request to the machine image. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): Labels to apply to this machine image. These can be later modified by the setLabels method. machine_image_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - Encrypts the machine image using a - customer-supplied encryption key. After you - encrypt a machine image using a + Encrypts the machine image using + acustomer-supplied encryption key. + + After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. + Customer-supplied encryption keys do not protect - access to metadata of the machine image. If you - do not provide an encryption key when creating - the machine image, then the machine image will - be encrypted using an automatically generated - key and you do not need to provide a key to use - the machine image later. + access to metadata of the machine image. + + If you do not provide an encryption key when + creating the machine image, then the machine + image will be encrypted using an automatically + generated key and you do not need to provide a + key to use the machine image later. This field is a member of `oneof`_ ``_machine_image_encryption_key``. name (str): Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -74391,19 +86766,20 @@ class MachineImage(proto.Message): This field is a member of `oneof`_ ``_satisfies_pzi``. satisfies_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. saved_disks (MutableSequence[google.cloud.compute_v1.types.SavedDisk]): - An array of Machine Image specific properties - for disks attached to the source instance + Output only. An array of Machine Image + specific properties for disks attached to the + source instance self_link (str): - [Output Only] The URL for this machine image. The server - defines this URL. + Output only. [Output Only] The URL for this machine image. + The server defines this URL. This field is a member of `oneof`_ ``_self_link``. source_disk_encryption_keys (MutableSequence[google.cloud.compute_v1.types.SourceDiskEncryptionKey]): - [Input Only] The customer-supplied encryption key of the + [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key. @@ -74411,39 +86787,43 @@ class MachineImage(proto.Message): The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the - following are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /instances/instance - - projects/project/zones/zone/instances/instance + following are valid values: + + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance + - + projects/project/zones/zone/instances/instance This field is a member of `oneof`_ ``_source_instance``. source_instance_properties (google.cloud.compute_v1.types.SourceInstanceProperties): - [Output Only] DEPRECATED: Please use instance_properties - instead for source instance related properties. New - properties will not be added to this field. + Output only. [Output Only] DEPRECATED: Please use + instance_properties instead for source instance related + properties. New properties will not be added to this field. This field is a member of `oneof`_ ``_source_instance_properties``. status (str): - [Output Only] The status of the machine image. One of the - following values: INVALID, CREATING, READY, DELETING, and - UPLOADING. Check the Status enum for the list of possible - values. + Output only. [Output Only] The status of the machine image. + One of the following values:INVALID, CREATING, + READY,DELETING, and UPLOADING. Check the Status enum for the + list of possible values. This field is a member of `oneof`_ ``_status``. storage_locations (MutableSequence[str]): The regional or multi-regional Cloud Storage - bucket location where the machine image is + bucket location where themachine image is stored. total_storage_bytes (int): - [Output Only] Total size of the storage used by the machine - image. + Output only. [Output Only] Total size of the storage used by + the machine image. This field is a member of `oneof`_ ``_total_storage_bytes``. """ class Status(proto.Enum): - r"""[Output Only] The status of the machine image. One of the following - values: INVALID, CREATING, READY, DELETING, and UPLOADING. + r"""Output only. [Output Only] The status of the machine image. One of + the following values:INVALID, CREATING, READY,DELETING, and + UPLOADING. Values: UNDEFINED_STATUS (0): @@ -74587,21 +86967,23 @@ class MachineImageList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.MachineImage]): A list of MachineImage resources. kind (str): - [Output Only] The resource type, which is always - compute#machineImagesListResponse for machine image lists. + Output only. [Output Only] The resource type, which is + alwayscompute#machineImagesListResponse for machine image + lists. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -74648,9 +87030,11 @@ def raw_page(self): class MachineType(proto.Message): - r"""Represents a Machine Type resource. You can use specific - machine types for your VM instances based on performance and - pricing requirements. For more information, read Machine Types. + r"""Represents a Machine Type resource. + + You can use specific machine types for your VM instances based + on performance and pricing requirements. For more information, + readMachine Types. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -74665,7 +87049,7 @@ class MachineType(proto.Message): This field is a member of `oneof`_ ``_architecture``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + [Output Only] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. deprecated (google.cloud.compute_v1.types.DeprecationStatus): @@ -74696,12 +87080,12 @@ class MachineType(proto.Message): This field is a member of `oneof`_ ``_image_space_gb``. is_shared_cpu (bool): [Output Only] Whether this machine type has a shared CPU. - See Shared-core machine types for more information. + SeeShared-core machine types for more information. This field is a member of `oneof`_ ``_is_shared_cpu``. kind (str): - [Output Only] The type of the resource. Always - compute#machineType for machine types. + Output only. [Output Only] The type of the resource. + Alwayscompute#machineType for machine types. This field is a member of `oneof`_ ``_kind``. maximum_persistent_disks (int): @@ -74850,26 +87234,27 @@ class MachineTypeAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.MachineTypesScopedList]): A list of MachineTypesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#machineTypeAggregatedList for aggregated lists of - machine types. + Output only. [Output Only] Type of resource. + Alwayscompute#machineTypeAggregatedList for aggregated lists + of machine types. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -74932,21 +87317,22 @@ class MachineTypeList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.MachineType]): A list of MachineType resources. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -75028,105 +87414,124 @@ class ManagedInstance(proto.Message): Attributes: current_action (str): - [Output Only] The current action that the managed instance - group has scheduled for the instance. Possible values: - - NONE The instance is running, and the managed instance group - does not have any scheduled actions for this instance. - - CREATING The managed instance group is creating this - instance. If the group fails to create this instance, it - will try again until it is successful. - - CREATING_WITHOUT_RETRIES The managed instance group is - attempting to create this instance only once. If the group - fails to create this instance, it does not try again and the - group's targetSize value is decreased instead. - RECREATING - The managed instance group is recreating this instance. - - DELETING The managed instance group is permanently deleting - this instance. - ABANDONING The managed instance group is - abandoning this instance. The instance will be removed from - the instance group and from any target pools that are - associated with this group. - RESTARTING The managed - instance group is restarting the instance. - REFRESHING The - managed instance group is applying configuration changes to - the instance without stopping it. For example, the group can - update the target pool list for an instance without stopping - that instance. - VERIFYING The managed instance group has - created the instance and it is in the process of being - verified. Check the CurrentAction enum for the list of - possible values. + Output only. [Output Only] The current action that the + managed instance group has scheduled for the instance. + Possible values: + + :: + + - NONE The instance is running, and the managed + instance group does not have any scheduled actions for this instance. + - CREATING The managed instance group is creating this + instance. If the group fails to create this instance, it will try again + until it is successful. + - CREATING_WITHOUT_RETRIES The managed instance group + is attempting to create this instance only once. If the group fails + to create this instance, it does not try again and the group'stargetSize value is decreased instead. + - RECREATING The managed instance group is recreating + this instance. + - DELETING The managed instance group is permanently + deleting this instance. + - ABANDONING The managed instance group is abandoning + this instance. The instance will be removed from the instance group + and from any target pools that are associated with this group. + - RESTARTING The managed instance group is restarting + the instance. + - REFRESHING The managed instance group is applying + configuration changes to the instance without stopping it. For example, + the group can update the target pool list for an instance without + stopping that instance. + - VERIFYING The managed instance group has created the + instance and it is in the process of being verified. + + Check the CurrentAction enum for the list of possible + values. This field is a member of `oneof`_ ``_current_action``. id (int): - [Output only] The unique identifier for this resource. This - field is empty when instance does not exist. + Output only. [Output only] The unique identifier for this + resource. This field is empty when instance does not exist. This field is a member of `oneof`_ ``_id``. instance (str): - [Output Only] The URL of the instance. The URL can exist - even if the instance has not yet been created. + Output only. [Output Only] The URL of the instance. The URL + can exist even if the instance has not yet been created. This field is a member of `oneof`_ ``_instance``. instance_health (MutableSequence[google.cloud.compute_v1.types.ManagedInstanceInstanceHealth]): - [Output Only] Health state of the instance per health-check. + Output only. [Output Only] Health state of the instance per + health-check. instance_status (str): - [Output Only] The status of the instance. This field is - empty when the instance does not exist. Check the + Output only. [Output Only] The status of the instance. This + field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values. This field is a member of `oneof`_ ``_instance_status``. last_attempt (google.cloud.compute_v1.types.ManagedInstanceLastAttempt): - [Output Only] Information about the last attempt to create - or delete the instance. + Output only. [Output Only] Information about the last + attempt to create or delete the instance. This field is a member of `oneof`_ ``_last_attempt``. name (str): - [Output Only] The name of the instance. The name always - exists even if the instance has not yet been created. + Output only. [Output Only] The name of the instance. The + name always exists even if the instance has not yet been + created. This field is a member of `oneof`_ ``_name``. preserved_state_from_config (google.cloud.compute_v1.types.PreservedState): - [Output Only] Preserved state applied from per-instance - config for this instance. + Output only. [Output Only] Preserved state applied from + per-instance config for this instance. This field is a member of `oneof`_ ``_preserved_state_from_config``. preserved_state_from_policy (google.cloud.compute_v1.types.PreservedState): - [Output Only] Preserved state generated based on stateful - policy for this instance. + Output only. [Output Only] Preserved state generated based + on stateful policy for this instance. This field is a member of `oneof`_ ``_preserved_state_from_policy``. properties_from_flexibility_policy (google.cloud.compute_v1.types.ManagedInstancePropertiesFromFlexibilityPolicy): - [Output Only] Instance properties selected for this instance - resulting from InstanceFlexibilityPolicy. + Output only. [Output Only] Instance properties selected for + this instance resulting from InstanceFlexibilityPolicy. This field is a member of `oneof`_ ``_properties_from_flexibility_policy``. version (google.cloud.compute_v1.types.ManagedInstanceVersion): - [Output Only] Intended version of this instance. + Output only. [Output Only] Intended version of this + instance. This field is a member of `oneof`_ ``_version``. """ class CurrentAction(proto.Enum): - r"""[Output Only] The current action that the managed instance group has - scheduled for the instance. Possible values: - NONE The instance is - running, and the managed instance group does not have any scheduled - actions for this instance. - CREATING The managed instance group is - creating this instance. If the group fails to create this instance, - it will try again until it is successful. - CREATING_WITHOUT_RETRIES - The managed instance group is attempting to create this instance - only once. If the group fails to create this instance, it does not - try again and the group's targetSize value is decreased instead. - - RECREATING The managed instance group is recreating this instance. - - DELETING The managed instance group is permanently deleting this - instance. - ABANDONING The managed instance group is abandoning this - instance. The instance will be removed from the instance group and - from any target pools that are associated with this group. - - RESTARTING The managed instance group is restarting the instance. - - REFRESHING The managed instance group is applying configuration - changes to the instance without stopping it. For example, the group - can update the target pool list for an instance without stopping - that instance. - VERIFYING The managed instance group has created - the instance and it is in the process of being verified. Additional - supported values which may be not listed in the enum directly due to - technical reasons: STOPPING SUSPENDING + r"""Output only. [Output Only] The current action that the managed + instance group has scheduled for the instance. Possible values: + + :: + + - NONE The instance is running, and the managed + instance group does not have any scheduled actions for this instance. + - CREATING The managed instance group is creating this + instance. If the group fails to create this instance, it will try again + until it is successful. + - CREATING_WITHOUT_RETRIES The managed instance group + is attempting to create this instance only once. If the group fails + to create this instance, it does not try again and the group'stargetSize value is decreased instead. + - RECREATING The managed instance group is recreating + this instance. + - DELETING The managed instance group is permanently + deleting this instance. + - ABANDONING The managed instance group is abandoning + this instance. The instance will be removed from the instance group + and from any target pools that are associated with this group. + - RESTARTING The managed instance group is restarting + the instance. + - REFRESHING The managed instance group is applying + configuration changes to the instance without stopping it. For example, + the group can update the target pool list for an instance without + stopping that instance. + - VERIFYING The managed instance group has created the + instance and it is in the process of being verified. + + Additional supported values which may be not listed in the enum + directly due to technical reasons: STOPPING SUSPENDING Values: UNDEFINED_CURRENT_ACTION (0): @@ -75176,14 +87581,16 @@ class CurrentAction(proto.Enum): The managed instance group is verifying this already created instance. Verification happens every time the instance is (re)created or - restarted and consists of: 1. Waiting until - health check specified as part of this managed - instance group's autohealing policy reports - HEALTHY. Note: Applies only if autohealing - policy has a health check specified 2. Waiting - for addition verification steps performed as - post-instance creation (subject to future - extensions). + restarted and consists of: + + 1. Waiting until health check specified as part + of this managed instance group's + autohealing policy reports HEALTHY. + Note: Applies only if autohealing policy has + a health check specified + 2. Waiting for addition verification steps + performed as post-instance creation + (subject to future extensions). """ UNDEFINED_CURRENT_ACTION = 0 ABANDONING = 388244813 @@ -75199,10 +87606,10 @@ class CurrentAction(proto.Enum): VERIFYING = 16982185 class InstanceStatus(proto.Enum): - r"""[Output Only] The status of the instance. This field is empty when - the instance does not exist. Additional supported values which may - be not listed in the enum directly due to technical reasons: - STOPPING SUSPENDING + r"""Output only. [Output Only] The status of the instance. This field is + empty when the instance does not exist. Additional supported values + which may be not listed in the enum directly due to technical + reasons: STOPPING SUSPENDING Values: UNDEFINED_INSTANCE_STATUS (0): @@ -75322,20 +87729,21 @@ class ManagedInstanceInstanceHealth(proto.Message): Attributes: detailed_health_state (str): - [Output Only] The current detailed instance health state. - Check the DetailedHealthState enum for the list of possible - values. + Output only. [Output Only] The current detailed instance + health state. Check the DetailedHealthState enum for the + list of possible values. This field is a member of `oneof`_ ``_detailed_health_state``. health_check (str): - [Output Only] The URL for the health check that verifies - whether the instance is healthy. + Output only. [Output Only] The URL for the health check that + verifies whether the instance is healthy. This field is a member of `oneof`_ ``_health_check``. """ class DetailedHealthState(proto.Enum): - r"""[Output Only] The current detailed instance health state. + r"""Output only. [Output Only] The current detailed instance health + state. Values: UNDEFINED_DETAILED_HEALTH_STATE (0): @@ -75390,8 +87798,8 @@ class ManagedInstanceLastAttempt(proto.Message): Attributes: errors (google.cloud.compute_v1.types.ManagedInstanceLastAttemptErrors): - [Output Only] Encountered errors during the last attempt to - create or delete the instance. + Output only. [Output Only] Encountered errors during the + last attempt to create or delete the instance. This field is a member of `oneof`_ ``_errors``. """ @@ -75405,8 +87813,8 @@ class ManagedInstanceLastAttempt(proto.Message): class ManagedInstanceLastAttemptErrors(proto.Message): - r"""[Output Only] Encountered errors during the last attempt to create - or delete the instance. + r"""Output only. [Output Only] Encountered errors during the last + attempt to create or delete the instance. Attributes: errors (MutableSequence[google.cloud.compute_v1.types.Errors]): @@ -75428,8 +87836,8 @@ class ManagedInstancePropertiesFromFlexibilityPolicy(proto.Message): Attributes: machine_type (str): - The machine type to be used for this - instance. + Output only. The machine type to be used for + this instance. This field is a member of `oneof`_ ``_machine_type``. """ @@ -75448,13 +87856,13 @@ class ManagedInstanceVersion(proto.Message): Attributes: instance_template (str): - [Output Only] The intended template of the instance. This - field is empty when current_action is one of { DELETING, - ABANDONING }. + Output only. [Output Only] The intended template of the + instance. This field is empty when current_action is one of + { DELETING, ABANDONING }. This field is a member of `oneof`_ ``_instance_template``. name (str): - [Output Only] Name of the version. + Output only. [Output Only] Name of the version. This field is a member of `oneof`_ ``_name``. """ @@ -75486,17 +87894,18 @@ class Metadata(proto.Message): or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make a get() request to - retrieve the resource. + fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve the resource. This field is a member of `oneof`_ ``_fingerprint``. items (MutableSequence[google.cloud.compute_v1.types.Items]): Array of key/value pairs. The total size of all keys and values must be less than 512 KB. kind (str): - [Output Only] Type of the resource. Always compute#metadata - for metadata. + Output only. [Output Only] Type of the resource. Always + compute#metadata for metadata. This field is a member of `oneof`_ ``_kind``. """ @@ -75524,15 +87933,19 @@ class MetadataFilter(proto.Message): and sidecars involved in load balancing would typically present metadata to the load balancers that need to match criteria specified here. If a match takes place, the relevant configuration is made - available to those proxies. For each metadataFilter in this list, if - its filterMatchCriteria is set to MATCH_ANY, at least one of the - filterLabels must match the corresponding label provided in the - metadata. If its filterMatchCriteria is set to MATCH_ALL, then all - of its filterLabels must match with corresponding labels provided in - the metadata. An example for using metadataFilters would be: if load - balancing involves Envoys, they receive routing configuration when - values in metadataFilters match values supplied in of their XDS - requests to loadbalancers. + available to those proxies. + + For each metadataFilter in this list, if itsfilterMatchCriteria is + set to MATCH_ANY, at least one of thefilterLabels must match the + corresponding label provided in the metadata. If its + filterMatchCriteria is set to MATCH_ALL, then all of its + filterLabels must match with corresponding labels provided in the + metadata. + + An example for using metadataFilters would be: if load balancing + involves Envoys, they receive routing configuration when values + inmetadataFilters match values supplied in of their XDS requests to + loadbalancers. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -75541,16 +87954,26 @@ class MetadataFilter(proto.Message): filter_labels (MutableSequence[google.cloud.compute_v1.types.MetadataFilterLabelMatch]): The list of label value pairs that must match labels in the provided metadata based on - filterMatchCriteria This list must not be empty - and can have at the most 64 entries. + filterMatchCriteria + + This list must not be empty and can have at the + most 64 entries. filter_match_criteria (str): Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall - metadataFilter match. Supported values are: - MATCH_ANY: at - least one of the filterLabels must have a matching label in - the provided metadata. - MATCH_ALL: all filterLabels must - have matching labels in the provided metadata. Check the - FilterMatchCriteria enum for the list of possible values. + metadataFilter match. + + Supported values are: + + :: + + - MATCH_ANY: at least one of the filterLabels + must have a matching label in the provided metadata. + - MATCH_ALL: all filterLabels must have + matching labels in the provided metadata. + + Check the FilterMatchCriteria enum for the list of possible + values. This field is a member of `oneof`_ ``_filter_match_criteria``. """ @@ -75558,10 +87981,16 @@ class MetadataFilter(proto.Message): class FilterMatchCriteria(proto.Enum): r"""Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter - match. Supported values are: - MATCH_ANY: at least one of the - filterLabels must have a matching label in the provided metadata. - - MATCH_ALL: all filterLabels must have matching labels in the - provided metadata. + match. + + Supported values are: + + :: + + - MATCH_ANY: at least one of the filterLabels + must have a matching label in the provided metadata. + - MATCH_ALL: all filterLabels must have + matching labels in the provided metadata. Values: UNDEFINED_FILTER_MATCH_CRITERIA (0): @@ -75569,13 +87998,13 @@ class FilterMatchCriteria(proto.Enum): set. MATCH_ALL (180663271): Specifies that all filterLabels must match - for the metadataFilter to be considered a match. + for themetadataFilter to be considered a match. MATCH_ANY (180663346): Specifies that any filterLabel must match for - the metadataFilter to be considered a match. + themetadataFilter to be considered a match. NOT_SET (163646646): Indicates that the match criteria was not - set. A metadataFilter must never be created with + set. AmetadataFilter must never be created with this value. """ UNDEFINED_FILTER_MATCH_CRITERIA = 0 @@ -75596,8 +88025,8 @@ class FilterMatchCriteria(proto.Enum): class MetadataFilterLabelMatch(proto.Message): - r"""MetadataFilter label name value pairs that are expected to - match corresponding labels presented as metadata to the load + r"""MetadataFilter label name value pairs that are expected + to match corresponding labels presented as metadata to the load balancer. @@ -75605,15 +88034,18 @@ class MetadataFilterLabelMatch(proto.Message): Attributes: name (str): - Name of metadata label. The name can have a - maximum length of 1024 characters and must be at - least 1 character long. + Name of metadata label. + + The name can have a maximum length of 1024 + characters and must be at least 1 character + long. This field is a member of `oneof`_ ``_name``. value (str): The value of the label must match the - specified value. value can have a maximum length - of 1024 characters. + specified value. + value can have a maximum length of 1024 + characters. This field is a member of `oneof`_ ``_value``. """ @@ -75652,17 +88084,21 @@ class MoveAddressRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -75708,17 +88144,21 @@ class MoveDiskProjectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -75759,17 +88199,21 @@ class MoveFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -75809,17 +88253,21 @@ class MoveGlobalAddressRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -75861,17 +88309,21 @@ class MoveInstanceProjectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -75909,17 +88361,21 @@ class MoveOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -75949,9 +88405,9 @@ class NamedPort(proto.Message): Attributes: name (str): - The name for this named port. The name must - be 1-63 characters long, and comply with - RFC1035. + The name for this named port. + The name must be 1-63 characters long, and + comply withRFC1035. This field is a member of `oneof`_ ``_name``. port (int): @@ -75982,11 +88438,11 @@ class NatIpInfo(proto.Message): Attributes: nat_ip_info_mappings (MutableSequence[google.cloud.compute_v1.types.NatIpInfoNatIpInfoMapping]): - A list of all NAT IPs assigned to this NAT - config. + Output only. A list of all NAT IPs assigned + to this NAT config. nat_name (str): - Name of the NAT config which the NAT IP - belongs to. + Output only. Name of the NAT config which the + NAT IP belongs to. This field is a member of `oneof`_ ``_nat_name``. """ @@ -76012,25 +88468,27 @@ class NatIpInfoNatIpInfoMapping(proto.Message): Attributes: mode (str): - Specifies whether NAT IP is auto or manual. - Check the Mode enum for the list of possible - values. + Output only. Specifies whether NAT IP is auto + or manual. Check the Mode enum for the list of + possible values. This field is a member of `oneof`_ ``_mode``. nat_ip (str): - NAT IP address. For example: 203.0.113.11. + Output only. NAT IP address. For example: + 203.0.113.11. This field is a member of `oneof`_ ``_nat_ip``. usage (str): - Specifies whether NAT IP is currently serving - at least one endpoint or not. Check the Usage - enum for the list of possible values. + Output only. Specifies whether NAT IP is + currently serving at least one endpoint or not. + Check the Usage enum for the list of possible + values. This field is a member of `oneof`_ ``_usage``. """ class Mode(proto.Enum): - r"""Specifies whether NAT IP is auto or manual. + r"""Output only. Specifies whether NAT IP is auto or manual. Values: UNDEFINED_MODE (0): @@ -76046,8 +88504,8 @@ class Mode(proto.Enum): MANUAL = 119397318 class Usage(proto.Enum): - r"""Specifies whether NAT IP is currently serving at least one - endpoint or not. + r"""Output only. Specifies whether NAT IP is currently serving at + least one endpoint or not. Values: UNDEFINED_USAGE (0): @@ -76095,9 +88553,10 @@ class NatIpInfoResponse(proto.Message): class Network(proto.Message): - r"""Represents a VPC Network resource. Networks connect resources - to each other and to the internet. For more information, read - Virtual Private Cloud (VPC) Network. + r"""Represents a VPC Network resource. + + Networks connect resources to each other and to the internet. + For more information, readVirtual Private Cloud (VPC) Network. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -76106,27 +88565,32 @@ class Network(proto.Message): I_pv4_range (str): Deprecated in favor of subnet mode networks. The range of internal addresses that are legal - on this network. This range is a CIDR - specification, for example: 192.168.0.0/16. + on this network. This range is aCIDR + specification, for example:192.168.0.0/16. Provided by the client when the network is created. This field is a member of `oneof`_ ``_I_pv4_range``. auto_create_subnetworks (bool): Must be set to create a VPC network. If not - set, a legacy network is created. When set to - true, the VPC network is created in auto mode. - When set to false, the VPC network is created in - custom mode. An auto mode VPC network starts - with one subnet per region. Each subnet has a - predetermined range as described in Auto mode - VPC network IP ranges. For custom mode VPC - networks, you can add subnets using the - subnetworks insert method. + set, a legacy network is created. + + When set to true, the VPC network is created in + auto mode. When set to false, the VPC network is + created in custom mode. + + An auto mode VPC network starts with one subnet + per region. Each subnet has a predetermined + range as described inAuto mode VPC network IP + ranges. + + For custom mode VPC networks, you can add + subnets using the subnetworksinsert method. This field is a member of `oneof`_ ``_auto_create_subnetworks``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -76141,8 +88605,8 @@ class Network(proto.Message): This field is a member of `oneof`_ ``_enable_ula_internal_ipv6``. firewall_policy (str): - [Output Only] URL of the firewall policy the network is - associated with. + Output only. [Output Only] URL of the firewall policy the + network is associated with. This field is a member of `oneof`_ ``_firewall_policy``. gateway_i_pv4 (str): @@ -76151,8 +88615,8 @@ class Network(proto.Message): This field is a member of `oneof`_ ``_gateway_i_pv4``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. internal_ipv6_range (str): @@ -76168,13 +88632,13 @@ class Network(proto.Message): This field is a member of `oneof`_ ``_internal_ipv6_range``. kind (str): - [Output Only] Type of the resource. Always compute#network - for networks. + Output only. [Output Only] Type of the resource. Always + compute#network for networks. This field is a member of `oneof`_ ``_kind``. mtu (int): - Maximum Transmission Unit in bytes. The - minimum value for this field is 1300 and the + Maximum Transmission Unit in bytes. + The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the Internet, or 8896 if you want to use Jumbo @@ -76185,7 +88649,7 @@ class Network(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?``. The first character must be a lowercase letter, and all following characters (except for @@ -76205,10 +88669,12 @@ class Network(proto.Message): network_profile (str): A full or partial URL of the network profile to apply to this network. This field can be set only at resource - creation time. For example, the following are valid URLs: - - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} - - - projects/{project_id}/global/networkProfiles/{network_profile_name} + creation time. For example, the following are valid URLs: + + :: + + - https://www.googleapis.com/compute/{api_version}/projects/{project_id}/global/networkProfiles/{network_profile_name} + - projects/{project_id}/global/networkProfiles/{network_profile_name} This field is a member of `oneof`_ ``_network_profile``. params (google.cloud.compute_v1.types.NetworkParams): @@ -76217,10 +88683,11 @@ class Network(proto.Message): This field is a member of `oneof`_ ``_params``. peerings (MutableSequence[google.cloud.compute_v1.types.NetworkPeering]): - [Output Only] A list of network peerings for the resource. + Output only. [Output Only] A list of network peerings for + the resource. routing_config (google.cloud.compute_v1.types.NetworkRoutingConfig): The network-level routing configuration for - this network. Used by Cloud Router to determine + this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. @@ -76230,8 +88697,8 @@ class Network(proto.Message): This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Output only. [Output Only] Server-defined URL for this + resource with the resource id. This field is a member of `oneof`_ ``_self_link_with_id``. subnetworks (MutableSequence[str]): @@ -76361,21 +88828,24 @@ class NetworkFirewallPolicyEnforcementOrder(proto.Enum): class NetworkAttachment(proto.Message): - r"""NetworkAttachments A network attachment resource ... + r"""NetworkAttachments + A network attachment resource ... + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: connection_endpoints (MutableSequence[google.cloud.compute_v1.types.NetworkAttachmentConnectedEndpoint]): - [Output Only] An array of connections for all the producers - connected to this network attachment. + Output only. [Output Only] An array of connections for all + the producers connected to this network attachment. connection_preference (str): Check the ConnectionPreference enum for the list of possible values. This field is a member of `oneof`_ ``_connection_preference``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -76392,18 +88862,18 @@ class NetworkAttachment(proto.Message): This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] The unique identifier for the resource type. - The server generates this identifier. + Output only. [Output Only] The unique identifier for the + resource type. The server generates this identifier. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. + Output only. [Output Only] Type of the resource. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -76412,8 +88882,8 @@ class NetworkAttachment(proto.Message): This field is a member of `oneof`_ ``_name``. network (str): - [Output Only] The URL of the network which the Network - Attachment belongs to. Practically it is inferred by + Output only. [Output Only] The URL of the network which the + Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment @@ -76429,19 +88899,21 @@ class NetworkAttachment(proto.Message): this network attachment. The project can be specified using its id or number. region (str): - [Output Only] URL of the region where the network attachment - resides. This field applies only to the region resource. You - must specify this field as part of the HTTP request URL. It - is not settable as a field in the request body. + Output only. [Output Only] URL of the region where the + network attachment resides. This field applies only to the + region resource. You must specify this field as part of the + HTTP request URL. It is not settable as a field in the + request body. This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource's - resource id. + Output only. [Output Only] Server-defined URL for this + resource's resource id. This field is a member of `oneof`_ ``_self_link_with_id``. subnetworks (MutableSequence[str]): @@ -76566,7 +89038,7 @@ class NetworkAttachmentAggregatedList(proto.Message): next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -76658,8 +89130,8 @@ class NetworkAttachmentConnectedEndpoint(proto.Message): This field is a member of `oneof`_ ``_subnetwork``. subnetwork_cidr_range (str): - [Output Only] The CIDR range of the subnet from which the - IPv4 internal IP was allocated from. + Output only. [Output Only] The CIDR range of the subnet from + which the IPv4 internal IP was allocated from. This field is a member of `oneof`_ ``_subnetwork_cidr_range``. """ @@ -76753,7 +89225,7 @@ class NetworkAttachmentList(proto.Message): next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -76844,7 +89316,8 @@ class NetworkEdgeSecurityService(proto.Message): Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -76861,27 +89334,28 @@ class NetworkEdgeSecurityService(proto.Message): NetworkEdgeSecurityService. An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, otherwise the - request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve a + request will fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a NetworkEdgeSecurityService. This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output only] Type of the resource. Always - compute#networkEdgeSecurityService for + Output only. [Output only] Type of the resource. + Alwayscompute#networkEdgeSecurityService for NetworkEdgeSecurityServices This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -76890,9 +89364,10 @@ class NetworkEdgeSecurityService(proto.Message): This field is a member of `oneof`_ ``_name``. region (str): - [Output Only] URL of the region where the resource resides. - You must specify this field as part of the HTTP request URL. - It is not settable as a field in the request body. + Output only. [Output Only] URL of the region where the + resource resides. You must specify this field as part of the + HTTP request URL. It is not settable as a field in the + request body. This field is a member of `oneof`_ ``_region``. security_policy (str): @@ -76902,12 +89377,13 @@ class NetworkEdgeSecurityService(proto.Message): This field is a member of `oneof`_ ``_security_policy``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Output only. [Output Only] Server-defined URL for this + resource with the resource id. This field is a member of `oneof`_ ``_self_link_with_id``. """ @@ -76982,26 +89458,27 @@ class NetworkEdgeSecurityServiceAggregatedList(proto.Message): A list of NetworkEdgeSecurityServicesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#networkEdgeSecurityServiceAggregatedList for lists - of Network Edge Security Services. + Output only. [Output Only] Type of resource. + Alwayscompute#networkEdgeSecurityServiceAggregatedList for + lists of Network Edge Security Services. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -77099,27 +89576,32 @@ class NetworkEndpoint(proto.Message): the network endpoint. client_destination_port (int): Represents the port number to which PSC consumer sends - packets. Optional. Only valid for network endpoint groups - created with GCE_VM_IP_PORTMAP endpoint type. + packets. + + Optional. Only valid for network endpoint groups created + withGCE_VM_IP_PORTMAP endpoint type. This field is a member of `oneof`_ ``_client_destination_port``. fqdn (str): Optional fully qualified domain name of network endpoint. This can only be specified when - NetworkEndpointGroup.network_endpoint_type is - NON_GCP_FQDN_PORT. + NetworkEndpointGroup.network_endpoint_type + isNON_GCP_FQDN_PORT. This field is a member of `oneof`_ ``_fqdn``. instance (str): The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type - GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the - same zone of network endpoint group (for zonal NEGs) or in - the zone within the region of the NEG (for regional NEGs). - If the ipAddress is specified, it must belongs to the VM - instance. The name must be 1-63 characters long, and comply - with RFC1035 or be a valid URL pointing to an existing + GCE_VM_IP andGCE_VM_IP_PORT. + + The instance must be in the same zone of network endpoint + group (for zonal NEGs) or in the zone within the region of + the NEG (for regional NEGs). If the ipAddress is specified, + it must belongs to the VM instance. + + The name must be 1-63 characters long, and comply + withRFC1035 or be a valid URL pointing to an existing instance. This field is a member of `oneof`_ ``_instance``. @@ -77129,13 +89611,14 @@ class NetworkEndpoint(proto.Message): or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to - will be used. This field is redundant and need not be set - for network endpoints of type GCE_VM_IP. If set, it must be - set to the primary internal IP address of the attached VM - instance that matches the subnetwork of the NEG. The primary - internal IP address from any NIC of a multi-NIC VM instance - can be added to a NEG as long as it matches the NEG - subnetwork. + will be used. + + This field is redundant and need not be set for network + endpoints of typeGCE_VM_IP. If set, it must be set to the + primary internal IP address of the attached VM instance that + matches the subnetwork of the NEG. The primary internal IP + address from any NIC of a multi-NIC VM instance can be added + to a NEG as long as it matches the NEG subnetwork. This field is a member of `oneof`_ ``_ip_address``. ipv6_address (str): @@ -77145,8 +89628,9 @@ class NetworkEndpoint(proto.Message): port (int): Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. - This field can not be set for network endpoints of type - GCE_VM_IP. + + This field can not be set for network endpoints of + typeGCE_VM_IP. This field is a member of `oneof`_ ``_port``. """ @@ -77189,11 +89673,12 @@ class NetworkEndpoint(proto.Message): class NetworkEndpointGroup(proto.Message): - r"""Represents a collection of network endpoints. A network - endpoint group (NEG) defines how a set of endpoints should be - reached, whether they are reachable, and where they are located. - For more information about using NEGs for different use cases, - see Network endpoint groups overview. + r"""Represents a collection of network endpoints. + + A network endpoint group (NEG) defines how a set of endpoints + should be reached, whether they are reachable, and where they + are located. For more information about using NEGs for different + use cases, seeNetwork endpoint groups overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -77204,31 +89689,34 @@ class NetworkEndpointGroup(proto.Message): the network endpoint group. app_engine (google.cloud.compute_v1.types.NetworkEndpointGroupAppEngine): Optional. Only valid when networkEndpointType - is SERVERLESS. Only one of cloudRun, appEngine - or cloudFunction may be set. + isSERVERLESS. Only one of cloudRun,appEngine or + cloudFunction may be set. This field is a member of `oneof`_ ``_app_engine``. cloud_function (google.cloud.compute_v1.types.NetworkEndpointGroupCloudFunction): Optional. Only valid when networkEndpointType - is SERVERLESS. Only one of cloudRun, appEngine - or cloudFunction may be set. + isSERVERLESS. Only one of cloudRun,appEngine or + cloudFunction may be set. This field is a member of `oneof`_ ``_cloud_function``. cloud_run (google.cloud.compute_v1.types.NetworkEndpointGroupCloudRun): Optional. Only valid when networkEndpointType - is SERVERLESS. Only one of cloudRun, appEngine - or cloudFunction may be set. + isSERVERLESS. Only one of cloudRun,appEngine or + cloudFunction may be set. This field is a member of `oneof`_ ``_cloud_run``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. default_port (int): The default port used if the port number is not specified in - the network endpoint. Optional. If the network endpoint type - is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, - this field must not be specified. + the network endpoint. + + Optional. If the network endpoint type is either + GCE_VM_IP,SERVERLESS or PRIVATE_SERVICE_CONNECT, this field + must not be specified. This field is a member of `oneof`_ ``_default_port``. description (str): @@ -77238,19 +89726,20 @@ class NetworkEndpointGroup(proto.Message): This field is a member of `oneof`_ ``_description``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#networkEndpointGroup for network endpoint group. + Output only. [Output Only] Type of the resource. + Alwayscompute#networkEndpointGroup for network endpoint + group. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -77266,38 +89755,42 @@ class NetworkEndpointGroup(proto.Message): This field is a member of `oneof`_ ``_network``. network_endpoint_type (str): Type of network endpoints in this network endpoint group. - Can be one of GCE_VM_IP, GCE_VM_IP_PORT, - NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, - INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT, - GCE_VM_IP_PORTMAP. Check the NetworkEndpointType enum for - the list of possible values. + Can be one ofGCE_VM_IP, + GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, + INTERNET_FQDN_PORT,INTERNET_IP_PORT, + SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. Check + the NetworkEndpointType enum for the list of possible + values. This field is a member of `oneof`_ ``_network_endpoint_type``. psc_data (google.cloud.compute_v1.types.NetworkEndpointGroupPscData): - Optional. Only valid when networkEndpointType is - PRIVATE_SERVICE_CONNECT. + Optional. Only valid when networkEndpointType + isPRIVATE_SERVICE_CONNECT. This field is a member of `oneof`_ ``_psc_data``. psc_target_service (str): The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: - asia-northeast3-cloudkms.googleapis.com. Optional. Only - valid when networkEndpointType is PRIVATE_SERVICE_CONNECT. + asia-northeast3-cloudkms.googleapis.com. + + Optional. Only valid when networkEndpointType + isPRIVATE_SERVICE_CONNECT. This field is a member of `oneof`_ ``_psc_target_service``. region (str): - [Output Only] The URL of the region where the network - endpoint group is located. + Output only. [Output Only] The URL of theregion where the + network endpoint group is located. This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. size (int): - [Output only] Number of network endpoints in the network - endpoint group. + Output only. [Output only] Number of network endpoints in + the network endpoint group. This field is a member of `oneof`_ ``_size``. subnetwork (str): @@ -77306,17 +89799,17 @@ class NetworkEndpointGroup(proto.Message): This field is a member of `oneof`_ ``_subnetwork``. zone (str): - [Output Only] The URL of the zone where the network endpoint - group is located. + Output only. [Output Only] The URL of thezone where the + network endpoint group is located. This field is a member of `oneof`_ ``_zone``. """ class NetworkEndpointType(proto.Enum): r"""Type of network endpoints in this network endpoint group. Can be one - of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, - INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, - PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. + ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, + INTERNET_FQDN_PORT,INTERNET_IP_PORT, + SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. Values: UNDEFINED_NETWORK_ENDPOINT_TYPE (0): @@ -77476,26 +89969,27 @@ class NetworkEndpointGroupAggregatedList(proto.Message): A list of NetworkEndpointGroupsScopedList resources. kind (str): - [Output Only] The resource type, which is always - compute#networkEndpointGroupAggregatedList for aggregated - lists of network endpoint groups. + Output only. [Output Only] The resource type, which is + alwayscompute#networkEndpointGroupAggregatedList for + aggregated lists of network endpoint groups. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -77548,41 +90042,53 @@ class NetworkEndpointGroupAppEngine(proto.Message): r"""Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided - explicitly or in the URL mask when service is present. Note: App - Engine service must be in the same project and located in the - same region as the Serverless NEG. + explicitly or in the URL mask when service is present. + + Note: App Engine service must be in the same project and located + in the same region as the Serverless NEG. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: service (str): - Optional serving service. The service name is - case-sensitive and must be 1-63 characters long. + Optional serving service. + + The service name is case-sensitive and must be + 1-63 characters long. + Example value: default, my-service. This field is a member of `oneof`_ ``_service``. url_mask (str): - An URL mask is one of the main components of - the Cloud Function. A template to parse service - and version fields from a request URL. URL mask - allows for routing to multiple App Engine - services without having to create multiple - Network Endpoint Groups and backend services. - For example, the request URLs - foo1-dot-appname.appspot.com/v1 and - foo1-dot-appname.appspot.com/v2 can be backed by - the same Serverless NEG with URL mask - -dot-appname.appspot.com/. The - URL mask will parse them to { service = "foo1", - version = "v1" } and { service = "foo1", version - = "v2" } respectively. + An URL + mask is one of the main components of the Cloud + Function. + + A template to parse service and version fields + from a request URL. URL mask allows for routing + to multiple App Engine services without having + to create multiple Network Endpoint Groups and + backend services. + + For example, the request + URLsfoo1-dot-appname.appspot.com/v1 + andfoo1-dot-appname.appspot.com/v2 can be backed + by the same Serverless NEG with URL + mask-dot-appname.appspot.com/. + The URL mask will parse them to { service = + "foo1", version = "v1" } and { service = "foo1", + version = "v2" } + respectively. This field is a member of `oneof`_ ``_url_mask``. version (str): - Optional serving version. The version name is - case-sensitive and must be 1-100 characters - long. Example value: v1, v2. + Optional serving version. + + The version name is case-sensitive and must be + 1-100 characters long. + + Example value: v1, v2. This field is a member of `oneof`_ ``_version``. """ @@ -77607,8 +90113,10 @@ class NetworkEndpointGroupAppEngine(proto.Message): class NetworkEndpointGroupCloudFunction(proto.Message): r"""Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL - mask. Note: Cloud Function must be in the same project and - located in the same region as the Serverless NEG. + mask. + + Note: Cloud Function must be in the same project and located in + the same region as the Serverless NEG. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -77616,22 +90124,29 @@ class NetworkEndpointGroupCloudFunction(proto.Message): Attributes: function (str): A user-defined name of the Cloud Function. + The function name is case-sensitive and must be - 1-63 characters long. Example value: func1. + 1-63 characters long. + + Example value: func1. This field is a member of `oneof`_ ``_function``. url_mask (str): - An URL mask is one of the main components of - the Cloud Function. A template to parse function - field from a request URL. URL mask allows for - routing to multiple Cloud Functions without - having to create multiple Network Endpoint - Groups and backend services. For example, - request URLs mydomain.com/function1 and - mydomain.com/function2 can be backed by the same - Serverless NEG with URL mask /. The - URL mask will parse them to { function = - "function1" } and { function = "function2" } + An URL + mask is one of the main components of the Cloud + Function. + + A template to parse function field from a + request URL. URL mask allows for routing to + multiple Cloud Functions without having to + create multiple Network Endpoint Groups and + backend services. + + For example, request URLs mydomain.com/function1 + andmydomain.com/function2 can be backed by the + same Serverless NEG with URL mask /. + The URL mask will parse them to { function = + "function1" } and{ function = "function2" } respectively. This field is a member of `oneof`_ ``_url_mask``. @@ -77653,6 +90168,7 @@ class NetworkEndpointGroupCloudRun(proto.Message): r"""Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. + Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG. @@ -77662,31 +90178,40 @@ class NetworkEndpointGroupCloudRun(proto.Message): Attributes: service (str): Cloud Run service is the main resource of - Cloud Run. The service must be 1-63 characters - long, and comply with RFC1035. Example value: - "run-service". + Cloud Run. + The service must be 1-63 characters long, and + comply withRFC1035. + + Example value: "run-service". This field is a member of `oneof`_ ``_service``. tag (str): Optional Cloud Run tag represents the "named-revision" to provide additional - fine-grained traffic routing information. The - tag must be 1-63 characters long, and comply - with RFC1035. Example value: "revision-0010". + fine-grained traffic routing information. + + The tag must be 1-63 characters long, and comply + withRFC1035. + + Example value: "revision-0010". This field is a member of `oneof`_ ``_tag``. url_mask (str): - An URL mask is one of the main components of - the Cloud Function. A template to parse - and fields from a request URL. - URL mask allows for routing to multiple Run - services without having to create multiple - network endpoint groups and backend services. + An URL + mask is one of the main components of the Cloud + Function. + + A template to parse and fields + from a request URL. URL mask allows for routing + to multiple Run services without having to + create multiple network endpoint groups and + backend services. + For example, request URLs foo1.domain.com/bar1 - and foo1.domain.com/bar2 can be backed by the + andfoo1.domain.com/bar2 can be backed by the same Serverless Network Endpoint Group (NEG) - with URL mask .domain.com/. The - URL mask will parse them to { service="bar1", + with URL mask.domain.com/. The URL + mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. @@ -77724,22 +90249,23 @@ class NetworkEndpointGroupList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.NetworkEndpointGroup]): A list of NetworkEndpointGroup resources. kind (str): - [Output Only] The resource type, which is always - compute#networkEndpointGroupList for network endpoint group - lists. + Output only. [Output Only] The resource type, which is + alwayscompute#networkEndpointGroupList for network endpoint + group lists. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -77794,9 +90320,9 @@ class NetworkEndpointGroupPscData(proto.Message): Attributes: consumer_psc_address (str): - [Output Only] Address allocated from given subnetwork for - PSC. This IP address acts as a VIP for a PSC NEG, allowing - it to act as an endpoint in L7 PSC-XLB. + Output only. [Output Only] Address allocated from given + subnetwork for PSC. This IP address acts as a VIP for a PSC + NEG, allowing it to act as an endpoint in L7 PSC-XLB. This field is a member of `oneof`_ ``_consumer_psc_address``. producer_port (int): @@ -77806,20 +90332,21 @@ class NetworkEndpointGroupPscData(proto.Message): This field is a member of `oneof`_ ``_producer_port``. psc_connection_id (int): - [Output Only] The PSC connection id of the PSC Network - Endpoint Group Consumer. + Output only. [Output Only] The PSC connection id of the PSC + Network Endpoint Group Consumer. This field is a member of `oneof`_ ``_psc_connection_id``. psc_connection_status (str): - [Output Only] The connection status of the PSC Forwarding - Rule. Check the PscConnectionStatus enum for the list of - possible values. + Output only. [Output Only] The connection status of the PSC + Forwarding Rule. Check the PscConnectionStatus enum for the + list of possible values. This field is a member of `oneof`_ ``_psc_connection_status``. """ class PscConnectionStatus(proto.Enum): - r"""[Output Only] The connection status of the PSC Forwarding Rule. + r"""Output only. [Output Only] The connection status of the PSC + Forwarding Rule. Values: UNDEFINED_PSC_CONNECTION_STATUS (0): @@ -77917,9 +90444,9 @@ class NetworkEndpointGroupsListEndpointsRequest(proto.Message): health status of each network endpoint. Valid options are SKIP or SHOW. If you don't specify this parameter, the health status of network - endpoints will not be provided. Check the - HealthStatus enum for the list of possible - values. + endpoints will not be provided. + Check the HealthStatus enum for the list of + possible values. This field is a member of `oneof`_ ``_health_status``. """ @@ -77967,16 +90494,16 @@ class NetworkEndpointGroupsListNetworkEndpoints(proto.Message): A list of NetworkEndpointWithHealthStatus resources. kind (str): - [Output Only] The resource type, which is always - compute#networkEndpointGroupsListNetworkEndpoints for the - list of network endpoints in the specified network endpoint - group. + Output only. [Output Only] The resource type, which is + alwayscompute#networkEndpointGroupsListNetworkEndpoints for + the list of network endpoints in the specified network + endpoint group. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -78027,11 +90554,12 @@ class NetworkEndpointGroupsScopedList(proto.Message): Attributes: network_endpoint_groups (MutableSequence[google.cloud.compute_v1.types.NetworkEndpointGroup]): - [Output Only] The list of network endpoint groups that are - contained in this scope. + Output only. [Output Only] The list ofnetwork endpoint + groups that are contained in this scope. warning (google.cloud.compute_v1.types.Warning): - [Output Only] An informational warning that replaces the - list of network endpoint groups when the list is empty. + Output only. [Output Only] An informational warning that + replaces the list of network endpoint groups when the list + is empty. This field is a member of `oneof`_ ``_warning``. """ @@ -78058,11 +90586,13 @@ class NetworkEndpointWithHealthStatus(proto.Message): Attributes: healths (MutableSequence[google.cloud.compute_v1.types.HealthStatusForNetworkEndpoint]): - [Output only] The health status of network endpoint. + Output only. [Output only] The health status of network + endpoint. + Optional. Displayed only if the network endpoint has centralized health checking configured. network_endpoint (google.cloud.compute_v1.types.NetworkEndpoint): - [Output only] The network endpoint. + Output only. [Output only] The network endpoint. This field is a member of `oneof`_ ``_network_endpoint``. """ @@ -78095,26 +90625,27 @@ class NetworkFirewallPolicyAggregatedList(proto.Message): A list of FirewallPoliciesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#networkFirewallPoliciesAggregatedList for lists of - network firewall policies. + Output only. [Output Only] Type of resource. + Alwayscompute#networkFirewallPoliciesAggregatedList for + lists of network firewall policies. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -78172,8 +90703,8 @@ class NetworkInterface(proto.Message): access_configs (MutableSequence[google.cloud.compute_v1.types.AccessConfig]): An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If - there are no accessConfigs specified, then this instance - will have no external internet access. + there are noaccessConfigs specified, then this instance will + have no external internet access. alias_ip_ranges (MutableSequence[google.cloud.compute_v1.types.AliasIpRange]): An array of alias IP ranges for this network interface. You can only specify this field for @@ -78182,14 +90713,22 @@ class NetworkInterface(proto.Message): Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a - NetworkInterface. An up-to-date fingerprint must - be provided in order to update the - NetworkInterface. The request will fail with - error 400 Bad Request if the fingerprint is not - provided, or 412 Precondition Failed if the + NetworkInterface. An up-to-date + fingerprint must be provided in order to update + theNetworkInterface. The request will fail with + error400 Bad Request if the fingerprint is not + provided, or412 Precondition Failed if the fingerprint is out of date. This field is a member of `oneof`_ ``_fingerprint``. + igmp_query (str): + Indicate whether igmp query is enabled on the + network interface or not. If enabled, also + indicates the version of IGMP supported. Check + the IgmpQuery enum for the list of possible + values. + + This field is a member of `oneof`_ ``_igmp_query``. internal_ipv6_prefix_length (int): The prefix length of the primary internal IPv6 range. @@ -78201,11 +90740,12 @@ class NetworkInterface(proto.Message): supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access. ipv6_access_type (str): - [Output Only] One of EXTERNAL, INTERNAL to indicate whether - the IP can be accessed from the Internet. This field is - always inherited from its subnetwork. Valid only if - stackType is IPV4_IPV6. Check the Ipv6AccessType enum for - the list of possible values. + Output only. [Output Only] One of EXTERNAL, INTERNAL to + indicate whether the IP can be accessed from the Internet. + This field is always inherited from its subnetwork. + + Valid only if stackType is IPV4_IPV6. Check the + Ipv6AccessType enum for the list of possible values. This field is a member of `oneof`_ ``_ipv6_access_type``. ipv6_address (str): @@ -78219,15 +90759,15 @@ class NetworkInterface(proto.Message): This field is a member of `oneof`_ ``_ipv6_address``. kind (str): - [Output Only] Type of the resource. Always - compute#networkInterface for network interfaces. + Output only. [Output Only] Type of the resource. + Alwayscompute#networkInterface for network interfaces. This field is a member of `oneof`_ ``_kind``. name (str): [Output Only] The name of the network interface, which is generated by the server. For a VM, the network interface uses the nicN naming format. Where N is a value between 0 - and 7. The default interface value is nic0. + and7. The default interface value is nic0. This field is a member of `oneof`_ ``_name``. network (str): @@ -78239,13 +90779,17 @@ class NetworkInterface(proto.Message): network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is - inferred. If you specify this property, you can - specify the network as a full or partial URL. - For example, the following are all valid URLs: - - https://www.googleapis.com/compute/v1/projects/project/global/networks/ - network - - projects/project/global/networks/network - - global/networks/default + inferred. + + If you specify this property, you can specify + the network as a full or partial URL. For + example, the following are all valid URLs: + + + - + https://www.googleapis.com/compute/v1/projects/project/global/networks/network + - projects/project/global/networks/network + - global/networks/default This field is a member of `oneof`_ ``_network``. network_attachment (str): @@ -78263,8 +90807,8 @@ class NetworkInterface(proto.Message): This field is a member of `oneof`_ ``_network_i_p``. nic_type (str): The type of vNIC to be used on this - interface. This may be gVNIC or VirtioNet. Check - the NicType enum for the list of possible + interface. This may be gVNIC or VirtioNet. + Check the NicType enum for the list of possible values. This field is a member of `oneof`_ ``_nic_type``. @@ -78283,39 +90827,65 @@ class NetworkInterface(proto.Message): stack_type (str): The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 - addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is - used. This field can be both set at instance creation and - update network interface operations. Check the StackType - enum for the list of possible values. + addresses, useIPV4_IPV6. If not specified, IPV4_ONLY is + used. + + This field can be both set at instance creation and update + network interface operations. Check the StackType enum for + the list of possible values. This field is a member of `oneof`_ ``_stack_type``. subnetwork (str): The URL of the Subnetwork resource for this - instance. If the network resource is in legacy + instance. If the network resource is inlegacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. - For example, the following are all valid URLs: - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /subnetworks/subnetwork - - regions/region/subnetworks/subnetwork + For example, the following are all valid URLs: + + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork + - regions/region/subnetworks/subnetwork This field is a member of `oneof`_ ``_subnetwork``. vlan (int): VLAN tag of a dynamic network interface, must - be an integer in the range from 2 to 255 + be an integer in the range from 2 to 255 inclusively. This field is a member of `oneof`_ ``_vlan``. """ + class IgmpQuery(proto.Enum): + r"""Indicate whether igmp query is enabled on the network + interface or not. If enabled, also indicates the version of IGMP + supported. + + Values: + UNDEFINED_IGMP_QUERY (0): + A value indicating that the enum field is not + set. + IGMP_QUERY_DISABLED (28285169): + The network interface has disabled IGMP + query. + IGMP_QUERY_V2 (333493457): + The network interface has enabled IGMP query + - v2. + """ + UNDEFINED_IGMP_QUERY = 0 + IGMP_QUERY_DISABLED = 28285169 + IGMP_QUERY_V2 = 333493457 + class Ipv6AccessType(proto.Enum): - r"""[Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP - can be accessed from the Internet. This field is always inherited - from its subnetwork. Valid only if stackType is IPV4_IPV6. + r"""Output only. [Output Only] One of EXTERNAL, INTERNAL to indicate + whether the IP can be accessed from the Internet. This field is + always inherited from its subnetwork. + + Valid only if stackType is IPV4_IPV6. Values: UNDEFINED_IPV6_ACCESS_TYPE (0): @@ -78367,9 +90937,10 @@ class NicType(proto.Enum): class StackType(proto.Enum): r"""The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, - use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can - be both set at instance creation and update network interface - operations. + useIPV4_IPV6. If not specified, IPV4_ONLY is used. + + This field can be both set at instance creation and update network + interface operations. Values: UNDEFINED_STACK_TYPE (0): @@ -78408,6 +90979,11 @@ class StackType(proto.Enum): number=234678500, optional=True, ) + igmp_query: str = proto.Field( + proto.STRING, + number=30249546, + optional=True, + ) internal_ipv6_prefix_length: int = proto.Field( proto.INT32, number=203833757, @@ -78499,21 +91075,22 @@ class NetworkList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Network]): A list of Network resources. kind (str): - [Output Only] Type of resource. Always compute#networkList - for lists of networks. + Output only. [Output Only] Type of resource. Always + compute#networkList for lists of networks. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -78569,11 +91146,15 @@ class NetworkParams(proto.Message): tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are - valid inputs: \* {"tagKeys/333" : "tagValues/444", - "tagKeys/123" : "tagValues/456"} \* {"123/environment" : - "production", "345/abc" : "xyz"} Note: \* Invalid - combinations of ID & namespaced format is not supported. For - instance: {"123/environment" : "tagValues/444"} is invalid. + valid inputs: + + - {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + "tagValues/456"} + - {"123/environment" : "production", "345/abc" : "xyz"} + Note: + - Invalid combinations of ID & namespaced format is not + supported. For instance: {"123/environment" : + "tagValues/444"} is invalid. """ resource_manager_tags: MutableMapping[str, str] = proto.MapField( @@ -78594,18 +91175,18 @@ class NetworkPeering(proto.Message): Attributes: auto_create_routes (bool): - This field will be deprecated soon. Use the - exchange_subnet_routes field instead. Indicates whether full - mesh connectivity is created and managed automatically + This field will be deprecated soon. Use + theexchange_subnet_routes field instead. Indicates whether + full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks - when peering state is ACTIVE. + when peering state isACTIVE. This field is a member of `oneof`_ ``_auto_create_routes``. connection_status (google.cloud.compute_v1.types.NetworkPeeringConnectionStatus): - [Output Only] The effective state of the peering connection - as a whole. + Output only. [Output Only] The effective state of the + peering connection as a whole. This field is a member of `oneof`_ ``_connection_status``. exchange_subnet_routes (bool): @@ -78615,7 +91196,7 @@ class NetworkPeering(proto.Message): true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state - is ACTIVE. + isACTIVE. This field is a member of `oneof`_ ``_exchange_subnet_routes``. export_custom_routes (bool): @@ -78626,9 +91207,10 @@ class NetworkPeering(proto.Message): export_subnet_routes_with_public_ip (bool): Whether subnet routes with public IP range are exported. The default value is true, all - subnet routes are exported. IPv4 special-use - ranges are always exported to peers and are not - controlled by this field. + subnet routes are exported.IPv4 special-use + ranges are always + exported to peers and are not controlled by this + field. This field is a member of `oneof`_ ``_export_subnet_routes_with_public_ip``. import_custom_routes (bool): @@ -78638,14 +91220,15 @@ class NetworkPeering(proto.Message): This field is a member of `oneof`_ ``_import_custom_routes``. import_subnet_routes_with_public_ip (bool): Whether subnet routes with public IP range - are imported. The default value is false. IPv4 - special-use ranges are always imported from - peers and are not controlled by this field. + are imported. The default value is false.IPv4 + special-use ranges are always + imported from peers and are not controlled by + this field. This field is a member of `oneof`_ ``_import_subnet_routes_with_public_ip``. name (str): Name of this peering. Provided by the client when the - peering is created. The name must comply with RFC1035. + peering is created. The name must comply withRFC1035. Specifically, the name must be 1-63 characters long and match regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?``. The first character must be a lowercase letter, and all the @@ -78663,8 +91246,8 @@ class NetworkPeering(proto.Message): This field is a member of `oneof`_ ``_network``. peer_mtu (int): - [Output Only] Maximum Transmission Unit in bytes of the peer - network. + Output only. [Output Only] Maximum Transmission Unit in + bytes of the peer network. This field is a member of `oneof`_ ``_peer_mtu``. stack_type (str): @@ -78675,15 +91258,15 @@ class NetworkPeering(proto.Message): This field is a member of `oneof`_ ``_stack_type``. state (str): - [Output Only] State for the peering, either ``ACTIVE`` or - ``INACTIVE``. The peering is ``ACTIVE`` when there's a - matching configuration in the peer network. Check the State - enum for the list of possible values. + Output only. [Output Only] State for the peering, either + ``ACTIVE`` or ``INACTIVE``. The peering is ``ACTIVE`` when + there's a matching configuration in the peer network. Check + the State enum for the list of possible values. This field is a member of `oneof`_ ``_state``. state_details (str): - [Output Only] Details about the current state of the - peering. + Output only. [Output Only] Details about the current state + of the peering. This field is a member of `oneof`_ ``_state_details``. update_strategy (str): @@ -78718,8 +91301,8 @@ class StackType(proto.Enum): IPV4_ONLY = 22373798 class State(proto.Enum): - r"""[Output Only] State for the peering, either ``ACTIVE`` or - ``INACTIVE``. The peering is ``ACTIVE`` when there's a matching + r"""Output only. [Output Only] State for the peering, either ``ACTIVE`` + or ``INACTIVE``. The peering is ``ACTIVE`` when there's a matching configuration in the peer network. Values: @@ -78749,10 +91332,11 @@ class UpdateStrategy(proto.Enum): Updates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the - matching peering. To delete a peering with the - consensus update strategy, both the peerings - must request the deletion of the peering before - the peering can be deleted. + matching peering. + To delete a peering with the consensus update + strategy, both the peerings must request the + deletion of the peering before the peering can + be deleted. INDEPENDENT (127011674): In this mode, changes to the peering configuration can be unilaterally altered by @@ -78883,10 +91467,11 @@ class UpdateStrategy(proto.Enum): Updates are reflected in the local peering but aren't applied to the peering connection until a complementary change is made to the - matching peering. To delete a peering with the - consensus update strategy, both the peerings - must request the deletion of the peering before - the peering can be deleted. + matching peering. + To delete a peering with the consensus update + strategy, both the peerings must request the + deletion of the peering before the peering can + be deleted. INDEPENDENT (127011674): In this mode, changes to the peering configuration can be unilaterally altered by @@ -78924,7 +91509,7 @@ class UpdateStrategy(proto.Enum): class NetworkPeeringConnectionStatusConsensusState(proto.Message): r"""The status of update/delete for a consensus peering connection. Only - set when connection_status.update_strategy is CONSENSUS or a network + set when connection_status.update_strategy isCONSENSUS or a network peering is proposing to update the strategy to CONSENSUS. @@ -78979,7 +91564,7 @@ class UpdateStatus(proto.Enum): set. IN_SYNC (2273653): No pending configuration update proposals to - the peering connection. + the peering connection. PENDING_LOCAL_ACKNOWLEDMENT (229926592): The peer network admin has made an updatePeering call. The change is awaiting @@ -79138,46 +91723,51 @@ class NetworkProfile(proto.Message): Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): - [Output Only] An optional description of this resource. + Output only. [Output Only] An optional description of this + resource. This field is a member of `oneof`_ ``_description``. features (google.cloud.compute_v1.types.NetworkProfileNetworkFeatures): - [Output Only] Features supported by the network. + Output only. [Output Only] Features supported by the + network. This field is a member of `oneof`_ ``_features``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#networkProfile for network profiles. + Output only. [Output Only] Type of the resource. + Alwayscompute#networkProfile for network profiles. This field is a member of `oneof`_ ``_kind``. location (google.cloud.compute_v1.types.NetworkProfileLocation): - [Output Only] Location to which the network is restricted. + Output only. [Output Only] Location to which the network is + restricted. This field is a member of `oneof`_ ``_location``. name (str): - [Output Only] Name of the resource. + Output only. [Output Only] Name of the resource. This field is a member of `oneof`_ ``_name``. profile_type (google.cloud.compute_v1.types.NetworkProfileProfileType): - [Output Only] Type of the network profile. + Output only. [Output Only] Type of the network profile. This field is a member of `oneof`_ ``_profile_type``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Output only. [Output Only] Server-defined URL for this + resource with the resource id. This field is a member of `oneof`_ ``_self_link_with_id``. zone (str): @@ -79302,9 +91892,9 @@ class NetworkProfileNetworkFeatures(proto.Message): the list of possible values. allow_alias_ip_ranges (str): Specifies whether alias IP ranges (and - secondary address ranges) are allowed. Check the - AllowAliasIpRanges enum for the list of possible - values. + secondary address ranges) are allowed. + Check the AllowAliasIpRanges enum for the list + of possible values. This field is a member of `oneof`_ ``_allow_alias_ip_ranges``. allow_auto_mode_subnet (str): @@ -79371,6 +91961,12 @@ class NetworkProfileNetworkFeatures(proto.Message): possible values. This field is a member of `oneof`_ ``_allow_multi_nic_in_same_network``. + allow_multicast (str): + Specifies whether multicast is allowed. + Check the AllowMulticast enum for the list of + possible values. + + This field is a member of `oneof`_ ``_allow_multicast``. allow_ncc (str): Specifies whether NCC is allowed. Check the AllowNcc enum for the list of possible @@ -79437,6 +92033,12 @@ class NetworkProfileNetworkFeatures(proto.Message): network supports. If empty, all interface types are supported. Check the InterfaceTypes enum for the list of possible values. + multicast (str): + Specifies which type of multicast is + supported. Check the Multicast enum for the list + of possible values. + + This field is a member of `oneof`_ ``_multicast``. subnet_purposes (MutableSequence[str]): Specifies which subnetwork purposes are supported. Check the SubnetPurposes enum for the @@ -79446,13 +92048,15 @@ class NetworkProfileNetworkFeatures(proto.Message): supported. Check the SubnetStackTypes enum for the list of possible values. subnetwork_purposes (MutableSequence[str]): - Specifies which subnetwork purposes are - supported. Check the SubnetworkPurposes enum for - the list of possible values. + Output only. Specifies which subnetwork + purposes are supported. Check the + SubnetworkPurposes enum for the list of possible + values. subnetwork_stack_types (MutableSequence[str]): - Specifies which subnetwork stack types are - supported. Check the SubnetworkStackTypes enum - for the list of possible values. + Output only. Specifies which subnetwork stack + types are supported. Check the + SubnetworkStackTypes enum for the list of + possible values. unicast (str): Specifies which type of unicast is supported. Check the Unicast enum for the list of possible @@ -79689,6 +92293,22 @@ class AllowMultiNicInSameNetwork(proto.Enum): MULTI_NIC_IN_SAME_NETWORK_ALLOWED = 457555419 MULTI_NIC_IN_SAME_NETWORK_BLOCKED = 273718815 + class AllowMulticast(proto.Enum): + r"""Specifies whether multicast is allowed. + + Values: + UNDEFINED_ALLOW_MULTICAST (0): + A value indicating that the enum field is not + set. + MULTICAST_ALLOWED (44693537): + No description available. + MULTICAST_BLOCKED (397727845): + No description available. + """ + UNDEFINED_ALLOW_MULTICAST = 0 + MULTICAST_ALLOWED = 44693537 + MULTICAST_BLOCKED = 397727845 + class AllowNcc(proto.Enum): r"""Specifies whether NCC is allowed. @@ -79877,6 +92497,22 @@ class InterfaceTypes(proto.Enum): UNSPECIFIED_NIC_TYPE = 67411801 VIRTIO_NET = 452123481 + class Multicast(proto.Enum): + r"""Specifies which type of multicast is supported. + + Values: + UNDEFINED_MULTICAST (0): + A value indicating that the enum field is not + set. + MULTICAST_SDN (532209462): + No description available. + MULTICAST_ULL (532211630): + No description available. + """ + UNDEFINED_MULTICAST = 0 + MULTICAST_SDN = 532209462 + MULTICAST_ULL = 532211630 + class SubnetPurposes(proto.Enum): r""" @@ -79967,7 +92603,7 @@ class SubnetworkStackTypes(proto.Enum): New VMs in this subnet will only be assigned IPv4 addresses. IPV6_ONLY (79632100): - New VMs in this subnet will only be assigned + New VMs in this subnet will only be assigned IPv6 addresses. """ UNDEFINED_SUBNETWORK_STACK_TYPES = 0 @@ -80050,6 +92686,11 @@ class Unicast(proto.Enum): number=88251004, optional=True, ) + allow_multicast: str = proto.Field( + proto.STRING, + number=11002498, + optional=True, + ) allow_ncc: str = proto.Field( proto.STRING, number=372354904, @@ -80104,6 +92745,11 @@ class Unicast(proto.Enum): proto.STRING, number=157981171, ) + multicast: str = proto.Field( + proto.STRING, + number=404098040, + optional=True, + ) subnet_purposes: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=301338039, @@ -80258,26 +92904,27 @@ class NetworkProfilesListResponse(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.NetworkProfile]): A list of NetworkProfile resources. kind (str): - [Output Only] Type of resource. Always - compute#networkProfileList for network profiles. + Output only. [Output Only] Type of resource. + Alwayscompute#networkProfileList for network profiles. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. end_interface: - MixerListResponseWithEtagBuilder + Output only. [Output Only] Unreachable resources. + end_interface: MixerListResponseWithEtagBuilder warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -80351,28 +92998,29 @@ class NetworkRoutingConfig(proto.Message): The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY - (default) or STANDARD. Check the - BgpBestPathSelectionMode enum for the list of - possible values. + (default) or STANDARD. + Check the BgpBestPathSelectionMode enum for the + list of possible values. This field is a member of `oneof`_ ``_bgp_best_path_selection_mode``. bgp_inter_region_cost (str): Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT - or ADD_COST_TO_MED. Check the BgpInterRegionCost enum for - the list of possible values. + orADD_COST_TO_MED. Check the BgpInterRegionCost enum for the + list of possible values. This field is a member of `oneof`_ ``_bgp_inter_region_cost``. effective_bgp_always_compare_med (bool): - [Output Only] Effective value of the bgp_always_compare_med - field. + Output only. [Output Only] Effective value of the + bgp_always_compare_med field. This field is a member of `oneof`_ ``_effective_bgp_always_compare_med``. effective_bgp_inter_region_cost (str): - [Output Only] Effective value of the bgp_inter_region_cost - field. Check the EffectiveBgpInterRegionCost enum for the - list of possible values. + Output only. [Output Only] Effective value of the + bgp_inter_region_cost field. Check the + EffectiveBgpInterRegionCost enum for the list of possible + values. This field is a member of `oneof`_ ``_effective_bgp_inter_region_cost``. routing_mode (str): @@ -80380,7 +93028,7 @@ class NetworkRoutingConfig(proto.Message): to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set - to GLOBAL, this network's Cloud Routers will + toGLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values. @@ -80409,7 +93057,7 @@ class BgpBestPathSelectionMode(proto.Enum): class BgpInterRegionCost(proto.Enum): r"""Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path - selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. Additional + selection algorithm. Can be DEFAULT orADD_COST_TO_MED. Additional supported values which may be not listed in the enum directly due to technical reasons: ADD_COST_TO_MED DEFAULT @@ -80427,9 +93075,10 @@ class BgpInterRegionCost(proto.Enum): DEFAULT = 115302945 class EffectiveBgpInterRegionCost(proto.Enum): - r"""[Output Only] Effective value of the bgp_inter_region_cost field. - Additional supported values which may be not listed in the enum - directly due to technical reasons: ADD_COST_TO_MED DEFAULT + r"""Output only. [Output Only] Effective value of the + bgp_inter_region_cost field. Additional supported values which may + be not listed in the enum directly due to technical reasons: + ADD_COST_TO_MED DEFAULT Values: UNDEFINED_EFFECTIVE_BGP_INTER_REGION_COST (0): @@ -80442,7 +93091,7 @@ class RoutingMode(proto.Enum): r"""The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set - to GLOBAL, this network's Cloud Routers will advertise routes + toGLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Values: @@ -80497,13 +93146,13 @@ class NetworksAddPeeringRequest(proto.Message): Attributes: auto_create_routes (bool): - This field will be deprecated soon. Use - exchange_subnet_routes in network_peering instead. Indicates - whether full mesh connectivity is created and managed - automatically between peered networks. Currently this field - should always be true since Google Compute Engine will - automatically create and manage subnetwork routes between - two networks when peering state is ACTIVE. + This field will be deprecated soon. + Useexchange_subnet_routes in network_peering instead. + Indicates whether full mesh connectivity is created and + managed automatically between peered networks. Currently + this field should always be true since Google Compute Engine + will automatically create and manage subnetwork routes + between two networks when peering state isACTIVE. This field is a member of `oneof`_ ``_auto_create_routes``. name (str): @@ -80515,13 +93164,13 @@ class NetworksAddPeeringRequest(proto.Message): Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer - network, exchange_subnet_routes) in the network_peering + network,exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon. This field is a member of `oneof`_ ``_network_peering``. peer_network (str): - URL of the peer network. It can be either + URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that @@ -80561,9 +93210,9 @@ class NetworksGetEffectiveFirewallsResponse(proto.Message): firewall_policys (MutableSequence[google.cloud.compute_v1.types.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy]): [Output Only] Effective firewalls from firewall policy. It returns Global Network Firewall Policies and Hierarchical - Firewall Policies. Use - regionNetworkFirewallPolicies.getEffectiveFirewalls to get - Regional Network Firewall Policies as well. + Firewall Policies. + UseregionNetworkFirewallPolicies.getEffectiveFirewalls to + get Regional Network Firewall Policies as well. firewalls (MutableSequence[google.cloud.compute_v1.types.Firewall]): Effective firewalls on the network. """ @@ -80589,37 +93238,38 @@ class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy(proto.Message Attributes: display_name (str): - [Output Only] Deprecated, please use short name instead. The - display name of the firewall policy. + Output only. [Output Only] Deprecated, please use short name + instead. The display name of the firewall policy. This field is a member of `oneof`_ ``_display_name``. name (str): - [Output Only] The name of the firewall policy. + Output only. [Output Only] The name of the firewall policy. This field is a member of `oneof`_ ``_name``. packet_mirroring_rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): - [Output Only] The packet mirroring rules that apply to the - network. + Output only. [Output Only] The packet mirroring rules that + apply to the network. priority (int): - [Output only] Priority of firewall policy association. Not - applicable for type=HIERARCHY. + Output only. [Output only] Priority of firewall policy + association. Not applicable for type=HIERARCHY. This field is a member of `oneof`_ ``_priority``. rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): [Output Only] The rules that apply to the network. short_name (str): - [Output Only] The short name of the firewall policy. + Output only. [Output Only] The short name of the firewall + policy. This field is a member of `oneof`_ ``_short_name``. type_ (str): - [Output Only] The type of the firewall policy. Check the - Type enum for the list of possible values. + Output only. [Output Only] The type of the firewall policy. + Check the Type enum for the list of possible values. This field is a member of `oneof`_ ``_type``. """ class Type(proto.Enum): - r"""[Output Only] The type of the firewall policy. + r"""Output only. [Output Only] The type of the firewall policy. Values: UNDEFINED_TYPE (0): @@ -80737,12 +93387,14 @@ class NetworksUpdatePeeringRequest(proto.Message): class NodeGroup(proto.Message): - r"""Represents a sole-tenant Node Group resource. A sole-tenant - node is a physical server that is dedicated to hosting VM - instances only for your specific project. Use sole-tenant nodes - to keep your instances physically separated from instances in - other projects, or to group your instances together on the same - host hardware. For more information, read Sole-tenant nodes. + r"""Represents a sole-tenant Node Group resource. + + A sole-tenant node is a physical server that is dedicated to + hosting VM instances only for your specific project. Use + sole-tenant nodes to keep your instances physically separated + from instances in other projects, or to group your instances + together on the same host hardware. For more information, + readSole-tenant nodes. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -80753,7 +93405,8 @@ class NodeGroup(proto.Message): This field is a member of `oneof`_ ``_autoscaling_policy``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -80766,13 +93419,13 @@ class NodeGroup(proto.Message): This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] The type of the resource. Always - compute#nodeGroup for node group. + Output only. [Output Only] The type of the resource. + Alwayscompute#nodeGroup for node group. This field is a member of `oneof`_ ``_kind``. location_hint (str): @@ -80792,11 +93445,11 @@ class NodeGroup(proto.Message): This field is a member of `oneof`_ ``_maintenance_interval``. maintenance_policy (str): Specifies how to handle instances when a node in the group - undergoes maintenance. Set to one of: DEFAULT, - RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default - value is DEFAULT. For more information, see Maintenance - policies. Check the MaintenancePolicy enum for the list of - possible values. + undergoes maintenance. Set to one of: + DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The + default value is DEFAULT. For more information, see + Maintenance policies. Check the MaintenancePolicy enum for + the list of possible values. This field is a member of `oneof`_ ``_maintenance_policy``. maintenance_window (google.cloud.compute_v1.types.NodeGroupMaintenanceWindow): @@ -80805,7 +93458,7 @@ class NodeGroup(proto.Message): name (str): The name of the resource, provided by the client when initially creating the resource. The resource name must be - 1-63 characters long, and comply with RFC1035. Specifically, + 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all @@ -80819,7 +93472,8 @@ class NodeGroup(proto.Message): This field is a member of `oneof`_ ``_node_template``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. share_settings (google.cloud.compute_v1.types.ShareSettings): @@ -80827,7 +93481,8 @@ class NodeGroup(proto.Message): This field is a member of `oneof`_ ``_share_settings``. size (int): - [Output Only] The total number of nodes in the node group. + Output only. [Output Only] The total number of nodes in the + node group. This field is a member of `oneof`_ ``_size``. status (str): @@ -80836,8 +93491,8 @@ class NodeGroup(proto.Message): This field is a member of `oneof`_ ``_status``. zone (str): - [Output Only] The name of the zone where the node group - resides, such as us-central1-a. + Output only. [Output Only] The name of the zone where the + node group resides, such as us-central1-a. This field is a member of `oneof`_ ``_zone``. """ @@ -80855,13 +93510,13 @@ class MaintenanceInterval(proto.Enum): and hypervisor updates as they become available. This may result in more maintenance operations (live migrations or terminations) for the VM - than the PERIODIC and RECURRENT options. + than the PERIODIC andRECURRENT options. RECURRENT (194244550): VMs receive infrastructure and hypervisor updates on a periodic basis, minimizing the number of maintenance operations (live migrations or terminations) on an individual VM. This may mean a VM will take longer to - receive an update than if it was configured for AS_NEEDED. + receive an update than if it was configured forAS_NEEDED. Security updates will still be applied as soon as they are available. RECURRENT is used for GEN3 and Slice of Hardware VMs. @@ -80872,7 +93527,7 @@ class MaintenanceInterval(proto.Enum): class MaintenancePolicy(proto.Enum): r"""Specifies how to handle instances when a node in the group undergoes - maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or + maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. @@ -81033,26 +93688,27 @@ class NodeGroupAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.NodeGroupsScopedList]): A list of NodeGroupsScopedList resources. kind (str): - [Output Only] Type of resource.Always - compute#nodeGroupAggregatedList for aggregated lists of node - groups. + Output only. [Output Only] Type of + resource.Alwayscompute#nodeGroupAggregatedList for + aggregated lists of node groups. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -81181,21 +93837,22 @@ class NodeGroupList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.NodeGroup]): A list of NodeGroup resources. kind (str): - [Output Only] Type of resource.Always compute#nodeGroupList - for lists of node groups. + Output only. [Output Only] Type of resource.Always + compute#nodeGroupList for lists of node groups. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -81250,15 +93907,15 @@ class NodeGroupMaintenanceWindow(proto.Message): Attributes: maintenance_duration (google.cloud.compute_v1.types.Duration): - [Output only] A predetermined duration for the window, - automatically chosen to be the smallest possible in the - given scenario. + Output only. [Output only] A predetermined duration for the + window, automatically chosen to be the smallest possible in + the given scenario. This field is a member of `oneof`_ ``_maintenance_duration``. start_time (str): Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, - 08:00, 12:00, 16:00, or 20:00. For example, both + 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. This field is a member of `oneof`_ ``_start_time``. @@ -81286,8 +93943,8 @@ class NodeGroupNode(proto.Message): accelerators (MutableSequence[google.cloud.compute_v1.types.AcceleratorConfig]): Accelerators for this node. consumed_resources (google.cloud.compute_v1.types.InstanceConsumptionInfo): - Node resources that are reserved by all - instances. + Output only. Node resources that are reserved + by all instances. This field is a member of `oneof`_ ``_consumed_resources``. cpu_overcommit_type (str): @@ -81299,8 +93956,8 @@ class NodeGroupNode(proto.Message): disks (MutableSequence[google.cloud.compute_v1.types.LocalDisk]): Local disk configurations. instance_consumption_data (MutableSequence[google.cloud.compute_v1.types.InstanceConsumptionData]): - Instance data that shows consumed resources - on the node. + Output only. Instance data that shows + consumed resources on the node. instances (MutableSequence[str]): Instances scheduled on this node. name (str): @@ -81312,7 +93969,7 @@ class NodeGroupNode(proto.Message): This field is a member of `oneof`_ ``_node_type``. satisfies_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. server_binding (google.cloud.compute_v1.types.ServerBinding): @@ -81329,13 +93986,13 @@ class NodeGroupNode(proto.Message): This field is a member of `oneof`_ ``_status``. total_resources (google.cloud.compute_v1.types.InstanceConsumptionInfo): - Total amount of available resources on the - node. + Output only. Total amount of available + resources on the node. This field is a member of `oneof`_ ``_total_resources``. upcoming_maintenance (google.cloud.compute_v1.types.UpcomingMaintenance): - [Output Only] The information about an upcoming maintenance - event. + Output only. [Output Only] The information about an upcoming + maintenance event. This field is a member of `oneof`_ ``_upcoming_maintenance``. """ @@ -81502,33 +94159,34 @@ class NodeGroupsListNodes(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.NodeGroupNode]): A list of Node resources. kind (str): - [Output Only] The resource type, which is always - compute.nodeGroupsListNodes for the list of nodes in the - specified node group. + Output only. [Output Only] The resource type, which is + alwayscompute.nodeGroupsListNodes for the list of nodes in + the specified node group. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -81660,9 +94318,11 @@ class NodeGroupsSimulateMaintenanceEventRequest(proto.Message): class NodeTemplate(proto.Message): - r"""Represent a sole-tenant Node Template resource. You can use a - template to define properties for nodes in a node group. For - more information, read Creating node groups and instances. + r"""Represent a sole-tenant Node Template resource. + + You can use a template to define properties for nodes in a node + group. For more information, readCreating node groups + and instances. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -81677,7 +94337,8 @@ class NodeTemplate(proto.Message): This field is a member of `oneof`_ ``_cpu_overcommit_type``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -81689,19 +94350,19 @@ class NodeTemplate(proto.Message): disks (MutableSequence[google.cloud.compute_v1.types.LocalDisk]): id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] The type of the resource. Always - compute#nodeTemplate for node templates. + Output only. [Output Only] The type of the resource. + Alwayscompute#nodeTemplate for node templates. This field is a member of `oneof`_ ``_kind``. name (str): The name of the resource, provided by the client when initially creating the resource. The resource name must be - 1-63 characters long, and comply with RFC1035. Specifically, + 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all @@ -81722,32 +94383,39 @@ class NodeTemplate(proto.Message): This field is a member of `oneof`_ ``_node_type_flexibility``. region (str): - [Output Only] The name of the region where the node template - resides, such as us-central1. + Output only. [Output Only] The name of the region where the + node template resides, such as us-central1. This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. server_binding (google.cloud.compute_v1.types.ServerBinding): Sets the binding properties for the physical server. Valid - values include: - *[Default]* RESTART_NODE_ON_ANY_SERVER: - Restarts VMs on any available physical server - - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same - physical server whenever possible See Sole-tenant node - options for more information. + values include: + + :: + + - *[Default]* RESTART_NODE_ON_ANY_SERVER: + Restarts VMs on any available + physical server + - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same + physical server whenever possible + + See Sole-tenant node options for more information. This field is a member of `oneof`_ ``_server_binding``. status (str): - [Output Only] The status of the node template. One of the - following values: CREATING, READY, and DELETING. Check the - Status enum for the list of possible values. + Output only. [Output Only] The status of the node template. + One of the following values:CREATING, READY, and DELETING. + Check the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. status_message (str): - [Output Only] An optional, human-readable explanation of the - status. + Output only. [Output Only] An optional, human-readable + explanation of the status. This field is a member of `oneof`_ ``_status_message``. """ @@ -81772,8 +94440,8 @@ class CpuOvercommitType(proto.Enum): NONE = 2402104 class Status(proto.Enum): - r"""[Output Only] The status of the node template. One of the following - values: CREATING, READY, and DELETING. + r"""Output only. [Output Only] The status of the node template. One of + the following values:CREATING, READY, and DELETING. Values: UNDEFINED_STATUS (0): @@ -81892,26 +94560,27 @@ class NodeTemplateAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.NodeTemplatesScopedList]): A list of NodeTemplatesScopedList resources. kind (str): - [Output Only] Type of resource.Always - compute#nodeTemplateAggregatedList for aggregated lists of - node templates. + Output only. [Output Only] Type of + resource.Alwayscompute#nodeTemplateAggregatedList for + aggregated lists of node templates. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -81974,21 +94643,22 @@ class NodeTemplateList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.NodeTemplate]): A list of NodeTemplate resources. kind (str): - [Output Only] Type of resource.Always + Output only. [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -82098,12 +94768,13 @@ class NodeTemplatesScopedList(proto.Message): class NodeType(proto.Message): - r"""Represent a sole-tenant Node Type resource. Each node within - a node group must have a node type. A node type specifies the - total amount of cores and memory for that node. Currently, the - only available node type is n1-node-96-624 node type that has 96 - vCPUs and 624 GB of memory, available in multiple zones. For - more information read Node types. + r"""Represent a sole-tenant Node Type resource. + + Each node within a node group must have a node type. A node type + specifies the total amount of cores and memory for that node. + Currently, the only available node type is n1-node-96-624 node + type that has 96 vCPUs and 624 GB of memory, available in + multiple zones. For more information readNode types. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -82114,7 +94785,7 @@ class NodeType(proto.Message): This field is a member of `oneof`_ ``_cpu_platform``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + [Output Only] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. deprecated (google.cloud.compute_v1.types.DeprecationStatus): @@ -82138,8 +94809,8 @@ class NodeType(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] The type of the resource. Always - compute#nodeType for node types. + Output only. [Output Only] The type of the resource. + Alwayscompute#nodeType for node types. This field is a member of `oneof`_ ``_kind``. local_ssd_gb (int): @@ -82148,8 +94819,8 @@ class NodeType(proto.Message): This field is a member of `oneof`_ ``_local_ssd_gb``. max_vms (int): - [Output Only] Maximum number of VMs that can be created for - this node type. + Output only. [Output Only] Maximum number of VMs that can be + created for this node type. This field is a member of `oneof`_ ``_max_vms``. memory_mb (int): @@ -82162,12 +94833,13 @@ class NodeType(proto.Message): This field is a member of `oneof`_ ``_name``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. zone (str): - [Output Only] The name of the zone where the node type - resides, such as us-central1-a. + Output only. [Output Only] The name of the zone where the + node type resides, such as us-central1-a. This field is a member of `oneof`_ ``_zone``. """ @@ -82254,26 +94926,27 @@ class NodeTypeAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.NodeTypesScopedList]): A list of NodeTypesScopedList resources. kind (str): - [Output Only] Type of resource.Always - compute#nodeTypeAggregatedList for aggregated lists of node - types. + Output only. [Output Only] Type of + resource.Alwayscompute#nodeTypeAggregatedList for aggregated + lists of node types. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -82336,21 +95009,22 @@ class NodeTypeList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.NodeType]): A list of NodeType resources. kind (str): - [Output Only] Type of resource.Always compute#nodeTypeList - for lists of node types. + Output only. [Output Only] Type of resource.Always + compute#nodeTypeList for lists of node types. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -82425,17 +95099,22 @@ class NodeTypesScopedList(proto.Message): class NotificationEndpoint(proto.Message): - r"""Represents a notification endpoint. A notification endpoint - resource defines an endpoint to receive notifications when there - are status changes detected by the associated health check - service. For more information, see Health checks overview. + r"""Represents a notification endpoint. + + A notification endpoint resource defines an endpoint to receive + notifications when there are status changes detected by the + associated health check service. + + For more information, see + Health checks overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -82451,19 +95130,20 @@ class NotificationEndpoint(proto.Message): This field is a member of `oneof`_ ``_grpc_settings``. id (int): - [Output Only] A unique identifier for this resource type. - The server generates this identifier. + Output only. [Output Only] A unique identifier for this + resource type. The server generates this identifier. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#notificationEndpoint for notification endpoints. + Output only. [Output Only] Type of the resource. + Alwayscompute#notificationEndpoint for notification + endpoints. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -82472,15 +95152,16 @@ class NotificationEndpoint(proto.Message): This field is a member of `oneof`_ ``_name``. region (str): - [Output Only] URL of the region where the notification - endpoint resides. This field applies only to the regional - resource. You must specify this field as part of the HTTP - request URL. It is not settable as a field in the request - body. + Output only. [Output Only] URL of the region where the + notification endpoint resides. This field applies only to + the regional resource. You must specify this field as part + of the HTTP request URL. It is not settable as a field in + the request body. This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. """ @@ -82615,14 +95296,15 @@ class NotificationEndpointList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.NotificationEndpoint]): A list of NotificationEndpoint resources. kind (str): - [Output Only] Type of the resource. Always - compute#notificationEndpoint for notification endpoints. + Output only. [Output Only] Type of the resource. + Alwayscompute#notificationEndpoint for notification + endpoints. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -82676,19 +95358,32 @@ def raw_page(self): class Operation(proto.Message): - r"""Represents an Operation resource. Google Compute Engine has three - Operation resources: \* - `Global `__ \* - `Regional `__ \* - `Zonal `__ You can - use an operation resource to manage asynchronous API requests. For - more information, read Handling API responses. Operations can be - global, regional or zonal. - For global operations, use the - ``globalOperations`` resource. - For regional operations, use the - ``regionOperations`` resource. - For zonal operations, use the - ``zoneOperations`` resource. For more information, read Global, - Regional, and Zonal Resources. Note that completed Operation - resources have a limited retention period. + r"""Represents an Operation resource. + + Google Compute Engine has three Operation resources: + + - `Global `__ + - `Regional `__ + - `Zonal `__ + + You can use an operation resource to manage asynchronous API + requests. For more information, readHandling API responses. + + Operations can be global, regional or zonal. + + :: + + - For global operations, use the `globalOperations` + resource. + - For regional operations, use the + `regionOperations` resource. + - For zonal operations, use + the `zoneOperations` resource. + + For more information, read Global, Regional, and Zonal Resources. + + Note that completed Operation resources have a limited retention + period. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -82710,7 +95405,7 @@ class Operation(proto.Message): This field is a member of `oneof`_ ``_description``. end_time (str): [Output Only] The time that this operation was completed. - This value is in RFC3339 text format. + This value is inRFC3339 text format. This field is a member of `oneof`_ ``_end_time``. error (google.cloud.compute_v1.types.Error): @@ -82737,14 +95432,14 @@ class Operation(proto.Message): This field is a member of `oneof`_ ``_id``. insert_time (str): [Output Only] The time that this operation was requested. - This value is in RFC3339 text format. + This value is inRFC3339 text format. This field is a member of `oneof`_ ``_insert_time``. instances_bulk_insert_operation_metadata (google.cloud.compute_v1.types.InstancesBulkInsertOperationMetadata): This field is a member of `oneof`_ ``_instances_bulk_insert_operation_metadata``. kind (str): - [Output Only] Type of the resource. Always + Output only. [Output Only] Type of the resource. Always ``compute#operation`` for Operation resources. This field is a member of `oneof`_ ``_kind``. @@ -82753,9 +95448,9 @@ class Operation(proto.Message): This field is a member of `oneof`_ ``_name``. operation_group_id (str): - [Output Only] An ID that represents a group of operations, - such as when a group of operations results from a - ``bulkInsert`` API request. + Output only. [Output Only] An ID that represents a group of + operations, such as when a group of operations results from + a ``bulkInsert`` API request. This field is a member of `oneof`_ ``_operation_group_id``. operation_type (str): @@ -82783,14 +95478,14 @@ class Operation(proto.Message): This field is a member of `oneof`_ ``_self_link``. set_common_instance_metadata_operation_metadata (google.cloud.compute_v1.types.SetCommonInstanceMetadataOperationMetadata): - [Output Only] If the operation is for + Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state. This field is a member of `oneof`_ ``_set_common_instance_metadata_operation_metadata``. start_time (str): [Output Only] The time that this operation was started by - the server. This value is in RFC3339 text format. + the server. This value is inRFC3339 text format. This field is a member of `oneof`_ ``_start_time``. status (google.cloud.compute_v1.types.Operation.Status): @@ -83008,7 +95703,7 @@ class OperationAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.OperationsScopedList]): [Output Only] A map of scoped operation lists. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always ``compute#operationAggregatedList`` for aggregated lists of operations. @@ -83027,7 +95722,7 @@ class OperationAggregatedList(proto.Message): This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -83090,7 +95785,7 @@ class OperationList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Operation]): [Output Only] A list of Operation resources. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always ``compute#operations`` for Operations resource. This field is a member of `oneof`_ ``_kind``. @@ -83187,9 +95882,10 @@ class OrganizationSecurityPoliciesListAssociationsResponse(proto.Message): associations (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyAssociation]): A list of associations. kind (str): - [Output Only] Type of securityPolicy associations. Always - compute#organizationSecurityPoliciesListAssociations for - lists of securityPolicy associations. + Output only. [Output Only] Type of securityPolicy + associations. + Alwayscompute#organizationSecurityPoliciesListAssociations + for lists of securityPolicy associations. This field is a member of `oneof`_ ``_kind``. """ @@ -83216,9 +95912,10 @@ class OutlierDetection(proto.Message): Attributes: base_ejection_time (google.cloud.compute_v1.types.Duration): The base time that a backend endpoint is - ejected for. Defaults to 30000ms or 30s. After a - backend endpoint is returned back to the load - balancing pool, it can be ejected again in + ejected for. Defaults to 30000ms or 30s. + + After a backend endpoint is returned back to the + load balancing pool, it can be ejected again in another ejection analysis. Thus, the total ejection time is equal to the base ejection time multiplied by the number of times the backend @@ -83263,8 +95960,9 @@ class OutlierDetection(proto.Message): will be ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to - ramp it up slowly. Defaults to 100. Not - supported when the backend service uses + ramp it up slowly. Defaults to 100. + + Not supported when the backend service uses Serverless NEG. This field is a member of `oneof`_ ``_enforcing_success_rate``. @@ -83273,8 +95971,9 @@ class OutlierDetection(proto.Message): sweeps. This can result in both new ejections and backend endpoints being returned to service. The interval is equal to the number of seconds - as defined in outlierDetection.interval.seconds - plus the number of nanoseconds as defined in + as defined in + outlierDetection.interval.seconds plus the + number of nanoseconds as defined in outlierDetection.interval.nanos. Defaults to 1 second. @@ -83294,7 +95993,9 @@ class OutlierDetection(proto.Message): setting, outlier detection via success rate statistics is not performed for any backend endpoint in the load balancing pool. Defaults to - 5. Not supported when the backend service uses + 5. + + Not supported when the backend service uses Serverless NEG. This field is a member of `oneof`_ ``_success_rate_minimum_hosts``. @@ -83306,8 +96007,10 @@ class OutlierDetection(proto.Message): detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that backend - endpoint. Defaults to 100. Not supported when - the backend service uses Serverless NEG. + endpoint. Defaults to 100. + + Not supported when the backend service uses + Serverless NEG. This field is a member of `oneof`_ ``_success_rate_request_volume``. success_rate_stdev_factor (int): @@ -83318,8 +96021,9 @@ class OutlierDetection(proto.Message): rate: mean - (stdev \* successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the desired factor is 1.9, the runtime value should be 1900. - Defaults to 1900. Not supported when the backend service - uses Serverless NEG. + Defaults to 1900. + + Not supported when the backend service uses Serverless NEG. This field is a member of `oneof`_ ``_success_rate_stdev_factor``. """ @@ -83503,27 +96207,30 @@ class Type(proto.Enum): class PacketMirroring(proto.Message): - r"""Represents a Packet Mirroring resource. Packet Mirroring - clones the traffic of specified instances in your Virtual - Private Cloud (VPC) network and forwards it to a collector - destination, such as an instance group of an internal TCP/UDP - load balancer, for analysis or examination. For more information - about setting up Packet Mirroring, see Using Packet Mirroring. + r"""Represents a Packet Mirroring resource. + + Packet Mirroring clones the traffic of specified instances in + your Virtual Private Cloud (VPC) network and forwards it to a + collector destination, such as an instance group of an internal + TCP/UDP load balancer, for analysis or examination. + For more information about setting up Packet Mirroring, seeUsing + Packet Mirroring. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: collector_ilb (google.cloud.compute_v1.types.PacketMirroringForwardingRuleInfo): - The Forwarding Rule resource of type - loadBalancingScheme=INTERNAL that will be used - as collector for mirrored traffic. The specified - forwarding rule must have isMirroringCollector - set to true. + The Forwarding Rule resource of + typeloadBalancingScheme=INTERNAL that will be + used as collector for mirrored traffic. The + specified forwarding rule must have + isMirroringCollector set to true. This field is a member of `oneof`_ ``_collector_ilb``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -83536,8 +96243,11 @@ class PacketMirroring(proto.Message): Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on - the network. The default is TRUE. Check the - Enable enum for the list of possible values. + the network. + + The default is TRUE. + Check the Enable enum for the list of possible + values. This field is a member of `oneof`_ ``_enable``. filter (google.cloud.compute_v1.types.PacketMirroringFilter): @@ -83546,13 +96256,13 @@ class PacketMirroring(proto.Message): This field is a member of `oneof`_ ``_filter``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#packetMirroring for packet mirrorings. + Output only. [Output Only] Type of the resource. + Alwayscompute#packetMirroring for packet mirrorings. This field is a member of `oneof`_ ``_kind``. mirrored_resources (google.cloud.compute_v1.types.PacketMirroringMirroredResourceInfo): @@ -83566,7 +96276,7 @@ class PacketMirroring(proto.Message): name (str): Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -83588,8 +96298,10 @@ class PacketMirroring(proto.Message): there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered - priority value wins. Default value is 1000. - Valid range is 0 through 65535. + priority value wins. + + Default value is 1000. Valid range is 0 through + 65535. This field is a member of `oneof`_ ``_priority``. region (str): @@ -83598,7 +96310,8 @@ class PacketMirroring(proto.Message): This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. """ @@ -83606,7 +96319,9 @@ class PacketMirroring(proto.Message): class Enable(proto.Enum): r"""Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be - enforced on the network. The default is TRUE. + enforced on the network. + + The default is TRUE. Values: UNDEFINED_ENABLE (0): @@ -83706,24 +96421,25 @@ class PacketMirroringAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.PacketMirroringsScopedList]): A list of PacketMirroring resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -83782,9 +96498,9 @@ class PacketMirroringFilter(proto.Message): Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges - is mirrored. If neither cidrRanges nor - IPProtocols is specified, all IPv4 traffic is - mirrored. + is mirrored. + If neither cidrRanges nor IPProtocols is + specified, all IPv4 traffic is mirrored. cidr_ranges (MutableSequence[str]): One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or @@ -83846,8 +96562,8 @@ class PacketMirroringForwardingRuleInfo(proto.Message): Attributes: canonical_url (str): - [Output Only] Unique identifier for the forwarding rule; - defined by the server. + Output only. [Output Only] Unique identifier for the + forwarding rule; defined by the server. This field is a member of `oneof`_ ``_canonical_url``. url (str): @@ -83884,21 +96600,22 @@ class PacketMirroringList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.PacketMirroring]): A list of PacketMirroring resources. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -83952,17 +96669,21 @@ class PacketMirroringMirroredResourceInfo(proto.Message): A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this - packetMirroring. Note that this config will - apply only to those network interfaces of the - Instances that belong to the network specified - in this packetMirroring. You may specify a - maximum of 50 Instances. + packetMirroring. + + Note that this config will apply only to those + network interfaces of the Instances that belong + to the network specified in this + packetMirroring. + + You may specify a maximum of 50 Instances. subnetworks (MutableSequence[google.cloud.compute_v1.types.PacketMirroringMirroredResourceInfoSubnetInfo]): A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this - packetMirroring. You may specify a maximum of 5 - subnetworks. + packetMirroring. + + You may specify a maximum of 5 subnetworks. tags (MutableSequence[str]): A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags @@ -83996,8 +96717,8 @@ class PacketMirroringMirroredResourceInfoInstanceInfo(proto.Message): Attributes: canonical_url (str): - [Output Only] Unique identifier for the instance; defined by - the server. + Output only. [Output Only] Unique identifier for the + instance; defined by the server. This field is a member of `oneof`_ ``_canonical_url``. url (str): @@ -84026,8 +96747,8 @@ class PacketMirroringMirroredResourceInfoSubnetInfo(proto.Message): Attributes: canonical_url (str): - [Output Only] Unique identifier for the subnetwork; defined - by the server. + Output only. [Output Only] Unique identifier for the + subnetwork; defined by the server. This field is a member of `oneof`_ ``_canonical_url``. url (str): @@ -84057,8 +96778,8 @@ class PacketMirroringNetworkInfo(proto.Message): Attributes: canonical_url (str): - [Output Only] Unique identifier for the network; defined by - the server. + Output only. [Output Only] Unique identifier for the + network; defined by the server. This field is a member of `oneof`_ ``_canonical_url``. url (str): @@ -84129,17 +96850,21 @@ class PatchAutoscalerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -84190,17 +96915,21 @@ class PatchBackendBucketRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84244,17 +96973,21 @@ class PatchBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84279,6 +97012,81 @@ class PatchBackendServiceRequest(proto.Message): ) +class PatchCrossSiteNetworkRequest(proto.Message): + r"""A request message for CrossSiteNetworks.Patch. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + cross_site_network (str): + Name of the cross-site network to update. + cross_site_network_resource (google.cloud.compute_v1.types.CrossSiteNetwork): + The body resource for this request + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. Specify a + unique request ID so that if you must retry your request, + the server will know to ignore the request if it has already + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + + This field is a member of `oneof`_ ``_request_id``. + update_mask (str): + update_mask indicates fields to be updated as part of this + request. + + This field is a member of `oneof`_ ``_update_mask``. + validate_only (bool): + [Input Only] Validate the new configuration, but don't + update it. + + This field is a member of `oneof`_ ``_validate_only``. + """ + + cross_site_network: str = proto.Field( + proto.STRING, + number=108192469, + ) + cross_site_network_resource: "CrossSiteNetwork" = proto.Field( + proto.MESSAGE, + number=30896696, + message="CrossSiteNetwork", + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + update_mask: str = proto.Field( + proto.STRING, + number=500079778, + optional=True, + ) + validate_only: bool = proto.Field( + proto.BOOL, + number=242744629, + optional=True, + ) + + class PatchFirewallPolicyRequest(proto.Message): r"""A request message for FirewallPolicies.Patch. See the method description for details. @@ -84296,17 +97104,21 @@ class PatchFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84346,17 +97158,21 @@ class PatchFirewallRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84402,17 +97218,21 @@ class PatchForwardingRuleRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84460,17 +97280,21 @@ class PatchGlobalForwardingRuleRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84515,17 +97339,21 @@ class PatchGlobalPublicDelegatedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84569,17 +97397,21 @@ class PatchHealthCheckRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84623,17 +97455,21 @@ class PatchImageRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84677,22 +97513,26 @@ class PatchInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where you want to create - the managed instance group. + The name of the zone where + you want to create the managed instance group. """ instance_group_manager: str = proto.Field( @@ -84736,17 +97576,21 @@ class PatchInstanceSettingRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. update_mask (str): @@ -84803,15 +97647,18 @@ class PatchInterconnectAttachmentGroupRequest(proto.Message): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -84867,17 +97714,21 @@ class PatchInterconnectAttachmentRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -84925,15 +97776,18 @@ class PatchInterconnectGroupRequest(proto.Message): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -84987,17 +97841,21 @@ class PatchInterconnectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85043,15 +97901,18 @@ class PatchNetworkAttachmentRequest(proto.Message): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already - been completed. For example, consider a situation where you - make an initial request and the request times out. If you - make the request again with the same request ID, the server - can check if original operation with the same request ID was - received, and if so, will ignore the second request. This - prevents clients from accidentally creating duplicate - commitments. The request ID must be a valid UUID with the - exception that zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). end_interface: + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder This field is a member of `oneof`_ ``_request_id``. @@ -85106,17 +97967,21 @@ class PatchNetworkEdgeSecurityServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. update_mask (str): @@ -85179,17 +98044,21 @@ class PatchNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85233,17 +98102,21 @@ class PatchNetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85287,17 +98160,21 @@ class PatchNodeGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -85341,17 +98218,21 @@ class PatchOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -85398,17 +98279,21 @@ class PatchPacketMirroringRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85461,17 +98346,21 @@ class PatchPacketMirroringRuleNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85511,8 +98400,8 @@ class PatchPerInstanceConfigsInstanceGroupManagerRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. It - should conform to RFC1035. + The name of the managed instance group. + It should conform to RFC1035. instance_group_managers_patch_per_instance_configs_req_resource (google.cloud.compute_v1.types.InstanceGroupManagersPatchPerInstanceConfigsReq): The body resource for this request project (str): @@ -85522,23 +98411,27 @@ class PatchPerInstanceConfigsInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed - instance group is located. It should conform to - RFC1035. + The name of thezone + where the managed instance group is located. + It should conform to RFC1035. """ instance_group_manager: str = proto.Field( @@ -85575,8 +98468,8 @@ class PatchPerInstanceConfigsRegionInstanceGroupManagerRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. It - should conform to RFC1035. + The name of the managed instance group. + It should conform to RFC1035. project (str): Project ID for this request. region (str): @@ -85589,17 +98482,21 @@ class PatchPerInstanceConfigsRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85648,17 +98545,21 @@ class PatchPublicAdvertisedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85705,17 +98606,21 @@ class PatchPublicDelegatedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85767,17 +98672,21 @@ class PatchRegionAutoscalerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85828,17 +98737,21 @@ class PatchRegionBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85888,17 +98801,21 @@ class PatchRegionHealthCheckRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -85950,17 +98867,21 @@ class PatchRegionHealthCheckServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -86010,17 +98931,21 @@ class PatchRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -86070,17 +98995,21 @@ class PatchRegionNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -86126,17 +99055,21 @@ class PatchRegionSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -86196,17 +99129,21 @@ class PatchRegionSslPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_policy (str): @@ -86258,17 +99195,21 @@ class PatchRegionTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxy (str): @@ -86366,17 +99307,21 @@ class PatchResourcePolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource_policy (str): @@ -86436,17 +99381,21 @@ class PatchRoutePolicyRouterRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. route_policy_resource (google.cloud.compute_v1.types.RoutePolicy): @@ -86497,17 +99446,21 @@ class PatchRouterRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. router (str): @@ -86561,17 +99514,21 @@ class PatchRuleFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -86620,17 +99577,21 @@ class PatchRuleNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -86677,17 +99638,21 @@ class PatchRuleOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -86743,17 +99708,21 @@ class PatchRuleRegionNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -86926,17 +99895,21 @@ class PatchSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -86993,17 +99966,21 @@ class PatchServiceAttachmentRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. service_attachment (str): @@ -87054,17 +100031,21 @@ class PatchSnapshotSettingRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. snapshot_settings_resource (google.cloud.compute_v1.types.SnapshotSettings): @@ -87112,17 +100093,21 @@ class PatchSslPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_policy (str): @@ -87166,12 +100151,14 @@ class PatchSubnetworkRequest(proto.Message): the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following - conditions are true: - the subnetwork being patched has - purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork - being patched has role = BACKUP - the patch request is - setting the role to ACTIVE. Note that after this patch - operation the roles of the ACTIVE and BACKUP subnetworks - will be swapped. + conditions are true: + + - the subnetwork being patched has purpose = + INTERNAL_HTTPS_LOAD_BALANCER + - the subnetwork being patched has role = BACKUP + - the patch request is setting the role to ACTIVE. Note that + after this patch operation the roles of the ACTIVE and + BACKUP subnetworks will be swapped. This field is a member of `oneof`_ ``_drain_timeout_seconds``. project (str): @@ -87183,17 +100170,21 @@ class PatchSubnetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. subnetwork (str): @@ -87246,17 +100237,21 @@ class PatchTargetGrpcProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_grpc_proxy (str): @@ -87301,17 +100296,21 @@ class PatchTargetHttpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_http_proxy (str): @@ -87356,17 +100355,21 @@ class PatchTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxy (str): @@ -87411,17 +100414,21 @@ class PatchUrlMapRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. url_map (str): @@ -87450,6 +100457,87 @@ class PatchUrlMapRequest(proto.Message): ) +class PatchWireGroupRequest(proto.Message): + r"""A request message for WireGroups.Patch. See the method + description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + cross_site_network (str): + + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. Specify a + unique request ID so that if you must retry your request, + the server will know to ignore the request if it has already + been completed. + + For example, consider a situation where you make an initial + request and the request times out. If you make the request + again with the same request ID, the server can check if + original operation with the same request ID was received, + and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that + zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: + MixerMutationRequestBuilder + + This field is a member of `oneof`_ ``_request_id``. + update_mask (str): + update_mask indicates fields to be updated as part of this + request. + + This field is a member of `oneof`_ ``_update_mask``. + validate_only (bool): + [Input Only] Validate the new configuration, but don't + update it. + + This field is a member of `oneof`_ ``_validate_only``. + wire_group (str): + Name of the WireGroups resource to patch. + wire_group_resource (google.cloud.compute_v1.types.WireGroup): + The body resource for this request + """ + + cross_site_network: str = proto.Field( + proto.STRING, + number=108192469, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + update_mask: str = proto.Field( + proto.STRING, + number=500079778, + optional=True, + ) + validate_only: bool = proto.Field( + proto.BOOL, + number=242744629, + optional=True, + ) + wire_group: str = proto.Field( + proto.STRING, + number=122540613, + ) + wire_group_resource: "WireGroup" = proto.Field( + proto.MESSAGE, + number=117104840, + message="WireGroup", + ) + + class PathMatcher(proto.Message): r"""A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was @@ -87461,38 +100549,50 @@ class PathMatcher(proto.Message): Attributes: default_custom_error_response_policy (google.cloud.compute_v1.types.CustomErrorResponsePolicy): defaultCustomErrorResponsePolicy specifies how the Load - Balancer returns error responses when BackendServiceor - BackendBucket responds with an error. This policy takes - effect at the PathMatcher level and applies only when no - policy has been defined for the error code at lower levels - like RouteRule and PathRule within this PathMatcher. If an - error code does not have a policy defined in - defaultCustomErrorResponsePolicy, then a policy defined for - the error code in UrlMap.defaultCustomErrorResponsePolicy - takes effect. For example, consider a UrlMap with the - following configuration: - - UrlMap.defaultCustomErrorResponsePolicy is configured with - policies for 5xx and 4xx errors - A RouteRule for - /coming_soon/ is configured for the error code 404. If the - request is for www.myotherdomain.com and a 404 is - encountered, the policy under - UrlMap.defaultCustomErrorResponsePolicy takes effect. If a - 404 response is encountered for the request - www.example.com/current_events/, the pathMatcher's policy - takes effect. If however, the request for - www.example.com/coming_soon/ encounters a 404, the policy in - RouteRule.customErrorResponsePolicy takes effect. If any of - the requests in this example encounter a 500 error code, the - policy at UrlMap.defaultCustomErrorResponsePolicy takes - effect. When used in conjunction with - pathMatcher.defaultRouteAction.retryPolicy, retries take - precedence. Only once all retries are exhausted, the - defaultCustomErrorResponsePolicy is applied. While + Balancer returns error responses when + BackendServiceorBackendBucket responds with an error. + + This policy takes effect at the PathMatcher level and + applies only when no policy has been defined for the error + code at lower levels likeRouteRule and PathRule within + thisPathMatcher. If an error code does not have a policy + defined in defaultCustomErrorResponsePolicy, then a policy + defined for the error code in + UrlMap.defaultCustomErrorResponsePolicy takes effect. + + For example, consider a UrlMap with the following + configuration: + + :: + + - UrlMap.defaultCustomErrorResponsePolicy is configured + with policies for 5xx and 4xx errors + - A RouteRule for /coming_soon/ is configured for the + error code 404. + + If the request is for www.myotherdomain.com and a404 is + encountered, the policy + underUrlMap.defaultCustomErrorResponsePolicy takes effect. + If a404 response is encountered for the + requestwww.example.com/current_events/, the pathMatcher's + policy takes effect. If however, the request + forwww.example.com/coming_soon/ encounters a 404, the policy + in RouteRule.customErrorResponsePolicy takes effect. If any + of the requests in this example encounter a 500 error code, + the policy atUrlMap.defaultCustomErrorResponsePolicy takes + effect. + + When used in conjunction + withpathMatcher.defaultRouteAction.retryPolicy, retries take + precedence. Only once all retries are exhausted, + thedefaultCustomErrorResponsePolicy is applied. While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to - the client. defaultCustomErrorResponsePolicy is supported - only for global external Application Load Balancers. + the client. + + defaultCustomErrorResponsePolicy is supported only for + global external Application Load Balancers. This field is a member of `oneof`_ ``_default_custom_error_response_policy``. default_route_action (google.cloud.compute_v1.types.HttpRouteAction): @@ -87501,41 +100601,56 @@ class PathMatcher(proto.Message): balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected - backend. Only one of defaultUrlRedirect, - defaultService or - defaultRouteAction.weightedBackendService can be - set. URL maps for classic Application Load - Balancers only support the urlRewrite action - within a path matcher's defaultRouteAction. + backend. + + Only one of defaultUrlRedirect, defaultService + or defaultRouteAction.weightedBackendService can + be set. + + URL maps for classic Application Load Balancers + only support the urlRewrite action within a path + matcher'sdefaultRouteAction. This field is a member of `oneof`_ ``_default_route_action``. default_service (str): The full or partial URL to the BackendService resource. This - URL is used if none of the pathRules or routeRules defined - by this PathMatcher are matched. For example, the following - are all valid URLs to a BackendService resource: - - https://www.googleapis.com/compute/v1/projects/project - /global/backendServices/backendService - - compute/v1/projects/project/global/backendServices/backendService - - global/backendServices/backendService If - defaultRouteAction is also specified, advanced routing + URL is used if none of the pathRules orrouteRules defined by + this PathMatcher are matched. For example, the following are + all valid URLs to a BackendService resource: + + :: + + - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService + - compute/v1/projects/project/global/backendServices/backendService + - global/backendServices/backendService + + If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending - the request to the backend. Only one of defaultUrlRedirect, - defaultService or defaultRouteAction.weightedBackendService - can be set. Authorization requires one or more of the - following Google IAM permissions on the specified resource - default_service: - compute.backendBuckets.use - - compute.backendServices.use + the request to the backend. + + Only one of defaultUrlRedirect, defaultService or + defaultRouteAction.weightedBackendService can be set. + + Authorization requires one or more of the following Google + IAM permissions on the specified resource default_service: + + :: + + - compute.backendBuckets.use + - compute.backendServices.use This field is a member of `oneof`_ ``_default_service``. default_url_redirect (google.cloud.compute_v1.types.HttpRedirectAction): - When none of the specified pathRules or - routeRules match, the request is redirected to a - URL specified by defaultUrlRedirect. Only one of - defaultUrlRedirect, defaultService or - defaultRouteAction.weightedBackendService can be - set. Not supported when the URL map is bound to - a target gRPC proxy. + When none of the specified pathRules + orrouteRules match, the request is redirected to + a URL specified by defaultUrlRedirect. + + Only one of defaultUrlRedirect, defaultService + or defaultRouteAction.weightedBackendService can + be set. + + Not supported when the URL map is bound to a + target gRPC proxy. This field is a member of `oneof`_ ``_default_url_redirect``. description (str): @@ -87547,40 +100662,50 @@ class PathMatcher(proto.Message): header_action (google.cloud.compute_v1.types.HttpHeaderAction): Specifies changes to request and response headers that need to take effect for the - selected backend service. HeaderAction specified - here are applied after the matching - HttpRouteRule HeaderAction and before the - HeaderAction in the UrlMap HeaderAction is not - supported for load balancers that have their - loadBalancingScheme set to EXTERNAL. Not - supported when the URL map is bound to a target - gRPC proxy that has validateForProxyless field - set to true. + selected backend service. + + HeaderAction specified here are applied after + the matchingHttpRouteRule HeaderAction and + before theHeaderAction in the UrlMap + + HeaderAction is not supported for load balancers + that have + their loadBalancingScheme set to EXTERNAL. + + Not supported when the URL map is bound to a + target gRPC proxy that has validateForProxyless + field set to true. This field is a member of `oneof`_ ``_header_action``. name (str): The name to which this PathMatcher is - referred by the HostRule. + referred by theHostRule. This field is a member of `oneof`_ ``_name``. path_rules (MutableSequence[google.cloud.compute_v1.types.PathRule]): The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that's - required. The order by which path rules are specified does - not matter. Matches are always done on the - longest-path-first basis. For example: a pathRule with a - path /a/b/c/\* will match before /a/b/\* irrespective of the - order in which those paths appear in this list. Within a - given pathMatcher, only one of pathRules or routeRules must - be set. + required. A path rule can only include a wildcard character + (\*) after a forward slash character ("/"). + + The order by which path rules are specified does not matter. + Matches are always done on the longest-path-first basis. + + For example: a pathRule with a path /a/b/c/\* will match + before /a/b/\* irrespective of the order in which those + paths appear in this list. + + Within a given pathMatcher, only one ofpathRules or + routeRules must be set. route_rules (MutableSequence[google.cloud.compute_v1.types.HttpRouteRule]): The list of HTTP route rules. Use this list - instead of pathRules when advanced route - matching and routing actions are desired. - routeRules are evaluated in order of priority, - from the lowest to highest number. Within a - given pathMatcher, you can set only one of - pathRules or routeRules. + instead ofpathRules when advanced route matching + and routing actions are desired. routeRules are + evaluated in order of priority, from the lowest + to highest number. + + Within a given pathMatcher, you can set only one + ofpathRules or routeRules. """ default_custom_error_response_policy: "CustomErrorResponsePolicy" = proto.Field( @@ -87636,7 +100761,7 @@ class PathMatcher(proto.Message): class PathRule(proto.Message): r"""A path-matching rule for a URL. If matched, will use the - specified BackendService to handle the traffic arriving at this + specifiedBackendService to handle the traffic arriving at this URL. @@ -87645,29 +100770,41 @@ class PathRule(proto.Message): Attributes: custom_error_response_policy (google.cloud.compute_v1.types.CustomErrorResponsePolicy): customErrorResponsePolicy specifies how the Load Balancer - returns error responses when BackendServiceor BackendBucket - responds with an error. If a policy for an error code is not - configured for the PathRule, a policy for the error code - configured in pathMatcher.defaultCustomErrorResponsePolicy - is applied. If one is not specified in - pathMatcher.defaultCustomErrorResponsePolicy, the policy + returns error responses when BackendServiceorBackendBucket + responds with an error. + + If a policy for an error code is not configured for the + PathRule, a policy for the error code configured + inpathMatcher.defaultCustomErrorResponsePolicy is applied. + If one is not specified + inpathMatcher.defaultCustomErrorResponsePolicy, the policy configured in UrlMap.defaultCustomErrorResponsePolicy takes - effect. For example, consider a UrlMap with the following - configuration: - UrlMap.defaultCustomErrorResponsePolicy are - configured with policies for 5xx and 4xx errors - A PathRule - for /coming_soon/ is configured for the error code 404. If - the request is for www.myotherdomain.com and a 404 is - encountered, the policy under - UrlMap.defaultCustomErrorResponsePolicy takes effect. If a - 404 response is encountered for the request - www.example.com/current_events/, the pathMatcher's policy - takes effect. If however, the request for - www.example.com/coming_soon/ encounters a 404, the policy in - PathRule.customErrorResponsePolicy takes effect. If any of - the requests in this example encounter a 500 error code, the - policy at UrlMap.defaultCustomErrorResponsePolicy takes - effect. customErrorResponsePolicy is supported only for - global external Application Load Balancers. + effect. + + For example, consider a UrlMap with the following + configuration: + + :: + + - UrlMap.defaultCustomErrorResponsePolicy are configured + with policies for 5xx and 4xx errors + - A PathRule for /coming_soon/ is configured for the error + code 404. + + If the request is for www.myotherdomain.com and a404 is + encountered, the policy + underUrlMap.defaultCustomErrorResponsePolicy takes effect. + If a404 response is encountered for the + requestwww.example.com/current_events/, the pathMatcher's + policy takes effect. If however, the request + forwww.example.com/coming_soon/ encounters a 404, the policy + in PathRule.customErrorResponsePolicy takes effect. If any + of the requests in this example encounter a 500 error code, + the policy atUrlMap.defaultCustomErrorResponsePolicy takes + effect. + + customErrorResponsePolicy is supported only for global + external Application Load Balancers. This field is a member of `oneof`_ ``_custom_error_response_policy``. paths (MutableSequence[str]): @@ -87681,11 +100818,14 @@ class PathRule(proto.Message): balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected - backend. Only one of urlRedirect, service or - routeAction.weightedBackendService can be set. + backend. + + Only one of urlRedirect, service + orrouteAction.weightedBackendService can be set. + URL maps for classic Application Load Balancers only support the urlRewrite action within a path - rule's routeAction. + rule'srouteAction. This field is a member of `oneof`_ ``_route_action``. service (str): @@ -87694,16 +100834,19 @@ class PathRule(proto.Message): this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request - to the backend. Only one of urlRedirect, service - or routeAction.weightedBackendService can be - set. + to the backend. + + Only one of urlRedirect, service + orrouteAction.weightedBackendService can be set. This field is a member of `oneof`_ ``_service``. url_redirect (google.cloud.compute_v1.types.HttpRedirectAction): When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. - Only one of urlRedirect, service or - routeAction.weightedBackendService can be set. + + Only one of urlRedirect, service + orrouteAction.weightedBackendService can be set. + Not supported when the URL map is bound to a target gRPC proxy. @@ -87794,7 +100937,7 @@ class Status(proto.Enum): The per-instance configuration is being applied to the instance, but is not yet effective, possibly waiting for the instance to, - for example, REFRESH. + for example,REFRESH. DELETING (528602024): The per-instance configuration deletion is being applied on the instance, possibly waiting @@ -87862,17 +101005,21 @@ class PerformMaintenanceInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -87917,17 +101064,21 @@ class PerformMaintenanceNodeGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -87973,25 +101124,31 @@ class PerformMaintenanceReservationBlockRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. reservation (str): - The name of the reservation. Name should - conform to RFC1035 or be a resource ID. + The name of the reservation. + Name should conform to RFC1035 or be a resource + ID. reservation_block (str): - The name of the reservation block. Name - should conform to RFC1035 or be a resource ID. + The name of the reservation block. + Name should conform to RFC1035 or be a resource + ID. reservations_blocks_perform_maintenance_request_resource (google.cloud.compute_v1.types.ReservationsBlocksPerformMaintenanceRequest): The body resource for this request zone (str): @@ -88042,22 +101199,27 @@ class PerformMaintenanceReservationRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. reservation (str): - The name of the reservation. Name should - conform to RFC1035 or be a resource ID. + The name of the reservation. + Name should conform to RFC1035 or be a resource + ID. reservations_perform_maintenance_request_resource (google.cloud.compute_v1.types.ReservationsPerformMaintenanceRequest): The body resource for this request zone (str): @@ -88109,22 +101271,27 @@ class PerformMaintenanceReservationSubBlockRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. reservation_sub_block (str): - The name of the reservation subBlock. Name - should conform to RFC1035 or be a resource ID. + The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource + ID. zone (str): Name of the zone for this request. Zone name should conform to RFC1035. @@ -88155,23 +101322,75 @@ class PerformMaintenanceReservationSubBlockRequest(proto.Message): class Policy(proto.Message): r"""An Identity and Access Management (IAM) policy, which specifies - access controls for Google Cloud resources. A ``Policy`` is a - collection of ``bindings``. A ``binding`` binds one or more - ``members``, or principals, to a single ``role``. Principals can be - user accounts, service accounts, Google groups, and domains (such as - G Suite). A ``role`` is a named list of permissions; each ``role`` - can be an IAM predefined role or a user-created custom role. For - some types of Google Cloud resources, a ``binding`` can also specify - a ``condition``, which is a logical expression that allows access to - a resource only if the expression evaluates to ``true``. A condition - can add constraints based on attributes of the request, the - resource, or both. To learn which resources support conditions in - their IAM policies, see the `IAM + access controls for Google Cloud resources. + + A ``Policy`` is a collection of ``bindings``. A ``binding`` binds + one or more ``members``, or principals, to a single ``role``. + Principals can be user accounts, service accounts, Google groups, + and domains (such as G Suite). A ``role`` is a named list of + permissions; each ``role`` can be an IAM predefined role or a + user-created custom role. + + For some types of Google Cloud resources, a ``binding`` can also + specify a ``condition``, which is a logical expression that allows + access to a resource only if the expression evaluates to ``true``. A + condition can add constraints based on attributes of the request, + the resource, or both. To learn which resources support conditions + in their IAM policies, see the `IAM documentation `__. + **JSON example:** - ``{ "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`` + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": [ + "user:eve@example.com" + ], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", + } + } + ], + "etag": "BwWWja0YfJA=", + "version": 3 + } + **YAML example:** - ``bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`` + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + etag: BwWWja0YfJA= + version: 3 + For a description of IAM and its features, see the `IAM documentation `__. @@ -88186,8 +101405,9 @@ class Policy(proto.Message): Associates a list of ``members``, or principals, with a ``role``. Optionally, may specify a ``condition`` that determines how and when the ``bindings`` are applied. Each - of the ``bindings`` must contain at least one principal. The - ``bindings`` in a ``Policy`` can refer to up to 1,500 + of the ``bindings`` must contain at least one principal. + + The ``bindings`` in a ``Policy`` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the ``bindings`` grant 50 different @@ -88204,6 +101424,7 @@ class Policy(proto.Message): ``getIamPolicy``, and systems are expected to put that etag in the request to ``setIamPolicy`` to ensure that their change will be applied to the same version of the policy. + **Important:** If you use IAM Conditions, you must include the ``etag`` field whenever you call ``setIamPolicy``. If you omit this field, then IAM allows you to overwrite a @@ -88215,25 +101436,33 @@ class Policy(proto.Message): This field is a member of `oneof`_ ``_iam_owned``. version (int): - Specifies the format of the policy. Valid values are ``0``, - ``1``, and ``3``. Requests that specify an invalid value are - rejected. Any operation that affects conditional role - bindings must specify version ``3``. This requirement - applies to the following operations: \* Getting a policy - that includes a conditional role binding \* Adding a - conditional role binding to a policy \* Changing a - conditional role binding in a policy \* Removing any role - binding, with or without a condition, from a policy that - includes conditions **Important:** If you use IAM - Conditions, you must include the ``etag`` field whenever you - call ``setIamPolicy``. If you omit this field, then IAM - allows you to overwrite a version ``3`` policy with a - version ``1`` policy, and all of the conditions in the - version ``3`` policy are lost. If a policy does not include - any conditions, operations on that policy may specify any - valid version or leave the field unset. To learn which - resources support conditions in their IAM policies, see the - `IAM + Specifies the format of the policy. + + Valid values are ``0``, ``1``, and ``3``. Requests that + specify an invalid value are rejected. + + Any operation that affects conditional role bindings must + specify version ``3``. This requirement applies to the + following operations: + + - Getting a policy that includes a conditional role binding + - Adding a conditional role binding to a policy + - Changing a conditional role binding in a policy + - Removing any role binding, with or without a condition, + from a policy that includes conditions + + **Important:** If you use IAM Conditions, you must include + the ``etag`` field whenever you call ``setIamPolicy``. If + you omit this field, then IAM allows you to overwrite a + version ``3`` policy with a version ``1`` policy, and all of + the conditions in the version ``3`` policy are lost. + + If a policy does not include any conditions, operations on + that policy may specify any valid version or leave the field + unset. + + To learn which resources support conditions in their IAM + policies, see the `IAM documentation `__. This field is a member of `oneof`_ ``_version``. @@ -88348,8 +101577,8 @@ class PreservedStatePreservedDisk(proto.Message): This field is a member of `oneof`_ ``_auto_delete``. mode (str): - The mode in which to attach this disk, either READ_WRITE or - READ_ONLY. If not specified, the default is to attach the + The mode in which to attach this disk, either READ_WRITE + orREAD_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values. @@ -88382,8 +101611,8 @@ class AutoDelete(proto.Enum): ON_PERMANENT_INSTANCE_DELETION = 95727719 class Mode(proto.Enum): - r"""The mode in which to attach this disk, either READ_WRITE or - READ_ONLY. If not specified, the default is to attach the disk in + r"""The mode in which to attach this disk, either READ_WRITE + orREAD_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Values: @@ -88395,8 +101624,8 @@ class Mode(proto.Enum): can use a disk in READ_ONLY mode at a time. READ_WRITE (173607894): *[Default]* Attaches this disk in READ_WRITE mode. Only one - VM instance at a time can be attached to a disk in - READ_WRITE mode. + VM instance at a time can be attached to a disk inREAD_WRITE + mode. """ UNDEFINED_MODE = 0 READ_ONLY = 91950261 @@ -88432,8 +101661,9 @@ class PreservedStatePreservedNetworkIp(proto.Message): configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group - is deleted. Check the AutoDelete enum for the - list of possible values. + is deleted. + Check the AutoDelete enum for the list of + possible values. This field is a member of `oneof`_ ``_auto_delete``. ip_address (google.cloud.compute_v1.types.PreservedStatePreservedNetworkIpIpAddress): @@ -88444,10 +101674,10 @@ class PreservedStatePreservedNetworkIp(proto.Message): class AutoDelete(proto.Enum): r"""These stateful IPs will never be released during autohealing, - update or VM instance recreate operations. This flag is used to - configure if the IP reservation should be deleted after it is no - longer used by the group, e.g. when the given instance or the - whole group is deleted. + update or VM instance recreate operations. + This flag is used to configure if the IP reservation should be + deleted after it is no longer used by the group, e.g. when the + given instance or the whole group is deleted. Values: UNDEFINED_AUTO_DELETE (0): @@ -88518,20 +101748,21 @@ class PreviewFeature(proto.Message): This field is a member of `oneof`_ ``_activation_status``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): - [Output Only] Description of the feature. + Output only. [Output Only] Description of the feature. This field is a member of `oneof`_ ``_description``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output only] The type of the feature. Always + Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview features. This field is a member of `oneof`_ ``_kind``. @@ -88544,11 +101775,12 @@ class PreviewFeature(proto.Message): This field is a member of `oneof`_ ``_rollout_operation``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. status (google.cloud.compute_v1.types.PreviewFeatureStatus): - [Output only] Status of the feature. + Output only. [Output only] Status of the feature. This field is a member of `oneof`_ ``_status``. """ @@ -88640,19 +101872,20 @@ class PreviewFeatureList(proto.Message): next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. end_interface: - MixerListResponseWithEtagBuilder + Output only. [Output Only] Unreachable resources. + end_interface: MixerListResponseWithEtagBuilder warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -88728,9 +101961,12 @@ class PreviewFeatureRolloutOperationRolloutInput(proto.Message): Attributes: name (str): - The name of the rollout plan Ex. + The name of the rollout plan + Ex. organizations//locations/global/rolloutPlans/ - Ex. folders//locations/global/rolloutPlans/ Ex. + Ex. + folders//locations/global/rolloutPlans/ + Ex. projects//locations/global/rolloutPlans/. This field is a member of `oneof`_ ``_name``. @@ -88780,12 +102016,12 @@ class PreviewFeatureStatus(proto.Message): Attributes: description (str): - [Output Only] The description of the feature. + Output only. [Output Only] The description of the feature. This field is a member of `oneof`_ ``_description``. help_link (str): - [Output Only] Link to the public documentation for the - feature. + Output only. [Output Only] Link to the public documentation + for the feature. This field is a member of `oneof`_ ``_help_link``. release_status (google.cloud.compute_v1.types.PreviewFeatureStatusReleaseStatus): @@ -88818,8 +102054,8 @@ class PreviewFeatureStatusReleaseStatus(proto.Message): Attributes: stage (str): - [Output Only] The stage of the feature. Check the Stage enum - for the list of possible values. + Output only. [Output Only] The stage of the feature. Check + the Stage enum for the list of possible values. This field is a member of `oneof`_ ``_stage``. update_date (google.cloud.compute_v1.types.Date): @@ -88830,7 +102066,7 @@ class PreviewFeatureStatusReleaseStatus(proto.Message): """ class Stage(proto.Enum): - r"""[Output Only] The stage of the feature. + r"""Output only. [Output Only] The stage of the feature. Values: UNDEFINED_STAGE (0): @@ -88899,20 +102135,24 @@ class PreviewRouterRequest(proto.Message): class Project(proto.Message): - r"""Represents a Project resource. A project is used to organize - resources in a Google Cloud Platform environment. For more - information, read about the Resource Hierarchy. + r"""Represents a Project resource. + + A project is used to organize resources in a Google Cloud + Platform environment. For more information, read about the + Resource Hierarchy. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: cloud_armor_tier (str): - [Output Only] The Cloud Armor tier for this project. It can - be one of the following values: CA_STANDARD, - CA_ENTERPRISE_PAYGO. If this field is not specified, it is - assumed to be CA_STANDARD. Check the CloudArmorTier enum for - the list of possible values. + Output only. [Output Only] The Cloud Armor tier for this + project. It can be one of the following values: + CA_STANDARD,CA_ENTERPRISE_PAYGO. + + If this field is not specified, it is assumed to + beCA_STANDARD. Check the CloudArmorTier enum for the list of + possible values. This field is a member of `oneof`_ ``_cloud_armor_tier``. common_instance_metadata (google.cloud.compute_v1.types.Metadata): @@ -88922,16 +102162,17 @@ class Project(proto.Message): This field is a member of `oneof`_ ``_common_instance_metadata``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + [Output Only] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. default_network_tier (str): This signifies the default network tier used for configuring resources of the project and can - only take the following values: PREMIUM, + only take the following values:PREMIUM, STANDARD. Initially the default network tier is - PREMIUM. Check the DefaultNetworkTier enum for - the list of possible values. + PREMIUM. + Check the DefaultNetworkTier enum for the list + of possible values. This field is a member of `oneof`_ ``_default_network_tier``. default_service_account (str): @@ -88955,8 +102196,8 @@ class Project(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always compute#project - for projects. + Output only. [Output Only] Type of the resource. Always + compute#project for projects. This field is a member of `oneof`_ ``_kind``. name (str): @@ -88978,9 +102219,9 @@ class Project(proto.Message): This field is a member of `oneof`_ ``_usage_export_location``. vm_dns_setting (str): - [Output Only] Default internal DNS setting used by VMs - running in this project. Check the VmDnsSetting enum for the - list of possible values. + Output only. [Output Only] Default internal DNS setting used + by VMs running in this project. Check the VmDnsSetting enum + for the list of possible values. This field is a member of `oneof`_ ``_vm_dns_setting``. xpn_project_status (str): @@ -88994,9 +102235,10 @@ class Project(proto.Message): """ class CloudArmorTier(proto.Enum): - r"""[Output Only] The Cloud Armor tier for this project. It can be one - of the following values: CA_STANDARD, CA_ENTERPRISE_PAYGO. If this - field is not specified, it is assumed to be CA_STANDARD. + r"""Output only. [Output Only] The Cloud Armor tier for this project. It + can be one of the following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. + + If this field is not specified, it is assumed to beCA_STANDARD. Values: UNDEFINED_CLOUD_ARMOR_TIER (0): @@ -89016,8 +102258,8 @@ class CloudArmorTier(proto.Enum): class DefaultNetworkTier(proto.Enum): r"""This signifies the default network tier used for configuring - resources of the project and can only take the following values: - PREMIUM, STANDARD. Initially the default network tier is + resources of the project and can only take the following + values:PREMIUM, STANDARD. Initially the default network tier is PREMIUM. Values: @@ -89043,8 +102285,8 @@ class DefaultNetworkTier(proto.Enum): STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 class VmDnsSetting(proto.Enum): - r"""[Output Only] Default internal DNS setting used by VMs running in - this project. + r"""Output only. [Output Only] Default internal DNS setting used by VMs + running in this project. Values: UNDEFINED_VM_DNS_SETTING (0): @@ -89208,18 +102450,18 @@ class ProjectsGetXpnResources(proto.Message): Attributes: kind (str): - [Output Only] Type of resource. Always - compute#projectsGetXpnResources for lists of service + Output only. [Output Only] Type of resource. + Alwayscompute#projectsGetXpnResources for lists of service resources (a.k.a service projects) This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. resources (MutableSequence[google.cloud.compute_v1.types.XpnResourceId]): @@ -89368,12 +102610,13 @@ class PublicAdvertisedPrefix(proto.Message): Attributes: byoip_api_version (str): - [Output Only] The version of BYOIP API. Check the - ByoipApiVersion enum for the list of possible values. + Output only. [Output Only] The version of BYOIP API. Check + the ByoipApiVersion enum for the list of possible values. This field is a member of `oneof`_ ``_byoip_api_version``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -89394,16 +102637,16 @@ class PublicAdvertisedPrefix(proto.Message): ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update - the PublicAdvertisedPrefix, otherwise the - request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve a - PublicAdvertisedPrefix. + thePublicAdvertisedPrefix, otherwise the request + will fail with error 412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a PublicAdvertisedPrefix. This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] The unique identifier for the resource type. - The server generates this identifier. + Output only. [Output Only] The unique identifier for the + resource type. The server generates this identifier. This field is a member of `oneof`_ ``_id``. ip_cidr_range (str): @@ -89411,16 +102654,22 @@ class PublicAdvertisedPrefix(proto.Message): represented by this public advertised prefix. This field is a member of `oneof`_ ``_ip_cidr_range``. + ipv6_access_type (str): + The internet access type for IPv6 Public + Advertised Prefixes. Check the Ipv6AccessType + enum for the list of possible values. + + This field is a member of `oneof`_ ``_ipv6_access_type``. kind (str): - [Output Only] Type of the resource. Always - compute#publicAdvertisedPrefix for public advertised + Output only. [Output Only] Type of the resource. + Alwayscompute#publicAdvertisedPrefix for public advertised prefixes. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -89430,21 +102679,27 @@ class PublicAdvertisedPrefix(proto.Message): This field is a member of `oneof`_ ``_name``. pdp_scope (str): Specifies how child public delegated prefix will be scoped. - It could be one of following values: - ``REGIONAL``: The - public delegated prefix is regional only. The provisioning - will take a few minutes. - ``GLOBAL``: The public delegated - prefix is global only. The provisioning will take ~4 weeks. - - ``GLOBAL_AND_REGIONAL`` [output only]: The public - delegated prefixes is BYOIP V1 legacy prefix. This is output - only value and no longer supported in BYOIP V2. Check the - PdpScope enum for the list of possible values. + It could be one of following values: + + :: + + - `REGIONAL`: The public delegated prefix is regional only. The + provisioning will take a few minutes. + - `GLOBAL`: The public delegated prefix is global only. The + provisioning will take ~4 weeks. + - `GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is + BYOIP V1 legacy prefix. This is output only value and no longer + supported in BYOIP V2. + + Check the PdpScope enum for the list of possible values. This field is a member of `oneof`_ ``_pdp_scope``. public_delegated_prefixs (MutableSequence[google.cloud.compute_v1.types.PublicAdvertisedPrefixPublicDelegatedPrefix]): - [Output Only] The list of public delegated prefixes that - exist for this public advertised prefix. + Output only. [Output Only] The list of public delegated + prefixes that exist for this public advertised prefix. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. shared_secret (str): @@ -89454,21 +102709,26 @@ class PublicAdvertisedPrefix(proto.Message): This field is a member of `oneof`_ ``_shared_secret``. status (str): The status of the public advertised prefix. Possible values - include: - ``INITIAL``: RPKI validation is complete. - - ``PTR_CONFIGURED``: User has configured the PTR. - - ``VALIDATED``: Reverse DNS lookup is successful. - - ``REVERSE_DNS_LOOKUP_FAILED``: Reverse DNS lookup failed. - - ``PREFIX_CONFIGURATION_IN_PROGRESS``: The prefix is being - configured. - ``PREFIX_CONFIGURATION_COMPLETE``: The prefix - is fully configured. - ``PREFIX_REMOVAL_IN_PROGRESS``: The - prefix is being removed. Check the Status enum for the list - of possible values. + include: + + :: + + - `INITIAL`: RPKI validation is complete. + - `PTR_CONFIGURED`: User has configured the PTR. + - `VALIDATED`: Reverse DNS lookup is successful. + - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. + - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being + configured. + - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. + - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. + + Check the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. """ class ByoipApiVersion(proto.Enum): - r"""[Output Only] The version of BYOIP API. + r"""Output only. [Output Only] The version of BYOIP API. Values: UNDEFINED_BYOIP_API_VERSION (0): @@ -89491,14 +102751,41 @@ class ByoipApiVersion(proto.Enum): V1 = 2715 V2 = 2716 + class Ipv6AccessType(proto.Enum): + r"""The internet access type for IPv6 Public Advertised Prefixes. + + Values: + UNDEFINED_IPV6_ACCESS_TYPE (0): + A value indicating that the enum field is not + set. + EXTERNAL (35607499): + Default IPv6 access type. The prefix will be + announced to the internet. All children Public + Delegated Prefixes will have IPv6 access type as + EXTERNAL. + INTERNAL (279295677): + The prefix will not be announced to the + internet. Prefix will be used privately within + Cloud. All children Public Delegated Prefixes + will have IPv6 access type as INTERNAL. + """ + UNDEFINED_IPV6_ACCESS_TYPE = 0 + EXTERNAL = 35607499 + INTERNAL = 279295677 + class PdpScope(proto.Enum): r"""Specifies how child public delegated prefix will be scoped. It could - be one of following values: - ``REGIONAL``: The public delegated - prefix is regional only. The provisioning will take a few minutes. - - ``GLOBAL``: The public delegated prefix is global only. The - provisioning will take ~4 weeks. - ``GLOBAL_AND_REGIONAL`` [output - only]: The public delegated prefixes is BYOIP V1 legacy prefix. This - is output only value and no longer supported in BYOIP V2. + be one of following values: + + :: + + - `REGIONAL`: The public delegated prefix is regional only. The + provisioning will take a few minutes. + - `GLOBAL`: The public delegated prefix is global only. The + provisioning will take ~4 weeks. + - `GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is + BYOIP V1 legacy prefix. This is output only value and no longer + supported in BYOIP V2. Values: UNDEFINED_PDP_SCOPE (0): @@ -89522,13 +102809,17 @@ class PdpScope(proto.Enum): class Status(proto.Enum): r"""The status of the public advertised prefix. Possible values include: - - ``INITIAL``: RPKI validation is complete. - ``PTR_CONFIGURED``: - User has configured the PTR. - ``VALIDATED``: Reverse DNS lookup is - successful. - ``REVERSE_DNS_LOOKUP_FAILED``: Reverse DNS lookup - failed. - ``PREFIX_CONFIGURATION_IN_PROGRESS``: The prefix is being - configured. - ``PREFIX_CONFIGURATION_COMPLETE``: The prefix is fully - configured. - ``PREFIX_REMOVAL_IN_PROGRESS``: The prefix is being - removed. + + :: + + - `INITIAL`: RPKI validation is complete. + - `PTR_CONFIGURED`: User has configured the PTR. + - `VALIDATED`: Reverse DNS lookup is successful. + - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. + - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being + configured. + - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. + - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. Values: UNDEFINED_STATUS (0): @@ -89600,6 +102891,11 @@ class Status(proto.Enum): number=98117322, optional=True, ) + ipv6_access_type: str = proto.Field( + proto.STRING, + number=504658653, + optional=True, + ) kind: str = proto.Field( proto.STRING, number=3292052, @@ -89653,15 +102949,15 @@ class PublicAdvertisedPrefixList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.PublicAdvertisedPrefix]): A list of PublicAdvertisedPrefix resources. kind (str): - [Output Only] Type of the resource. Always - compute#publicAdvertisedPrefix for public advertised + Output only. [Output Only] Type of the resource. + Alwayscompute#publicAdvertisedPrefix for public advertised prefixes. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -89743,10 +103039,11 @@ class PublicAdvertisedPrefixPublicDelegatedPrefix(proto.Message): This field is a member of `oneof`_ ``_region``. status (str): The status of the public delegated prefix. - Possible values are: INITIALIZING: The public + Possible values are: INITIALIZING: The public delegated prefix is being initialized and - addresses cannot be created yet. ANNOUNCED: The - public delegated prefix is active. + addresses cannot be created yet. + ANNOUNCED: The public delegated prefix is + active. This field is a member of `oneof`_ ``_status``. """ @@ -89799,12 +103096,13 @@ class PublicDelegatedPrefix(proto.Message): This field is a member of `oneof`_ ``_allocatable_prefix_length``. byoip_api_version (str): - [Output Only] The version of BYOIP API. Check the - ByoipApiVersion enum for the list of possible values. + Output only. [Output Only] The version of BYOIP API. Check + the ByoipApiVersion enum for the list of possible values. This field is a member of `oneof`_ ``_byoip_api_version``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -89813,22 +103111,28 @@ class PublicDelegatedPrefix(proto.Message): resource. This field is a member of `oneof`_ ``_description``. + enable_enhanced_ipv4_allocation (bool): + Output only. [Output Only] Whether this PDP supports + enhanced IPv4 allocations. Applicable for IPv4 PDPs only. + + This field is a member of `oneof`_ ``_enable_enhanced_ipv4_allocation``. fingerprint (str): Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicDelegatedPrefix. An up-to-date fingerprint - must be provided in order to update the - PublicDelegatedPrefix, otherwise the request - will fail with error 412 conditionNotMet. To see - the latest fingerprint, make a get() request to - retrieve a PublicDelegatedPrefix. + must be provided in order to update + thePublicDelegatedPrefix, otherwise the request + will fail with error 412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a PublicDelegatedPrefix. This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] The unique identifier for the resource type. - The server generates this identifier. + Output only. [Output Only] The unique identifier for the + resource type. The server generates this identifier. This field is a member of `oneof`_ ``_id``. ip_cidr_range (str): @@ -89836,13 +103140,21 @@ class PublicDelegatedPrefix(proto.Message): represented by this public delegated prefix. This field is a member of `oneof`_ ``_ip_cidr_range``. + ipv6_access_type (str): + Output only. [Output Only] The internet access type for IPv6 + Public Delegated Prefixes. Inherited from parent prefix. + Check the Ipv6AccessType enum for the list of possible + values. + + This field is a member of `oneof`_ ``_ipv6_access_type``. is_live_migration (bool): If true, the prefix will be live migrated. This field is a member of `oneof`_ ``_is_live_migration``. kind (str): - [Output Only] Type of the resource. Always - compute#publicDelegatedPrefix for public delegated prefixes. + Output only. [Output Only] Type of the resource. + Alwayscompute#publicDelegatedPrefix for public delegated + prefixes. This field is a member of `oneof`_ ``_kind``. mode (str): @@ -89854,7 +103166,7 @@ class PublicDelegatedPrefix(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -89871,33 +103183,40 @@ class PublicDelegatedPrefix(proto.Message): The list of sub public delegated prefixes that exist for this public delegated prefix. region (str): - [Output Only] URL of the region where the public delegated - prefix resides. This field applies only to the region - resource. You must specify this field as part of the HTTP - request URL. It is not settable as a field in the request - body. + Output only. [Output Only] URL of the region where the + public delegated prefix resides. This field applies only to + the region resource. You must specify this field as part of + the HTTP request URL. It is not settable as a field in the + request body. This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. status (str): [Output Only] The status of the public delegated prefix, - which can be one of following values: - ``INITIALIZING`` The - public delegated prefix is being initialized and addresses - cannot be created yet. - ``READY_TO_ANNOUNCE`` The public - delegated prefix is a live migration prefix and is active. - - ``ANNOUNCED`` The public delegated prefix is announced and - ready to use. - ``DELETING`` The public delegated prefix is - being deprovsioned. Check the Status enum for the list of - possible values. + which can be one of following values: + + :: + + - `INITIALIZING` The public delegated prefix is being initialized and + addresses cannot be created yet. + - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration + prefix and is active. + - `ANNOUNCED` The public delegated prefix is announced and ready to + use. + - `DELETING` The public delegated prefix is being deprovsioned. + - `ACTIVE` The public delegated prefix is ready to use. + + Check the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. """ class ByoipApiVersion(proto.Enum): - r"""[Output Only] The version of BYOIP API. + r"""Output only. [Output Only] The version of BYOIP API. Values: UNDEFINED_BYOIP_API_VERSION (0): @@ -89917,6 +103236,30 @@ class ByoipApiVersion(proto.Enum): V1 = 2715 V2 = 2716 + class Ipv6AccessType(proto.Enum): + r"""Output only. [Output Only] The internet access type for IPv6 Public + Delegated Prefixes. Inherited from parent prefix. + + Values: + UNDEFINED_IPV6_ACCESS_TYPE (0): + A value indicating that the enum field is not + set. + EXTERNAL (35607499): + The parent public advertised prefix will be + announced to the internet. All children public + delegated prefixes will have IPv6 access type as + EXTERNAL. + INTERNAL (279295677): + The parent public advertised prefix will not + be announced to the internet. Prefix will be + used privately within Cloud. All children public + delegated prefixes will have IPv6 access type as + INTERNAL. + """ + UNDEFINED_IPV6_ACCESS_TYPE = 0 + EXTERNAL = 35607499 + INTERNAL = 279295677 + class Mode(proto.Enum): r"""The public delegated prefix mode for IPv6 only. @@ -89931,30 +103274,50 @@ class Mode(proto.Enum): EXTERNAL_IPV6_FORWARDING_RULE_CREATION (398684356): The public delegated prefix is used for creating forwarding rules only. Such prefixes - cannot set publicDelegatedSubPrefixes. + cannot set publicDelegatedSubPrefixes. Parent + public delegated prefix must have IPv6 access + type as EXTERNAL. EXTERNAL_IPV6_SUBNETWORK_CREATION (61198284): The public delegated prefix is used for creating dual-mode subnetworks only. Such prefixes cannot set publicDelegatedSubPrefixes. + Parent public delegated prefix must have IPv6 + access type as EXTERNAL. + INTERNAL_IPV6_SUBNETWORK_CREATION (153239834): + The public delegated prefix is used for + creating dual stack or IPv6-only subnetwork with + internal access only. Such prefixes cannot set + publicDelegatedSubPrefixes and + allocatablePrefixLength. Parent public delegated + prefix must have IPv6 access type as INTERNAL. """ UNDEFINED_MODE = 0 DELEGATION = 264149288 EXTERNAL_IPV6_FORWARDING_RULE_CREATION = 398684356 EXTERNAL_IPV6_SUBNETWORK_CREATION = 61198284 + INTERNAL_IPV6_SUBNETWORK_CREATION = 153239834 class Status(proto.Enum): r"""[Output Only] The status of the public delegated prefix, which can - be one of following values: - ``INITIALIZING`` The public delegated - prefix is being initialized and addresses cannot be created yet. - - ``READY_TO_ANNOUNCE`` The public delegated prefix is a live - migration prefix and is active. - ``ANNOUNCED`` The public delegated - prefix is announced and ready to use. - ``DELETING`` The public - delegated prefix is being deprovsioned. + be one of following values: + + :: + + - `INITIALIZING` The public delegated prefix is being initialized and + addresses cannot be created yet. + - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration + prefix and is active. + - `ANNOUNCED` The public delegated prefix is announced and ready to + use. + - `DELETING` The public delegated prefix is being deprovsioned. + - `ACTIVE` The public delegated prefix is ready to use. Values: UNDEFINED_STATUS (0): A value indicating that the enum field is not set. + ACTIVE (314733318): + The public delegated prefix is ready to use. ANNOUNCED (365103355): The public delegated prefix is announced and ready to use. @@ -89975,6 +103338,7 @@ class Status(proto.Enum): withdrawn but ready to be announced. """ UNDEFINED_STATUS = 0 + ACTIVE = 314733318 ANNOUNCED = 365103355 ANNOUNCED_TO_GOOGLE = 454875705 ANNOUNCED_TO_INTERNET = 177880897 @@ -90002,6 +103366,11 @@ class Status(proto.Enum): number=422937596, optional=True, ) + enable_enhanced_ipv4_allocation: bool = proto.Field( + proto.BOOL, + number=54582253, + optional=True, + ) fingerprint: str = proto.Field( proto.STRING, number=234678500, @@ -90017,6 +103386,11 @@ class Status(proto.Enum): number=98117322, optional=True, ) + ipv6_access_type: str = proto.Field( + proto.STRING, + number=504658653, + optional=True, + ) is_live_migration: bool = proto.Field( proto.BOOL, number=511823856, @@ -90081,15 +103455,15 @@ class PublicDelegatedPrefixAggregatedList(proto.Message): A list of PublicDelegatedPrefixesScopedList resources. kind (str): - [Output Only] Type of the resource. Always - compute#publicDelegatedPrefixAggregatedList for aggregated - lists of public delegated prefixes. + Output only. [Output Only] Type of the resource. + Alwayscompute#publicDelegatedPrefixAggregatedList for + aggregated lists of public delegated prefixes. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -90100,7 +103474,7 @@ class PublicDelegatedPrefixAggregatedList(proto.Message): This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -90163,15 +103537,15 @@ class PublicDelegatedPrefixList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.PublicDelegatedPrefix]): A list of PublicDelegatedPrefix resources. kind (str): - [Output Only] Type of the resource. Always - compute#publicDelegatedPrefixList for public delegated + Output only. [Output Only] Type of the resource. + Alwayscompute#publicDelegatedPrefixList for public delegated prefixes. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -90246,11 +103620,23 @@ class PublicDelegatedPrefixPublicDelegatedSubPrefix(proto.Message): resource. This field is a member of `oneof`_ ``_description``. + enable_enhanced_ipv4_allocation (bool): + Output only. [Output Only] Whether this PDP supports + enhanced IPv4 allocations. Applicable for IPv4 PDPs only. + + This field is a member of `oneof`_ ``_enable_enhanced_ipv4_allocation``. ip_cidr_range (str): The IP address range, in CIDR format, represented by this sub public delegated prefix. This field is a member of `oneof`_ ``_ip_cidr_range``. + ipv6_access_type (str): + Output only. [Output Only] The internet access type for IPv6 + Public Delegated Sub Prefixes. Inherited from parent prefix. + Check the Ipv6AccessType enum for the list of possible + values. + + This field is a member of `oneof`_ ``_ipv6_access_type``. is_address (bool): Whether the sub prefix is delegated to create Address resources in the delegatee project. @@ -90267,17 +103653,43 @@ class PublicDelegatedPrefixPublicDelegatedSubPrefix(proto.Message): This field is a member of `oneof`_ ``_name``. region (str): - [Output Only] The region of the sub public delegated prefix - if it is regional. If absent, the sub prefix is global. + Output only. [Output Only] The region of the sub public + delegated prefix if it is regional. If absent, the sub + prefix is global. This field is a member of `oneof`_ ``_region``. status (str): - [Output Only] The status of the sub public delegated prefix. - Check the Status enum for the list of possible values. + Output only. [Output Only] The status of the sub public + delegated prefix. Check the Status enum for the list of + possible values. This field is a member of `oneof`_ ``_status``. """ + class Ipv6AccessType(proto.Enum): + r"""Output only. [Output Only] The internet access type for IPv6 Public + Delegated Sub Prefixes. Inherited from parent prefix. + + Values: + UNDEFINED_IPV6_ACCESS_TYPE (0): + A value indicating that the enum field is not + set. + EXTERNAL (35607499): + The parent public advertised prefix will be + announced to the internet. All children public + delegated prefixes will have IPv6 access type as + EXTERNAL. + INTERNAL (279295677): + The parent public advertised prefix will not + be announced to the internet. Prefix will be + used privately within Cloud. All children public + delegated prefixes will have IPv6 access type as + INTERNAL. + """ + UNDEFINED_IPV6_ACCESS_TYPE = 0 + EXTERNAL = 35607499 + INTERNAL = 279295677 + class Mode(proto.Enum): r"""The PublicDelegatedSubPrefix mode for IPv6 only. @@ -90292,19 +103704,32 @@ class Mode(proto.Enum): EXTERNAL_IPV6_FORWARDING_RULE_CREATION (398684356): The public delegated prefix is used for creating forwarding rules only. Such prefixes - cannot set publicDelegatedSubPrefixes. + cannot set publicDelegatedSubPrefixes. Parent + public delegated prefix must have IPv6 access + type as EXTERNAL. EXTERNAL_IPV6_SUBNETWORK_CREATION (61198284): The public delegated prefix is used for creating dual-mode subnetworks only. Such prefixes cannot set publicDelegatedSubPrefixes. + Parent public delegated prefix must have IPv6 + access type as EXTERNAL. + INTERNAL_IPV6_SUBNETWORK_CREATION (153239834): + The public delegated prefix is used for + creating dual stack or IPv6-only subnetwork with + internal access only. Such prefixes cannot set + publicDelegatedSubPrefixes and + allocatablePrefixLength. Parent public delegated + prefix must have IPv6 access type as INTERNAL. """ UNDEFINED_MODE = 0 DELEGATION = 264149288 EXTERNAL_IPV6_FORWARDING_RULE_CREATION = 398684356 EXTERNAL_IPV6_SUBNETWORK_CREATION = 61198284 + INTERNAL_IPV6_SUBNETWORK_CREATION = 153239834 class Status(proto.Enum): - r"""[Output Only] The status of the sub public delegated prefix. + r"""Output only. [Output Only] The status of the sub public delegated + prefix. Values: UNDEFINED_STATUS (0): @@ -90334,11 +103759,21 @@ class Status(proto.Enum): number=422937596, optional=True, ) + enable_enhanced_ipv4_allocation: bool = proto.Field( + proto.BOOL, + number=54582253, + optional=True, + ) ip_cidr_range: str = proto.Field( proto.STRING, number=98117322, optional=True, ) + ipv6_access_type: str = proto.Field( + proto.STRING, + number=504658653, + optional=True, + ) is_address: bool = proto.Field( proto.BOOL, number=352617951, @@ -90960,7 +104395,7 @@ class QuotaExceededInfo(proto.Message): The map holding related quota dimensions. future_limit (float): Future quota limit being rolled out. The - limit's unit depends on the quota type or + limit's unit depends on the quota type or metric. This field is a member of `oneof`_ ``_future_limit``. @@ -91036,9 +104471,9 @@ class RolloutStatus(proto.Enum): class QuotaStatusWarning(proto.Message): - r"""[Output Only] Warning of fetching the ``quotas`` field for this - region. This field is populated only if fetching of the ``quotas`` - field fails. + r"""Output only. [Output Only] Warning of fetching the ``quotas`` field + for this region. This field is populated only if fetching of the + ``quotas`` field fails. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -91053,8 +104488,9 @@ class QuotaStatusWarning(proto.Message): This field is a member of `oneof`_ ``_code``. data (MutableSequence[google.cloud.compute_v1.types.Data]): [Output Only] Metadata about this warning in key: value - format. For example: "data": [ { "key": "scope", "value": - "zones/us-east1-d" } + format. For example: + + "data": [ { "key": "scope", "value": "zones/us-east1-d" } message (str): [Output Only] A human-readable description of the warning code. @@ -91218,8 +104654,8 @@ class RawDisk(proto.Message): Attributes: container_type (str): The format used to encode and transmit the - block device, which should be TAR. This is just - a container and transmission format and not a + block device, which should beTAR. This is just a + container and transmission format and not a runtime format. Provided by the client when the disk image is created. Check the ContainerType enum for the list of possible values. @@ -91234,20 +104670,29 @@ class RawDisk(proto.Message): source (str): The full Google Cloud Storage URL where the raw disk image archive is stored. The following are valid formats for the - URL: - - https://storage.googleapis.com/bucket_name/image_archive_name - - https://storage.googleapis.com/bucket_name/folder_name/ - image_archive_name In order to create an image, you must - provide the full or partial URL of one of the following: - - The rawDisk.source URL - The sourceDisk URL - The - sourceImage URL - The sourceSnapshot URL + URL: + + :: + + - https://storage.googleapis.com/bucket_name/image_archive_name + - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name + + In order to create an image, you must provide the full or + partial URL of one of the following: + + :: + + - The rawDisk.source URL + - The sourceDisk URL + - The sourceImage URL + - The sourceSnapshot URL This field is a member of `oneof`_ ``_source``. """ class ContainerType(proto.Enum): r"""The format used to encode and transmit the block device, - which should be TAR. This is just a container and transmission + which should beTAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created. @@ -91298,21 +104743,25 @@ class RecreateInstancesInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -91362,17 +104811,21 @@ class RecreateInstancesRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -91408,13 +104861,17 @@ class Reference(proto.Message): Attributes: kind (str): - [Output Only] Type of the resource. Always compute#reference - for references. + Output only. [Output Only] Type of the resource. Always + compute#reference for references. This field is a member of `oneof`_ ``_kind``. reference_type (str): A description of the reference type with no implied - semantics. Possible values include: 1. MEMBER_OF + semantics. Possible values include: + + :: + + 1. MEMBER_OF This field is a member of `oneof`_ ``_reference_type``. referrer (str): @@ -91452,8 +104909,10 @@ class Reference(proto.Message): class Region(proto.Message): - r"""Represents a Region resource. A region is a geographical area - where a resource is located. For more information, read Regions + r"""Represents a Region resource. + + A region is a geographical area where a resource is located. For + more information, readRegions and Zones. @@ -91461,7 +104920,7 @@ class Region(proto.Message): Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + [Output Only] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. deprecated (google.cloud.compute_v1.types.DeprecationStatus): @@ -91479,8 +104938,8 @@ class Region(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always compute#region - for regions. + Output only. [Output Only] Type of the resource. Always + compute#region for regions. This field is a member of `oneof`_ ``_kind``. name (str): @@ -91488,9 +104947,9 @@ class Region(proto.Message): This field is a member of `oneof`_ ``_name``. quota_status_warning (google.cloud.compute_v1.types.QuotaStatusWarning): - [Output Only] Warning of fetching the ``quotas`` field for - this region. This field is populated only if fetching of the - ``quotas`` field fails. + Output only. [Output Only] Warning of fetching the + ``quotas`` field for this region. This field is populated + only if fetching of the ``quotas`` field fails. This field is a member of `oneof`_ ``_quota_status_warning``. quotas (MutableSequence[google.cloud.compute_v1.types.Quota]): @@ -91500,12 +104959,12 @@ class Region(proto.Message): This field is a member of `oneof`_ ``_self_link``. status (str): - [Output Only] Status of the region, either UP or DOWN. Check + [Output Only] Status of the region, either UP orDOWN. Check the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. supports_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_supports_pzs``. zones (MutableSequence[str]): @@ -91514,7 +104973,7 @@ class Region(proto.Message): """ class Status(proto.Enum): - r"""[Output Only] Status of the region, either UP or DOWN. + r"""[Output Only] Status of the region, either UP orDOWN. Values: UNDEFINED_STATUS (0): @@ -91607,13 +105066,16 @@ class RegionAddressesMoveRequest(proto.Message): The URL of the destination address to move to. This can be a full or partial URL. For example, the following are all valid URLs to a - address: - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /addresses/address - - projects/project/regions/region/addresses/address + address: + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address + - + projects/project/regions/region/addresses/address + Note that destination project must be different - from the source project. So - /regions/region/addresses/address is not valid + from the source project. + So/regions/region/addresses/address is not valid partial url. This field is a member of `oneof`_ ``_destination_address``. @@ -91645,20 +105107,21 @@ class RegionAutoscalerList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Autoscaler]): A list of Autoscaler resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -91718,21 +105181,22 @@ class RegionDiskTypeList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.DiskType]): A list of DiskType resources. kind (str): - [Output Only] Type of resource. Always - compute#regionDiskTypeList for region disk types. + Output only. [Output Only] Type of resource. + Alwayscompute#regionDiskTypeList for region disk types. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -91837,15 +105301,26 @@ class RegionDisksStartAsyncReplicationRequest(proto.Message): The secondary disk to start asynchronous replication to. You can provide this as a partial or full URL to the resource. For - example, the following are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /disks/disk - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /disks/disk - - projects/project/zones/zone/disks/disk - - projects/project/regions/region/disks/disk - - zones/zone/disks/disk - - regions/region/disks/disk + example, the following are valid values: + + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/disks/disk + + - + projects/project/zones/zone/disks/disk + + - + projects/project/regions/region/disks/disk + + - + zones/zone/disks/disk + + - + regions/region/disks/disk This field is a member of `oneof`_ ``_async_secondary_disk``. """ @@ -91864,31 +105339,32 @@ class RegionInstanceGroupList(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.InstanceGroup]): A list of InstanceGroup resources. kind (str): - The resource type. + Output only. The resource type. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -91953,33 +105429,34 @@ class RegionInstanceGroupManagerList(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.InstanceGroupManager]): A list of InstanceGroupManager resources. kind (str): - [Output Only] The resource type, which is always - compute#instanceGroupManagerList for a list of managed - instance groups that exist in th regional scope. + Output only. [Output Only] The resource type, which is + always compute#instanceGroupManagerList for a list of + managed instance groups that exist in th regional scope. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -92085,45 +105562,67 @@ class RegionInstanceGroupManagersApplyUpdatesRequest(proto.Message): instances (MutableSequence[str]): The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial - URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. + URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. minimal_action (str): The minimal action that you want to perform - on each instance during the update: - REPLACE: - At minimum, delete the instance and create it - again. - RESTART: Stop the instance and start it - again. - REFRESH: Do not stop the instance and - limit disruption as much as possible. - NONE: Do - not disrupt the instance at all. By default, the - minimum action is NONE. If your update requires - a more disruptive action than you set with this - flag, the necessary action is performed to - execute the update. Check the MinimalAction enum - for the list of possible values. + on each instance during the update: + + + - REPLACE: At minimum, delete the instance + and create it again. + - RESTART: Stop the instance and start it + again. + - REFRESH: Do not stop the instance and limit + disruption as much as possible. + - NONE: Do not + disrupt the instance at all. + + By default, the minimum action is NONE. If your + update requires a more disruptive action than + you set with this flag, the necessary action is + performed to execute the update. Check the + MinimalAction enum for the list of possible + values. This field is a member of `oneof`_ ``_minimal_action``. most_disruptive_allowed_action (str): The most disruptive action that you want to - perform on each instance during the update: - - REPLACE: Delete the instance and create it - again. - RESTART: Stop the instance and start it - again. - REFRESH: Do not stop the instance and - limit disruption as much as possible. - NONE: Do - not disrupt the instance at all. By default, the - most disruptive allowed action is REPLACE. If - your update requires a more disruptive action - than you set with this flag, the update request - will fail. Check the MostDisruptiveAllowedAction - enum for the list of possible values. + perform on each instance during the update: + + + - REPLACE: Delete the instance and create + it again. + - RESTART: Stop the instance and start it + again. + - REFRESH: Do not stop the instance and + limit disruption as much as possible. + - NONE: Do not disrupt the + instance at all. + + By default, the most disruptive allowed action + is REPLACE. If your update requires a more + disruptive action than you set with this flag, + the update request will fail. + Check the MostDisruptiveAllowedAction enum for + the list of possible values. This field is a member of `oneof`_ ``_most_disruptive_allowed_action``. """ class MinimalAction(proto.Enum): r"""The minimal action that you want to perform on each instance - during the update: - REPLACE: At minimum, delete the instance - and create it again. - RESTART: Stop the instance and start it - again. - REFRESH: Do not stop the instance and limit disruption - as much as possible. - NONE: Do not disrupt the instance at all. + during the update: + + + - REPLACE: At minimum, delete the instance and create it + again. + - RESTART: Stop the instance and start it + again. + - REFRESH: Do not stop the instance and limit + disruption as much as possible. + - NONE: Do not + disrupt the instance at all. + By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. Additional @@ -92144,15 +105643,21 @@ class MinimalAction(proto.Enum): class MostDisruptiveAllowedAction(proto.Enum): r"""The most disruptive action that you want to perform on each - instance during the update: - REPLACE: Delete the instance and - create it again. - RESTART: Stop the instance and start it - again. - REFRESH: Do not stop the instance and limit disruption - as much as possible. - NONE: Do not disrupt the instance at all. + instance during the update: + + + - REPLACE: Delete the instance and create it again. + - RESTART: Stop the instance and start it again. + - REFRESH: Do not stop the instance and limit disruption + as much as possible. + - NONE: Do not disrupt the + instance at all. + By default, the most disruptive allowed action is REPLACE. If your update requires a more disruptive action than you set with - this flag, the update request will fail. Additional supported - values which may be not listed in the enum directly due to - technical reasons: + this flag, the update request will fail. + Additional supported values which may be not listed in the enum + directly due to technical reasons: NONE REFRESH @@ -92247,12 +105752,12 @@ class RegionInstanceGroupManagersListErrorsResponse(proto.Message): [Output Only] The list of errors of the managed instance group. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. """ @@ -92280,18 +105785,18 @@ class RegionInstanceGroupManagersListInstanceConfigsResp(proto.Message): Attributes: items (MutableSequence[google.cloud.compute_v1.types.PerInstanceConfig]): - [Output Only] The list of PerInstanceConfig. + Output only. [Output Only] The list of PerInstanceConfig. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -92327,12 +105832,12 @@ class RegionInstanceGroupManagersListInstancesResponse(proto.Message): managed_instances (MutableSequence[google.cloud.compute_v1.types.ManagedInstance]): A list of managed instances. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. """ @@ -92400,7 +105905,7 @@ class RegionInstanceGroupManagersSetTargetPoolsRequest(proto.Message): This field is a member of `oneof`_ ``_fingerprint``. target_pools (MutableSequence[str]): The URL of all TargetPool resources to which - instances in the instanceGroup field are added. + instances in theinstanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. """ @@ -92517,31 +106022,32 @@ class RegionInstanceGroupsListInstances(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.InstanceWithNamedPorts]): A list of InstanceWithNamedPorts resources. kind (str): - The resource type. + Output only. The resource type. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -92600,8 +106106,8 @@ class RegionInstanceGroupsListInstancesRequest(proto.Message): Name of port user is interested in. It is optional. If it is set, only information about this ports will be returned. If it is not set, - all the named ports will be returned. Always - lists all instances. + all the named ports will be returned. + Always lists all instances. This field is a member of `oneof`_ ``_port_name``. """ @@ -92648,8 +106154,8 @@ class RegionInstanceGroupsSetNamedPortsRequest(proto.Message): information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings - concurrently. Obtain the fingerprint with the - instanceGroups.get method. Then, include the + concurrently. Obtain the fingerprint with + theinstanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. @@ -92686,21 +106192,22 @@ class RegionList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Region]): A list of Region resources. kind (str): - [Output Only] Type of resource. Always compute#regionList - for lists of regions. + Output only. [Output Only] Type of resource. Always + compute#regionList for lists of regions. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -92781,9 +106288,9 @@ class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse(proto.Message): Attributes: firewall_policys (MutableSequence[google.cloud.compute_v1.types.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy]): - [Output only] Effective firewalls from firewall policy. It - applies to Regional Network Firewall Policies in the - specified region, Global Network Firewall Policies and + Output only. [Output only] Effective firewalls from firewall + policy. It applies to Regional Network Firewall Policies in + the specified region, Global Network Firewall Policies and Hierachial Firewall Policies which are associated with the network. firewalls (MutableSequence[google.cloud.compute_v1.types.Firewall]): @@ -92813,35 +106320,37 @@ class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewal Attributes: display_name (str): - [Output Only] The display name of the firewall policy. + Output only. [Output Only] The display name of the firewall + policy. This field is a member of `oneof`_ ``_display_name``. name (str): - [Output Only] The name of the firewall policy. + Output only. [Output Only] The name of the firewall policy. This field is a member of `oneof`_ ``_name``. packet_mirroring_rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): - [Output only] The packet mirroring rules that apply to the - network. + Output only. [Output only] The packet mirroring rules that + apply to the network. priority (int): - [Output only] Priority of firewall policy association. Not - applicable for type=HIERARCHY. + Output only. [Output only] Priority of firewall policy + association. Not applicable for type=HIERARCHY. This field is a member of `oneof`_ ``_priority``. rules (MutableSequence[google.cloud.compute_v1.types.FirewallPolicyRule]): - [Output only] The rules that apply to the network. + Output only. [Output only] The rules that apply to the + network. type_ (str): - [Output Only] The type of the firewall policy. Can be one of - HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, - SYSTEM_REGIONAL. Check the Type enum for the list of - possible values. + Output only. [Output Only] The type of the firewall policy. + Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, + SYSTEM_GLOBAL, SYSTEM_REGIONAL. Check the Type enum for the + list of possible values. This field is a member of `oneof`_ ``_type``. """ class Type(proto.Enum): - r"""[Output Only] The type of the firewall policy. Can be one of - HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, + r"""Output only. [Output Only] The type of the firewall policy. Can be + one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. Values: @@ -93032,17 +106541,21 @@ class RemoveAssociationFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -93085,17 +106598,21 @@ class RemoveAssociationNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -93138,17 +106655,21 @@ class RemoveAssociationOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -93196,17 +106717,21 @@ class RemoveAssociationRegionNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -93252,17 +106777,21 @@ class RemoveHealthCheckTargetPoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_pool (str): @@ -93313,17 +106842,21 @@ class RemoveInstanceTargetPoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_pool (str): @@ -93377,22 +106910,26 @@ class RemoveInstancesInstanceGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the instance group - is located. + The name of the zone + where the instance group is located. """ instance_group: str = proto.Field( @@ -93442,17 +106979,21 @@ class RemovePacketMirroringRuleNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -93497,17 +107038,21 @@ class RemovePeeringNetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -93553,17 +107098,21 @@ class RemoveResourcePoliciesDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -93613,17 +107162,21 @@ class RemoveResourcePoliciesInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -93675,17 +107228,21 @@ class RemoveResourcePoliciesRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -93734,17 +107291,21 @@ class RemoveRuleFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -93787,17 +107348,21 @@ class RemoveRuleNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -93841,17 +107406,21 @@ class RemoveRuleOrganizationSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy (str): @@ -93899,17 +107468,21 @@ class RemoveRuleRegionNetworkFirewallPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -94031,22 +107604,27 @@ class ReportFaultyReservationSubBlockRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. reservation_sub_block (str): - The name of the reservation subBlock. Name - should conform to RFC1035 or be a resource ID. + The name of the reservation subBlock. + Name should conform to RFC1035 or be a resource + ID. reservation_sub_blocks_report_faulty_request_resource (google.cloud.compute_v1.types.ReservationSubBlocksReportFaultyRequest): The body resource for this request zone (str): @@ -94101,17 +107679,21 @@ class ReportHostAsFaultyInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -94147,7 +107729,7 @@ class RequestMirrorPolicy(proto.Message): backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host - or authority header is suffixed with -shadow. + or authority header is suffixed with-shadow. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -94155,10 +107737,13 @@ class RequestMirrorPolicy(proto.Message): Attributes: backend_service (str): The full or partial URL to the BackendService - resource being mirrored to. The backend service - configured for a mirroring policy must reference - backends that are of the same type as the - original backend service matched in the URL map. + resource being mirrored to. + + The backend service configured for a mirroring + policy must reference backends that are of the + same type as the original backend service + matched in the URL map. + Serverless NEG backends are not currently supported as a mirrored backend service. @@ -94202,17 +107787,21 @@ class RequestRemovePeeringNetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -94238,9 +107827,9 @@ class RequestRemovePeeringNetworkRequest(proto.Message): class Reservation(proto.Message): - r"""Represents a reservation resource. A reservation ensures that - capacity is held in a specific zone even if the reserved VMs are - not running. For more information, read Reserving zonal + r"""Represents a reservation resource. A reservation ensures + that capacity is held in a specific zone even if the reserved + VMs are not running. For more information, read Reserving zonal resources. @@ -94259,13 +107848,14 @@ class Reservation(proto.Message): This field is a member of `oneof`_ ``_aggregate_reservation``. commitment (str): - [Output Only] Full or partial URL to a parent commitment. - This field displays for reservations that are tied to a - commitment. + Output only. [Output Only] Full or partial URL to a parent + commitment. This field displays for reservations that are + tied to a commitment. This field is a member of `oneof`_ ``_commitment``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. delete_after_duration (google.cloud.compute_v1.types.Duration): @@ -94276,8 +107866,8 @@ class Reservation(proto.Message): This field is a member of `oneof`_ ``_delete_after_duration``. delete_at_time (str): Absolute time in future when the reservation - will be auto-deleted by Compute Engine. - Timestamp is represented in RFC3339 text format. + will be auto-deleted by Compute Engine. + Timestamp is represented inRFC3339 text format. This field is a member of `oneof`_ ``_delete_at_time``. deployment_type (str): @@ -94299,23 +107889,23 @@ class Reservation(proto.Message): This field is a member of `oneof`_ ``_enable_emergent_maintenance``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#reservations for reservations. + Output only. [Output Only] Type of the resource. + Alwayscompute#reservations for reservations. This field is a member of `oneof`_ ``_kind``. linked_commitments (MutableSequence[str]): - [Output Only] Full or partial URL to parent commitments. - This field displays for reservations that are tied to - multiple commitments. + Output only. [Output Only] Full or partial URL to parent + commitments. This field displays for reservations that are + tied to multiple commitments. name (str): The name of the resource, provided by the client when initially creating the resource. The resource name must be - 1-63 characters long, and comply with RFC1035. Specifically, + 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all @@ -94323,6 +107913,15 @@ class Reservation(proto.Message): digit, except the last character, which cannot be a dash. This field is a member of `oneof`_ ``_name``. + protection_tier (str): + Protection tier for the workload which + specifies the workload expectations in the event + of infrastructure failures at data center (e.g. + power and/or cooling failures). + Check the ProtectionTier enum for the list of + possible values. + + This field is a member of `oneof`_ ``_protection_tier``. reservation_sharing_policy (google.cloud.compute_v1.types.AllocationReservationSharingPolicy): Specify the reservation sharing policy. If unspecified, the reservation will not be shared @@ -94335,11 +107934,12 @@ class Reservation(proto.Message): value is resource policy url. This is to define placement policy with reservation. resource_status (google.cloud.compute_v1.types.AllocationResourceStatus): - [Output Only] Status information for Reservation resource. + Output only. [Output Only] Status information for + Reservation resource. This field is a member of `oneof`_ ``_resource_status``. satisfies_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. scheduling_type (str): @@ -94349,8 +107949,8 @@ class Reservation(proto.Message): This field is a member of `oneof`_ ``_scheduling_type``. self_link (str): - [Output Only] Server-defined fully-qualified URL for this - resource. + Output only. [Output Only] Server-defined fully-qualified + URL for this resource. This field is a member of `oneof`_ ``_self_link``. share_settings (google.cloud.compute_v1.types.ShareSettings): @@ -94375,13 +107975,18 @@ class Reservation(proto.Message): This field is a member of `oneof`_ ``_specific_reservation_required``. status (str): - [Output Only] The status of the reservation. - CREATING: - Reservation resources are being allocated. - READY: - Reservation resources have been allocated, and the - reservation is ready for use. - DELETING: Reservation - deletion is in progress. - UPDATING: Reservation update is - in progress. Check the Status enum for the list of possible - values. + Output only. [Output Only] The status of the reservation. + + :: + + - CREATING: Reservation resources are being + allocated. + - READY: Reservation resources have been allocated, + and the reservation is ready for use. + - DELETING: Reservation deletion is in progress. + - UPDATING: Reservation update is in progress. + + Check the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. zone (str): @@ -94409,6 +108014,38 @@ class DeploymentType(proto.Enum): DENSE = 64932607 DEPLOYMENT_TYPE_UNSPECIFIED = 234847180 + class ProtectionTier(proto.Enum): + r"""Protection tier for the workload which specifies the workload + expectations in the event of infrastructure failures at data + center (e.g. power and/or cooling failures). + + Values: + UNDEFINED_PROTECTION_TIER (0): + A value indicating that the enum field is not + set. + CAPACITY_OPTIMIZED (17430466): + CAPACITY_OPTIMIZED capacity leverages redundancies (e.g. + power, cooling) at the data center during normal operating + conditions. In the event of infrastructure failures at data + center (e.g. power and/or cooling failures), this workload + may be disrupted. As a consequence, it has a weaker + availability SLO than STANDARD. + PROTECTION_TIER_UNSPECIFIED (262261984): + Unspecified protection tier. + STANDARD (484642493): + STANDARD protection for workload that should + be protected by redundancies (e.g. power, + cooling) at the data center level. In the event + of infrastructure failures at data center (e.g. + power and/or cooling failures), this workload is + expected to continue as normal using the + redundancies. + """ + UNDEFINED_PROTECTION_TIER = 0 + CAPACITY_OPTIMIZED = 17430466 + PROTECTION_TIER_UNSPECIFIED = 262261984 + STANDARD = 484642493 + class SchedulingType(proto.Enum): r"""The type of maintenance for the reservation. @@ -94432,11 +108069,16 @@ class SchedulingType(proto.Enum): INDEPENDENT = 127011674 class Status(proto.Enum): - r"""[Output Only] The status of the reservation. - CREATING: Reservation - resources are being allocated. - READY: Reservation resources have - been allocated, and the reservation is ready for use. - DELETING: - Reservation deletion is in progress. - UPDATING: Reservation update - is in progress. + r"""Output only. [Output Only] The status of the reservation. + + :: + + - CREATING: Reservation resources are being + allocated. + - READY: Reservation resources have been allocated, + and the reservation is ready for use. + - DELETING: Reservation deletion is in progress. + - UPDATING: Reservation update is in progress. Values: UNDEFINED_STATUS (0): @@ -94528,6 +108170,11 @@ class Status(proto.Enum): number=3373707, optional=True, ) + protection_tier: str = proto.Field( + proto.STRING, + number=503959432, + optional=True, + ) reservation_sharing_policy: "AllocationReservationSharingPolicy" = proto.Field( proto.MESSAGE, number=205970120, @@ -94646,17 +108293,17 @@ class ReservationAffinity(proto.Message): Attributes: consume_reservation_type (str): Specifies the type of reservation from which this instance - can consume resources: ANY_RESERVATION (default), - SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming - reserved instances for examples. Check the + can consume resources: ANY_RESERVATION + (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See + Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values. This field is a member of `oneof`_ ``_consume_reservation_type``. key (str): Corresponds to the label key of a reservation resource. To - target a SPECIFIC_RESERVATION by name, specify - googleapis.com/reservation-name as the key and specify the - name of your reservation as its value. + target aSPECIFIC_RESERVATION by name, + specifygoogleapis.com/reservation-name as the key and + specify the name of your reservation as its value. This field is a member of `oneof`_ ``_key``. values (MutableSequence[str]): @@ -94670,7 +108317,7 @@ class ReservationAffinity(proto.Message): class ConsumeReservationType(proto.Enum): r"""Specifies the type of reservation from which this instance can - consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, + consume resources: ANY_RESERVATION (default),SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Values: @@ -94724,24 +108371,25 @@ class ReservationAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.ReservationsScopedList]): A list of Allocation resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -94797,84 +108445,88 @@ class ReservationBlock(proto.Message): Attributes: count (int): - [Output Only] The number of resources that are allocated in - this reservation block. + Output only. [Output Only] The number of resources that are + allocated in this reservation block. This field is a member of `oneof`_ ``_count``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. health_info (google.cloud.compute_v1.types.ReservationBlockHealthInfo): - [Output Only] Health information for the reservation block. + Output only. [Output Only] Health information for the + reservation block. This field is a member of `oneof`_ ``_health_info``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. in_use_count (int): - [Output Only] The number of instances that are currently in - use on this reservation block. + Output only. [Output Only] The number of instances that are + currently in use on this reservation block. This field is a member of `oneof`_ ``_in_use_count``. kind (str): - [Output Only] Type of the resource. Always - compute#reservationBlock for reservation blocks. + Output only. [Output Only] Type of the resource. + Alwayscompute#reservationBlock for reservation blocks. This field is a member of `oneof`_ ``_kind``. name (str): - [Output Only] The name of this reservation block generated - by Google Compute Engine. The name must be 1-63 characters - long, and comply with RFC1035 @pattern + Output only. [Output Only] The name of this reservation + block generated by Google Compute Engine. The name must be + 1-63 characters long, and comply with RFC1035 @pattern `a-z `__? This field is a member of `oneof`_ ``_name``. physical_topology (google.cloud.compute_v1.types.ReservationBlockPhysicalTopology): - [Output Only] The physical topology of the reservation - block. + Output only. [Output Only] The physical topology of the + reservation block. This field is a member of `oneof`_ ``_physical_topology``. reservation_maintenance (google.cloud.compute_v1.types.GroupMaintenanceInfo): - [Output Only] Maintenance information for this reservation - block. + Output only. [Output Only] Maintenance information for this + reservation block. This field is a member of `oneof`_ ``_reservation_maintenance``. reservation_sub_block_count (int): - [Output Only] The number of reservation subBlocks associated - with this reservation block. + Output only. [Output Only] The number of reservation + subBlocks associated with this reservation block. This field is a member of `oneof`_ ``_reservation_sub_block_count``. reservation_sub_block_in_use_count (int): - [Output Only] The number of in-use reservation subBlocks - associated with this reservation block. If at least one VM - is running on a subBlock, it is considered in-use. + Output only. [Output Only] The number of in-use reservation + subBlocks associated with this reservation block. If at + least one VM is running on a subBlock, it is considered + in-use. This field is a member of `oneof`_ ``_reservation_sub_block_in_use_count``. self_link (str): - [Output Only] Server-defined fully-qualified URL for this - resource. + Output only. [Output Only] Server-defined fully-qualified + URL for this resource. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Output only. [Output Only] Server-defined URL for this + resource with the resource id. This field is a member of `oneof`_ ``_self_link_with_id``. status (str): - [Output Only] Status of the reservation block. Check the - Status enum for the list of possible values. + Output only. [Output Only] Status of the reservation block. + Check the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. zone (str): - [Output Only] Zone in which the reservation block resides. + Output only. [Output Only] Zone in which the reservation + block resides. This field is a member of `oneof`_ ``_zone``. """ class Status(proto.Enum): - r"""[Output Only] Status of the reservation block. + r"""Output only. [Output Only] Status of the reservation block. Values: UNDEFINED_STATUS (0): @@ -95052,8 +108704,8 @@ class ReservationBlockPhysicalTopology(proto.Message): This field is a member of `oneof`_ ``_cluster``. instances (MutableSequence[google.cloud.compute_v1.types.ReservationBlockPhysicalTopologyInstance]): - The detailed instances information for a - given Block + Output only. The detailed instances + information for a given Block """ block: str = proto.Field( @@ -95086,8 +108738,8 @@ class ReservationBlockPhysicalTopologyInstance(proto.Message): This field is a member of `oneof`_ ``_instance_id``. physical_host_topology (google.cloud.compute_v1.types.ReservationBlockPhysicalTopologyInstancePhysicalHostTopology): - The PhysicalHostTopology of instances within - a Block resource. + Output only. The PhysicalHostTopology of + instances within a Block resource. This field is a member of `oneof`_ ``_physical_host_topology``. project_id (int): @@ -95177,15 +108829,15 @@ class ReservationBlocksListResponse(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.ReservationBlock]): A list of reservation block resources. kind (str): - Type of the resource. Always - compute#reservationBlock for a list of + Type of the resource. + Alwayscompute#reservationBlock for a list of reservation blocks. This field is a member of `oneof`_ ``_kind``. next_page_token (str): This token allows you to get the next page of results for list requests. If the number of - results is larger than maxResults, use the + results is larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken @@ -95253,21 +108905,22 @@ class ReservationList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Reservation]): [Output Only] A list of Allocation resources. kind (str): - [Output Only] Type of resource.Always + Output only. [Output Only] Type of resource.Always compute#reservationsList for listsof reservations This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -95319,76 +108972,83 @@ class ReservationSubBlock(proto.Message): .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + accelerator_topologies_info (google.cloud.compute_v1.types.AcceleratorTopologiesInfo): + Output only. [Output Only] Slice info for the reservation + subBlock. + + This field is a member of `oneof`_ ``_accelerator_topologies_info``. count (int): - [Output Only] The number of hosts that are allocated in this - reservation subBlock. + Output only. [Output Only] The number of hosts that are + allocated in this reservation subBlock. This field is a member of `oneof`_ ``_count``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. health_info (google.cloud.compute_v1.types.ReservationSubBlockHealthInfo): - [Output Only] Health information for the reservation - subBlock. + Output only. [Output Only] Health information for the + reservation subBlock. This field is a member of `oneof`_ ``_health_info``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. in_use_count (int): - [Output Only] The number of instances that are currently in - use on this reservation subBlock. + Output only. [Output Only] The number of instances that are + currently in use on this reservation subBlock. This field is a member of `oneof`_ ``_in_use_count``. kind (str): - [Output Only] Type of the resource. Always - compute#reservationSubBlock for reservation subBlocks. + Output only. [Output Only] Type of the resource. + Alwayscompute#reservationSubBlock for reservation subBlocks. This field is a member of `oneof`_ ``_kind``. name (str): - [Output Only] The name of this reservation subBlock - generated by Google Compute Engine. The name must be 1-63 - characters long, and comply with RFC1035 @pattern + Output only. [Output Only] The name of this reservation + subBlock generated by Google Compute Engine. The name must + be 1-63 characters long, and comply with RFC1035 @pattern `a-z `__? This field is a member of `oneof`_ ``_name``. physical_topology (google.cloud.compute_v1.types.ReservationSubBlockPhysicalTopology): - [Output Only] The physical topology of the reservation - subBlock. + Output only. [Output Only] The physical topology of the + reservation subBlock. This field is a member of `oneof`_ ``_physical_topology``. reservation_sub_block_maintenance (google.cloud.compute_v1.types.GroupMaintenanceInfo): - Maintenance information for this reservation - subBlock. + Output only. Maintenance information for this + reservation subBlock. This field is a member of `oneof`_ ``_reservation_sub_block_maintenance``. self_link (str): - [Output Only] Server-defined fully-qualified URL for this - resource. + Output only. [Output Only] Server-defined fully-qualified + URL for this resource. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Output only. [Output Only] Server-defined URL for this + resource with the resource id. This field is a member of `oneof`_ ``_self_link_with_id``. status (str): - [Output Only] Status of the reservation subBlock. Check the - Status enum for the list of possible values. + Output only. [Output Only] Status of the reservation + subBlock. Check the Status enum for the list of possible + values. This field is a member of `oneof`_ ``_status``. zone (str): - [Output Only] Zone in which the reservation subBlock - resides. + Output only. [Output Only] Zone in which the reservation + subBlock resides. This field is a member of `oneof`_ ``_zone``. """ class Status(proto.Enum): - r"""[Output Only] Status of the reservation subBlock. + r"""Output only. [Output Only] Status of the reservation subBlock. Values: UNDEFINED_STATUS (0): @@ -95412,6 +109072,12 @@ class Status(proto.Enum): INVALID = 530283991 READY = 77848963 + accelerator_topologies_info: "AcceleratorTopologiesInfo" = proto.Field( + proto.MESSAGE, + number=84833420, + optional=True, + message="AcceleratorTopologiesInfo", + ) count: int = proto.Field( proto.INT32, number=94851343, @@ -95635,15 +109301,15 @@ class ReservationSubBlocksListResponse(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.ReservationSubBlock]): A list of reservation subBlock resources. kind (str): - Type of the resource. Always - compute#reservationSubBlock for a list of + Type of the resource. + Alwayscompute#reservationSubBlock for a list of reservation subBlocks. This field is a member of `oneof`_ ``_kind``. next_page_token (str): This token allows you to get the next page of results for list requests. If the number of - results is larger than maxResults, use the + results is larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken @@ -95806,6 +109472,9 @@ class Behavior(proto.Enum): The subBlock experienced a GPU error. PERFORMANCE (135701520): The subBlock experienced performance issues. + SILENT_DATA_CORRUPTION (111360678): + The subBlock experienced silent data + corruption. SWITCH_FAILURE (254909279): The subBlock experienced a switch failure. """ @@ -95813,6 +109482,7 @@ class Behavior(proto.Enum): FAULT_BEHAVIOR_UNSPECIFIED = 447660743 GPU_ERROR = 198817909 PERFORMANCE = 135701520 + SILENT_DATA_CORRUPTION = 111360678 SWITCH_FAILURE = 254909279 behavior: str = proto.Field( @@ -95997,17 +109667,21 @@ class ResetInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -96052,17 +109726,21 @@ class ResizeDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -96110,17 +109788,21 @@ class ResizeInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. size (int): @@ -96130,7 +109812,7 @@ class ResizeInstanceGroupManagerRequest(proto.Message): removes instances to maintain the number of instances specified by this parameter. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -96178,17 +109860,21 @@ class ResizeRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -96236,17 +109922,21 @@ class ResizeRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. size (int): @@ -96292,17 +109982,21 @@ class ResizeReservationRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. reservation (str): @@ -96354,32 +110048,52 @@ class ResourceCommitment(proto.Message): amount (int): The quantity of the hardware resource that you want to commit to purchasing (in a - type-dependent unit). - For vCPUs, you must - specify an integer value. - For memory, you - specify the amount of MB that you want. The - value you specify must be a multiple of 256 MB, - with up to 6.5 GB of memory per every vCPU. - - For GPUs, you must specify an integer value. - - For Local SSD disks, you must specify the amount - in GB. The size of a single Local SSD disk is - 375 GB. + type-dependent unit). + + - For vCPUs, you must specify an integer + value. + - For memory, you specify the amount of MB + that you want. The value you specify must + be a multiple of 256 MB, with up to 6.5 GB of + memory per every vCPU. + - For GPUs, you must specify an integer + value. + - For Local SSD disks, you must specify the + amount in GB. The size of a single Local + SSD disk is 375 GB. This field is a member of `oneof`_ ``_amount``. type_ (str): The type of hardware resource that you want to specify. You - can specify any of the following values: - VCPU - MEMORY - - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the - list for each individual resource type. Check the Type enum - for the list of possible values. + can specify any of the following values: + + :: + + - VCPU + - MEMORY + - LOCAL_SSD + - ACCELERATOR + + Specify as a separate entry in the list for each individual + resource type. Check the Type enum for the list of possible + values. This field is a member of `oneof`_ ``_type``. """ class Type(proto.Enum): r"""The type of hardware resource that you want to specify. You can - specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - - ACCELERATOR Specify as a separate entry in the list for each - individual resource type. + specify any of the following values: + + :: + + - VCPU + - MEMORY + - LOCAL_SSD + - ACCELERATOR + + Specify as a separate entry in the list for each individual resource + type. Values: UNDEFINED_TYPE (0): @@ -96473,7 +110187,7 @@ class ResourcePoliciesScopedList(proto.Message): class ResourcePolicy(proto.Message): r"""Represents a Resource Policy resource. You can use resource policies to schedule actions for some Compute Engine resources. - For example, you can use them to schedule persistent disk + For example, you can use them toschedule persistent disk snapshots. @@ -96481,7 +110195,8 @@ class ResourcePolicy(proto.Message): Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -96497,8 +110212,8 @@ class ResourcePolicy(proto.Message): This field is a member of `oneof`_ ``_group_placement_policy``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. instance_schedule_policy (google.cloud.compute_v1.types.ResourcePolicyInstanceSchedulePolicy): @@ -96507,14 +110222,14 @@ class ResourcePolicy(proto.Message): This field is a member of `oneof`_ ``_instance_schedule_policy``. kind (str): - [Output Only] Type of the resource. Always - compute#resource_policies for resource policies. + Output only. [Output Only] Type of the resource. + Alwayscompute#resource_policies for resource policies. This field is a member of `oneof`_ ``_kind``. name (str): The name of the resource, provided by the client when initially creating the resource. The resource name must be - 1-63 characters long, and comply with RFC1035. Specifically, + 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all @@ -96526,12 +110241,13 @@ class ResourcePolicy(proto.Message): This field is a member of `oneof`_ ``_region``. resource_status (google.cloud.compute_v1.types.ResourcePolicyResourceStatus): - [Output Only] The system status of the resource policy. + Output only. [Output Only] The system status of the resource + policy. This field is a member of `oneof`_ ``_resource_status``. self_link (str): - [Output Only] Server-defined fully-qualified URL for this - resource. + Output only. [Output Only] Server-defined fully-qualified + URL for this resource. This field is a member of `oneof`_ ``_self_link``. snapshot_schedule_policy (google.cloud.compute_v1.types.ResourcePolicySnapshotSchedulePolicy): @@ -96540,8 +110256,9 @@ class ResourcePolicy(proto.Message): This field is a member of `oneof`_ ``_snapshot_schedule_policy``. status (str): - [Output Only] The status of resource policy creation. Check - the Status enum for the list of possible values. + Output only. [Output Only] The status of resource policy + creation. Check the Status enum for the list of possible + values. This field is a member of `oneof`_ ``_status``. workload_policy (google.cloud.compute_v1.types.ResourcePolicyWorkloadPolicy): @@ -96552,7 +110269,7 @@ class ResourcePolicy(proto.Message): """ class Status(proto.Enum): - r"""[Output Only] The status of resource policy creation. + r"""Output only. [Output Only] The status of resource policy creation. Values: UNDEFINED_STATUS (0): @@ -96674,24 +110391,25 @@ class ResourcePolicyAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.ResourcePoliciesScopedList]): A list of ResourcePolicy resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -96758,15 +110476,15 @@ class ResourcePolicyDailyCycle(proto.Message): This field is a member of `oneof`_ ``_days_in_cycle``. duration (str): - [Output only] A predetermined duration for the window, - automatically chosen to be the smallest possible in the - given scenario. + Output only. [Output only] A predetermined duration for the + window, automatically chosen to be the smallest possible in + the given scenario. This field is a member of `oneof`_ ``_duration``. start_time (str): Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, - 08:00, 12:00, 16:00, or 20:00. For example, both + 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. This field is a member of `oneof`_ ``_start_time``. @@ -96874,8 +110592,9 @@ class ResourcePolicyHourlyCycle(proto.Message): Attributes: duration (str): - [Output only] Duration of the time window, automatically - chosen to be smallest possible in the given scenario. + Output only. [Output only] Duration of the time window, + automatically chosen to be smallest possible in the given + scenario. This field is a member of `oneof`_ ``_duration``. hours_in_cycle (int): @@ -97011,21 +110730,23 @@ class ResourcePolicyList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.ResourcePolicy]): [Output Only] A list of ResourcePolicy resources. kind (str): - [Output Only] Type of resource.Always - compute#resourcePoliciesList for listsof resourcePolicies + Output only. [Output Only] Type of + resource.Alwayscompute#resourcePoliciesList for listsof + resourcePolicies This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -97077,19 +110798,21 @@ def raw_page(self): class ResourcePolicyResourceStatus(proto.Message): - r"""Contains output only fields. Use this sub-message for all - output fields set on ResourcePolicy. The internal structure of - this "status" field should mimic the structure of ResourcePolicy - proto specification. + r"""Contains output only fields. + Use this sub-message for all output fields set on + ResourcePolicy. The internal structure of this "status" field + should mimic the structure of ResourcePolicy proto + specification. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: instance_schedule_policy (google.cloud.compute_v1.types.ResourcePolicyResourceStatusInstanceSchedulePolicyStatus): - [Output Only] Specifies a set of output values reffering to - the instance_schedule_policy system status. This field - should have the same name as corresponding policy field. + Output only. [Output Only] Specifies a set of output values + reffering to the instance_schedule_policy system status. + This field should have the same name as corresponding policy + field. This field is a member of `oneof`_ ``_instance_schedule_policy``. """ @@ -97109,14 +110832,14 @@ class ResourcePolicyResourceStatusInstanceSchedulePolicyStatus(proto.Message): Attributes: last_run_start_time (str): - [Output Only] The last time the schedule successfully ran. - The timestamp is an RFC3339 string. + Output only. [Output Only] The last time the schedule + successfully ran. The timestamp is an RFC3339 string. This field is a member of `oneof`_ ``_last_run_start_time``. next_run_start_time (str): - [Output Only] The next time the schedule is planned to run. - The actual time might be slightly different. The timestamp - is an RFC3339 string. + Output only. [Output Only] The next time the schedule is + planned to run. The actual time might be slightly different. + The timestamp is an RFC3339 string. This field is a member of `oneof`_ ``_next_run_start_time``. """ @@ -97199,9 +110922,9 @@ class ResourcePolicySnapshotSchedulePolicyRetentionPolicy(proto.Message): This field is a member of `oneof`_ ``_max_retention_days``. on_source_disk_delete (str): Specifies the behavior to apply to scheduled - snapshots when the source disk is deleted. Check - the OnSourceDiskDelete enum for the list of - possible values. + snapshots when the source disk is deleted. + Check the OnSourceDiskDelete enum for the list + of possible values. This field is a member of `oneof`_ ``_on_source_disk_delete``. """ @@ -97351,15 +111074,17 @@ class ResourcePolicyWeeklyCycleDayOfWeek(proto.Message): day (str): Defines a schedule that runs on specific days of the week. Specify one or more days. The - following options are available: MONDAY, - TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, - SUNDAY. Check the Day enum for the list of - possible values. + following options are available: + + MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, + SATURDAY, SUNDAY. Check the Day enum for the + list of possible values. This field is a member of `oneof`_ ``_day``. duration (str): - [Output only] Duration of the time window, automatically - chosen to be smallest possible in the given scenario. + Output only. [Output only] Duration of the time window, + automatically chosen to be smallest possible in the given + scenario. This field is a member of `oneof`_ ``_duration``. start_time (str): @@ -97372,6 +111097,7 @@ class ResourcePolicyWeeklyCycleDayOfWeek(proto.Message): class Day(proto.Enum): r"""Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: + MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. Values: @@ -97502,36 +111228,42 @@ class Type(proto.Enum): class ResourceStatus(proto.Message): - r"""Contains output only fields. Use this sub-message for actual - values set on Instance attributes as compared to the value - requested by the user (intent) in their instance CRUD calls. + r"""Contains output only fields. + Use this sub-message for actual values set on Instance + attributes as compared to the value requested by the user + (intent) in their instance CRUD calls. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: effective_instance_metadata (google.cloud.compute_v1.types.ResourceStatusEffectiveInstanceMetadata): - [Output Only] Effective metadata is a field that - consolidates project, zonal instance settings, and + Output only. [Output Only] Effective metadata is a field + that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level. This field is a member of `oneof`_ ``_effective_instance_metadata``. physical_host (str): - [Output Only] The precise location of your instance within - the zone's data center, including the block, sub-block, and - host. The field is formatted as follows: + Output only. [Output Only] The precise location of your + instance within the zone's data center, including the block, + sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId. This field is a member of `oneof`_ ``_physical_host``. physical_host_topology (google.cloud.compute_v1.types.ResourceStatusPhysicalHostTopology): - [Output Only] A series of fields containing the global name - of the Compute Engine cluster, as well as the ID of the - block, sub-block, and host on which the running instance is - located. + Output only. [Output Only] A series of fields containing the + global name of the Compute Engine cluster, as well as the ID + of the block, sub-block, and host on which the running + instance is located. This field is a member of `oneof`_ ``_physical_host_topology``. + reservation_consumption_info (google.cloud.compute_v1.types.ResourceStatusReservationConsumptionInfo): + Output only. [Output Only] Reservation information that the + instance is consuming from. + + This field is a member of `oneof`_ ``_reservation_consumption_info``. scheduling (google.cloud.compute_v1.types.ResourceStatusScheduling): This field is a member of `oneof`_ ``_scheduling``. @@ -97559,6 +111291,14 @@ class ResourceStatus(proto.Message): optional=True, message="ResourceStatusPhysicalHostTopology", ) + reservation_consumption_info: "ResourceStatusReservationConsumptionInfo" = ( + proto.Field( + proto.MESSAGE, + number=201056997, + optional=True, + message="ResourceStatusReservationConsumptionInfo", + ) + ) scheduling: "ResourceStatusScheduling" = proto.Field( proto.MESSAGE, number=386688404, @@ -97718,6 +111458,28 @@ class ResourceStatusPhysicalHostTopology(proto.Message): ) +class ResourceStatusReservationConsumptionInfo(proto.Message): + r"""Reservation consumption information that the instance is + consuming from. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + consumed_reservation (str): + Output only. [Output Only] The full resource name of the + reservation that this instance is consuming from. + + This field is a member of `oneof`_ ``_consumed_reservation``. + """ + + consumed_reservation: str = proto.Field( + proto.STRING, + number=318474741, + optional=True, + ) + + class ResourceStatusScheduling(proto.Message): r""" @@ -97758,17 +111520,21 @@ class ResumeInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -97813,21 +111579,25 @@ class ResumeInstancesInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -97877,17 +111647,21 @@ class ResumeInstancesRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -97917,19 +111691,21 @@ class ResumeInstancesRegionInstanceGroupManagerRequest(proto.Message): class Route(proto.Message): - r"""Represents a Route resource. A route defines a path from VM - instances in the VPC network to a specific destination. This - destination can be inside or outside the VPC network. For more - information, read the Routes overview. + r"""Represents a Route resource. + + A route defines a path from VM instances in the VPC network to a + specific destination. This destination can be inside or outside + the VPC network. For more information, read theRoutes overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: as_paths (MutableSequence[google.cloud.compute_v1.types.RouteAsPath]): - [Output Only] AS path. + Output only. [Output Only] AS path. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -97947,19 +111723,19 @@ class Route(proto.Message): This field is a member of `oneof`_ ``_dest_range``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of this resource. Always compute#routes - for Route resources. + Output only. [Output Only] Type of this resource. Always + compute#routes for Route resources. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?``. The first character must be a lowercase letter, and all following characters (except for @@ -97977,49 +111753,68 @@ class Route(proto.Message): The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid - URL: projects/ - project/global/gateways/default-internet-gateway + URL: + projects/project/global/gateways/default-internet-gateway This field is a member of `oneof`_ ``_next_hop_gateway``. next_hop_hub (str): - [Output Only] The full resource name of the Network - Connectivity Center hub that will handle matching packets. + Output only. [Output Only] The full resource name of the + Network Connectivity Center hub that will handle matching + packets. This field is a member of `oneof`_ ``_next_hop_hub``. next_hop_ilb (str): - The URL to a forwarding rule of type - loadBalancingScheme=INTERNAL that should handle - matching packets or the IP address of the + The URL to a forwarding rule of + typeloadBalancingScheme=INTERNAL that should + handle matching packets or the IP address of the forwarding Rule. For example, the following are - all valid URLs: - - https://www.googleapis.com/compute/v1/projects/project/regions/region - /forwardingRules/forwardingRule - - regions/region/forwardingRules/forwardingRule If - an IP address is provided, must specify an IPv4 - address in dot-decimal notation or an IPv6 + all valid URLs: + + + - + https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule + - + regions/region/forwardingRules/forwardingRule + + If an IP address is provided, must specify an + IPv4 address in dot-decimal notation or an IPv6 address in RFC 4291 format. For example, the - following are all valid IP addresses: - - 10.128.0.56 - 2001:db8::2d9:51:0:0 - - 2001:db8:0:0:2d9:51:0:0 IPv6 addresses will be - displayed using RFC 5952 compressed format (e.g. - 2001:db8::2d9:51:0:0). Should never be an - IPv4-mapped IPv6 address. + following are all valid IP addresses: + + + - 10.128.0.56 + - 2001:db8::2d9:51:0:0 + - 2001:db8:0:0:2d9:51:0:0 + + IPv6 addresses will be displayed using RFC 5952 + compressed format (e.g. 2001:db8::2d9:51:0:0). + Should never be an IPv4-mapped IPv6 address. This field is a member of `oneof`_ ``_next_hop_ilb``. next_hop_instance (str): The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: + https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ This field is a member of `oneof`_ ``_next_hop_instance``. next_hop_inter_region_cost (int): - [Output only] Internal fixed region-to-region cost that - Google Cloud calculates based on factors such as network - performance, distance, and available bandwidth between - regions. + Output only. [Output only] Internal fixed region-to-region + cost that Google Cloud calculates based on factors such as + network performance, distance, and available bandwidth + between regions. This field is a member of `oneof`_ ``_next_hop_inter_region_cost``. + next_hop_interconnect_attachment (str): + Output only. [Output Only] The URL to an + InterconnectAttachment which is the next hop for the route. + This field will only be populated for dynamic routes + generated by Cloud Router with a linked + interconnectAttachment or the static route generated by each + L2 Interconnect Attachment. + + This field is a member of `oneof`_ ``_next_hop_interconnect_attachment``. next_hop_ip (str): The network IP address of an instance that should handle matching packets. Both IPv6 @@ -98034,9 +111829,9 @@ class Route(proto.Message): This field is a member of `oneof`_ ``_next_hop_ip``. next_hop_med (int): - [Output Only] Multi-Exit Discriminator, a BGP route metric - that indicates the desirability of a particular route in a - network. + Output only. [Output Only] Multi-Exit Discriminator, a BGP + route metric that indicates the desirability of a particular + route in a network. This field is a member of `oneof`_ ``_next_hop_med``. next_hop_network (str): @@ -98045,15 +111840,16 @@ class Route(proto.Message): This field is a member of `oneof`_ ``_next_hop_network``. next_hop_origin (str): - [Output Only] Indicates the origin of the route. Can be IGP - (Interior Gateway Protocol), EGP (Exterior Gateway - Protocol), or INCOMPLETE. Check the NextHopOrigin enum for - the list of possible values. + Output only. [Output Only] Indicates the origin of the + route. Can be IGP (Interior Gateway Protocol), EGP (Exterior + Gateway Protocol), or INCOMPLETE. Check the NextHopOrigin + enum for the list of possible values. This field is a member of `oneof`_ ``_next_hop_origin``. next_hop_peering (str): - [Output Only] The network peering name that should handle - matching packets, which should conform to RFC1035. + Output only. [Output Only] The network peering name that + should handle matching packets, which should conform to + RFC1035. This field is a member of `oneof`_ ``_next_hop_peering``. next_hop_vpn_tunnel (str): @@ -98076,18 +111872,23 @@ class Route(proto.Message): This field is a member of `oneof`_ ``_priority``. route_status (str): - [Output only] The status of the route. Check the RouteStatus - enum for the list of possible values. + [Output only] The status of the route. This status applies + to dynamic routes learned by Cloud Routers. It is also + applicable to routes undergoing migration. Check the + RouteStatus enum for the list of possible values. This field is a member of `oneof`_ ``_route_status``. route_type (str): - [Output Only] The type of this route, which can be one of - the following values: - 'TRANSIT' for a transit route that - this router learned from another Cloud Router and will - readvertise to one of its BGP peers - 'SUBNET' for a route - from a subnet of the VPC - 'BGP' for a route learned from a - BGP peer of this router - 'STATIC' for a static route Check - the RouteType enum for the list of possible values. + Output only. [Output Only] The type of this route, which can + be one of the following values: + + - 'TRANSIT' for a transit route that this router learned + from another Cloud Router and will readvertise to one of + its BGP peers + - 'SUBNET' for a route from a subnet of the VPC + - 'BGP' for a route learned from a BGP peer of this router + - 'STATIC' for a static route Check the RouteType enum for + the list of possible values. This field is a member of `oneof`_ ``_route_type``. self_link (str): @@ -98099,14 +111900,14 @@ class Route(proto.Message): A list of instance tags to which this route applies. warnings (MutableSequence[google.cloud.compute_v1.types.Warnings]): - [Output Only] If potential misconfigurations are detected - for this route, this field will be populated with warning - messages. + Output only. [Output Only] If potential misconfigurations + are detected for this route, this field will be populated + with warning messages. """ class NextHopOrigin(proto.Enum): - r"""[Output Only] Indicates the origin of the route. Can be IGP - (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or + r"""Output only. [Output Only] Indicates the origin of the route. Can be + IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. Values: @@ -98126,7 +111927,9 @@ class NextHopOrigin(proto.Enum): INCOMPLETE = 11941214 class RouteStatus(proto.Enum): - r"""[Output only] The status of the route. + r"""[Output only] The status of the route. This status applies to + dynamic routes learned by Cloud Routers. It is also applicable to + routes undergoing migration. Values: UNDEFINED_ROUTE_STATUS (0): @@ -98136,7 +111939,7 @@ class RouteStatus(proto.Enum): This route is processed and active. DROPPED (496235424): The route is dropped due to the VPC exceeding - the dynamic route limit. For dynamic route + the dynamic route limit. For dynamic route limit, please refer to the Learned route example INACTIVE (270421099): This route is processed but inactive due to @@ -98153,12 +111956,14 @@ class RouteStatus(proto.Enum): PENDING = 35394935 class RouteType(proto.Enum): - r"""[Output Only] The type of this route, which can be one of the - following values: - 'TRANSIT' for a transit route that this router - learned from another Cloud Router and will readvertise to one of its - BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' - for a route learned from a BGP peer of this router - 'STATIC' for a - static route + r"""Output only. [Output Only] The type of this route, which can be one + of the following values: + + - 'TRANSIT' for a transit route that this router learned from + another Cloud Router and will readvertise to one of its BGP peers + - 'SUBNET' for a route from a subnet of the VPC + - 'BGP' for a route learned from a BGP peer of this router + - 'STATIC' for a static route Values: UNDEFINED_ROUTE_TYPE (0): @@ -98244,6 +112049,11 @@ class RouteType(proto.Enum): number=24442003, optional=True, ) + next_hop_interconnect_attachment: str = proto.Field( + proto.STRING, + number=226852914, + optional=True, + ) next_hop_ip: str = proto.Field( proto.STRING, number=110319529, @@ -98321,28 +112131,35 @@ class RouteAsPath(proto.Message): [Output Only] The AS numbers of the AS Path. path_segment_type (str): [Output Only] The type of the AS Path, which can be one of - the following values: - 'AS_SET': unordered set of - autonomous systems that the route in has traversed - - 'AS_SEQUENCE': ordered set of autonomous systems that the - route has traversed - 'AS_CONFED_SEQUENCE': ordered set of - Member Autonomous Systems in the local confederation that - the route has traversed - 'AS_CONFED_SET': unordered set of - Member Autonomous Systems in the local confederation that - the route has traversed Check the PathSegmentType enum for - the list of possible values. + the following values: + + - 'AS_SET': unordered set of autonomous systems that the + route in has traversed + - 'AS_SEQUENCE': ordered set of autonomous systems that the + route has traversed + - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous + Systems in the local confederation that the route has + traversed + - 'AS_CONFED_SET': unordered set of Member Autonomous + Systems in the local confederation that the route has + traversed Check the PathSegmentType enum for the list of + possible values. This field is a member of `oneof`_ ``_path_segment_type``. """ class PathSegmentType(proto.Enum): r"""[Output Only] The type of the AS Path, which can be one of the - following values: - 'AS_SET': unordered set of autonomous systems - that the route in has traversed - 'AS_SEQUENCE': ordered set of - autonomous systems that the route has traversed - - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in - the local confederation that the route has traversed - - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the - local confederation that the route has traversed + following values: + + - 'AS_SET': unordered set of autonomous systems that the route in + has traversed + - 'AS_SEQUENCE': ordered set of autonomous systems that the route + has traversed + - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in + the local confederation that the route has traversed + - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the + local confederation that the route has traversed Values: UNDEFINED_PATH_SEGMENT_TYPE (0): @@ -98388,20 +112205,21 @@ class RouteList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Route]): A list of Route resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -98457,11 +112275,15 @@ class RouteParams(proto.Message): tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are - valid inputs: \* {"tagKeys/333" : "tagValues/444", - "tagKeys/123" : "tagValues/456"} \* {"123/environment" : - "production", "345/abc" : "xyz"} Note: \* Invalid - combinations of ID & namespaced format is not supported. For - instance: {"123/environment" : "tagValues/444"} is invalid. + valid inputs: + + - {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + "tagValues/456"} + - {"123/environment" : "production", "345/abc" : "xyz"} + Note: + - Invalid combinations of ID & namespaced format is not + supported. For instance: {"123/environment" : + "tagValues/444"} is invalid. """ resource_manager_tags: MutableMapping[str, str] = proto.MapField( @@ -98489,9 +112311,11 @@ class RoutePolicy(proto.Message): by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint - hash in order to update or change labels. To see - the latest fingerprint, make a getRoutePolicy() - request to retrieve a Route Policy. + hash in order to update or change labels. + + To see the latest fingerprint, make a + getRoutePolicy() request to retrieve a Route + Policy. This field is a member of `oneof`_ ``_fingerprint``. name (str): @@ -98597,8 +112421,10 @@ class RoutePolicyPolicyTerm(proto.Message): class Router(proto.Message): - r"""Represents a Cloud Router resource. For more information - about Cloud Router, read the Cloud Router overview. + r"""Represents a Cloud Router resource. + + For more information about Cloud Router, read theCloud Router + overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -98613,9 +112439,10 @@ class Router(proto.Message): the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP - address. Please refer to RFC4273. + address. Please refer toRFC4273. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -98636,17 +112463,21 @@ class Router(proto.Message): This field is a member of `oneof`_ ``_id``. interfaces (MutableSequence[google.cloud.compute_v1.types.RouterInterface]): - Router interfaces. To create a BGP peer that - uses a router interface, the interface must have - one of the following fields specified: - - linkedVpnTunnel - linkedInterconnectAttachment - - subnetwork You can create a router interface - without any of these fields specified. However, - you cannot create a BGP peer that uses that - interface. + Router interfaces. + To create a BGP peer that uses a router + interface, the interface must have one of the + following fields specified: + + - linkedVpnTunnel + - linkedInterconnectAttachment + - subnetwork + + You can create a router interface without any of + these fields specified. However, you cannot + create a BGP peer that uses that interface. kind (str): - [Output Only] Type of resource. Always compute#router for - routers. + Output only. [Output Only] Type of resource. Always + compute#router for routers. This field is a member of `oneof`_ ``_kind``. md5_authentication_keys (MutableSequence[google.cloud.compute_v1.types.RouterMd5AuthenticationKey]): @@ -98654,7 +112485,7 @@ class Router(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -98811,24 +112642,25 @@ class RouterAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.RoutersScopedList]): A list of Router resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -98907,7 +112739,7 @@ class RouterBgp(proto.Message): no custom IP ranges. asn (int): Local BGP Autonomous System Number (ASN). - Must be an RFC6996 private ASN, either 16-bit or + Must be anRFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. @@ -98919,23 +112751,28 @@ class RouterBgp(proto.Message): link-local IPv4 range (from 169.254.0.0/16), of size at least /30, even if the BGP sessions are over IPv6. It must not overlap with any IPv4 BGP - session ranges. Other vendors commonly call this - "router ID". + session ranges. + + Other vendors commonly call this "router ID". This field is a member of `oneof`_ ``_identifier_range``. keepalive_interval (int): The interval in seconds between BGP keepalive - messages that are sent to the peer. Hold time is - three times the interval at which keepalive - messages are sent, and the hold time is the - maximum number of seconds allowed to elapse - between successive keepalive messages that BGP - receives from a peer. BGP will use the smaller - of either the local hold time value or the - peer's hold time value as the hold time for the - BGP connection between the two peers. If set, - this value must be between 20 and 60. The - default is 20. + messages that are sent to the peer. + + Hold time is three times the interval at which + keepalive messages are sent, and the hold time + is the maximum number of seconds allowed to + elapse between successive keepalive messages + that BGP receives from a peer. + + BGP will use the smaller of either the local + hold time value or the peer's hold time value as + the hold time for the BGP connection between the + two peers. + + If set, this value must be between 20 and 60. + The default is 20. This field is a member of `oneof`_ ``_keepalive_interval``. """ @@ -99018,15 +112855,20 @@ class RouterBgpPeer(proto.Message): This field is a member of `oneof`_ ``_advertise_mode``. advertised_groups (MutableSequence[str]): User-specified list of prefix groups to advertise in custom - mode, which currently supports the following option: - - ALL_SUBNETS: Advertises all of the router's own VPC subnets. - This excludes any routes learned for subnets that use VPC - Network Peering. Note that this field can only be populated - if advertise_mode is CUSTOM and overrides the list defined - for the router (in the "bgp" message). These groups are - advertised in addition to any specified prefixes. Leave this - field blank to advertise no custom groups. Check the - AdvertisedGroups enum for the list of possible values. + mode, which currently supports the following option: + + :: + + - ALL_SUBNETS: Advertises all of the router's own VPC subnets. This + excludes any routes learned for subnets that use + VPC Network Peering. + + Note that this field can only be populated if advertise_mode + is CUSTOM and overrides the list defined for the router (in + the "bgp" message). These groups are advertised in addition + to any specified prefixes. Leave this field blank to + advertise no custom groups. Check the AdvertisedGroups enum + for the list of possible values. advertised_ip_ranges (MutableSequence[google.cloud.compute_v1.types.RouterAdvertisedIpRange]): User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if @@ -99057,13 +112899,15 @@ class RouterBgpPeer(proto.Message): This field is a member of `oneof`_ ``_custom_learned_route_priority``. enable (str): - The status of the BGP peer connection. If set - to FALSE, any active session with the peer is - terminated and all associated routing + The status of the BGP peer connection. + + If set to FALSE, any active session with the + peer is terminated and all associated routing information is removed. If set to TRUE, the peer connection can be established with routing - information. The default is TRUE. Check the - Enable enum for the list of possible values. + information. The default is TRUE. + Check the Enable enum for the list of possible + values. This field is a member of `oneof`_ ``_enable``. enable_ipv4 (bool): @@ -99107,14 +112951,19 @@ class RouterBgpPeer(proto.Message): This field is a member of `oneof`_ ``_ipv6_nexthop_address``. management_type (str): - [Output Only] The resource that configures and manages this - BGP peer. - MANAGED_BY_USER is the default value and can be - managed by you or other users - MANAGED_BY_ATTACHMENT is a - BGP peer that is configured and managed by Cloud - Interconnect, specifically by an InterconnectAttachment of - type PARTNER. Google automatically creates, updates, and - deletes this type of BGP peer when the PARTNER - InterconnectAttachment is created, updated, or deleted. + Output only. [Output Only] The resource that configures and + manages this BGP peer. + + :: + + - MANAGED_BY_USER is the default value and can be managed by you + or other users + - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed + by Cloud Interconnect, specifically by an InterconnectAttachment of type + PARTNER. Google automatically creates, updates, and deletes this type of + BGP peer when the PARTNER InterconnectAttachment is created, updated, + or deleted. + Check the ManagementType enum for the list of possible values. @@ -99128,8 +112977,8 @@ class RouterBgpPeer(proto.Message): This field is a member of `oneof`_ ``_md5_authentication_key_name``. name (str): Name of this BGP peer. The name must be 1-63 characters - long, and comply with RFC1035. Specifically, the name must - be 1-63 characters long and match the regular expression + long, and comply withRFC1035. Specifically, the name must be + 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, @@ -99162,8 +113011,9 @@ class RouterBgpPeer(proto.Message): Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones contained in the same region as this Cloud - Router. The VM instance is the peer side of the - BGP session. + Router. + The VM instance is the peer side of the BGP + session. This field is a member of `oneof`_ ``_router_appliance_instance``. """ @@ -99200,11 +113050,12 @@ class AdvertisedGroups(proto.Enum): ALL_SUBNETS = 3622872 class Enable(proto.Enum): - r"""The status of the BGP peer connection. If set to FALSE, any - active session with the peer is terminated and all associated - routing information is removed. If set to TRUE, the peer - connection can be established with routing information. The - default is TRUE. + r"""The status of the BGP peer connection. + + If set to FALSE, any active session with the peer is terminated + and all associated routing information is removed. If set to + TRUE, the peer connection can be established with routing + information. The default is TRUE. Values: UNDEFINED_ENABLE (0): @@ -99220,13 +113071,18 @@ class Enable(proto.Enum): TRUE = 2583950 class ManagementType(proto.Enum): - r"""[Output Only] The resource that configures and manages this BGP - peer. - MANAGED_BY_USER is the default value and can be managed by - you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is - configured and managed by Cloud Interconnect, specifically by an - InterconnectAttachment of type PARTNER. Google automatically - creates, updates, and deletes this type of BGP peer when the PARTNER - InterconnectAttachment is created, updated, or deleted. + r"""Output only. [Output Only] The resource that configures and manages + this BGP peer. + + :: + + - MANAGED_BY_USER is the default value and can be managed by you + or other users + - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed + by Cloud Interconnect, specifically by an InterconnectAttachment of type + PARTNER. Google automatically creates, updates, and deletes this type of + BGP peer when the PARTNER InterconnectAttachment is created, updated, + or deleted. Values: UNDEFINED_MANAGEMENT_TYPE (0): @@ -99387,8 +113243,12 @@ class RouterBgpPeerBfd(proto.Message): peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval - of the other router. If set, this value must be - between 1000 and 30000. The default is 1000. + of the other router. + + If set, this value must be between 1000 and + 30000. + + The default is 1000. This field is a member of `oneof`_ ``_min_receive_interval``. min_transmit_interval (int): @@ -99397,38 +113257,48 @@ class RouterBgpPeerBfd(proto.Message): peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding - receive interval of the other router. If set, - this value must be between 1000 and 30000. The - default is 1000. + receive interval of the other router. + + If set, this value must be between 1000 and + 30000. + + The default is 1000. This field is a member of `oneof`_ ``_min_transmit_interval``. multiplier (int): The number of consecutive BFD packets that must be missed before BFD declares that a peer - is unavailable. If set, the value must be a - value between 5 and 16. The default is 5. + is unavailable. + + If set, the value must be a value between 5 and + 16. + + The default is 5. This field is a member of `oneof`_ ``_multiplier``. session_initialization_mode (str): The BFD session initialization mode for this - BGP peer. If set to ACTIVE, the Cloud Router - will initiate the BFD session for this BGP peer. - If set to PASSIVE, the Cloud Router will wait - for the peer router to initiate the BFD session - for this BGP peer. If set to DISABLED, BFD is - disabled for this BGP peer. The default is - DISABLED. Check the SessionInitializationMode - enum for the list of possible values. + BGP peer. + + If set to ACTIVE, the Cloud Router will initiate + the BFD session for this BGP peer. If set to + PASSIVE, the Cloud Router will wait for the peer + router to initiate the BFD session for this BGP + peer. If set to DISABLED, BFD is disabled for + this BGP peer. The default is DISABLED. Check + the SessionInitializationMode enum for the list + of possible values. This field is a member of `oneof`_ ``_session_initialization_mode``. """ class SessionInitializationMode(proto.Enum): - r"""The BFD session initialization mode for this BGP peer. If set - to ACTIVE, the Cloud Router will initiate the BFD session for - this BGP peer. If set to PASSIVE, the Cloud Router will wait for - the peer router to initiate the BFD session for this BGP peer. - If set to DISABLED, BFD is disabled for this BGP peer. The + r"""The BFD session initialization mode for this BGP peer. + + If set to ACTIVE, the Cloud Router will initiate the BFD session + for this BGP peer. If set to PASSIVE, the Cloud Router will wait + for the peer router to initiate the BFD session for this BGP + peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED. Values: @@ -99498,21 +113368,24 @@ class RouterInterface(proto.Message): Attributes: ip_range (str): - IP address and range of the interface. - For - Internet Protocol version 4 (IPv4), the IP range - must be in the RFC3927 link-local IP address - space. The value must be a CIDR-formatted - string, for example, 169.254.0.1/30. Note: Do - not truncate the IP address, as it represents - the IP address of the interface. - For Internet - Protocol version 6 (IPv6), the value must be a - unique local address (ULA) range from - fdff:1::/64 with a mask length of 126 or less. - This value should be a CIDR-formatted string, - for example, fdff:1::1/112. Within the router's - VPC, this IPv6 prefix will be reserved - exclusively for this connection and cannot be - used for any other purpose. + IP address and range of the interface. + + - For Internet Protocol version 4 (IPv4), the IP + range must be in theRFC3927 link-local IP + address space. The value must be a + CIDR-formatted string, for example, + 169.254.0.1/30. Note: Do not truncate the + IP address, as it represents the IP address of + the interface. + - For Internet Protocol version 6 (IPv6), the + value must be a unique local address (ULA) + range from fdff:1::/64 with a mask length + of 126 or less. This value should be a + CIDR-formatted string, for example, + fdff:1::1/112. Within the router's VPC, + this IPv6 prefix will be reserved exclusively + for this connection and cannot be used for + any other purpose. This field is a member of `oneof`_ ``_ip_range``. ip_version (str): @@ -99538,21 +113411,26 @@ class RouterInterface(proto.Message): This field is a member of `oneof`_ ``_linked_vpn_tunnel``. management_type (str): - [Output Only] The resource that configures and manages this - interface. - MANAGED_BY_USER is the default value and can be - managed directly by users. - MANAGED_BY_ATTACHMENT is an - interface that is configured and managed by Cloud - Interconnect, specifically, by an InterconnectAttachment of - type PARTNER. Google automatically creates, updates, and - deletes this type of interface when the PARTNER - InterconnectAttachment is created, updated, or deleted. + Output only. [Output Only] The resource that configures and + manages this interface. + + :: + + - MANAGED_BY_USER is the default value and can be managed directly + by users. + - MANAGED_BY_ATTACHMENT is an interface that is configured and + managed by Cloud Interconnect, specifically, by an InterconnectAttachment + of type PARTNER. Google automatically creates, updates, and deletes + this type of interface when the PARTNER InterconnectAttachment is + created, updated, or deleted. + Check the ManagementType enum for the list of possible values. This field is a member of `oneof`_ ``_management_type``. name (str): Name of this interface entry. The name must be 1-63 - characters long, and comply with RFC1035. Specifically, the + characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all @@ -99576,7 +113454,7 @@ class RouterInterface(proto.Message): must create two BGP peers. The two BGP peers must be attached to two separate interfaces that are redundant with each other. The redundant_interface must be 1-63 characters - long, and comply with RFC1035. Specifically, the + long, and comply withRFC1035. Specifically, the redundant_interface must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and @@ -99613,13 +113491,18 @@ class IpVersion(proto.Enum): IPV6 = 2254343 class ManagementType(proto.Enum): - r"""[Output Only] The resource that configures and manages this - interface. - MANAGED_BY_USER is the default value and can be managed - directly by users. - MANAGED_BY_ATTACHMENT is an interface that is - configured and managed by Cloud Interconnect, specifically, by an - InterconnectAttachment of type PARTNER. Google automatically - creates, updates, and deletes this type of interface when the - PARTNER InterconnectAttachment is created, updated, or deleted. + r"""Output only. [Output Only] The resource that configures and manages + this interface. + + :: + + - MANAGED_BY_USER is the default value and can be managed directly + by users. + - MANAGED_BY_ATTACHMENT is an interface that is configured and + managed by Cloud Interconnect, specifically, by an InterconnectAttachment + of type PARTNER. Google automatically creates, updates, and deletes + this type of interface when the PARTNER InterconnectAttachment is + created, updated, or deleted. Values: UNDEFINED_MANAGEMENT_TYPE (0): @@ -99631,8 +113514,9 @@ class ManagementType(proto.Enum): automatically create/update/delete this interface when the PARTNER InterconnectAttachment is - created/provisioned/deleted. This type of - interface cannot be manually managed by user. + created/provisioned/deleted. + This type of interface cannot be manually + managed by user. MANAGED_BY_USER (317294067): Default value, the interface is manually created and managed by user. @@ -99702,21 +113586,22 @@ class RouterList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Router]): A list of Router resources. kind (str): - [Output Only] Type of resource. Always compute#router for - routers. + Output only. [Output Only] Type of resource. Always + compute#router for routers. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -99769,17 +113654,21 @@ class RouterMd5AuthenticationKey(proto.Message): Attributes: key (str): - [Input only] Value of the key. For patch and update calls, - it can be skipped to copy the value from the previous - configuration. This is allowed if the key with the same name - existed before the operation. Maximum length is 80 - characters. Can only contain printable ASCII characters. + [Input only] Value of the key. + + For patch and update calls, it can be skipped to copy the + value from the previous configuration. This is allowed if + the key with the same name existed before the operation. + Maximum length is 80 characters. Can only contain printable + ASCII characters. This field is a member of `oneof`_ ``_key``. name (str): - Name used to identify the key. Must be unique - within a router. Must be referenced by exactly - one bgpPeer. Must comply with RFC1035. + Name used to identify the key. + + Must be unique within a router. Must be + referenced by exactly one bgpPeer. Must comply + withRFC1035. This field is a member of `oneof`_ ``_name``. """ @@ -99812,7 +113701,8 @@ class RouterNat(proto.Message): The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the - current project-level default tier is used. + current + project-level default tier is used. Check the AutoNetworkTier enum for the list of possible values. @@ -99824,16 +113714,21 @@ class RouterNat(proto.Message): IPs should be used for updating/patching a NAT only. enable_dynamic_port_allocation (bool): - Enable Dynamic Port Allocation. If not - specified, it is disabled by default. If set to - true, - Dynamic Port Allocation will be enabled - on this NAT config. - - enableEndpointIndependentMapping cannot be set - to true. - If minPorts is set, minPortsPerVm - must be set to a power of two greater than or - equal to 32. If minPortsPerVm is not set, a - minimum of 32 ports will be allocated to a VM - from this NAT config. + Enable Dynamic Port Allocation. + + If not specified, it is disabled by default. + + If set to true, + + - Dynamic Port Allocation will be enabled on + this NAT config. + - enableEndpointIndependentMapping cannot be + set to true. + - If minPorts is set, minPortsPerVm must be + set to a power of two greater than or equal + to 32. If minPortsPerVm is not set, a + minimum of 32 ports will be allocated to a VM + from this NAT config. This field is a member of `oneof`_ ``_enable_dynamic_port_allocation``. enable_endpoint_independent_mapping (bool): @@ -99856,15 +113751,19 @@ class RouterNat(proto.Message): max_ports_per_vm (int): Maximum number of ports allocated to a VM from this NAT config when Dynamic Port - Allocation is enabled. If Dynamic Port - Allocation is not enabled, this field has no - effect. If Dynamic Port Allocation is enabled, - and this field is set, it must be set to a power - of two greater than minPortsPerVm, or 64 if - minPortsPerVm is not set. If Dynamic Port - Allocation is enabled and this field is not set, - a maximum of 65536 ports will be allocated to a - VM from this NAT config. + Allocation is enabled. + + If Dynamic Port Allocation is not enabled, this + field has no effect. + + If Dynamic Port Allocation is enabled, and this + field is set, it must be set to a power of two + greater than minPortsPerVm, or 64 if + minPortsPerVm is not set. + + If Dynamic Port Allocation is enabled and this + field is not set, a maximum of 65536 ports will + be allocated to a VM from this NAT config. This field is a member of `oneof`_ ``_max_ports_per_vm``. min_ports_per_vm (int): @@ -99877,9 +113776,9 @@ class RouterNat(proto.Message): This field is a member of `oneof`_ ``_min_ports_per_vm``. name (str): - Unique name of this Nat service. The name - must be 1-63 characters long and comply with - RFC1035. + Unique name of this Nat service. + The name must be 1-63 characters long and comply + withRFC1035. This field is a member of `oneof`_ ``_name``. nat64_subnetworks (MutableSequence[google.cloud.compute_v1.types.RouterNatSubnetworkToNat64]): @@ -99889,13 +113788,19 @@ class RouterNat(proto.Message): SubnetworkIpRangeToNat64Option above. nat_ip_allocate_option (str): Specify the NatIpAllocateOption, which can take one of the - following values: - MANUAL_ONLY: Uses only Nat IP addresses - provided by customers. When there are not enough specified - Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat - IPs are allocated by Google Cloud Platform; customers can't - specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip - should be empty. Check the NatIpAllocateOption enum for the - list of possible values. + following values: + + :: + + - MANUAL_ONLY: Uses only Nat IP addresses provided by + customers. When there are not enough specified Nat IPs, the Nat service + fails for new VMs. + - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers + can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should + be empty. + + Check the NatIpAllocateOption enum for the list of possible + values. This field is a member of `oneof`_ ``_nat_ip_allocate_option``. nat_ips (MutableSequence[str]): @@ -99907,12 +113812,18 @@ class RouterNat(proto.Message): A list of rules associated with this NAT. source_subnetwork_ip_ranges_to_nat (str): Specify the Nat option, which can take one of the following - values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP - ranges in every Subnetwork are allowed to Nat. - - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP - ranges in every Subnetwork are allowed to Nat. - - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to - Nat (specified in the field subnetwork below) The default is + values: + + :: + + - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every + Subnetwork are allowed to Nat. + - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges + in every Subnetwork are allowed to Nat. + - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat + (specified in the field subnetwork below) + + The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any Router for @@ -99923,12 +113834,17 @@ class RouterNat(proto.Message): This field is a member of `oneof`_ ``_source_subnetwork_ip_ranges_to_nat``. source_subnetwork_ip_ranges_to_nat64 (str): Specify the Nat option for NAT64, which can take one of the - following values: - ALL_IPV6_SUBNETWORKS: All of the IP - ranges in every Subnetwork are allowed to Nat. - - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed - to Nat (specified in the field nat64_subnetwork below) The - default is NAT64_OPTION_UNSPECIFIED. Note that if this field - contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat + following values: + + :: + + - ALL_IPV6_SUBNETWORKS: All of the IP ranges in + every Subnetwork are allowed to Nat. + - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat + (specified in the field nat64_subnetwork below) + + The default is NAT64_OPTION_UNSPECIFIED. Note that if this + field contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 only. Check the @@ -99972,8 +113888,9 @@ class RouterNat(proto.Message): class AutoNetworkTier(proto.Enum): r"""The network tier to use when automatically reserving NAT IP - addresses. Must be one of: PREMIUM, STANDARD. If not specified, - then the current project-level default tier is used. + addresses. Must be one of: PREMIUM, STANDARD. + If not specified, then the current + project-level default tier is used. Values: UNDEFINED_AUTO_NETWORK_TIER (0): @@ -100022,11 +113939,16 @@ class EndpointTypes(proto.Enum): class NatIpAllocateOption(proto.Enum): r"""Specify the NatIpAllocateOption, which can take one of the following - values: - MANUAL_ONLY: Uses only Nat IP addresses provided by - customers. When there are not enough specified Nat IPs, the Nat - service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by - Google Cloud Platform; customers can't specify any Nat IPs. When - choosing AUTO_ONLY, then nat_ip should be empty. + values: + + :: + + - MANUAL_ONLY: Uses only Nat IP addresses provided by + customers. When there are not enough specified Nat IPs, the Nat service + fails for new VMs. + - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers + can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should + be empty. Values: UNDEFINED_NAT_IP_ALLOCATE_OPTION (0): @@ -100046,16 +113968,20 @@ class NatIpAllocateOption(proto.Enum): class SourceSubnetworkIpRangesToNat(proto.Enum): r"""Specify the Nat option, which can take one of the following values: - - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every - Subnetwork are allowed to Nat. - - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges - in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A - list of Subnetworks are allowed to Nat (specified in the field - subnetwork below) The default is - SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this - field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not - be any other Router.Nat section in any Router for this network in - this region. + + :: + + - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every + Subnetwork are allowed to Nat. + - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges + in every Subnetwork are allowed to Nat. + - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat + (specified in the field subnetwork below) + + The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note + that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there + should not be any other Router.Nat section in any Router for this + network in this region. Values: UNDEFINED_SOURCE_SUBNETWORK_IP_RANGES_TO_NAT (0): @@ -100078,14 +114004,20 @@ class SourceSubnetworkIpRangesToNat(proto.Enum): class SourceSubnetworkIpRangesToNat64(proto.Enum): r"""Specify the Nat option for NAT64, which can take one of the - following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in - every Subnetwork are allowed to Nat. - LIST_OF_IPV6_SUBNETWORKS: A - list of Subnetworks are allowed to Nat (specified in the field - nat64_subnetwork below) The default is NAT64_OPTION_UNSPECIFIED. - Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other - Router.Nat section in this region can also enable NAT64 for any - Subnetworks in this network. Other Router.Nat sections can still be - present to enable NAT44 only. + following values: + + :: + + - ALL_IPV6_SUBNETWORKS: All of the IP ranges in + every Subnetwork are allowed to Nat. + - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat + (specified in the field nat64_subnetwork below) + + The default is NAT64_OPTION_UNSPECIFIED. Note that if this field + contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in + this region can also enable NAT64 for any Subnetworks in this + network. Other Router.Nat sections can still be present to enable + NAT44 only. Values: UNDEFINED_SOURCE_SUBNETWORK_IP_RANGES_TO_NAT64 (0): @@ -100116,8 +114048,8 @@ class Type(proto.Enum): PRIVATE (403485027): NAT used for private IP translation. PUBLIC (223389289): - NAT used for public IP translation. This is - the default. + NAT used for public IP translation. + This is the default. """ UNDEFINED_TYPE = 0 PRIVATE = 403485027 @@ -100250,11 +114182,17 @@ class RouterNatLogConfig(proto.Message): Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This option can take one of the following - values: - ERRORS_ONLY: Export logs only for connection - failures. - TRANSLATIONS_ONLY: Export logs only for - successful connections. - ALL: Export logs for all - connections, successful and unsuccessful. Check the Filter - enum for the list of possible values. + values: + + :: + + - ERRORS_ONLY: Export logs only for connection failures. + - TRANSLATIONS_ONLY: Export logs only for successful + connections. + - ALL: Export logs for all connections, successful and + unsuccessful. + + Check the Filter enum for the list of possible values. This field is a member of `oneof`_ ``_filter``. """ @@ -100262,10 +114200,15 @@ class RouterNatLogConfig(proto.Message): class Filter(proto.Enum): r"""Specify the desired filtering of logs on this NAT. If unspecified, logs are exported for all connections handled by this NAT. This - option can take one of the following values: - ERRORS_ONLY: Export - logs only for connection failures. - TRANSLATIONS_ONLY: Export logs - only for successful connections. - ALL: Export logs for all - connections, successful and unsuccessful. + option can take one of the following values: + + :: + + - ERRORS_ONLY: Export logs only for connection failures. + - TRANSLATIONS_ONLY: Export logs only for successful + connections. + - ALL: Export logs for all connections, successful and + unsuccessful. Values: UNDEFINED_FILTER (0): @@ -100315,12 +114258,17 @@ class RouterNatRule(proto.Message): CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding ``action`` is enforced. + The following examples are valid match expressions for public NAT: + ``inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')`` + ``destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'`` + The following example is a valid match expression for private NAT: + ``nexthop.hub == '//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1'`` This field is a member of `oneof`_ ``_match``. @@ -100364,7 +114312,8 @@ class RouterNatRuleAction(proto.Message): A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the - project. This field is used for public NAT. + project. + This field is used for public NAT. source_nat_active_ranges (MutableSequence[str]): A list of URLs of the subnetworks used as source ranges for this NAT Rule. These subnetworks must have purpose set to @@ -100380,8 +114329,8 @@ class RouterNatRuleAction(proto.Message): source ranges to be drained. This is only supported on patch/update, and these subnetworks must have previously been used as active ranges - in this NAT Rule. This field is used for private - NAT. + in this NAT Rule. + This field is used for private NAT. """ source_nat_active_ips: MutableSequence[str] = proto.RepeatedField( @@ -100493,14 +114442,18 @@ class RouterParams(proto.Message): is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are valid - inputs: \* {"tagKeys/333" : "tagValues/444", "tagKeys/123" : - "tagValues/456"} \* {"123/environment" : "production", - "345/abc" : "xyz"} Note: \* Invalid combinations of ID & - namespaced format is not supported. For instance: - {"123/environment" : "tagValues/444"} is invalid. \* - Inconsistent format is not supported. For instance: - {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is - invalid. + inputs: + + - {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + "tagValues/456"} + - {"123/environment" : "production", "345/abc" : "xyz"} + Note: + - Invalid combinations of ID & namespaced format is not + supported. For instance: {"123/environment" : + "tagValues/444"} is invalid. + - Inconsistent format is not supported. For instance: + {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is + invalid. """ resource_manager_tags: MutableMapping[str, str] = proto.MapField( @@ -100520,19 +114473,22 @@ class RouterStatus(proto.Message): A list of the best dynamic routes for this Cloud Router's Virtual Private Cloud (VPC) network in the same region as this Cloud Router. + Lists all of the best routes per prefix that are programmed into this region's VPC data plane. + When global dynamic routing mode is turned on in the VPC network, this list can include cross-region dynamic routes from Cloud Routers in other regions. best_routes_for_router (MutableSequence[google.cloud.compute_v1.types.Route]): A list of the best BGP routes learned by this - Cloud Router. It is possible that routes listed - might not be programmed into the data plane, if - the Google Cloud control plane finds a more - optimal route for a prefix than a route learned - by this Cloud Router. + Cloud Router. + It is possible that routes listed might not be + programmed into the data plane, if the Google + Cloud control plane finds a more optimal route + for a prefix than a route learned by this Cloud + Router. bgp_peer_status (MutableSequence[google.cloud.compute_v1.types.RouterStatusBgpPeerStatus]): nat_status (MutableSequence[google.cloud.compute_v1.types.RouterStatusNatStatus]): @@ -100584,32 +114540,35 @@ class RouterStatusBgpPeerStatus(proto.Message): This field is a member of `oneof`_ ``_bfd_status``. enable_ipv4 (bool): - Enable IPv4 traffic over BGP Peer. It is - enabled by default if the peerIpAddress is - version 4. + Output only. Enable IPv4 traffic over BGP + Peer. It is enabled by default if the + peerIpAddress is version 4. This field is a member of `oneof`_ ``_enable_ipv4``. enable_ipv6 (bool): - Enable IPv6 traffic over BGP Peer. It is - enabled by default if the peerIpAddress is - version 6. + Output only. Enable IPv6 traffic over BGP + Peer. It is enabled by default if the + peerIpAddress is version 6. This field is a member of `oneof`_ ``_enable_ipv6``. ip_address (str): - IP address of the local BGP interface. + Output only. IP address of the local BGP + interface. This field is a member of `oneof`_ ``_ip_address``. ipv4_nexthop_address (str): - IPv4 address of the local BGP interface. + Output only. IPv4 address of the local BGP + interface. This field is a member of `oneof`_ ``_ipv4_nexthop_address``. ipv6_nexthop_address (str): - IPv6 address of the local BGP interface. + Output only. IPv6 address of the local BGP + interface. This field is a member of `oneof`_ ``_ipv6_nexthop_address``. linked_vpn_tunnel (str): - URL of the VPN tunnel that this BGP peer - controls. + Output only. URL of the VPN tunnel that this + BGP peer controls. This field is a member of `oneof`_ ``_linked_vpn_tunnel``. md5_auth_enabled (bool): @@ -100618,44 +114577,47 @@ class RouterStatusBgpPeerStatus(proto.Message): This field is a member of `oneof`_ ``_md5_auth_enabled``. name (str): - Name of this BGP peer. Unique within the - Routers resource. + Output only. Name of this BGP peer. Unique + within the Routers resource. This field is a member of `oneof`_ ``_name``. num_learned_routes (int): - Number of routes learned from the remote BGP - Peer. + Output only. Number of routes learned from + the remote BGP Peer. This field is a member of `oneof`_ ``_num_learned_routes``. peer_ip_address (str): - IP address of the remote BGP interface. + Output only. IP address of the remote BGP + interface. This field is a member of `oneof`_ ``_peer_ip_address``. peer_ipv4_nexthop_address (str): - IPv4 address of the remote BGP interface. + Output only. IPv4 address of the remote BGP + interface. This field is a member of `oneof`_ ``_peer_ipv4_nexthop_address``. peer_ipv6_nexthop_address (str): - IPv6 address of the remote BGP interface. + Output only. IPv6 address of the remote BGP + interface. This field is a member of `oneof`_ ``_peer_ipv6_nexthop_address``. router_appliance_instance (str): - [Output only] URI of the VM instance that is used as - third-party router appliances such as Next Gen Firewalls, - Virtual Routers, or Router Appliances. The VM instance is - the peer side of the BGP session. + Output only. [Output only] URI of the VM instance that is + used as third-party router appliances such as Next Gen + Firewalls, Virtual Routers, or Router Appliances. The VM + instance is the peer side of the BGP session. This field is a member of `oneof`_ ``_router_appliance_instance``. state (str): - The state of the BGP session. For a list of - possible values for this field, see BGP session - states. + Output only. The state of the BGP session. + For a list of possible values for this field, + seeBGP session states. This field is a member of `oneof`_ ``_state``. status (str): - Status of the BGP peer: {UP, DOWN} - Check the Status enum for the list of possible - values. + Output only. Status of the BGP peer: {UP, + DOWN} Check the Status enum for the list of + possible values. This field is a member of `oneof`_ ``_status``. status_reason (str): @@ -100665,20 +114627,24 @@ class RouterStatusBgpPeerStatus(proto.Message): This field is a member of `oneof`_ ``_status_reason``. uptime (str): - Time this session has been up. Format: 14 - years, 51 weeks, 6 days, 23 hours, 59 minutes, - 59 seconds + Output only. Time this session has been up. + Format: + + 14 years, 51 weeks, 6 days, 23 hours, 59 + minutes, 59 seconds This field is a member of `oneof`_ ``_uptime``. uptime_seconds (str): - Time this session has been up, in seconds. - Format: 145 + Output only. Time this session has been up, + in seconds. Format: + + 145 This field is a member of `oneof`_ ``_uptime_seconds``. """ class Status(proto.Enum): - r"""Status of the BGP peer: {UP, DOWN} + r"""Output only. Status of the BGP peer: {UP, DOWN} Values: UNDEFINED_STATUS (0): @@ -100833,38 +114799,40 @@ class RouterStatusNatStatus(proto.Message): Attributes: auto_allocated_nat_ips (MutableSequence[str]): - A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", - "129.2.16.89"] + Output only. A list of IPs auto-allocated for NAT. Example: + ["1.1.1.1", "129.2.16.89"] drain_auto_allocated_nat_ips (MutableSequence[str]): - A list of IPs auto-allocated for NAT that are in drain mode. - Example: ["1.1.1.1", "179.12.26.133"]. + Output only. A list of IPs auto-allocated for NAT that are + in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. drain_user_allocated_nat_ips (MutableSequence[str]): - A list of IPs user-allocated for NAT that are in drain mode. - Example: ["1.1.1.1", "179.12.26.133"]. + Output only. A list of IPs user-allocated for NAT that are + in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. min_extra_nat_ips_needed (int): - The number of extra IPs to allocate. This will be greater - than 0 only if user-specified IPs are NOT enough to allow - all configured VMs to use NAT. This value is meaningful only - when auto-allocation of NAT IPs is *not* used. + Output only. The number of extra IPs to allocate. This will + be greater than 0 only if user-specified IPs are NOT enough + to allow all configured VMs to use NAT. This value is + meaningful only when auto-allocation of NAT IPs is *not* + used. This field is a member of `oneof`_ ``_min_extra_nat_ips_needed``. name (str): - Unique name of this NAT. + Output only. Unique name of this NAT. This field is a member of `oneof`_ ``_name``. num_vm_endpoints_with_nat_mappings (int): - Number of VM endpoints (i.e., Nics) that can - use NAT. + Output only. Number of VM endpoints (i.e., + Nics) that can use NAT. This field is a member of `oneof`_ ``_num_vm_endpoints_with_nat_mappings``. rule_status (MutableSequence[google.cloud.compute_v1.types.RouterStatusNatStatusNatRuleStatus]): Status of rules in this NAT. user_allocated_nat_ip_resources (MutableSequence[str]): - A list of fully qualified URLs of reserved IP - address resources. + Output only. A list of fully qualified URLs + of reserved IP address resources. user_allocated_nat_ips (MutableSequence[str]): - A list of IPs user-allocated for NAT. They - will be raw IP strings like "179.12.26.133". + Output only. A list of IPs user-allocated for + NAT. They will be raw IP strings like + "179.12.26.133". """ auto_allocated_nat_ips: MutableSequence[str] = proto.RepeatedField( @@ -100918,25 +114886,25 @@ class RouterStatusNatStatusNatRuleStatus(proto.Message): Attributes: active_nat_ips (MutableSequence[str]): - A list of active IPs for NAT. Example: ["1.1.1.1", - "179.12.26.133"]. - drain_nat_ips (MutableSequence[str]): - A list of IPs for NAT that are in drain mode. Example: + Output only. A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. + drain_nat_ips (MutableSequence[str]): + Output only. A list of IPs for NAT that are in drain mode. + Example: ["1.1.1.1", "179.12.26.133"]. min_extra_ips_needed (int): - The number of extra IPs to allocate. This - will be greater than 0 only if the existing IPs - in this NAT Rule are NOT enough to allow all - configured VMs to use NAT. + Output only. The number of extra IPs to + allocate. This will be greater than 0 only if + the existing IPs in this NAT Rule are NOT enough + to allow all configured VMs to use NAT. This field is a member of `oneof`_ ``_min_extra_ips_needed``. num_vm_endpoints_with_nat_mappings (int): - Number of VM endpoints (i.e., NICs) that have - NAT Mappings from this NAT Rule. + Output only. Number of VM endpoints (i.e., + NICs) that have NAT Mappings from this NAT Rule. This field is a member of `oneof`_ ``_num_vm_endpoints_with_nat_mappings``. rule_number (int): - Rule number of the rule. + Output only. Rule number of the rule. This field is a member of `oneof`_ ``_rule_number``. """ @@ -100973,7 +114941,7 @@ class RouterStatusResponse(proto.Message): Attributes: kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. result (google.cloud.compute_v1.types.RouterStatus): @@ -101028,14 +114996,14 @@ class RoutersListBgpRoutes(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of resource. Always - compute#routersListBgpRoutes for lists of bgp routes. + Output only. [Output Only] Type of resource. + Alwayscompute#routersListBgpRoutes for lists of bgp routes. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -101044,11 +115012,12 @@ class RoutersListBgpRoutes(proto.Message): result (MutableSequence[google.cloud.compute_v1.types.BgpRoute]): [Output Only] A list of bgp routes. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -101116,15 +115085,15 @@ class RoutersListRoutePolicies(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of resource. Always - compute#routersListRoutePolicies for lists of route + Output only. [Output Only] Type of resource. + Alwayscompute#routersListRoutePolicies for lists of route policies. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -101133,11 +115102,12 @@ class RoutersListRoutePolicies(proto.Message): result (MutableSequence[google.cloud.compute_v1.types.RoutePolicy]): [Output Only] A list of route policies. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -101247,7 +115217,7 @@ class SSLHealthCheck(proto.Message): port (int): The TCP port number to which the health check prober sends packets. The default value is 443. - Valid values are 1 through 65535. + Valid values are 1 through65535. This field is a member of `oneof`_ ``_port``. port_name (str): @@ -101257,7 +115227,7 @@ class SSLHealthCheck(proto.Message): port_specification (str): Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a - port number explicitly using the port field in the health + port number explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all @@ -101270,14 +115240,16 @@ class SSLHealthCheck(proto.Message): service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports - all backends that can be health checked; for example, - GCE_VM_IP_PORT network endpoint groups and instance group - backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified - for each endpoint in the network endpoint group. For - instance group backends, the health check uses the port - number determined by looking up the backend service's named - port in the instance group's list of named ports. Check the + all backends that can be health checked; for + example,GCE_VM_IP_PORT network endpoint groups and instance + group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the + health check uses the port number specified for each + endpoint in the network endpoint group. For instance group + backends, the health check uses the port number determined + by looking up the backend service's named port in the + instance group's list of named ports. Check the PortSpecification enum for the list of possible values. This field is a member of `oneof`_ ``_port_specification``. @@ -101302,6 +115274,7 @@ class SSLHealthCheck(proto.Message): check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: + https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp This field is a member of `oneof`_ ``_response``. @@ -101310,7 +115283,7 @@ class SSLHealthCheck(proto.Message): class PortSpecification(proto.Enum): r"""Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number - explicitly using the port field in the health check. Supported by + explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service @@ -101322,13 +115295,14 @@ class PortSpecification(proto.Enum): supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health - checked; for example, GCE_VM_IP_PORT network endpoint groups and - instance group backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified for each - endpoint in the network endpoint group. For instance group backends, - the health check uses the port number determined by looking up the - backend service's named port in the instance group's list of named - ports. + checked; for example,GCE_VM_IP_PORT network endpoint groups and + instance group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the health check + uses the port number specified for each endpoint in the network + endpoint group. For instance group backends, the health check uses + the port number determined by looking up the backend service's named + port in the instance group's list of named ports. Values: UNDEFINED_PORT_SPECIFICATION (0): @@ -101404,8 +115378,8 @@ class ProxyHeader(proto.Enum): class SavedAttachedDisk(proto.Message): - r"""DEPRECATED: Please use compute#savedDisk instead. An - instance-attached disk resource. + r"""DEPRECATED: Please use compute#savedDisk instead. + An instance-attached disk resource. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -101438,8 +115412,10 @@ class SavedAttachedDisk(proto.Message): This field is a member of `oneof`_ ``_disk_size_gb``. disk_type (str): - [Output Only] URL of the disk type resource. For example: - projects/project /zones/zone/diskTypes/pd-standard or pd-ssd + Output only. [Output Only] URL of the disk type resource. + For + example:projects/project/zones/zone/diskTypes/pd-standard or + pd-ssd This field is a member of `oneof`_ ``_disk_type``. guest_os_features (MutableSequence[google.cloud.compute_v1.types.GuestOsFeature]): @@ -101448,8 +115424,9 @@ class SavedAttachedDisk(proto.Message): images. Read Enabling guest operating system features to see a list of available options. index (int): - Specifies zero-based index of the disk that - is attached to the source instance. + Output only. Specifies zero-based index of + the disk that is attached to the source + instance. This field is a member of `oneof`_ ``_index``. interface (str): @@ -101460,16 +115437,17 @@ class SavedAttachedDisk(proto.Message): This field is a member of `oneof`_ ``_interface``. kind (str): - [Output Only] Type of the resource. Always - compute#attachedDisk for attached disks. + Output only. [Output Only] Type of the resource. + Alwayscompute#attachedDisk for attached disks. This field is a member of `oneof`_ ``_kind``. licenses (MutableSequence[str]): - [Output Only] Any valid publicly visible licenses. + Output only. [Output Only] Any valid publicly visible + licenses. mode (str): The mode in which this disk is attached to the source - instance, either READ_WRITE or READ_ONLY. Check the Mode - enum for the list of possible values. + instance, eitherREAD_WRITE or READ_ONLY. Check the Mode enum + for the list of possible values. This field is a member of `oneof`_ ``_mode``. source (str): @@ -101478,24 +115456,24 @@ class SavedAttachedDisk(proto.Message): This field is a member of `oneof`_ ``_source``. storage_bytes (int): - [Output Only] A size of the storage used by the disk's - snapshot by this machine image. + Output only. [Output Only] A size of the storage used by the + disk's snapshot by this machine image. This field is a member of `oneof`_ ``_storage_bytes``. storage_bytes_status (str): - [Output Only] An indicator whether storageBytes is in a - stable state or it is being adjusted as a result of shared - storage reallocation. This status can either be UPDATING, - meaning the size of the snapshot is being updated, or - UP_TO_DATE, meaning the size of the snapshot is up-to-date. - Check the StorageBytesStatus enum for the list of possible - values. + Output only. [Output Only] An indicator whether storageBytes + is in a stable state or it is being adjusted as a result of + shared storage reallocation. This status can either be + UPDATING, meaning the size of the snapshot is being updated, + or UP_TO_DATE, meaning the size of the snapshot is + up-to-date. Check the StorageBytesStatus enum for the list + of possible values. This field is a member of `oneof`_ ``_storage_bytes_status``. type_ (str): Specifies the type of the attached disk, - either SCRATCH or PERSISTENT. Check the Type - enum for the list of possible values. + either SCRATCH orPERSISTENT. Check the Type enum + for the list of possible values. This field is a member of `oneof`_ ``_type``. """ @@ -101519,7 +115497,7 @@ class Interface(proto.Enum): class Mode(proto.Enum): r"""The mode in which this disk is attached to the source instance, - either READ_WRITE or READ_ONLY. + eitherREAD_WRITE or READ_ONLY. Values: UNDEFINED_MODE (0): @@ -101539,11 +115517,11 @@ class Mode(proto.Enum): READ_WRITE = 173607894 class StorageBytesStatus(proto.Enum): - r"""[Output Only] An indicator whether storageBytes is in a stable state - or it is being adjusted as a result of shared storage reallocation. - This status can either be UPDATING, meaning the size of the snapshot - is being updated, or UP_TO_DATE, meaning the size of the snapshot is - up-to-date. + r"""Output only. [Output Only] An indicator whether storageBytes is in a + stable state or it is being adjusted as a result of shared storage + reallocation. This status can either be UPDATING, meaning the size + of the snapshot is being updated, or UP_TO_DATE, meaning the size of + the snapshot is up-to-date. Values: UNDEFINED_STORAGE_BYTES_STATUS (0): @@ -101559,8 +115537,8 @@ class StorageBytesStatus(proto.Enum): UP_TO_DATE = 101306702 class Type(proto.Enum): - r"""Specifies the type of the attached disk, either SCRATCH or - PERSISTENT. + r"""Specifies the type of the attached disk, either SCRATCH + orPERSISTENT. Values: UNDEFINED_TYPE (0): @@ -101664,39 +115642,40 @@ class SavedDisk(proto.Message): Attributes: architecture (str): - [Output Only] The architecture of the attached disk. Check - the Architecture enum for the list of possible values. + Output only. [Output Only] The architecture of the attached + disk. Check the Architecture enum for the list of possible + values. This field is a member of `oneof`_ ``_architecture``. kind (str): - [Output Only] Type of the resource. Always compute#savedDisk - for attached disks. + Output only. [Output Only] Type of the resource. Always + compute#savedDisk for attached disks. This field is a member of `oneof`_ ``_kind``. source_disk (str): - Specifies a URL of the disk attached to the - source instance. + Output only. Specifies a URL of the disk + attached to the source instance. This field is a member of `oneof`_ ``_source_disk``. storage_bytes (int): - [Output Only] Size of the individual disk snapshot used by - this machine image. + Output only. [Output Only] Size of the individual disk + snapshot used by this machine image. This field is a member of `oneof`_ ``_storage_bytes``. storage_bytes_status (str): - [Output Only] An indicator whether storageBytes is in a - stable state or it is being adjusted as a result of shared - storage reallocation. This status can either be UPDATING, - meaning the size of the snapshot is being updated, or - UP_TO_DATE, meaning the size of the snapshot is up-to-date. - Check the StorageBytesStatus enum for the list of possible - values. + Output only. [Output Only] An indicator whether storageBytes + is in a stable state or it is being adjusted as a result of + shared storage reallocation. This status can either be + UPDATING, meaning the size of the snapshot is being updated, + or UP_TO_DATE, meaning the size of the snapshot is + up-to-date. Check the StorageBytesStatus enum for the list + of possible values. This field is a member of `oneof`_ ``_storage_bytes_status``. """ class Architecture(proto.Enum): - r"""[Output Only] The architecture of the attached disk. + r"""Output only. [Output Only] The architecture of the attached disk. Values: UNDEFINED_ARCHITECTURE (0): @@ -101716,11 +115695,11 @@ class Architecture(proto.Enum): X86_64 = 425300551 class StorageBytesStatus(proto.Enum): - r"""[Output Only] An indicator whether storageBytes is in a stable state - or it is being adjusted as a result of shared storage reallocation. - This status can either be UPDATING, meaning the size of the snapshot - is being updated, or UP_TO_DATE, meaning the size of the snapshot is - up-to-date. + r"""Output only. [Output Only] An indicator whether storageBytes is in a + stable state or it is being adjusted as a result of shared storage + reallocation. This status can either be UPDATING, meaning the size + of the snapshot is being updated, or UP_TO_DATE, meaning the size of + the snapshot is up-to-date. Values: UNDEFINED_STORAGE_BYTES_STATUS (0): @@ -101843,10 +115822,12 @@ class Scheduling(proto.Message): automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for - standard instances. Preemptible instances cannot - be automatically restarted. By default, this is - set to true so an instance is automatically - restarted if it is terminated by Compute Engine. + standard instances.Preemptible instances cannot + be automatically restarted. + + By default, this is set to true so an instance + is automatically restarted if it is terminated + by Compute Engine. This field is a member of `oneof`_ ``_automatic_restart``. availability_domain (int): @@ -101880,9 +115861,9 @@ class Scheduling(proto.Message): This field is a member of `oneof`_ ``_local_ssd_recovery_timeout``. location_hint (str): An opaque location hint used to place the - instance close to other resources. This field is - for use by internal tools that use the public - API. + instance close to other resources. + This field is for use by internal tools that use + the public API. This field is a member of `oneof`_ ``_location_hint``. max_run_duration (google.cloud.compute_v1.types.Duration): @@ -101900,17 +115881,19 @@ class Scheduling(proto.Message): This field is a member of `oneof`_ ``_min_node_cpus``. node_affinities (MutableSequence[google.cloud.compute_v1.types.SchedulingNodeAffinity]): A set of node affinity and anti-affinity - configurations. Refer to Configuring node + configurations. Refer toConfiguring node affinity for more information. Overrides reservationAffinity. on_host_maintenance (str): Defines the maintenance behavior for this instance. For standard instances, the default - behavior is MIGRATE. For preemptible instances, + behavior is MIGRATE. Forpreemptible instances, the default and only possible behavior is - TERMINATE. For more information, see Set VM host - maintenance policy. Check the OnHostMaintenance - enum for the list of possible values. + TERMINATE. For more information, see + Set + VM host maintenance policy. + Check the OnHostMaintenance enum for the list of + possible values. This field is a member of `oneof`_ ``_on_host_maintenance``. on_instance_stop_action (google.cloud.compute_v1.types.SchedulingOnInstanceStopAction): @@ -101918,9 +115901,9 @@ class Scheduling(proto.Message): This field is a member of `oneof`_ ``_on_instance_stop_action``. preemptible (bool): Defines whether the instance is preemptible. This can only - be set during instance creation or while the instance is - stopped and therefore, in a ``TERMINATED`` state. See - Instance Life Cycle for more information on the possible + be set during instance creation or while the instance + isstopped and therefore, in a ``TERMINATED`` state. + SeeInstance Life Cycle for more information on the possible instance states. This field is a member of `oneof`_ ``_preemptible``. @@ -101939,7 +115922,7 @@ class Scheduling(proto.Message): This field is a member of `oneof`_ ``_skip_guest_os_shutdown``. termination_time (str): Specifies the timestamp, when the instance - will be terminated, in RFC3339 text format. If + will be terminated, inRFC3339 text format. If specified, the instance termination action will be performed at the termination time. @@ -101968,10 +115951,11 @@ class InstanceTerminationAction(proto.Enum): class OnHostMaintenance(proto.Enum): r"""Defines the maintenance behavior for this instance. For - standard instances, the default behavior is MIGRATE. For - preemptible instances, the default and only possible behavior is - TERMINATE. For more information, see Set VM host maintenance - policy. + standard instances, the default behavior is MIGRATE. + Forpreemptible instances, the default and only possible behavior + is TERMINATE. For more information, see + Set + VM host maintenance policy. Values: UNDEFINED_ON_HOST_MAINTENANCE (0): @@ -102101,7 +116085,7 @@ class ProvisioningModel(proto.Enum): class SchedulingNodeAffinity(proto.Message): r"""Node Affinity: the configuration of desired nodes onto which - this Instance could be scheduled. + this Instance could be scheduled. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -102113,8 +116097,8 @@ class SchedulingNodeAffinity(proto.Message): This field is a member of `oneof`_ ``_key``. operator (str): - Defines the operation of node selection. Valid operators are - IN for affinity and NOT_IN for anti-affinity. Check the + Defines the operation of node selection. Valid operators + areIN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values. This field is a member of `oneof`_ ``_operator``. @@ -102124,7 +116108,7 @@ class SchedulingNodeAffinity(proto.Message): """ class Operator(proto.Enum): - r"""Defines the operation of node selection. Valid operators are IN for + r"""Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. Values: @@ -102163,7 +116147,7 @@ class Operator(proto.Enum): class SchedulingOnInstanceStopAction(proto.Message): r"""Defines the behaviour for instances with the - instance_termination_action STOP. + instance_termination_actionSTOP. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -102197,7 +116181,7 @@ class Screenshot(proto.Message): This field is a member of `oneof`_ ``_contents``. kind (str): - [Output Only] Type of the resource. Always + Output only. [Output Only] Type of the resource. Always compute#screenshot for the screenshots. This field is a member of `oneof`_ ``_kind``. @@ -102233,26 +116217,27 @@ class SecurityPoliciesAggregatedList(proto.Message): A list of SecurityPoliciesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#securityPolicyAggregatedList for lists of Security - Policies. + Output only. [Output Only] Type of resource. + Alwayscompute#securityPolicyAggregatedList for lists of + Security Policies. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -102375,6 +116360,7 @@ class SecurityPoliciesWafConfig(proto.Message): class SecurityPolicy(proto.Message): r"""Represents a Google Cloud Armor security policy resource. + Only external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview. @@ -102393,7 +116379,8 @@ class SecurityPolicy(proto.Message): A list of associations that belong to this policy. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. ddos_protection_config (google.cloud.compute_v1.types.SecurityPolicyDdosProtectionConfig): @@ -102414,19 +116401,20 @@ class SecurityPolicy(proto.Message): or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make get() request to the - security policy. + fail with error412 conditionNotMet. + + To see the latest fingerprint, make get() + request to the security policy. This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output only] Type of the resource. Always - compute#securityPolicyfor security policies + Output only. [Output only] Type of the resource. + Alwayscompute#securityPolicyfor security policies This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -102437,20 +116425,21 @@ class SecurityPolicy(proto.Message): by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in - order to update or change labels. To see the - latest fingerprint, make get() request to the - security policy. + order to update or change labels. + + To see the latest fingerprint, make get() + request to the security policy. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): Labels for this resource. These can only be - added or modified by the setLabels method. Each - label key/value pair must comply with RFC1035. + added or modified by thesetLabels method. Each + label key/value pair must comply withRFC1035. Label values may be empty. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -102458,13 +116447,18 @@ class SecurityPolicy(proto.Message): except the last character, which cannot be a dash. This field is a member of `oneof`_ ``_name``. + parent (str): + Output only. [Output Only] The parent of the security + policy. + + This field is a member of `oneof`_ ``_parent``. recaptcha_options_config (google.cloud.compute_v1.types.SecurityPolicyRecaptchaOptionsConfig): This field is a member of `oneof`_ ``_recaptcha_options_config``. region (str): - [Output Only] URL of the region where the regional security - policy resides. This field is not applicable to global - security policies. + Output only. [Output Only] URL of the region where the + regional security policy resides. This field is not + applicable to global security policies. This field is a member of `oneof`_ ``_region``. rules (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyRule]): @@ -102477,7 +116471,8 @@ class SecurityPolicy(proto.Message): security policy, a default rule with action "allow" will be added. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. short_name (str): @@ -102496,26 +116491,30 @@ class SecurityPolicy(proto.Message): This field is a member of `oneof`_ ``_short_name``. type_ (str): The type indicates the intended use of the security policy. - - CLOUD_ARMOR: Cloud Armor backend security policies can be - configured to filter incoming HTTP requests targeting - backend services. They filter requests before they hit the - origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge - security policies can be configured to filter incoming HTTP - requests targeting backend services (including Cloud - CDN-enabled) as well as backend buckets (Cloud Storage). - They filter requests before the request is served from - Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview - only): Cloud Armor internal service policies can be - configured to filter HTTP requests targeting services - managed by Traffic Director in a service mesh. They filter - requests before the request is served from the application. + + :: + + - CLOUD_ARMOR: Cloud Armor backend security policies can + be configured to filter incoming HTTP requests targeting backend services. + They filter requests before they hit the origin servers. + - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can + be configured to filter incoming HTTP requests targeting backend services + (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). + They filter requests before the request is served from Google's cache. + - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor + internal service policies can be configured to filter HTTP requests + targeting services managed by Traffic Director in a service mesh. They + filter requests before the request is served from the application. + - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be - configured to filter packets targeting network load - balancing resources such as backend services, target pools, - target instances, and instances with external IPs. They - filter requests before the request is served from the - application. This field can be set only at resource creation - time. Check the Type enum for the list of possible values. + configured to filter packets targeting network load + balancing resources such as backend services, target + pools, target instances, and instances with external IPs. + They filter requests before the request is served from the + application. + + This field can be set only at resource creation time. Check + the Type enum for the list of possible values. This field is a member of `oneof`_ ``_type``. user_defined_fields (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyUserDefinedField]): @@ -102524,30 +116523,40 @@ class SecurityPolicy(proto.Message): extracted from a fixed offset in the packet, relative to the IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values - for these fields. Example: userDefinedFields: - name: - "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: - "0x1fff". + for these fields. + + Example: + + userDefinedFields: + + - name: "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 + mask: "0x1fff". """ class Type(proto.Enum): - r"""The type indicates the intended use of the security policy. - - CLOUD_ARMOR: Cloud Armor backend security policies can be configured - to filter incoming HTTP requests targeting backend services. They - filter requests before they hit the origin servers. - - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be - configured to filter incoming HTTP requests targeting backend - services (including Cloud CDN-enabled) as well as backend buckets - (Cloud Storage). They filter requests before the request is served - from Google's cache. - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): - Cloud Armor internal service policies can be configured to filter - HTTP requests targeting services managed by Traffic Director in a - service mesh. They filter requests before the request is served from - the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies - can be configured to filter packets targeting network load balancing - resources such as backend services, target pools, target instances, - and instances with external IPs. They filter requests before the - request is served from the application. This field can be set only - at resource creation time. + r"""The type indicates the intended use of the security policy. + + :: + + - CLOUD_ARMOR: Cloud Armor backend security policies can + be configured to filter incoming HTTP requests targeting backend services. + They filter requests before they hit the origin servers. + - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can + be configured to filter incoming HTTP requests targeting backend services + (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). + They filter requests before the request is served from Google's cache. + - CLOUD_ARMOR_INTERNAL_SERVICE (preview only): Cloud Armor + internal service policies can be configured to filter HTTP requests + targeting services managed by Traffic Director in a service mesh. They + filter requests before the request is served from the application. + + - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be + configured to filter packets targeting network load balancing + resources such as backend services, target pools, target + instances, and instances with external IPs. They filter requests + before the request is served from the application. + + This field can be set only at resource creation time. Values: UNDEFINED_TYPE (0): @@ -102628,6 +116637,11 @@ class Type(proto.Enum): number=3373707, optional=True, ) + parent: str = proto.Field( + proto.STRING, + number=78317738, + optional=True, + ) recaptcha_options_config: "SecurityPolicyRecaptchaOptionsConfig" = proto.Field( proto.MESSAGE, number=519006811, @@ -102786,7 +116800,7 @@ class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConf This field is a member of `oneof`_ ``_detection_relative_to_baseline_qps``. name (str): The name must be 1-63 characters long, and - comply with RFC1035. The name must be unique + comply withRFC1035. The name must be unique within the security policy. This field is a member of `oneof`_ ``_name``. @@ -102931,6 +116945,13 @@ class SecurityPolicyAdvancedOptionsConfig(proto.Message): possible values. This field is a member of `oneof`_ ``_log_level``. + request_body_inspection_size (str): + The maximum request size chosen by the + customer with Waf enabled. Values supported are + "8KB", "16KB, "32KB", "48KB" and "64KB". Values + are case insensitive. + + This field is a member of `oneof`_ ``_request_body_inspection_size``. user_ip_request_headers (MutableSequence[str]): An optional list of case-insensitive request header names to use for resolving the callers @@ -102990,6 +117011,11 @@ class LogLevel(proto.Enum): number=140582601, optional=True, ) + request_body_inspection_size: str = proto.Field( + proto.STRING, + number=191268607, + optional=True, + ) user_ip_request_headers: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=421050290, @@ -103002,11 +117028,16 @@ class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig(proto.Message): Attributes: content_types (MutableSequence[str]): A list of custom Content-Type header values to apply the - JSON parsing. As per RFC 1341, a Content-Type header value - has the following format: Content-Type := type "/" subtype - \*[";" parameter] When configuring a custom Content-Type - header value, only the type/subtype needs to be specified, - and the parameters should be excluded. + JSON parsing. + + As per RFC 1341, a Content-Type header value has the + following format: + + Content-Type := type "/" subtype \*[";" parameter] + + When configuring a custom Content-Type header value, only + the type/subtype needs to be specified, and the parameters + should be excluded. """ content_types: MutableSequence[str] = proto.RepeatedField( @@ -103027,8 +117058,8 @@ class SecurityPolicyAssociation(proto.Message): This field is a member of `oneof`_ ``_attachment_id``. display_name (str): - [Output Only] The display name of the security policy of the - association. + Output only. [Output Only] The display name of the security + policy of the association. This field is a member of `oneof`_ ``_display_name``. excluded_folders (MutableSequence[str]): @@ -103042,12 +117073,13 @@ class SecurityPolicyAssociation(proto.Message): This field is a member of `oneof`_ ``_name``. security_policy_id (str): - [Output Only] The security policy ID of the association. + Output only. [Output Only] The security policy ID of the + association. This field is a member of `oneof`_ ``_security_policy_id``. short_name (str): - [Output Only] The short name of the security policy of the - association. + Output only. [Output Only] The short name of the security + policy of the association. This field is a member of `oneof`_ ``_short_name``. """ @@ -103140,14 +117172,15 @@ class SecurityPolicyList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.SecurityPolicy]): A list of SecurityPolicy resources. kind (str): - [Output Only] Type of resource. Always - compute#securityPolicyList for listsof securityPolicies + Output only. [Output Only] Type of resource. + Alwayscompute#securityPolicyList for listsof + securityPolicies This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -103246,26 +117279,31 @@ class SecurityPolicyRule(proto.Message): Attributes: action (str): The Action to perform when the rule is matched. The - following are the valid actions: - allow: allow access to - target. - deny(STATUS): deny access to target, returns the - HTTP response code specified. Valid values for ``STATUS`` - are 403, 404, and 502. - rate_based_ban: limit client - traffic to the configured threshold and ban the client if - the traffic exceeds the threshold. Configure parameters for - this action in RateLimitOptions. Requires rate_limit_options - to be set. - redirect: redirect to a different target. This - can either be an internal reCAPTCHA redirect, or an external - URL-based redirect via a 302 response. Parameters for this - action can be configured via redirectOptions. This action is - only supported in Global Security Policies of type - CLOUD_ARMOR. - throttle: limit client traffic to the - configured threshold. Configure parameters for this action - in rateLimitOptions. Requires rate_limit_options to be set - for this. - fairshare (preview only): when traffic reaches - the threshold limit, requests from the clients matching this - rule begin to be rate-limited using the Fair Share - algorithm. This action is only allowed in security policies - of type ``CLOUD_ARMOR_INTERNAL_SERVICE``. + following are the valid actions: + + :: + + - allow: allow access to target. + - deny(STATUS): deny access to target, returns the + HTTP response code specified. Valid values for `STATUS` + are 403, 404, and 502. + - rate_based_ban: limit client traffic to the configured + threshold and ban the client if the traffic exceeds the threshold. + Configure parameters for this action in RateLimitOptions. Requires + rate_limit_options to be set. + - redirect: redirect to a different target. This can + either be an internal reCAPTCHA redirect, or an external URL-based + redirect via a 302 response. Parameters for this action can be configured + via redirectOptions. This action is only supported in Global Security + Policies of type CLOUD_ARMOR. + - throttle: limit + client traffic to the configured threshold. Configure parameters for this + action in rateLimitOptions. Requires rate_limit_options to be set for + this. + - fairshare (preview only): when traffic reaches the + threshold limit, requests from the clients matching this rule begin to be + rate-limited using the Fair Share algorithm. This action is only allowed + in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`. This field is a member of `oneof`_ ``_action``. description (str): @@ -103281,8 +117319,8 @@ class SecurityPolicyRule(proto.Message): This field is a member of `oneof`_ ``_header_action``. kind (str): - [Output only] Type of the resource. Always - compute#securityPolicyRule for security policy rules + Output only. [Output only] Type of the resource. + Alwayscompute#securityPolicyRule for security policy rules This field is a member of `oneof`_ ``_kind``. match (google.cloud.compute_v1.types.SecurityPolicyRuleMatcher): @@ -103294,31 +117332,45 @@ class SecurityPolicyRule(proto.Message): network_match (google.cloud.compute_v1.types.SecurityPolicyRuleNetworkMatcher): A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it - matches, the corresponding 'action' is enforced. The match - criteria for a rule consists of built-in match fields (like - 'srcIpRanges') and potentially multiple user-defined match - fields ('userDefinedFields'). Field values may be extracted - directly from the packet or derived from it (e.g. - 'srcRegionCodes'). Some fields may not be present in every - packet (e.g. 'srcPorts'). A user-defined field is only - present if the base header is found in the packet and the - entire field is in bounds. Each match field may specify - which values can match it, listing one or more ranges, - prefixes, or exact values that are considered a match for - the field. A field value must be present in order to match a - specified match field. If no match values are specified for - a match field, then any field value is considered to match - it, and it's not required to be present. For strings - specifying '\*' is also equivalent to match all. For a - packet to match a rule, all specified match fields must - match the corresponding field values derived from the - packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - - "198.51.100.0/24" userDefinedFields: - name: - "ipv4_fragment_offset" values: - "1-0x1fff" The above match - condition matches packets with a source IP in 192.0.2.0/24 - or 198.51.100.0/24 and a user-defined field named - "ipv4_fragment_offset" with a value between 1 and 0x1fff - inclusive. + matches, the corresponding 'action' is enforced. + + The match criteria for a rule consists of built-in match + fields (like 'srcIpRanges') and potentially multiple + user-defined match fields ('userDefinedFields'). + + Field values may be extracted directly from the packet or + derived from it (e.g. 'srcRegionCodes'). Some fields may not + be present in every packet (e.g. 'srcPorts'). A user-defined + field is only present if the base header is found in the + packet and the entire field is in bounds. + + Each match field may specify which values can match it, + listing one or more ranges, prefixes, or exact values that + are considered a match for the field. A field value must be + present in order to match a specified match field. If no + match values are specified for a match field, then any field + value is considered to match it, and it's not required to be + present. For strings specifying '\*' is also equivalent to + match all. + + For a packet to match a rule, all specified match fields + must match the corresponding field values derived from the + packet. + + Example: + + networkMatch: srcIpRanges: + + - "192.0.2.0/24" + - "198.51.100.0/24" userDefinedFields: + - name: "ipv4_fragment_offset" values: + + - "1-0x1fff" + + The above match condition matches packets with a source IP + in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field + named "ipv4_fragment_offset" with a value between 1 and + 0x1fff inclusive. This field is a member of `oneof`_ ``_network_match``. preconfigured_waf_config (google.cloud.compute_v1.types.SecurityPolicyRulePreconfiguredWafConfig): @@ -103709,7 +117761,7 @@ class SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch(proto.Message): Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range - (e.g. "0x400-0x7ff"). + (e.g. "0x400-0x7ff"). """ name: str = proto.Field( @@ -103907,43 +117959,50 @@ class SecurityPolicyRuleRateLimitOptions(proto.Message): This field is a member of `oneof`_ ``_conform_action``. enforce_on_key (str): Determines the key to enforce the rate_limit_threshold on. - Possible values are: - ALL: A single rate limit threshold is - applied to all the requests matching this rule. This is the - default value if "enforceOnKey" is not configured. - IP: The - source IP address of the request is the key. Each IP has - this limit enforced separately. - HTTP_HEADER: The value of - the HTTP header whose name is configured under - "enforceOnKeyName". The key value is truncated to the first - 128 bytes of the header value. If no such header is present - in the request, the key type defaults to ALL. - XFF_IP: The - first IP address (i.e. the originating client IP address) - specified in the list of IPs under X-Forwarded-For HTTP - header. If no such header is present or the value is not a - valid IP, the key defaults to the source IP address of the - request i.e. key type IP. - HTTP_COOKIE: The value of the - HTTP cookie whose name is configured under - "enforceOnKeyName". The key value is truncated to the first - 128 bytes of the cookie value. If no such cookie is present - in the request, the key type defaults to ALL. - HTTP_PATH: - The URL path of the HTTP request. The key value is truncated - to the first 128 bytes. - SNI: Server name indication in the - TLS session of the HTTPS request. The key value is truncated - to the first 128 bytes. The key type defaults to ALL on a - HTTP session. - REGION_CODE: The country/region from which - the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL - fingerprint if the client connects using HTTPS, HTTP/2 or - HTTP/3. If not available, the key type defaults to ALL. - - USER_IP: The IP address of the originating client, which is - resolved based on "userIpRequestHeaders" configured with the - security policy. If there is no "userIpRequestHeaders" - configuration or an IP address cannot be resolved from it, - the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 - TLS/SSL fingerprint if the client connects using HTTPS, - HTTP/2 or HTTP/3. If not available, the key type defaults to - ALL. For "fairshare" action, this value is limited to ALL - i.e. a single rate limit threshold is enforced for all the - requests matching the rule. Check the EnforceOnKey enum for - the list of possible values. + Possible values are: + + :: + + - ALL: A single rate limit threshold is applied to all + the requests matching this rule. This is the default value if + "enforceOnKey" is not configured. + - IP: The source IP address of + the request is the key. Each IP has this limit enforced + separately. + - HTTP_HEADER: The value of the HTTP + header whose name is configured under "enforceOnKeyName". The key + value is truncated to the first 128 bytes of the header value. If no + such header is present in the request, the key type defaults toALL. + - XFF_IP: The first IP address (i.e. the + originating client IP address) specified in the list of IPs under + X-Forwarded-For HTTP header. If no such header is present or the value + is not a valid IP, the key defaults to the source IP address of + the request i.e. key type IP. + - HTTP_COOKIE: The value of the HTTP + cookie whose name is configured under "enforceOnKeyName". The key + value is truncated to the first 128 bytes of the cookie value. If no + such cookie is present in the request, the key type defaults toALL. + - HTTP_PATH: The URL path of the HTTP request. The key + value is truncated to the first 128 bytes. + - SNI: Server name indication in the TLS session of the + HTTPS request. The key value is truncated to the first 128 bytes. The + key type defaults to ALL on a HTTP session. + - REGION_CODE: The country/region from which the request + originates. + - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the + client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + key type defaults to ALL. + - USER_IP: The IP address of the originating client, + which is resolved based on "userIpRequestHeaders" configured with the + security policy. If there is no "userIpRequestHeaders" configuration or + an IP address cannot be resolved from it, the key type defaults toIP. + + - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client + connects using HTTPS, HTTP/2 or HTTP/3. If not available, + the key type defaults to ALL. For "fairshare" action, this + value is limited to ALL i.e. a single rate limit threshold + is enforced for all the requests matching the rule. Check + the EnforceOnKey enum for the list of possible values. This field is a member of `oneof`_ ``_enforce_on_key``. enforce_on_key_configs (MutableSequence[google.cloud.compute_v1.types.SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig]): @@ -103987,38 +118046,49 @@ class SecurityPolicyRuleRateLimitOptions(proto.Message): class EnforceOnKey(proto.Enum): r"""Determines the key to enforce the rate_limit_threshold on. Possible - values are: - ALL: A single rate limit threshold is applied to all - the requests matching this rule. This is the default value if - "enforceOnKey" is not configured. - IP: The source IP address of the - request is the key. Each IP has this limit enforced separately. - - HTTP_HEADER: The value of the HTTP header whose name is configured - under "enforceOnKeyName". The key value is truncated to the first - 128 bytes of the header value. If no such header is present in the - request, the key type defaults to ALL. - XFF_IP: The first IP - address (i.e. the originating client IP address) specified in the - list of IPs under X-Forwarded-For HTTP header. If no such header is - present or the value is not a valid IP, the key defaults to the - source IP address of the request i.e. key type IP. - HTTP_COOKIE: - The value of the HTTP cookie whose name is configured under - "enforceOnKeyName". The key value is truncated to the first 128 - bytes of the cookie value. If no such cookie is present in the - request, the key type defaults to ALL. - HTTP_PATH: The URL path of - the HTTP request. The key value is truncated to the first 128 bytes. - - SNI: Server name indication in the TLS session of the HTTPS - request. The key value is truncated to the first 128 bytes. The key - type defaults to ALL on a HTTP session. - REGION_CODE: The - country/region from which the request originates. - - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects - using HTTPS, HTTP/2 or HTTP/3. If not available, the key type - defaults to ALL. - USER_IP: The IP address of the originating - client, which is resolved based on "userIpRequestHeaders" configured - with the security policy. If there is no "userIpRequestHeaders" - configuration or an IP address cannot be resolved from it, the key - type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint - if the client connects using HTTPS, HTTP/2 or HTTP/3. If not - available, the key type defaults to ALL. For "fairshare" action, - this value is limited to ALL i.e. a single rate limit threshold is - enforced for all the requests matching the rule. + values are: + + :: + + - ALL: A single rate limit threshold is applied to all + the requests matching this rule. This is the default value if + "enforceOnKey" is not configured. + - IP: The source IP address of + the request is the key. Each IP has this limit enforced + separately. + - HTTP_HEADER: The value of the HTTP + header whose name is configured under "enforceOnKeyName". The key + value is truncated to the first 128 bytes of the header value. If no + such header is present in the request, the key type defaults toALL. + - XFF_IP: The first IP address (i.e. the + originating client IP address) specified in the list of IPs under + X-Forwarded-For HTTP header. If no such header is present or the value + is not a valid IP, the key defaults to the source IP address of + the request i.e. key type IP. + - HTTP_COOKIE: The value of the HTTP + cookie whose name is configured under "enforceOnKeyName". The key + value is truncated to the first 128 bytes of the cookie value. If no + such cookie is present in the request, the key type defaults toALL. + - HTTP_PATH: The URL path of the HTTP request. The key + value is truncated to the first 128 bytes. + - SNI: Server name indication in the TLS session of the + HTTPS request. The key value is truncated to the first 128 bytes. The + key type defaults to ALL on a HTTP session. + - REGION_CODE: The country/region from which the request + originates. + - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the + client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + key type defaults to ALL. + - USER_IP: The IP address of the originating client, + which is resolved based on "userIpRequestHeaders" configured with the + security policy. If there is no "userIpRequestHeaders" configuration or + an IP address cannot be resolved from it, the key type defaults toIP. + + - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client + connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key + type defaults to ALL. For "fairshare" action, this value is + limited to ALL i.e. a single rate limit threshold is enforced for + all the requests matching the rule. Values: UNDEFINED_ENFORCE_ON_KEY (0): @@ -104127,77 +118197,95 @@ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig(proto.Message): This field is a member of `oneof`_ ``_enforce_on_key_name``. enforce_on_key_type (str): Determines the key to enforce the rate_limit_threshold on. - Possible values are: - ALL: A single rate limit threshold is - applied to all the requests matching this rule. This is the - default value if "enforceOnKeyConfigs" is not configured. - - IP: The source IP address of the request is the key. Each IP - has this limit enforced separately. - HTTP_HEADER: The value - of the HTTP header whose name is configured under - "enforceOnKeyName". The key value is truncated to the first - 128 bytes of the header value. If no such header is present - in the request, the key type defaults to ALL. - XFF_IP: The - first IP address (i.e. the originating client IP address) - specified in the list of IPs under X-Forwarded-For HTTP - header. If no such header is present or the value is not a - valid IP, the key defaults to the source IP address of the - request i.e. key type IP. - HTTP_COOKIE: The value of the - HTTP cookie whose name is configured under - "enforceOnKeyName". The key value is truncated to the first - 128 bytes of the cookie value. If no such cookie is present - in the request, the key type defaults to ALL. - HTTP_PATH: - The URL path of the HTTP request. The key value is truncated - to the first 128 bytes. - SNI: Server name indication in the - TLS session of the HTTPS request. The key value is truncated - to the first 128 bytes. The key type defaults to ALL on a - HTTP session. - REGION_CODE: The country/region from which - the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL - fingerprint if the client connects using HTTPS, HTTP/2 or - HTTP/3. If not available, the key type defaults to ALL. - - USER_IP: The IP address of the originating client, which is - resolved based on "userIpRequestHeaders" configured with the - security policy. If there is no "userIpRequestHeaders" - configuration or an IP address cannot be resolved from it, - the key type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 - TLS/SSL fingerprint if the client connects using HTTPS, - HTTP/2 or HTTP/3. If not available, the key type defaults to - ALL. Check the EnforceOnKeyType enum for the list of - possible values. + Possible values are: + + :: + + - ALL: A single rate limit threshold is applied to all + the requests matching this rule. This is the default value if + "enforceOnKeyConfigs" is not configured. + - IP: The source IP address of + the request is the key. Each IP has this limit enforced + separately. + - HTTP_HEADER: The value of the HTTP + header whose name is configured under "enforceOnKeyName". The key + value is truncated to the first 128 bytes of the header value. If no + such header is present in the request, the key type defaults toALL. + - XFF_IP: The first IP address (i.e. the + originating client IP address) specified in the list of IPs under + X-Forwarded-For HTTP header. If no such header is present or the + value is not a valid IP, the key defaults to the source IP address of + the request i.e. key type IP. + - HTTP_COOKIE: The value of the HTTP + cookie whose name is configured under "enforceOnKeyName". The key + value is truncated to the first 128 bytes of the cookie value. If no + such cookie is present in the request, the key type defaults toALL. + - HTTP_PATH: The URL path of the HTTP request. The key + value is truncated to the first 128 bytes. + - SNI: Server name indication in the TLS session of + the HTTPS request. The key value is truncated to the first 128 bytes. + The key type defaults to ALL on a HTTP session. + - REGION_CODE: The country/region from which the + request originates. + - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the + client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + key type defaults to ALL. + - USER_IP: The IP address of the originating client, + which is resolved based on "userIpRequestHeaders" configured with the + security policy. If there is no "userIpRequestHeaders" configuration + or an IP address cannot be resolved from it, the key type defaults toIP. + + - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client + connects using HTTPS, HTTP/2 or HTTP/3. If not available, + the key type defaults to ALL. Check the EnforceOnKeyType + enum for the list of possible values. This field is a member of `oneof`_ ``_enforce_on_key_type``. """ class EnforceOnKeyType(proto.Enum): r"""Determines the key to enforce the rate_limit_threshold on. Possible - values are: - ALL: A single rate limit threshold is applied to all - the requests matching this rule. This is the default value if - "enforceOnKeyConfigs" is not configured. - IP: The source IP address - of the request is the key. Each IP has this limit enforced - separately. - HTTP_HEADER: The value of the HTTP header whose name - is configured under "enforceOnKeyName". The key value is truncated - to the first 128 bytes of the header value. If no such header is - present in the request, the key type defaults to ALL. - XFF_IP: The - first IP address (i.e. the originating client IP address) specified - in the list of IPs under X-Forwarded-For HTTP header. If no such - header is present or the value is not a valid IP, the key defaults - to the source IP address of the request i.e. key type IP. - - HTTP_COOKIE: The value of the HTTP cookie whose name is configured - under "enforceOnKeyName". The key value is truncated to the first - 128 bytes of the cookie value. If no such cookie is present in the - request, the key type defaults to ALL. - HTTP_PATH: The URL path of - the HTTP request. The key value is truncated to the first 128 bytes. - - SNI: Server name indication in the TLS session of the HTTPS - request. The key value is truncated to the first 128 bytes. The key - type defaults to ALL on a HTTP session. - REGION_CODE: The - country/region from which the request originates. - - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects - using HTTPS, HTTP/2 or HTTP/3. If not available, the key type - defaults to ALL. - USER_IP: The IP address of the originating - client, which is resolved based on "userIpRequestHeaders" configured - with the security policy. If there is no "userIpRequestHeaders" - configuration or an IP address cannot be resolved from it, the key - type defaults to IP. - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint - if the client connects using HTTPS, HTTP/2 or HTTP/3. If not - available, the key type defaults to ALL. + values are: + + :: + + - ALL: A single rate limit threshold is applied to all + the requests matching this rule. This is the default value if + "enforceOnKeyConfigs" is not configured. + - IP: The source IP address of + the request is the key. Each IP has this limit enforced + separately. + - HTTP_HEADER: The value of the HTTP + header whose name is configured under "enforceOnKeyName". The key + value is truncated to the first 128 bytes of the header value. If no + such header is present in the request, the key type defaults toALL. + - XFF_IP: The first IP address (i.e. the + originating client IP address) specified in the list of IPs under + X-Forwarded-For HTTP header. If no such header is present or the + value is not a valid IP, the key defaults to the source IP address of + the request i.e. key type IP. + - HTTP_COOKIE: The value of the HTTP + cookie whose name is configured under "enforceOnKeyName". The key + value is truncated to the first 128 bytes of the cookie value. If no + such cookie is present in the request, the key type defaults toALL. + - HTTP_PATH: The URL path of the HTTP request. The key + value is truncated to the first 128 bytes. + - SNI: Server name indication in the TLS session of + the HTTPS request. The key value is truncated to the first 128 bytes. + The key type defaults to ALL on a HTTP session. + - REGION_CODE: The country/region from which the + request originates. + - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the + client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the + key type defaults to ALL. + - USER_IP: The IP address of the originating client, + which is resolved based on "userIpRequestHeaders" configured with the + security policy. If there is no "userIpRequestHeaders" configuration + or an IP address cannot be resolved from it, the key type defaults toIP. + + - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the client + connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key + type defaults to ALL. Values: UNDEFINED_ENFORCE_ON_KEY_TYPE (0): @@ -104294,20 +118382,29 @@ class SecurityPolicyRuleRedirectOptions(proto.Message): This field is a member of `oneof`_ ``_target``. type_ (str): - Type of the redirect action. Possible values are: - - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual challenge - assessment. - EXTERNAL_302: redirect to a different URL via - a 302 response. Check the Type enum for the list of possible - values. + Type of the redirect action. Possible values are: + + :: + + - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual + challenge assessment. + - EXTERNAL_302: redirect to a different URL via a 302 + response. + + Check the Type enum for the list of possible values. This field is a member of `oneof`_ ``_type``. """ class Type(proto.Enum): - r"""Type of the redirect action. Possible values are: - - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual challenge - assessment. - EXTERNAL_302: redirect to a different URL via a 302 - response. + r"""Type of the redirect action. Possible values are: + + :: + + - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual + challenge assessment. + - EXTERNAL_302: redirect to a different URL via a 302 + response. Values: UNDEFINED_TYPE (0): @@ -104342,17 +118439,24 @@ class SecurityPolicyUserDefinedField(proto.Message): Attributes: base (str): The base relative to which 'offset' is - measured. Possible values are: - IPV4: Points to - the beginning of the IPv4 header. - IPV6: Points - to the beginning of the IPv6 header. - TCP: - Points to the beginning of the TCP header, - skipping over any IPv4 options or IPv6 extension - headers. Not present for non-first fragments. - - UDP: Points to the beginning of the UDP header, - skipping over any IPv4 options or IPv6 extension - headers. Not present for non-first fragments. - required Check the Base enum for the list of - possible values. + measured. Possible values are: + + - IPV4: Points to the beginning of the IPv4 + header. + - IPV6: Points to the beginning of the IPv6 + header. + - TCP: Points to the beginning of the TCP + header, skipping over any IPv4 options or + IPv6 extension headers. Not present for + non-first fragments. + - UDP: Points to the beginning of the UDP + header, skipping over any IPv4 options or + IPv6 extension headers. Not present for + non-first fragments. + + required + Check the Base enum for the list of possible + values. This field is a member of `oneof`_ ``_base``. mask (str): @@ -104383,13 +118487,18 @@ class SecurityPolicyUserDefinedField(proto.Message): class Base(proto.Enum): r"""The base relative to which 'offset' is measured. Possible - values are: - IPV4: Points to the beginning of the IPv4 header. - - IPV6: Points to the beginning of the IPv6 header. - TCP: - Points to the beginning of the TCP header, skipping over any - IPv4 options or IPv6 extension headers. Not present for - non-first fragments. - UDP: Points to the beginning of the UDP - header, skipping over any IPv4 options or IPv6 extension - headers. Not present for non-first fragments. required + values are: + + - IPV4: Points to the beginning of the IPv4 header. + - IPV6: Points to the beginning of the IPv6 header. + - TCP: Points to the beginning of the TCP header, skipping + over any IPv4 options or IPv6 extension headers. Not present + for non-first fragments. + - UDP: Points to the beginning of the UDP header, skipping + over any IPv4 options or IPv6 extension headers. Not present + for non-first fragments. + + required Values: UNDEFINED_BASE (0): @@ -104456,28 +118565,32 @@ class SecuritySettings(proto.Message): Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. - clientTlsPolicy only applies to a global BackendService with - the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If - left blank, communications are not encrypted. + + clientTlsPolicy only applies to a globalBackendService with + the loadBalancingScheme set to INTERNAL_SELF_MANAGED. + + If left blank, communications are not encrypted. This field is a member of `oneof`_ ``_client_tls_policy``. subject_alt_names (MutableSequence[str]): Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an - server/endpoint for this BackendService. When the server + server/endpoint for thisBackendService. When the server presents its X.509 certificate to the client, the client - inspects the certificate's subjectAltName field. If the - field contains one of the specified values, the - communication continues. Otherwise, it fails. This - additional check enables the client to verify that the - server is authorized to run the requested service. Note that - the contents of the server certificate's subjectAltName - field are configured by the Public Key Infrastructure which - provisions server identities. Only applies to a global - BackendService with loadBalancingScheme set to - INTERNAL_SELF_MANAGED. Only applies when BackendService has - an attached clientTlsPolicy with clientCertificate (mTLS - mode). + inspects the certificate'ssubjectAltName field. If the field + contains one of the specified values, the communication + continues. Otherwise, it fails. This additional check + enables the client to verify that the server is authorized + to run the requested service. + + Note that the contents of the server certificate's + subjectAltName field are configured by the Public Key + Infrastructure which provisions server identities. + + Only applies to a global BackendService + withloadBalancingScheme set to INTERNAL_SELF_MANAGED. Only + applies when BackendService has an attachedclientTlsPolicy + with clientCertificate (mTLS mode). """ aws_v4_authentication: "AWSV4Signature" = proto.Field( @@ -104542,8 +118655,8 @@ class SerialPortOutput(proto.Message): This field is a member of `oneof`_ ``_contents``. kind (str): - [Output Only] Type of the resource. Always - compute#serialPortOutput for serial port output. + Output only. [Output Only] Type of the resource. + Alwayscompute#serialPortOutput for serial port output. This field is a member of `oneof`_ ``_kind``. next_ (int): @@ -104554,7 +118667,8 @@ class SerialPortOutput(proto.Message): This field is a member of `oneof`_ ``_next``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. start (int): @@ -104664,19 +118778,20 @@ class ServiceAccount(proto.Message): class ServiceAttachment(proto.Message): - r"""Represents a ServiceAttachment resource. A service attachment - represents a service that a producer has exposed. It - encapsulates the load balancer which fronts the service runs and - a list of NAT IP ranges that the producers uses to represent the - consumers connecting to the service. + r"""Represents a ServiceAttachment resource. + + A service attachment represents a service that a producer has + exposed. It encapsulates the load balancer which fronts the + service runs and a list of NAT IP ranges that the producers uses + to represent the consumers connecting to the service. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: connected_endpoints (MutableSequence[google.cloud.compute_v1.types.ServiceAttachmentConnectedEndpoint]): - [Output Only] An array of connections for all the consumers - connected to this service attachment. + Output only. [Output Only] An array of connections for all + the consumers connected to this service attachment. connection_preference (str): The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service @@ -104707,7 +118822,8 @@ class ServiceAttachment(proto.Message): attachment must contain either only projects or only networks. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -104744,13 +118860,13 @@ class ServiceAttachment(proto.Message): This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] The unique identifier for the resource type. - The server generates this identifier. + Output only. [Output Only] The unique identifier for the + resource type. The server generates this identifier. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#serviceAttachment for service attachments. + Output only. [Output Only] Type of the resource. + Alwayscompute#serviceAttachment for service attachments. This field is a member of `oneof`_ ``_kind``. metadata (MutableMapping[str, str]): @@ -104758,7 +118874,7 @@ class ServiceAttachment(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -104782,45 +118898,58 @@ class ServiceAttachment(proto.Message): Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment - from a single consumer. If the connection preference of the - service attachment is ACCEPT_MANUAL, the limit applies to - each project or network that is listed in the consumer - accept list. If the connection preference of the service - attachment is ACCEPT_AUTOMATIC, the limit applies to each - project that contains a connected endpoint. If unspecified, - the default propagated connection limit is 250. + from a single consumer. + + If the connection preference of the service attachment is + ACCEPT_MANUAL, the limit applies to each project or network + that is listed in the consumer accept list. If the + connection preference of the service attachment is + ACCEPT_AUTOMATIC, the limit applies to each project that + contains a connected endpoint. + + If unspecified, the default propagated connection limit is + 250. This field is a member of `oneof`_ ``_propagated_connection_limit``. psc_service_attachment_id (google.cloud.compute_v1.types.Uint128): - [Output Only] An 128-bit global unique ID of the PSC service - attachment. + Output only. [Output Only] An 128-bit global unique ID of + the PSC service attachment. This field is a member of `oneof`_ ``_psc_service_attachment_id``. reconcile_connections (bool): This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC - endpoints. - If false, connection policy update - will only affect existing PENDING PSC endpoints. - Existing ACCEPTED/REJECTED endpoints will remain - untouched regardless how the connection policy - is modified . - If true, update will affect both - PENDING and ACCEPTED/REJECTED PSC endpoints. For + endpoints. + + + - If false, connection policy update will + only affect existing PENDING PSC + endpoints. Existing ACCEPTED/REJECTED + endpoints will remain untouched regardless + how the connection policy is modified . + - If true, + update will affect both PENDING and + ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved - to REJECTED if its project is added to the - reject list. For newly created service - attachment, this boolean defaults to false. + to REJECTED if its project is added to the + reject list. + + For newly created service attachment, this + boolean defaults to false. This field is a member of `oneof`_ ``_reconcile_connections``. region (str): - [Output Only] URL of the region where the service attachment - resides. This field applies only to the region resource. You - must specify this field as part of the HTTP request URL. It - is not settable as a field in the request body. + Output only. [Output Only] URL of the region where the + service attachment resides. This field applies only to the + region resource. You must specify this field as part of the + HTTP request URL. It is not settable as a field in the + request body. This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. target_service (str): @@ -104976,24 +119105,25 @@ class ServiceAttachmentAggregatedList(proto.Message): A list of ServiceAttachmentsScopedList resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -105199,14 +119329,14 @@ class ServiceAttachmentList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.ServiceAttachment]): A list of ServiceAttachment resources. kind (str): - [Output Only] Type of the resource. Always - compute#serviceAttachment for service attachments. + Output only. [Output Only] Type of the resource. + Alwayscompute#serviceAttachment for service attachments. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -105303,17 +119433,21 @@ class SetBackendServiceTargetSslProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_ssl_proxies_set_backend_service_request_resource (google.cloud.compute_v1.types.TargetSslProxiesSetBackendServiceRequest): @@ -105358,17 +119492,21 @@ class SetBackendServiceTargetTcpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_tcp_proxies_set_backend_service_request_resource (google.cloud.compute_v1.types.TargetTcpProxiesSetBackendServiceRequest): @@ -105419,17 +119557,21 @@ class SetBackupTargetPoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_pool (str): @@ -105483,17 +119625,21 @@ class SetCertificateMapTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxies_set_certificate_map_request_resource (google.cloud.compute_v1.types.TargetHttpsProxiesSetCertificateMapRequest): @@ -105539,17 +119685,21 @@ class SetCertificateMapTargetSslProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_ssl_proxies_set_certificate_map_request_resource (google.cloud.compute_v1.types.TargetSslProxiesSetCertificateMapRequest): @@ -105597,17 +119747,21 @@ class SetCloudArmorTierProjectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -105740,17 +119894,21 @@ class SetCommonInstanceMetadataProjectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -105788,17 +119946,21 @@ class SetDefaultNetworkTierProjectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -105839,17 +120001,21 @@ class SetDeletionProtectionInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -105906,17 +120072,21 @@ class SetDiskAutoDeleteInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -105969,17 +120139,21 @@ class SetEdgeSecurityPolicyBackendBucketRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy_reference_resource (google.cloud.compute_v1.types.SecurityPolicyReference): @@ -106025,17 +120199,21 @@ class SetEdgeSecurityPolicyBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy_reference_resource (google.cloud.compute_v1.types.SecurityPolicyReference): @@ -106541,9 +120719,112 @@ class SetIamPolicyNodeTemplateRequest(proto.Message): ) -class SetIamPolicyRegionBackendServiceRequest(proto.Message): - r"""A request message for RegionBackendServices.SetIamPolicy. See - the method description for details. +class SetIamPolicyRegionBackendServiceRequest(proto.Message): + r"""A request message for RegionBackendServices.SetIamPolicy. See + the method description for details. + + Attributes: + project (str): + Project ID for this request. + region (str): + The name of the region for this request. + region_set_policy_request_resource (google.cloud.compute_v1.types.RegionSetPolicyRequest): + The body resource for this request + resource (str): + Name or id of the resource for this request. + """ + + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + region_set_policy_request_resource: "RegionSetPolicyRequest" = proto.Field( + proto.MESSAGE, + number=276489091, + message="RegionSetPolicyRequest", + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + + +class SetIamPolicyRegionDiskRequest(proto.Message): + r"""A request message for RegionDisks.SetIamPolicy. See the + method description for details. + + Attributes: + project (str): + Project ID for this request. + region (str): + The name of the region for this request. + region_set_policy_request_resource (google.cloud.compute_v1.types.RegionSetPolicyRequest): + The body resource for this request + resource (str): + Name or id of the resource for this request. + """ + + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + region_set_policy_request_resource: "RegionSetPolicyRequest" = proto.Field( + proto.MESSAGE, + number=276489091, + message="RegionSetPolicyRequest", + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + + +class SetIamPolicyRegionInstantSnapshotRequest(proto.Message): + r"""A request message for RegionInstantSnapshots.SetIamPolicy. + See the method description for details. + + Attributes: + project (str): + Project ID for this request. + region (str): + The name of the region for this request. + region_set_policy_request_resource (google.cloud.compute_v1.types.RegionSetPolicyRequest): + The body resource for this request + resource (str): + Name or id of the resource for this request. + """ + + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + region_set_policy_request_resource: "RegionSetPolicyRequest" = proto.Field( + proto.MESSAGE, + number=276489091, + message="RegionSetPolicyRequest", + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + + +class SetIamPolicyRegionNetworkFirewallPolicyRequest(proto.Message): + r"""A request message for + RegionNetworkFirewallPolicies.SetIamPolicy. See the method + description for details. Attributes: project (str): @@ -106575,124 +120856,103 @@ class SetIamPolicyRegionBackendServiceRequest(proto.Message): ) -class SetIamPolicyRegionDiskRequest(proto.Message): - r"""A request message for RegionDisks.SetIamPolicy. See the +class SetIamPolicyReservationBlockRequest(proto.Message): + r"""A request message for ReservationBlocks.SetIamPolicy. See the method description for details. Attributes: + parent_resource (str): + Name or id of parent resource of the resource + for this request. project (str): Project ID for this request. - region (str): - The name of the region for this request. - region_set_policy_request_resource (google.cloud.compute_v1.types.RegionSetPolicyRequest): - The body resource for this request resource (str): Name or id of the resource for this request. + zone (str): + The name of the zone for this request. + zone_set_nested_policy_request_resource (google.cloud.compute_v1.types.ZoneSetNestedPolicyRequest): + The body resource for this request """ - project: str = proto.Field( + parent_resource: str = proto.Field( proto.STRING, - number=227560217, + number=18091011, ) - region: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=138946292, - ) - region_set_policy_request_resource: "RegionSetPolicyRequest" = proto.Field( - proto.MESSAGE, - number=276489091, - message="RegionSetPolicyRequest", + number=227560217, ) resource: str = proto.Field( proto.STRING, number=195806222, ) - - -class SetIamPolicyRegionInstantSnapshotRequest(proto.Message): - r"""A request message for RegionInstantSnapshots.SetIamPolicy. - See the method description for details. - - Attributes: - project (str): - Project ID for this request. - region (str): - The name of the region for this request. - region_set_policy_request_resource (google.cloud.compute_v1.types.RegionSetPolicyRequest): - The body resource for this request - resource (str): - Name or id of the resource for this request. - """ - - project: str = proto.Field( - proto.STRING, - number=227560217, - ) - region: str = proto.Field( + zone: str = proto.Field( proto.STRING, - number=138946292, + number=3744684, ) - region_set_policy_request_resource: "RegionSetPolicyRequest" = proto.Field( + zone_set_nested_policy_request_resource: "ZoneSetNestedPolicyRequest" = proto.Field( proto.MESSAGE, - number=276489091, - message="RegionSetPolicyRequest", - ) - resource: str = proto.Field( - proto.STRING, - number=195806222, + number=266352851, + message="ZoneSetNestedPolicyRequest", ) -class SetIamPolicyRegionNetworkFirewallPolicyRequest(proto.Message): - r"""A request message for - RegionNetworkFirewallPolicies.SetIamPolicy. See the method - description for details. +class SetIamPolicyReservationRequest(proto.Message): + r"""A request message for Reservations.SetIamPolicy. See the + method description for details. Attributes: project (str): Project ID for this request. - region (str): - The name of the region for this request. - region_set_policy_request_resource (google.cloud.compute_v1.types.RegionSetPolicyRequest): - The body resource for this request resource (str): Name or id of the resource for this request. + zone (str): + The name of the zone for this request. + zone_set_policy_request_resource (google.cloud.compute_v1.types.ZoneSetPolicyRequest): + The body resource for this request """ project: str = proto.Field( proto.STRING, number=227560217, ) - region: str = proto.Field( - proto.STRING, - number=138946292, - ) - region_set_policy_request_resource: "RegionSetPolicyRequest" = proto.Field( - proto.MESSAGE, - number=276489091, - message="RegionSetPolicyRequest", - ) resource: str = proto.Field( proto.STRING, number=195806222, ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + zone_set_policy_request_resource: "ZoneSetPolicyRequest" = proto.Field( + proto.MESSAGE, + number=382082107, + message="ZoneSetPolicyRequest", + ) -class SetIamPolicyReservationRequest(proto.Message): - r"""A request message for Reservations.SetIamPolicy. See the - method description for details. +class SetIamPolicyReservationSubBlockRequest(proto.Message): + r"""A request message for ReservationSubBlocks.SetIamPolicy. See + the method description for details. Attributes: + parent_resource (str): + Name or id of parent resource of the resource + for this request. project (str): Project ID for this request. resource (str): Name or id of the resource for this request. zone (str): The name of the zone for this request. - zone_set_policy_request_resource (google.cloud.compute_v1.types.ZoneSetPolicyRequest): + zone_set_nested_policy_request_resource (google.cloud.compute_v1.types.ZoneSetNestedPolicyRequest): The body resource for this request """ + parent_resource: str = proto.Field( + proto.STRING, + number=18091011, + ) project: str = proto.Field( proto.STRING, number=227560217, @@ -106705,10 +120965,10 @@ class SetIamPolicyReservationRequest(proto.Message): proto.STRING, number=3744684, ) - zone_set_policy_request_resource: "ZoneSetPolicyRequest" = proto.Field( + zone_set_nested_policy_request_resource: "ZoneSetNestedPolicyRequest" = proto.Field( proto.MESSAGE, - number=382082107, - message="ZoneSetPolicyRequest", + number=266352851, + message="ZoneSetNestedPolicyRequest", ) @@ -106896,21 +121156,25 @@ class SetInstanceTemplateInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -106960,17 +121224,21 @@ class SetInstanceTemplateRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -107018,17 +121286,21 @@ class SetLabelsAddressRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107074,17 +121346,21 @@ class SetLabelsDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107166,17 +121442,21 @@ class SetLabelsForwardingRuleRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107310,17 +121590,21 @@ class SetLabelsInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -107366,17 +121650,21 @@ class SetLabelsInstantSnapshotRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107430,17 +121718,21 @@ class SetLabelsInterconnectAttachmentRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107546,17 +121838,21 @@ class SetLabelsRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107606,17 +121902,21 @@ class SetLabelsRegionInstantSnapshotRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107666,17 +121966,21 @@ class SetLabelsRegionSecurityPolicyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107782,17 +122086,21 @@ class SetLabelsTargetVpnGatewayRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107842,17 +122150,21 @@ class SetLabelsVpnGatewayRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107902,17 +122214,21 @@ class SetLabelsVpnTunnelRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. resource (str): @@ -107962,17 +122278,21 @@ class SetMachineResourcesInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -108022,17 +122342,21 @@ class SetMachineTypeInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -108084,17 +122408,21 @@ class SetMetadataInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -108144,17 +122472,21 @@ class SetMinCpuPlatformInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -108204,17 +122536,21 @@ class SetNameInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -108265,22 +122601,26 @@ class SetNamedPortsInstanceGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the instance group - is located. + The name of the zone + where the instance group is located. """ instance_group: str = proto.Field( @@ -108329,17 +122669,21 @@ class SetNamedPortsRegionInstanceGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -108387,17 +122731,21 @@ class SetNodeTemplateNodeGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -108445,17 +122793,21 @@ class SetPrivateIpGoogleAccessSubnetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. subnetwork (str): @@ -108503,17 +122855,21 @@ class SetProxyHeaderTargetSslProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_ssl_proxies_set_proxy_header_request_resource (google.cloud.compute_v1.types.TargetSslProxiesSetProxyHeaderRequest): @@ -108558,17 +122914,21 @@ class SetProxyHeaderTargetTcpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_tcp_proxies_set_proxy_header_request_resource (google.cloud.compute_v1.types.TargetTcpProxiesSetProxyHeaderRequest): @@ -108613,17 +122973,21 @@ class SetQuicOverrideTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxies_set_quic_override_request_resource (google.cloud.compute_v1.types.TargetHttpsProxiesSetQuicOverrideRequest): @@ -108671,17 +123035,21 @@ class SetSchedulingInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. scheduling_resource (google.cloud.compute_v1.types.Scheduling): @@ -108733,17 +123101,21 @@ class SetSecurityPolicyBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy_reference_resource (google.cloud.compute_v1.types.SecurityPolicyReference): @@ -108791,17 +123163,21 @@ class SetSecurityPolicyInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -108854,17 +123230,21 @@ class SetSecurityPolicyRegionBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy_reference_resource (google.cloud.compute_v1.types.SecurityPolicyReference): @@ -108910,17 +123290,21 @@ class SetSecurityPolicyTargetInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy_reference_resource (google.cloud.compute_v1.types.SecurityPolicyReference): @@ -108974,17 +123358,21 @@ class SetSecurityPolicyTargetPoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. security_policy_reference_resource (google.cloud.compute_v1.types.SecurityPolicyReference): @@ -109038,17 +123426,21 @@ class SetServiceAccountInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -109098,17 +123490,21 @@ class SetShieldedInstanceIntegrityPolicyInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. shielded_instance_integrity_policy_resource (google.cloud.compute_v1.types.ShieldedInstanceIntegrityPolicy): @@ -109163,17 +123559,21 @@ class SetSslCertificatesRegionTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxy (str): @@ -109220,17 +123620,21 @@ class SetSslCertificatesTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxies_set_ssl_certificates_request_resource (google.cloud.compute_v1.types.TargetHttpsProxiesSetSslCertificatesRequest): @@ -109275,17 +123679,21 @@ class SetSslCertificatesTargetSslProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_ssl_proxies_set_ssl_certificates_request_resource (google.cloud.compute_v1.types.TargetSslProxiesSetSslCertificatesRequest): @@ -109330,17 +123738,21 @@ class SetSslPolicyTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_policy_reference_resource (google.cloud.compute_v1.types.SslPolicyReference): @@ -109386,17 +123798,21 @@ class SetSslPolicyTargetSslProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. ssl_policy_reference_resource (google.cloud.compute_v1.types.SslPolicyReference): @@ -109444,17 +123860,21 @@ class SetTagsInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. tags_resource (google.cloud.compute_v1.types.Tags): @@ -109507,17 +123927,21 @@ class SetTargetForwardingRuleRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_reference_resource (google.cloud.compute_v1.types.TargetReference): @@ -109566,17 +123990,21 @@ class SetTargetGlobalForwardingRuleRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_reference_resource (google.cloud.compute_v1.types.TargetReference): @@ -109622,21 +124050,25 @@ class SetTargetPoolsInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -109686,17 +124118,21 @@ class SetTargetPoolsRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -109742,17 +124178,21 @@ class SetUrlMapRegionTargetHttpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_http_proxy (str): @@ -109803,17 +124243,21 @@ class SetUrlMapRegionTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxy (str): @@ -109862,17 +124306,21 @@ class SetUrlMapTargetHttpProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_http_proxy (str): @@ -109917,17 +124365,21 @@ class SetUrlMapTargetHttpsProxyRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. target_https_proxy (str): @@ -109972,17 +124424,21 @@ class SetUsageExportBucketProjectRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. usage_export_location_resource (google.cloud.compute_v1.types.UsageExportLocation): @@ -110089,17 +124545,17 @@ class ShieldedInstanceConfig(proto.Message): Attributes: enable_integrity_monitoring (bool): Defines whether the instance has integrity - monitoring enabled. Enabled by default. + monitoring enabled.Enabled by default. This field is a member of `oneof`_ ``_enable_integrity_monitoring``. enable_secure_boot (bool): Defines whether the instance has Secure Boot - enabled. Disabled by default. + enabled.Disabled by default. This field is a member of `oneof`_ ``_enable_secure_boot``. enable_vtpm (bool): Defines whether the instance has the vTPM - enabled. Enabled by default. + enabled.Enabled by default. This field is a member of `oneof`_ ``_enable_vtpm``. """ @@ -110127,6 +124583,18 @@ class ShieldedInstanceIdentity(proto.Message): .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + ecc_p256_encryption_key (google.cloud.compute_v1.types.ShieldedInstanceIdentityEntry): + An Endorsement Key (EK) made by the ECC P256 + algorithm issued to the Shielded Instance's + vTPM. + + This field is a member of `oneof`_ ``_ecc_p256_encryption_key``. + ecc_p256_signing_key (google.cloud.compute_v1.types.ShieldedInstanceIdentityEntry): + An Attestation Key (AK) made by the ECC P256 + algorithm issued to the Shielded Instance's + vTPM. + + This field is a member of `oneof`_ ``_ecc_p256_signing_key``. encryption_key (google.cloud.compute_v1.types.ShieldedInstanceIdentityEntry): An Endorsement Key (EK) made by the RSA 2048 algorithm issued to the Shielded Instance's @@ -110134,8 +124602,8 @@ class ShieldedInstanceIdentity(proto.Message): This field is a member of `oneof`_ ``_encryption_key``. kind (str): - [Output Only] Type of the resource. Always - compute#shieldedInstanceIdentity for shielded Instance + Output only. [Output Only] Type of the resource. + Alwayscompute#shieldedInstanceIdentity for shielded Instance identity entry. This field is a member of `oneof`_ ``_kind``. @@ -110147,6 +124615,18 @@ class ShieldedInstanceIdentity(proto.Message): This field is a member of `oneof`_ ``_signing_key``. """ + ecc_p256_encryption_key: "ShieldedInstanceIdentityEntry" = proto.Field( + proto.MESSAGE, + number=469607365, + optional=True, + message="ShieldedInstanceIdentityEntry", + ) + ecc_p256_signing_key: "ShieldedInstanceIdentityEntry" = proto.Field( + proto.MESSAGE, + number=477678403, + optional=True, + message="ShieldedInstanceIdentityEntry", + ) encryption_key: "ShieldedInstanceIdentityEntry" = proto.Field( proto.MESSAGE, number=488268707, @@ -110196,8 +124676,8 @@ class ShieldedInstanceIdentityEntry(proto.Message): class ShieldedInstanceIntegrityPolicy(proto.Message): - r"""The policy describes the baseline against which Instance boot - integrity is measured. + r"""The policy describes the baseline against which + Instance boot integrity is measured. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -110228,7 +124708,7 @@ class SignedUrlKey(proto.Message): Attributes: key_name (str): Name of the key. The name must be 1-63 characters long, and - comply with RFC1035. Specifically, the name must be 1-63 + comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -110238,7 +124718,7 @@ class SignedUrlKey(proto.Message): This field is a member of `oneof`_ ``_key_name``. key_value (str): 128-bit key value used for signing the URL. - The key value must be a valid RFC 4648 Section 5 + The key value must be a validRFC 4648 Section 5 base64url encoded string. This field is a member of `oneof`_ ``_key_value``. @@ -110273,17 +124753,21 @@ class SimulateMaintenanceEventInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. with_extended_notifications (bool): @@ -110340,17 +124824,21 @@ class SimulateMaintenanceEventNodeGroupRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -110382,23 +124870,26 @@ class SimulateMaintenanceEventNodeGroupRequest(proto.Message): class Snapshot(proto.Message): - r"""Represents a Persistent Disk Snapshot resource. You can use - snapshots to back up data on a regular interval. For more - information, read Creating persistent disk snapshots. + r"""Represents a Persistent Disk Snapshot resource. + + You can use snapshots to back up data on a regular interval. For + more information, read Creating + persistent disk snapshots. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: architecture (str): - [Output Only] The architecture of the snapshot. Valid values - are ARM64 or X86_64. Check the Architecture enum for the - list of possible values. + Output only. [Output Only] The architecture of the snapshot. + Valid values are ARM64 or X86_64. Check the Architecture + enum for the list of possible values. This field is a member of `oneof`_ ``_architecture``. auto_created (bool): - [Output Only] Set to true if snapshots are automatically - created by applying resource policy on the target disk. + Output only. [Output Only] Set to true if snapshots are + automatically created by applying resource policy on the + target disk. This field is a member of `oneof`_ ``_auto_created``. chain_name (str): @@ -110414,12 +124905,13 @@ class Snapshot(proto.Message): This field is a member of `oneof`_ ``_chain_name``. creation_size_bytes (int): - [Output Only] Size in bytes of the snapshot at creation - time. + Output only. [Output Only] Size in bytes of the snapshot at + creation time. This field is a member of `oneof`_ ``_creation_size_bytes``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -110429,18 +124921,19 @@ class Snapshot(proto.Message): This field is a member of `oneof`_ ``_description``. disk_size_gb (int): - [Output Only] Size of the source disk, specified in GB. + Output only. [Output Only] Size of the source disk, + specified in GB. This field is a member of `oneof`_ ``_disk_size_gb``. download_bytes (int): - [Output Only] Number of bytes downloaded to restore a - snapshot to a disk. + Output only. [Output Only] Number of bytes downloaded to + restore a snapshot to a disk. This field is a member of `oneof`_ ``_download_bytes``. enable_confidential_compute (bool): - Whether this snapshot is created from a confidential compute - mode disk. [Output Only]: This field is not set by user, but - from source disk. + Output only. Whether this snapshot is created from a + confidential compute mode disk. [Output Only]: This field is + not set by user, but from source disk. This field is a member of `oneof`_ ``_enable_confidential_compute``. guest_flush (bool): @@ -110450,18 +124943,18 @@ class Snapshot(proto.Message): This field is a member of `oneof`_ ``_guest_flush``. guest_os_features (MutableSequence[google.cloud.compute_v1.types.GuestOsFeature]): - [Output Only] A list of features to enable on the guest - operating system. Applicable only for bootable images. Read - Enabling guest operating system features to see a list of - available options. + Output only. [Output Only] A list of features to enable on + the guest operating system. Applicable only for bootable + images. Read Enabling guest operating system features to see + a list of available options. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always compute#snapshot - for Snapshot resources. + Output only. [Output Only] Type of the resource. Always + compute#snapshot for Snapshot resources. This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -110473,33 +124966,35 @@ class Snapshot(proto.Message): or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make a get() request to - retrieve a snapshot. + fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a snapshot. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): Labels to apply to this snapshot. These can - be later modified by the setLabels method. Label - values may be empty. + be later modified by the setLabels method. + Label values may be empty. license_codes (MutableSequence[int]): - [Output Only] Integer license codes indicating which - licenses are attached to this snapshot. + Output only. [Output Only] Integer license codes indicating + which licenses are attached to this snapshot. licenses (MutableSequence[str]): - [Output Only] A list of public visible licenses that apply - to this snapshot. This can be because the original image had - licenses attached (such as a Windows image). + Output only. [Output Only] A list of public visible licenses + that apply to this snapshot. This can be because the + original image had licenses attached (such as a Windows + image). location_hint (str): An opaque location hint used to place the - snapshot close to other resources. This field is - for use by internal tools that use the public - API. + snapshot close to other resources. + This field is for use by internal tools that use + the public API. This field is a member of `oneof`_ ``_location_hint``. name (str): Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -110517,23 +125012,28 @@ class Snapshot(proto.Message): This field is a member of `oneof`_ ``_satisfies_pzi``. satisfies_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_satisfies_pzs``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. snapshot_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - Encrypts the snapshot using a - customer-supplied encryption key. After you - encrypt a snapshot using a customer-supplied - key, you must provide the same key if you use - the snapshot later. For example, you must - provide the encryption key when you create a - disk from the encrypted snapshot in a future - request. Customer-supplied encryption keys do - not protect access to metadata of the snapshot. + Encrypts the snapshot using + acustomer-supplied encryption key. + + After you encrypt a snapshot using a + customer-supplied key, you must provide the same + key if you use the snapshot later. For example, + you must provide the encryption key when you + create a disk from the encrypted snapshot in a + future request. + + Customer-supplied encryption keys do not protect + access to metadata of the snapshot. + If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key @@ -110552,9 +125052,10 @@ class Snapshot(proto.Message): This field is a member of `oneof`_ ``_source_disk``. source_disk_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - The customer-supplied encryption key of the - source disk. Required if the source disk is - protected by a customer-supplied encryption key. + The customer-supplied + encryption key of the source disk. Required if + the source disk is protected by a + customer-supplied encryption key. This field is a member of `oneof`_ ``_source_disk_encryption_key``. source_disk_for_recovery_checkpoint (str): @@ -110563,21 +125064,24 @@ class Snapshot(proto.Message): This field is a member of `oneof`_ ``_source_disk_for_recovery_checkpoint``. source_disk_id (str): - [Output Only] The ID value of the disk used to create this - snapshot. This value may be used to determine whether the - snapshot was taken from the current or a previous instance - of a given disk name. + Output only. [Output Only] The ID value of the disk used to + create this snapshot. This value may be used to determine + whether the snapshot was taken from the current or a + previous instance of a given disk name. This field is a member of `oneof`_ ``_source_disk_id``. source_instant_snapshot (str): The source instant snapshot used to create this snapshot. You can provide this as a partial or full URL to the resource. For example, the - following are valid values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /instantSnapshots/instantSnapshot - - projects/project/zones/zone/instantSnapshots/instantSnapshot - - zones/zone/instantSnapshots/instantSnapshot + following are valid values: + + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/instantSnapshots/instantSnapshot + - + projects/project/zones/zone/instantSnapshots/instantSnapshot + - zones/zone/instantSnapshots/instantSnapshot This field is a member of `oneof`_ ``_source_instant_snapshot``. source_instant_snapshot_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): @@ -110586,45 +125090,45 @@ class Snapshot(proto.Message): This field is a member of `oneof`_ ``_source_instant_snapshot_encryption_key``. source_instant_snapshot_id (str): - [Output Only] The unique ID of the instant snapshot used to - create this snapshot. This value identifies the exact - instant snapshot that was used to create this snapshot. For - example, if you created the snapshot from an instant - snapshot that was later deleted and recreated under the same - name, the source instant snapshot ID would identify the - exact instant snapshot that was used. + Output only. [Output Only] The unique ID of the instant + snapshot used to create this snapshot. This value identifies + the exact instant snapshot that was used to create this + snapshot. For example, if you created the snapshot from an + instant snapshot that was later deleted and recreated under + the same name, the source instant snapshot ID would identify + the exact instant snapshot that was used. This field is a member of `oneof`_ ``_source_instant_snapshot_id``. source_snapshot_schedule_policy (str): - [Output Only] URL of the resource policy which created this - scheduled snapshot. + Output only. [Output Only] URL of the resource policy which + created this scheduled snapshot. This field is a member of `oneof`_ ``_source_snapshot_schedule_policy``. source_snapshot_schedule_policy_id (str): - [Output Only] ID of the resource policy which created this - scheduled snapshot. + Output only. [Output Only] ID of the resource policy which + created this scheduled snapshot. This field is a member of `oneof`_ ``_source_snapshot_schedule_policy_id``. status (str): - [Output Only] The status of the snapshot. This can be - CREATING, DELETING, FAILED, READY, or UPLOADING. Check the - Status enum for the list of possible values. + Output only. [Output Only] The status of the snapshot. This + can beCREATING, DELETING, FAILED,READY, or UPLOADING. Check + the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. storage_bytes (int): - [Output Only] A size of the storage used by the snapshot. As - snapshots share storage, this number is expected to change - with snapshot creation/deletion. + Output only. [Output Only] A size of the storage used by the + snapshot. As snapshots share storage, this number is + expected to change with snapshot creation/deletion. This field is a member of `oneof`_ ``_storage_bytes``. storage_bytes_status (str): - [Output Only] An indicator whether storageBytes is in a - stable state or it is being adjusted as a result of shared - storage reallocation. This status can either be UPDATING, - meaning the size of the snapshot is being updated, or - UP_TO_DATE, meaning the size of the snapshot is up-to-date. - Check the StorageBytesStatus enum for the list of possible - values. + Output only. [Output Only] An indicator whether storageBytes + is in a stable state or it is being adjusted as a result of + shared storage reallocation. This status can either be + UPDATING, meaning the size of the snapshot is being updated, + or UP_TO_DATE, meaning the size of the snapshot is + up-to-date. Check the StorageBytesStatus enum for the list + of possible values. This field is a member of `oneof`_ ``_storage_bytes_status``. storage_locations (MutableSequence[str]): @@ -110633,8 +125137,8 @@ class Snapshot(proto.Message): """ class Architecture(proto.Enum): - r"""[Output Only] The architecture of the snapshot. Valid values are - ARM64 or X86_64. + r"""Output only. [Output Only] The architecture of the snapshot. Valid + values are ARM64 or X86_64. Values: UNDEFINED_ARCHITECTURE (0): @@ -110670,8 +125174,8 @@ class SnapshotType(proto.Enum): STANDARD = 484642493 class Status(proto.Enum): - r"""[Output Only] The status of the snapshot. This can be CREATING, - DELETING, FAILED, READY, or UPLOADING. + r"""Output only. [Output Only] The status of the snapshot. This can + beCREATING, DELETING, FAILED,READY, or UPLOADING. Values: UNDEFINED_STATUS (0): @@ -110696,11 +125200,11 @@ class Status(proto.Enum): UPLOADING = 267603489 class StorageBytesStatus(proto.Enum): - r"""[Output Only] An indicator whether storageBytes is in a stable state - or it is being adjusted as a result of shared storage reallocation. - This status can either be UPDATING, meaning the size of the snapshot - is being updated, or UP_TO_DATE, meaning the size of the snapshot is - up-to-date. + r"""Output only. [Output Only] An indicator whether storageBytes is in a + stable state or it is being adjusted as a result of shared storage + reallocation. This status can either be UPDATING, meaning the size + of the snapshot is being updated, or UP_TO_DATE, meaning the size of + the snapshot is up-to-date. Values: UNDEFINED_STORAGE_BYTES_STATUS (0): @@ -110922,20 +125426,21 @@ class SnapshotList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Snapshot]): A list of Snapshot resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -110988,9 +125493,12 @@ class SnapshotParams(proto.Message): resource_manager_tags (MutableMapping[str, str]): Resource manager tags to be bound to the snapshot. Tag keys and values have the same definition as resource manager - tags. Keys must be in the format ``tagKeys/{tag_key_id}``, - and values are in the format ``tagValues/456``. The field is - ignored (both PUT & PATCH) when empty. + tags. Keys and values can be either in numeric format, such + as ``tagKeys/{tag_key_id}`` and ``tagValues/456`` or in + namespaced format such as + ``{org_id|project_id}/{tag_key_short_name}`` and + ``{tag_value_short_name}``. The field is ignored (both PUT & + PATCH) when empty. """ resource_manager_tags: MutableMapping[str, str] = proto.MapField( @@ -111114,20 +125622,23 @@ class SourceDiskEncryptionKey(proto.Message): Attributes: disk_encryption_key (google.cloud.compute_v1.types.CustomerEncryptionKey): - The customer-supplied encryption key of the - source disk. Required if the source disk is - protected by a customer-supplied encryption key. + Thecustomer-supplied + encryption key of the source disk. Required if + the source disk is protected by a + customer-supplied encryption key. This field is a member of `oneof`_ ``_disk_encryption_key``. source_disk (str): URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid - values: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /disks/disk - - projects/project/zones/zone/disks/disk - - zones/zone/disks/disk + values: + + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + - projects/project/zones/zone/disks/disk + - zones/zone/disks/disk This field is a member of `oneof`_ ``_source_disk``. """ @@ -111182,7 +125693,7 @@ class SourceInstanceProperties(proto.Message): their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave - this set to false. See the Enable IP forwarding + this set tofalse. See theEnable IP forwarding documentation for more information. This field is a member of `oneof`_ ``_can_ip_forward``. @@ -111226,7 +125737,7 @@ class SourceInstanceProperties(proto.Message): The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom - metadata or predefined keys. See Project and + metadata or predefined keys. SeeProject and instance metadata for more information. This field is a member of `oneof`_ ``_metadata``. @@ -111236,7 +125747,7 @@ class SourceInstanceProperties(proto.Message): may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: - "Intel Haswell" or minCpuPlatform: "Intel Sandy + "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform. @@ -111262,7 +125773,7 @@ class SourceInstanceProperties(proto.Message): identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must - comply with RFC1035. + comply withRFC1035. This field is a member of `oneof`_ ``_tags``. """ @@ -111365,22 +125876,35 @@ class KeyRevocationActionType(proto.Enum): class SslCertificate(proto.Message): - r"""Represents an SSL certificate resource. Google Compute Engine has - two SSL certificate resources: \* - `Global `__ \* - `Regional `__ - The global SSL certificates (sslCertificates) are used by: - Global - external Application Load Balancers - Classic Application Load - Balancers - Proxy Network Load Balancers (with target SSL proxies) - The regional SSL certificates (regionSslCertificates) are used by: - - Regional external Application Load Balancers - Regional internal - Application Load Balancers Optionally, certificate file contents - that you upload can contain a set of up to five PEM-encoded - certificates. The API call creates an object (sslCertificate) that - holds this data. You can use SSL keys and certificates to secure - connections to a load balancer. For more information, read Creating - and using SSL certificates, SSL certificates quotas and limits, and - Troubleshooting SSL certificates. + r"""Represents an SSL certificate resource. + + Google Compute Engine has two SSL certificate resources: + + - `Global `__ + - `Regional `__ + + The global SSL certificates (sslCertificates) are used by: + + :: + + - Global external Application Load Balancers + - Classic Application Load Balancers + - Proxy Network Load Balancers (with target SSL proxies) + + The regional SSL certificates (regionSslCertificates) are used by: + + :: + + - Regional external Application Load Balancers + - Regional internal Application Load Balancers + + Optionally, certificate file contents that you upload can contain a + set of up to five PEM-encoded certificates. The API call creates an + object (sslCertificate) that holds this data. You can use SSL keys + and certificates to secure connections to a load balancer. For more + information, read Creating and using SSL certificates,SSL + certificates quotas and limits, and Troubleshooting SSL + certificates. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -111395,7 +125919,7 @@ class SslCertificate(proto.Message): This field is a member of `oneof`_ ``_certificate``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + [Output Only] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -111405,7 +125929,8 @@ class SslCertificate(proto.Message): This field is a member of `oneof`_ ``_description``. expire_time (str): - [Output Only] Expire time of the certificate. RFC3339 + Output only. [Output Only] Expire time of the certificate. + RFC3339 This field is a member of `oneof`_ ``_expire_time``. id (int): @@ -111414,8 +125939,8 @@ class SslCertificate(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#sslCertificate for SSL certificates. + Output only. [Output Only] Type of the resource. + Alwayscompute#sslCertificate for SSL certificates. This field is a member of `oneof`_ ``_kind``. managed (google.cloud.compute_v1.types.SslCertificateManagedSslCertificate): @@ -111426,7 +125951,7 @@ class SslCertificate(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -111442,9 +125967,9 @@ class SslCertificate(proto.Message): This field is a member of `oneof`_ ``_private_key``. region (str): - [Output Only] URL of the region where the regional SSL - Certificate resides. This field is not applicable to global - SSL Certificate. + Output only. [Output Only] URL of the region where the + regional SSL Certificate resides. This field is not + applicable to global SSL Certificate. This field is a member of `oneof`_ ``_region``. self_link (str): @@ -111457,12 +125982,12 @@ class SslCertificate(proto.Message): This field is a member of `oneof`_ ``_self_managed``. subject_alternative_names (MutableSequence[str]): - [Output Only] Domains associated with the certificate via - Subject Alternative Name. + Output only. [Output Only] Domains associated with the + certificate via Subject Alternative Name. type_ (str): (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the - certificate is self-managed and the fields certificate and + certificate is self-managed and the fieldscertificate and private_key are used. Check the Type enum for the list of possible values. @@ -111472,7 +125997,7 @@ class SslCertificate(proto.Message): class Type(proto.Enum): r"""(Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is - self-managed and the fields certificate and private_key are used. + self-managed and the fieldscertificate and private_key are used. Values: UNDEFINED_TYPE (0): @@ -111578,26 +126103,27 @@ class SslCertificateAggregatedList(proto.Message): A list of SslCertificatesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#sslCertificateAggregatedList for lists of SSL + Output only. [Output Only] Type of resource. + Alwayscompute#sslCertificateAggregatedList for lists of SSL Certificates. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -111660,20 +126186,21 @@ class SslCertificateList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.SslCertificate]): A list of SslCertificate resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -111726,22 +126253,24 @@ class SslCertificateManagedSslCertificate(proto.Message): Attributes: domain_status (MutableMapping[str, str]): - [Output only] Detailed statuses of the domains specified for - managed certificate resource. + Output only. [Output only] Detailed statuses of the domains + specified for managed certificate resource. domains (MutableSequence[str]): The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the `maximum number of domains per Google-managed SSL certificate `__. status (str): - [Output only] Status of the managed certificate resource. - Check the Status enum for the list of possible values. + Output only. [Output only] Status of the managed certificate + resource. Check the Status enum for the list of possible + values. This field is a member of `oneof`_ ``_status``. """ class Status(proto.Enum): - r"""[Output only] Status of the managed certificate resource. + r"""Output only. [Output only] Status of the managed certificate + resource. Values: UNDEFINED_STATUS (0): @@ -111875,25 +126404,27 @@ class SslPoliciesAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.SslPoliciesScopedList]): A list of SslPoliciesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#sslPolicyAggregatedList for lists of SSL Policies. + Output only. [Output Only] Type of resource. + Alwayscompute#sslPolicyAggregatedList for lists of SSL + Policies. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -111954,28 +126485,29 @@ class SslPoliciesList(proto.Message): Attributes: id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.SslPolicy]): - A list of SslPolicy resources. + Output only. A list of SslPolicy resources. kind (str): - [Output Only] Type of the resource. Always - compute#sslPoliciesList for lists of sslPolicies. + Output only. [Output Only] Type of the resource. + Alwayscompute#sslPoliciesList for lists of sslPolicies. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -112065,25 +126597,28 @@ class SslPoliciesScopedList(proto.Message): class SslPolicy(proto.Message): - r"""Represents an SSL Policy resource. Use SSL policies to - control SSL features, such as versions and cipher suites, that - are offered by Application Load Balancers and proxy Network Load - Balancers. For more information, read SSL policies overview. + r"""Represents an SSL Policy resource. + + Use SSL policies to control SSL features, such as versions and + cipher suites, that are offered by Application Load Balancers + and proxy Network Load Balancers. For more information, read + SSL policies overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. custom_features (MutableSequence[str]): A list of features enabled when the selected - profile is CUSTOM. The method returns the set of - features that can be specified in this list. - This field must be empty if the profile is not - CUSTOM. + profile is CUSTOM. The method returns the set + of features that can be specified in this list. + This field must be empty if the profile is + notCUSTOM. description (str): An optional description of this resource. Provide this property when you create the @@ -112091,8 +126626,8 @@ class SslPolicy(proto.Message): This field is a member of `oneof`_ ``_description``. enabled_features (MutableSequence[str]): - [Output Only] The list of features enabled in the SSL - policy. + Output only. [Output Only] The list of features enabled in + the SSL policy. fingerprint (str): Fingerprint of this resource. A hash of the contents stored in this object. This field is @@ -112100,26 +126635,29 @@ class SslPolicy(proto.Message): ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request - will fail with error 412 conditionNotMet. To see - the latest fingerprint, make a get() request to - retrieve an SslPolicy. + will fail with error 412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve an SslPolicy. This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output only] Type of the resource. Always - compute#sslPolicyfor SSL policies. + Output only. [Output only] Type of the resource. + Alwayscompute#sslPolicyfor SSL policies. This field is a member of `oneof`_ ``_kind``. min_tls_version (str): The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. - This can be one of TLS_1_0, TLS_1_1, TLS_1_2. Check the - MinTlsVersion enum for the list of possible values. + This can be one ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When + set to TLS_1_3, the profile field must be set to RESTRICTED. + Check the MinTlsVersion enum for the list of possible + values. This field is a member of `oneof`_ ``_min_tls_version``. name (str): @@ -112135,8 +126673,8 @@ class SslPolicy(proto.Message): profile (str): Profile specifies the set of SSL features that can be used by the load balancer when - negotiating SSL with clients. This can be one of - COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If + negotiating SSL with clients. This can be one + ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field. Check the Profile enum for the list of possible @@ -112144,25 +126682,27 @@ class SslPolicy(proto.Message): This field is a member of `oneof`_ ``_profile``. region (str): - [Output Only] URL of the region where the regional SSL - policy resides. This field is not applicable to global SSL - policies. + Output only. [Output Only] URL of the region where the + regional SSL policy resides. This field is not applicable to + global SSL policies. This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. warnings (MutableSequence[google.cloud.compute_v1.types.Warnings]): - [Output Only] If potential misconfigurations are detected - for this SSL policy, this field will be populated with - warning messages. + Output only. [Output Only] If potential misconfigurations + are detected for this SSL policy, this field will be + populated with warning messages. """ class MinTlsVersion(proto.Enum): r"""The minimum version of SSL protocol that can be used by the clients - to establish a connection with the load balancer. This can be one of - TLS_1_0, TLS_1_1, TLS_1_2. + to establish a connection with the load balancer. This can be one + ofTLS_1_0, TLS_1_1, TLS_1_2,TLS_1_3. When set to TLS_1_3, the + profile field must be set to RESTRICTED. Values: UNDEFINED_MIN_TLS_VERSION (0): @@ -112174,18 +126714,21 @@ class MinTlsVersion(proto.Enum): TLS 1.1 TLS_1_2 (33116736): TLS 1.2 + TLS_1_3 (33116737): + TLS 1.3 """ UNDEFINED_MIN_TLS_VERSION = 0 TLS_1_0 = 33116734 TLS_1_1 = 33116735 TLS_1_2 = 33116736 + TLS_1_3 = 33116737 class Profile(proto.Enum): r"""Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be - one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using - CUSTOM, the set of SSL features to enable must be specified in - the customFeatures field. + one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, + the set of SSL features to enable must be specified in the + customFeatures field. Values: UNDEFINED_PROFILE (0): @@ -112200,6 +126743,10 @@ class Profile(proto.Enum): Custom profile. Allow only the set of allowed SSL features specified in the customFeatures field. + FIPS_202205 (475828188): + FIPS compatible profile. Supports a reduced + set of SSL features, intended to meet FIPS 140-3 + compliance requirements. MODERN (132013855): Modern profile. Supports a wide set of SSL features, allowing modern clients to negotiate @@ -112212,6 +126759,7 @@ class Profile(proto.Enum): UNDEFINED_PROFILE = 0 COMPATIBLE = 179357396 CUSTOM = 388595569 + FIPS_202205 = 475828188 MODERN = 132013855 RESTRICTED = 261551195 @@ -112320,17 +126868,21 @@ class StartAsyncReplicationDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -112382,17 +126934,21 @@ class StartAsyncReplicationRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -112438,17 +126994,21 @@ class StartInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -112493,21 +127053,25 @@ class StartInstancesInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -112557,17 +127121,21 @@ class StartInstancesRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -112615,17 +127183,21 @@ class StartWithEncryptionKeyInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -112733,7 +127305,7 @@ class StatefulPolicyPreservedStateDiskDevice(proto.Message): flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Note: disks attached - in READ_ONLY mode cannot be auto-deleted. Check the + inREAD_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values. This field is a member of `oneof`_ ``_auto_delete``. @@ -112744,7 +127316,7 @@ class AutoDelete(proto.Enum): update or VM instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is - deleted. Note: disks attached in READ_ONLY mode cannot be + deleted. Note: disks attached inREAD_ONLY mode cannot be auto-deleted. Values: @@ -112780,18 +127352,19 @@ class StatefulPolicyPreservedStateNetworkIp(proto.Message): configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group - is deleted. Check the AutoDelete enum for the - list of possible values. + is deleted. + Check the AutoDelete enum for the list of + possible values. This field is a member of `oneof`_ ``_auto_delete``. """ class AutoDelete(proto.Enum): r"""These stateful IPs will never be released during autohealing, - update or VM instance recreate operations. This flag is used to - configure if the IP reservation should be deleted after it is no - longer used by the group, e.g. when the given instance or the - whole group is deleted. + update or VM instance recreate operations. + This flag is used to configure if the IP reservation should be + deleted after it is no longer used by the group, e.g. when the + given instance or the whole group is deleted. Values: UNDEFINED_AUTO_DELETE (0): @@ -112818,8 +127391,10 @@ class Status(proto.Message): for different programming environments, including REST APIs and RPC APIs. It is used by `gRPC `__. Each ``Status`` message contains three pieces of data: error code, error - message, and error details. You can find out more about this error - model and how to work with it in the `API Design + message, and error details. + + You can find out more about this error model and how to work with it + in the `API Design Guide `__. @@ -112833,7 +127408,7 @@ class Status(proto.Message): This field is a member of `oneof`_ ``_code``. details (MutableSequence[google.protobuf.any_pb2.Any]): A list of messages that carry the error - details. There is a common set of message types + details. There is a common set of message types for APIs to use. message (str): A developer-facing error message, which @@ -112879,17 +127454,21 @@ class StopAsyncReplicationDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -112934,17 +127513,21 @@ class StopAsyncReplicationRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -112985,17 +127568,21 @@ class StopGroupAsyncReplicationDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -113045,17 +127632,21 @@ class StopGroupAsyncReplicationRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -113105,17 +127696,21 @@ class StopInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -113165,21 +127760,25 @@ class StopInstancesInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -113229,17 +127828,21 @@ class StopInstancesRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -113281,7 +127884,8 @@ class StoragePool(proto.Message): This field is a member of `oneof`_ ``_capacity_provisioning_type``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -113290,13 +127894,18 @@ class StoragePool(proto.Message): resource. This field is a member of `oneof`_ ``_description``. + exapool_provisioned_capacity_gb (google.cloud.compute_v1.types.StoragePoolExapoolProvisionedCapacityGb): + Output only. [Output Only] Provisioned capacities for each + SKU for this Exapool in GiB + + This field is a member of `oneof`_ ``_exapool_provisioned_capacity_gb``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always + Output only. [Output Only] Type of the resource. Always compute#storagePool for storage pools. This field is a member of `oneof`_ ``_kind``. @@ -113309,9 +127918,10 @@ class StoragePool(proto.Message): to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve a storage pool. + request will fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a storage pool. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): @@ -113320,7 +127930,7 @@ class StoragePool(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -113354,31 +127964,38 @@ class StoragePool(proto.Message): This field is a member of `oneof`_ ``_pool_provisioned_throughput``. resource_status (google.cloud.compute_v1.types.StoragePoolResourceStatus): - [Output Only] Status information for the storage pool - resource. + Output only. [Output Only] Status information for the + storage pool resource. This field is a member of `oneof`_ ``_resource_status``. self_link (str): - [Output Only] Server-defined fully-qualified URL for this - resource. + Output only. [Output Only] Server-defined fully-qualified + URL for this resource. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource's - resource id. + Output only. [Output Only] Server-defined URL for this + resource's resource id. This field is a member of `oneof`_ ``_self_link_with_id``. state (str): - [Output Only] The status of storage pool creation. - - CREATING: Storage pool is provisioning. storagePool. - - FAILED: Storage pool creation failed. - READY: Storage pool - is ready for use. - DELETING: Storage pool is deleting. + Output only. [Output Only] The status of storage pool + creation. + + :: + + - CREATING: Storage pool is provisioning. + storagePool. + - FAILED: Storage pool creation failed. + - READY: Storage pool is ready for use. + - DELETING: Storage pool is deleting. + Check the State enum for the list of possible values. This field is a member of `oneof`_ ``_state``. status (google.cloud.compute_v1.types.StoragePoolResourceStatus): - [Output Only] Status information for the storage pool - resource. + Output only. [Output Only] Status information for the + storage pool resource. This field is a member of `oneof`_ ``_status``. storage_pool_type (str): @@ -113386,10 +128003,10 @@ class StoragePool(proto.Message): This field is a member of `oneof`_ ``_storage_pool_type``. zone (str): - [Output Only] URL of the zone where the storage pool - resides. You must specify this field as part of the HTTP - request URL. It is not settable as a field in the request - body. + Output only. [Output Only] URL of the zone where the storage + pool resides. You must specify this field as part of the + HTTP request URL. It is not settable as a field in the + request body. This field is a member of `oneof`_ ``_zone``. """ @@ -113412,9 +128029,9 @@ class CapacityProvisioningType(proto.Enum): class PerformanceProvisioningType(proto.Enum): r"""Provisioning type of the performance-related parameters of - the pool, such as throughput and IOPS. Additional supported - values which may be not listed in the enum directly due to - technical reasons: + the pool, such as throughput and IOPS. + Additional supported values which may be not listed in the enum + directly due to technical reasons: ADVANCED STANDARD @@ -113428,10 +128045,15 @@ class PerformanceProvisioningType(proto.Enum): UNDEFINED_PERFORMANCE_PROVISIONING_TYPE = 0 class State(proto.Enum): - r"""[Output Only] The status of storage pool creation. - CREATING: - Storage pool is provisioning. storagePool. - FAILED: Storage pool - creation failed. - READY: Storage pool is ready for use. - DELETING: - Storage pool is deleting. + r"""Output only. [Output Only] The status of storage pool creation. + + :: + + - CREATING: Storage pool is provisioning. + storagePool. + - FAILED: Storage pool creation failed. + - READY: Storage pool is ready for use. + - DELETING: Storage pool is deleting. Values: UNDEFINED_STATE (0): @@ -113467,6 +128089,14 @@ class State(proto.Enum): number=422937596, optional=True, ) + exapool_provisioned_capacity_gb: "StoragePoolExapoolProvisionedCapacityGb" = ( + proto.Field( + proto.MESSAGE, + number=345174240, + optional=True, + message="StoragePoolExapoolProvisionedCapacityGb", + ) + ) id: int = proto.Field( proto.UINT64, number=3355, @@ -113568,26 +128198,27 @@ class StoragePoolAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.StoragePoolsScopedList]): A list of StoragePoolsScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#storagePoolAggregatedList for aggregated lists of - storage pools. + Output only. [Output Only] Type of resource. + Alwayscompute#storagePoolAggregatedList for aggregated lists + of storage pools. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -113648,51 +128279,55 @@ class StoragePoolDisk(proto.Message): Attributes: attached_instances (MutableSequence[str]): - [Output Only] Instances this disk is attached to. + Output only. [Output Only] Instances this disk is attached + to. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. disk (str): - [Output Only] The URL of the disk. + Output only. [Output Only] The URL of the disk. This field is a member of `oneof`_ ``_disk``. name (str): - [Output Only] The name of the disk. + Output only. [Output Only] The name of the disk. This field is a member of `oneof`_ ``_name``. provisioned_iops (int): - [Output Only] The number of IOPS provisioned for the disk. + Output only. [Output Only] The number of IOPS provisioned + for the disk. This field is a member of `oneof`_ ``_provisioned_iops``. provisioned_throughput (int): - [Output Only] The throughput provisioned for the disk. + Output only. [Output Only] The throughput provisioned for + the disk. This field is a member of `oneof`_ ``_provisioned_throughput``. resource_policies (MutableSequence[str]): - [Output Only] Resource policies applied to disk for - automatic snapshot creations. + Output only. [Output Only] Resource policies applied to disk + for automatic snapshot creations. size_gb (int): - [Output Only] The disk size, in GB. + Output only. [Output Only] The disk size, in GB. This field is a member of `oneof`_ ``_size_gb``. status (str): - [Output Only] The disk status. Check the Status enum for the - list of possible values. + Output only. [Output Only] The disk status. Check the Status + enum for the list of possible values. This field is a member of `oneof`_ ``_status``. type_ (str): - [Output Only] The disk type. + Output only. [Output Only] The disk type. This field is a member of `oneof`_ ``_type``. used_bytes (int): - [Output Only] Amount of disk space used. + Output only. [Output Only] Amount of disk space used. This field is a member of `oneof`_ ``_used_bytes``. """ class Status(proto.Enum): - r"""[Output Only] The disk status. + r"""Output only. [Output Only] The disk status. Values: UNDEFINED_STATUS (0): @@ -113775,6 +128410,46 @@ class Status(proto.Enum): ) +class StoragePoolExapoolProvisionedCapacityGb(proto.Message): + r"""Exapool provisioned capacities for each SKU type + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + capacity_optimized (int): + Output only. Size, in GiB, of provisioned + capacity-optimized capacity for this Exapool + + This field is a member of `oneof`_ ``_capacity_optimized``. + read_optimized (int): + Output only. Size, in GiB, of provisioned + read-optimized capacity for this Exapool + + This field is a member of `oneof`_ ``_read_optimized``. + write_optimized (int): + Output only. Size, in GiB, of provisioned + write-optimized capacity for this Exapool + + This field is a member of `oneof`_ ``_write_optimized``. + """ + + capacity_optimized: int = proto.Field( + proto.INT64, + number=251131874, + optional=True, + ) + read_optimized: int = proto.Field( + proto.INT64, + number=389863870, + optional=True, + ) + write_optimized: int = proto.Field( + proto.INT64, + number=492523719, + optional=True, + ) + + class StoragePoolList(proto.Message): r"""A list of StoragePool resources. @@ -113792,26 +128467,27 @@ class StoragePoolList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.StoragePool]): A list of StoragePool resources. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. end_interface: - MixerListResponseWithEtagBuilder + Output only. [Output Only] Unreachable resources. + end_interface: MixerListResponseWithEtagBuilder warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -113874,36 +128550,37 @@ class StoragePoolListDisks(proto.Message): This field is a member of `oneof`_ ``_etag``. id (str): - [Output Only] Unique identifier for the resource; defined by - the server. + Output only. [Output Only] Unique identifier for the + resource; defined by the server. This field is a member of `oneof`_ ``_id``. items (MutableSequence[google.cloud.compute_v1.types.StoragePoolDisk]): A list of StoragePoolDisk resources. kind (str): - [Output Only] Type of resource. Always - compute#storagePoolListDisks for lists of disks in a + Output only. [Output Only] Type of resource. + Alwayscompute#storagePoolListDisks for lists of disks in a storagePool. This field is a member of `oneof`_ ``_kind``. next_page_token (str): - [Output Only] This token allows you to get the next page of - results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for - the query parameter pageToken in the next list request. - Subsequent list requests will have their own nextPageToken - to continue paging through the results. + Output only. [Output Only] This token allows you to get the + next page of results for list requests. If the number of + results is larger thanmaxResults, use the nextPageToken as a + value for the query parameter pageToken in the next list + request. Subsequent list requests will have their own + nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. end_interface: - MixerListResponseWithEtagBuilder + Output only. [Output Only] Unreachable resources. + end_interface: MixerListResponseWithEtagBuilder warning (google.cloud.compute_v1.types.Warning): - [Output Only] Informational warning message. + Output only. [Output Only] Informational warning message. This field is a member of `oneof`_ ``_warning``. """ @@ -113964,9 +128641,29 @@ class StoragePoolResourceStatus(proto.Message): [Output Only] Number of disks used. This field is a member of `oneof`_ ``_disk_count``. + exapool_max_read_iops (int): + Output only. [Output Only] Maximum allowed read IOPS for + this Exapool. + + This field is a member of `oneof`_ ``_exapool_max_read_iops``. + exapool_max_read_throughput (int): + Output only. [Output Only] Maximum allowed read throughput + in MiB/s for this Exapool. + + This field is a member of `oneof`_ ``_exapool_max_read_throughput``. + exapool_max_write_iops (int): + Output only. [Output Only] Maximum allowed write IOPS for + this Exapool. + + This field is a member of `oneof`_ ``_exapool_max_write_iops``. + exapool_max_write_throughput (int): + Output only. [Output Only] Maximum allowed write throughput + in MiB/s for this Exapool. + + This field is a member of `oneof`_ ``_exapool_max_write_throughput``. last_resize_timestamp (str): - [Output Only] Timestamp of the last successful resize in - RFC3339 text format. + Output only. [Output Only] Timestamp of the last successful + resize inRFC3339 text format. This field is a member of `oneof`_ ``_last_resize_timestamp``. max_total_provisioned_disk_capacity_gb (int): @@ -114020,6 +128717,26 @@ class StoragePoolResourceStatus(proto.Message): number=182933485, optional=True, ) + exapool_max_read_iops: int = proto.Field( + proto.INT64, + number=59241794, + optional=True, + ) + exapool_max_read_throughput: int = proto.Field( + proto.INT64, + number=390933251, + optional=True, + ) + exapool_max_write_iops: int = proto.Field( + proto.INT64, + number=293212537, + optional=True, + ) + exapool_max_write_throughput: int = proto.Field( + proto.INT64, + number=330367482, + optional=True, + ) last_resize_timestamp: str = proto.Field( proto.STRING, number=500825556, @@ -114074,7 +128791,7 @@ class StoragePoolType(proto.Message): Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + [Output Only] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. deprecated (google.cloud.compute_v1.types.DeprecationStatus): @@ -114092,8 +128809,8 @@ class StoragePoolType(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#storagePoolType for storage pool types. + Output only. [Output Only] Type of the resource. + Alwayscompute#storagePoolType for storage pool types. This field is a member of `oneof`_ ``_kind``. max_pool_provisioned_capacity_gb (int): @@ -114134,8 +128851,8 @@ class StoragePoolType(proto.Message): This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL for this resource with the - resource id. + Output only. [Output Only] Server-defined URL for this + resource with the resource id. This field is a member of `oneof`_ ``_self_link_with_id``. supported_disk_types (MutableSequence[str]): @@ -114252,21 +128969,22 @@ class StoragePoolTypeAggregatedList(proto.Message): A list of StoragePoolTypesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#storagePoolTypeAggregatedList . + Output only. [Output Only] Type of resource. + Alwayscompute#storagePoolTypeAggregatedList. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -114327,21 +129045,22 @@ class StoragePoolTypeList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.StoragePoolType]): A list of StoragePoolType resources. kind (str): - [Output Only] Type of resource. Always - compute#storagePoolTypeList for storage pool types. + Output only. [Output Only] Type of resource. + Alwayscompute#storagePoolTypeList for storage pool types. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -114446,18 +129165,47 @@ class StoragePoolsScopedList(proto.Message): class Subnetwork(proto.Message): - r"""Represents a Subnetwork resource. A subnetwork (also known as - a subnet) is a logical partition of a Virtual Private Cloud - network with one primary IP range and zero or more secondary IP - ranges. For more information, read Virtual Private Cloud (VPC) - Network. + r"""Represents a Subnetwork resource. + + A subnetwork (also known as a subnet) is a logical partition of + a Virtual Private Cloud network with one primary IP range and + zero or more secondary IP ranges. For more information, read + Virtual Private Cloud (VPC) Network. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: + allow_subnet_cidr_routes_overlap (bool): + Whether this subnetwork's ranges can conflict with existing + static routes. Setting this to true allows this subnetwork's + primary and secondary ranges to overlap with (and contain) + static routes that have already been configured on the + corresponding network. + + For example if a static route has range 10.1.0.0/16, a + subnet range 10.0.0.0/8 could only be created if + allow_conflicting_routes=true. + + Overlapping is only allowed on subnetwork operations; routes + whose ranges conflict with this subnetwork's ranges won't be + allowed unless route.allow_conflicting_subnetworks is set to + true. + + Typically packets destined to IPs within the subnetwork + (which may contain private/sensitive data) are prevented + from leaving the virtual network. Setting this field to true + will disable this feature. + + The default value is false and applies to all existing + subnetworks and automatically created subnetworks. + + This field cannot be set to true at resource creation time. + + This field is a member of `oneof`_ ``_allow_subnet_cidr_routes_overlap``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -114473,7 +129221,8 @@ class Subnetwork(proto.Message): listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the - subnet purpose field is set to REGIONAL_MANAGED_PROXY. + subnet purpose field is set toREGIONAL_MANAGED_PROXY. It is + recommended to uselogConfig.enable field instead. This field is a member of `oneof`_ ``_enable_flow_logs``. external_ipv6_prefix (str): @@ -114488,19 +129237,21 @@ class Subnetwork(proto.Message): ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request - will fail with error 412 conditionNotMet. To see - the latest fingerprint, make a get() request to - retrieve a Subnetwork. + will fail with error 412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a Subnetwork. This field is a member of `oneof`_ ``_fingerprint``. gateway_address (str): - [Output Only] The gateway address for default routes to - reach destination addresses outside this subnetwork. + Output only. [Output Only] The gateway address for default + routes to reach destination addresses outside this + subnetwork. This field is a member of `oneof`_ ``_gateway_address``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. internal_ipv6_prefix (str): @@ -114511,28 +129262,36 @@ class Subnetwork(proto.Message): ip_cidr_range (str): The range of internal addresses that are owned by this subnetwork. Provide this property - when you create the subnetwork. For example, - 10.0.0.0/8 or 100.64.0.0/10. Ranges must be - unique and non-overlapping within a network. + when you create the subnetwork. For + example,10.0.0.0/8 or 100.64.0.0/10. Ranges must + be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any - range listed in the Valid ranges list. The range - can be expanded after creation using - expandIpCidrRange. + range listed in theValid + ranges list. The range can be expanded after + creation usingexpandIpCidrRange. This field is a member of `oneof`_ ``_ip_cidr_range``. ip_collection (str): Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a sub-PDP in - EXTERNAL_IPV6_SUBNETWORK_CREATION mode. Use one of the - following formats to specify a sub-PDP when creating a dual - stack subnetwork with external access using BYOIP: - Full - resource URL, as in - https://www.googleapis.com/compute/v1/projects/projectId/regions/region - /publicDelegatedPrefixes/sub-pdp-name - Partial URL, as in - - projects/projectId/regions/region/publicDelegatedPrefixes/ - sub-pdp-name - - regions/region/publicDelegatedPrefixes/sub-pdp-name + EXTERNAL_IPV6_SUBNETWORK_CREATION or + INTERNAL_IPV6_SUBNETWORK_CREATION mode. + + Use one of the following formats to specify a sub-PDP when + creating a dual stack or IPv6-only subnetwork with external + access using BYOIP: + + :: + + - + Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name + - + Partial URL, as in + + + - projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name + - regions/region/publicDelegatedPrefixes/sub-pdp-name This field is a member of `oneof`_ ``_ip_collection``. ipv6_access_type (str): @@ -114544,25 +129303,29 @@ class Subnetwork(proto.Message): This field is a member of `oneof`_ ``_ipv6_access_type``. ipv6_cidr_range (str): - [Output Only] This field is for internal use. + Output only. [Output Only] This field is for internal use. This field is a member of `oneof`_ ``_ipv6_cidr_range``. ipv6_gce_endpoint (str): - [Output Only] Possible endpoints of this subnetwork. It can - be one of the following: - VM_ONLY: The subnetwork can be - used for creating instances and IPv6 addresses with VM - endpoint type. Such a subnetwork gets external IPv6 ranges - from a public delegated prefix and cannot be used to create - NetLb. - VM_AND_FR: The subnetwork can be used for creating - both VM instances and Forwarding Rules. It can also be used - to reserve IPv6 addresses with both VM and FR endpoint - types. Such a subnetwork gets its IPv6 range from Google IP - Pool directly. Check the Ipv6GceEndpoint enum for the list - of possible values. + Output only. [Output Only] Possible endpoints of this + subnetwork. It can be one of the following: + + :: + + - VM_ONLY: The subnetwork can be used for creating instances and + IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6 + ranges from a public delegated prefix and cannot be used to create NetLb. + - VM_AND_FR: The subnetwork can be used for creating both VM + instances and Forwarding Rules. It can also be used to reserve IPv6 + addresses with both VM and FR endpoint types. Such a subnetwork gets its + IPv6 range from Google IP Pool directly. + + Check the Ipv6GceEndpoint enum for the list of possible + values. This field is a member of `oneof`_ ``_ipv6_gce_endpoint``. kind (str): - [Output Only] Type of the resource. Always + Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. This field is a member of `oneof`_ ``_kind``. @@ -114575,7 +129338,7 @@ class Subnetwork(proto.Message): name (str): The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 - characters long, and comply with RFC1035. Specifically, the + characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all @@ -114604,9 +129367,10 @@ class Subnetwork(proto.Message): This field is a member of `oneof`_ ``_private_ip_google_access``. private_ipv6_google_access (str): - This field is for internal use. This field - can be both set at resource creation time and - updated using patch. Check the + This field is for internal use. + + This field can be both set at resource creation + time and updated usingpatch. Check the PrivateIpv6GoogleAccess enum for the list of possible values. @@ -114628,8 +129392,8 @@ class Subnetwork(proto.Message): This field is a member of `oneof`_ ``_reserved_internal_range``. role (str): The role of subnetwork. Currently, this field is only used - when purpose is set to GLOBAL_MANAGED_PROXY or - REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or + when purpose is set to GLOBAL_MANAGED_PROXY + orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or @@ -114645,30 +129409,32 @@ class Subnetwork(proto.Message): belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be - updated with a patch request. + updated with apatch request. self_link (str): [Output Only] Server-defined URL for the resource. This field is a member of `oneof`_ ``_self_link``. stack_type (str): The stack type for the subnet. If set to IPV4_ONLY, new VMs - in the subnet are assigned IPv4 addresses only. If set to - IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 + in the subnet are assigned IPv4 addresses only. If set + toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. + This field can be both set at resource creation time and - updated using patch. Check the StackType enum for the list - of possible values. + updated usingpatch. Check the StackType enum for the list of + possible values. This field is a member of `oneof`_ ``_stack_type``. state (str): - [Output Only] The state of the subnetwork, which can be one - of the following values: READY: Subnetwork is created and - ready to use DRAINING: only applicable to subnetworks that - have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and - indicates that connections to the load balancer are being - drained. A subnetwork that is draining cannot be used or - modified until it reaches a status of READY Check the State - enum for the list of possible values. + Output only. [Output Only] The state of the subnetwork, + which can be one of the following values:READY: Subnetwork + is created and ready to useDRAINING: only applicable to + subnetworks that have the purpose set to + INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections + to the load balancer are being drained. A subnetwork that is + draining cannot be used or modified until it reaches a + status ofREADY Check the State enum for the list of possible + values. This field is a member of `oneof`_ ``_state``. system_reserved_external_ipv6_ranges (MutableSequence[str]): @@ -114713,15 +129479,18 @@ class Ipv6AccessType(proto.Enum): UNSPECIFIED_IPV6_ACCESS_TYPE = 313080613 class Ipv6GceEndpoint(proto.Enum): - r"""[Output Only] Possible endpoints of this subnetwork. It can be one - of the following: - VM_ONLY: The subnetwork can be used for creating - instances and IPv6 addresses with VM endpoint type. Such a - subnetwork gets external IPv6 ranges from a public delegated prefix - and cannot be used to create NetLb. - VM_AND_FR: The subnetwork can - be used for creating both VM instances and Forwarding Rules. It can - also be used to reserve IPv6 addresses with both VM and FR endpoint - types. Such a subnetwork gets its IPv6 range from Google IP Pool - directly. + r"""Output only. [Output Only] Possible endpoints of this subnetwork. It + can be one of the following: + + :: + + - VM_ONLY: The subnetwork can be used for creating instances and + IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6 + ranges from a public delegated prefix and cannot be used to create NetLb. + - VM_AND_FR: The subnetwork can be used for creating both VM + instances and Forwarding Rules. It can also be used to reserve IPv6 + addresses with both VM and FR endpoint types. Such a subnetwork gets its + IPv6 range from Google IP Pool directly. Values: UNDEFINED_IPV6_GCE_ENDPOINT (0): @@ -114737,8 +129506,10 @@ class Ipv6GceEndpoint(proto.Enum): VM_ONLY = 236773428 class PrivateIpv6GoogleAccess(proto.Enum): - r"""This field is for internal use. This field can be both set at - resource creation time and updated using patch. + r"""This field is for internal use. + + This field can be both set at resource creation time and updated + usingpatch. Values: UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS (0): @@ -114805,9 +129576,9 @@ class Purpose(proto.Enum): class Role(proto.Enum): r"""The role of subnetwork. Currently, this field is only used when - purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. - The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is - one that is currently being used for Envoy-based load balancers in a + purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The + value can be set toACTIVE or BACKUP. An ACTIVE subnetwork is one + that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. @@ -114828,10 +129599,12 @@ class Role(proto.Enum): class StackType(proto.Enum): r"""The stack type for the subnet. If set to IPV4_ONLY, new VMs in the - subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new - VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If - not specified, IPV4_ONLY is used. This field can be both set at - resource creation time and updated using patch. + subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs + in the subnet can be assigned both IPv4 and IPv6 addresses. If not + specified, IPV4_ONLY is used. + + This field can be both set at resource creation time and updated + usingpatch. Values: UNDEFINED_STACK_TYPE (0): @@ -114844,7 +129617,7 @@ class StackType(proto.Enum): New VMs in this subnet will only be assigned IPv4 addresses. IPV6_ONLY (79632100): - New VMs in this subnet will only be assigned + New VMs in this subnet will only be assigned IPv6 addresses. UNSPECIFIED_STACK_TYPE (298084569): No description available. @@ -114856,12 +129629,13 @@ class StackType(proto.Enum): UNSPECIFIED_STACK_TYPE = 298084569 class State(proto.Enum): - r"""[Output Only] The state of the subnetwork, which can be one of the - following values: READY: Subnetwork is created and ready to use - DRAINING: only applicable to subnetworks that have the purpose set - to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to - the load balancer are being drained. A subnetwork that is draining - cannot be used or modified until it reaches a status of READY + r"""Output only. [Output Only] The state of the subnetwork, which can be + one of the following values:READY: Subnetwork is created and ready + to useDRAINING: only applicable to subnetworks that have the purpose + set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections + to the load balancer are being drained. A subnetwork that is + draining cannot be used or modified until it reaches a status + ofREADY Values: UNDEFINED_STATE (0): @@ -114876,6 +129650,11 @@ class State(proto.Enum): DRAINING = 480455402 READY = 77848963 + allow_subnet_cidr_routes_overlap: bool = proto.Field( + proto.BOOL, + number=67856209, + optional=True, + ) creation_timestamp: str = proto.Field( proto.STRING, number=30525366, @@ -115050,26 +129829,27 @@ class SubnetworkAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.SubnetworksScopedList]): A list of SubnetworksScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#subnetworkAggregatedList for aggregated lists of - subnetworks. + Output only. [Output Only] Type of resource. + Alwayscompute#subnetworkAggregatedList for aggregated lists + of subnetworks. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -115132,21 +129912,22 @@ class SubnetworkList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Subnetwork]): A list of Subnetwork resources. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -115239,7 +130020,7 @@ class SubnetworkLogConfig(proto.Message): Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow - logs. Default is EXCLUDE_ALL_METADATA. Check the Metadata + logs. Default isEXCLUDE_ALL_METADATA. Check the Metadata enum for the list of possible values. This field is a member of `oneof`_ ``_metadata``. @@ -115283,8 +130064,8 @@ class AggregationInterval(proto.Enum): class Metadata(proto.Enum): r"""Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields - should be added to the reported VPC flow logs. Default is - EXCLUDE_ALL_METADATA. + should be added to the reported VPC flow logs. Default + isEXCLUDE_ALL_METADATA. Values: UNDEFINED_METADATA (0): @@ -115343,11 +130124,15 @@ class SubnetworkParams(proto.Message): tags. The field is allowed for INSERT only. The keys/values to set on the resource should be specified in either ID { : } or Namespaced format { : }. For example the following are - valid inputs: \* {"tagKeys/333" : "tagValues/444", - "tagKeys/123" : "tagValues/456"} \* {"123/environment" : - "production", "345/abc" : "xyz"} Note: \* Invalid - combinations of ID & namespaced format is not supported. For - instance: {"123/environment" : "tagValues/444"} is invalid. + valid inputs: + + - {"tagKeys/333" : "tagValues/444", "tagKeys/123" : + "tagValues/456"} + - {"123/environment" : "production", "345/abc" : "xyz"} + Note: + - Invalid combinations of ID & namespaced format is not + supported. For instance: {"123/environment" : + "tagValues/444"} is invalid. """ resource_manager_tags: MutableMapping[str, str] = proto.MapField( @@ -115370,14 +130155,15 @@ class SubnetworkSecondaryRange(proto.Message): must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can - be any range listed in the Valid ranges list. + be any range listed in theValid + ranges list. This field is a member of `oneof`_ ``_ip_cidr_range``. range_name (str): The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 - characters long, and comply with RFC1035. The + characters long, and comply withRFC1035. The name must be unique within the subnetwork. This field is a member of `oneof`_ ``_range_name``. @@ -115629,9 +130415,9 @@ class SubnetworksSetPrivateIpGoogleAccessRequest(proto.Message): class Subsetting(proto.Message): - r"""Subsetting configuration for this BackendService. Currently - this is applicable only for Internal TCP/UDP load balancing, - Internal HTTP(S) load balancing and Traffic Director. + r"""Subsetting configuration for this BackendService. + Currently this is applicable only for Internal TCP/UDP load + balancing, Internal HTTP(S) load balancing and Traffic Director. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -115652,23 +130438,31 @@ class Policy(proto.Enum): A value indicating that the enum field is not set. CONSISTENT_HASH_SUBSETTING (108989492): - Subsetting based on consistent hashing. For Traffic - Director, the number of backends per backend group (the - subset size) is based on the ``subset_size`` parameter. For - Internal HTTP(S) load balancing, the number of backends per - backend group (the subset size) is dynamically adjusted in - two cases: - As the number of proxy instances participating - in Internal HTTP(S) load balancing increases, the subset - size decreases. - When the total number of backends in a - network exceeds the capacity of a single proxy instance, - subset sizes are reduced automatically for each service that - has backend subsetting enabled. + Subsetting based on consistent hashing. + + For Traffic Director, the number of backends per backend + group (the subset size) is based on the ``subset_size`` + parameter. + + For Internal HTTP(S) load balancing, the number of backends + per backend group (the subset size) is dynamically adjusted + in two cases: + + - As the number of proxy instances participating in Internal + HTTP(S) load balancing increases, the subset size + decreases. + - When the total number of backends in a network exceeds the + capacity of a single proxy instance, subset sizes are + reduced automatically for each service that has backend + subsetting enabled. NONE (2402104): - No Subsetting. Clients may open connections - and send traffic to all backends of this backend - service. This can lead to performance issues if - there is substantial imbalance in the count of - clients and backends. + No Subsetting. + + Clients may open connections and send traffic to + all backends of this backend service. This can + lead to performance issues if there is + substantial imbalance in the count of clients + and backends. """ UNDEFINED_POLICY = 0 CONSISTENT_HASH_SUBSETTING = 108989492 @@ -115706,17 +130500,21 @@ class SuspendInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -115766,21 +130564,25 @@ class SuspendInstancesInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed + The name of thezone where the managed instance group is located. """ @@ -115830,17 +130632,21 @@ class SuspendInstancesRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -115886,17 +130692,21 @@ class SwitchToCustomModeNetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -115925,7 +130735,7 @@ class TCPHealthCheck(proto.Message): port (int): The TCP port number to which the health check prober sends packets. The default value is 80. - Valid values are 1 through 65535. + Valid values are 1 through65535. This field is a member of `oneof`_ ``_port``. port_name (str): @@ -115935,7 +130745,7 @@ class TCPHealthCheck(proto.Message): port_specification (str): Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a - port number explicitly using the port field in the health + port number explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all @@ -115948,14 +130758,16 @@ class TCPHealthCheck(proto.Message): service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports - all backends that can be health checked; for example, - GCE_VM_IP_PORT network endpoint groups and instance group - backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified - for each endpoint in the network endpoint group. For - instance group backends, the health check uses the port - number determined by looking up the backend service's named - port in the instance group's list of named ports. Check the + all backends that can be health checked; for + example,GCE_VM_IP_PORT network endpoint groups and instance + group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the + health check uses the port number specified for each + endpoint in the network endpoint group. For instance group + backends, the health check uses the port number determined + by looking up the backend service's named port in the + instance group's list of named ports. Check the PortSpecification enum for the list of possible values. This field is a member of `oneof`_ ``_port_specification``. @@ -115979,6 +130791,7 @@ class TCPHealthCheck(proto.Message): the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: + https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp This field is a member of `oneof`_ ``_response``. @@ -115987,7 +130800,7 @@ class TCPHealthCheck(proto.Message): class PortSpecification(proto.Enum): r"""Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number - explicitly using the port field in the health check. Supported by + explicitly using theport field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service @@ -115999,13 +130812,14 @@ class PortSpecification(proto.Enum): supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health - checked; for example, GCE_VM_IP_PORT network endpoint groups and - instance group backends. For GCE_VM_IP_PORT network endpoint group - backends, the health check uses the port number specified for each - endpoint in the network endpoint group. For instance group backends, - the health check uses the port number determined by looking up the - backend service's named port in the instance group's list of named - ports. + checked; for example,GCE_VM_IP_PORT network endpoint groups and + instance group backends. + + For GCE_VM_IP_PORT network endpoint group backends, the health check + uses the port number specified for each endpoint in the network + endpoint group. For instance group backends, the health check uses + the port number determined by looking up the backend service's named + port in the instance group's list of named ports. Values: UNDEFINED_PORT_SPECIFICATION (0): @@ -116094,8 +130908,10 @@ class Tags(proto.Message): Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update - or change tags. To see the latest fingerprint, - make get() request to the instance. + or change tags. + + To see the latest fingerprint, make get() + request to the instance. This field is a member of `oneof`_ ``_fingerprint``. items (MutableSequence[str]): @@ -116115,19 +130931,21 @@ class Tags(proto.Message): class TargetGrpcProxy(proto.Message): - r"""Represents a Target gRPC Proxy resource. A target gRPC proxy is a - component of load balancers intended for load balancing gRPC - traffic. Only global forwarding rules with load balancing scheme - INTERNAL_SELF_MANAGED can reference a target gRPC proxy. The target - gRPC Proxy references a URL map that specifies how traffic is routed - to gRPC backend services. + r"""Represents a Target gRPC Proxy resource. + + A target gRPC proxy is a component of load balancers intended for + load balancing gRPC traffic. Only global forwarding rules with load + balancing scheme INTERNAL_SELF_MANAGED can reference a target gRPC + proxy. The target gRPC Proxy references a URL map that specifies how + traffic is routed to gRPC backend services. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -116150,19 +130968,19 @@ class TargetGrpcProxy(proto.Message): This field is a member of `oneof`_ ``_fingerprint``. id (int): - [Output Only] The unique identifier for the resource type. - The server generates this identifier. + Output only. [Output Only] The unique identifier for the + resource type. The server generates this identifier. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#targetGrpcProxy for target grpc proxies. + Output only. [Output Only] Type of the resource. + Alwayscompute#targetGrpcProxy for target grpc proxies. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -116171,11 +130989,13 @@ class TargetGrpcProxy(proto.Message): This field is a member of `oneof`_ ``_name``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. self_link_with_id (str): - [Output Only] Server-defined URL with id for the resource. + Output only. [Output Only] Server-defined URL with id for + the resource. This field is a member of `oneof`_ ``_self_link_with_id``. url_map (str): @@ -116193,12 +131013,13 @@ class TargetGrpcProxy(proto.Message): its referenced BackendServices to not allow unsupported features. A gRPC application must use "xds:///" scheme in the target URI of the - service it is connecting to. If false, indicates - that the BackendServices referenced by the - urlMap will be accessed by gRPC applications via - a sidecar proxy. In this case, a gRPC - application must not use "xds:///" scheme in the - target URI of the service it is connecting to + service it is connecting to. + If false, indicates that the BackendServices + referenced by the urlMap will be accessed by + gRPC applications via a sidecar proxy. In this + case, a gRPC application must not use "xds:///" + scheme in the target URI of the service it is + connecting to This field is a member of `oneof`_ ``_validate_for_proxyless``. """ @@ -116269,14 +131090,14 @@ class TargetGrpcProxyList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.TargetGrpcProxy]): A list of TargetGrpcProxy resources. kind (str): - [Output Only] Type of the resource. Always - compute#targetGrpcProxy for target grpc proxies. + Output only. [Output Only] Type of the resource. + Alwayscompute#targetGrpcProxy for target grpc proxies. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -116359,26 +131180,33 @@ class TargetHttpProxiesScopedList(proto.Message): class TargetHttpProxy(proto.Message): - r"""Represents a Target HTTP Proxy resource. Google Compute Engine has - two Target HTTP Proxy resources: \* - `Global `__ \* - `Regional `__ + r"""Represents a Target HTTP Proxy resource. + + Google Compute Engine has two Target HTTP Proxy resources: + + - `Global `__ + - `Regional `__ + A target HTTP proxy is a component of Google Cloud HTTP load - balancers. \* targetHttpProxies are used by global external - Application Load Balancers, classic Application Load Balancers, - cross-region internal Application Load Balancers, and Traffic - Director. \* regionTargetHttpProxies are used by regional internal - Application Load Balancers and regional external Application Load - Balancers. Forwarding rules reference a target HTTP proxy, and the - target proxy then references a URL map. For more information, read - Using Target Proxies and Forwarding rule concepts. + balancers. + + - targetHttpProxies are used by global external Application Load + Balancers, classic Application Load Balancers, cross-region + internal Application Load Balancers, and Traffic Director. + - regionTargetHttpProxies are used by regional internal Application + Load Balancers and regional external Application Load Balancers. + + Forwarding rules reference a target HTTP proxy, and the target proxy + then references a URL map. For more information, readUsing Target + Proxies and Forwarding rule concepts. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -116405,11 +131233,14 @@ class TargetHttpProxy(proto.Message): after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value - (610 seconds) will be used. For global external - Application Load Balancers, the minimum allowed - value is 5 seconds and the maximum allowed value - is 1200 seconds. For classic Application Load - Balancers, this option is not supported. + (610 seconds) will be used. + + For global external Application Load Balancers, + the minimum allowed value is 5 seconds and the + maximum allowed value is 1200 seconds. + + For classic Application Load Balancers, this + option is not supported. This field is a member of `oneof`_ ``_http_keep_alive_timeout_sec``. id (int): @@ -116418,14 +131249,14 @@ class TargetHttpProxy(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always compute#targetHttpProxy for target HTTP proxies. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -116436,20 +131267,23 @@ class TargetHttpProxy(proto.Message): proxy_bind (bool): This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set - to INTERNAL_SELF_MANAGED. When this field is set to true, - Envoy proxies set up inbound traffic interception and bind - to the IP address and port specified in the forwarding rule. - This is generally useful when using Traffic Director to - configure Envoy as a gateway or middle proxy (in other - words, not a sidecar proxy). The Envoy proxy listens for - inbound requests and handles requests when it receives them. + toINTERNAL_SELF_MANAGED. + + When this field is set to true, Envoy proxies set up inbound + traffic interception and bind to the IP address and port + specified in the forwarding rule. This is generally useful + when using Traffic Director to configure Envoy as a gateway + or middle proxy (in other words, not a sidecar proxy). The + Envoy proxy listens for inbound requests and handles + requests when it receives them. + The default is false. This field is a member of `oneof`_ ``_proxy_bind``. region (str): - [Output Only] URL of the region where the regional Target - HTTP Proxy resides. This field is not applicable to global - Target HTTP Proxies. + Output only. [Output Only] URL of the region where the + regional Target HTTP Proxy resides. This field is not + applicable to global Target HTTP Proxies. This field is a member of `oneof`_ ``_region``. self_link (str): @@ -116535,26 +131369,27 @@ class TargetHttpProxyAggregatedList(proto.Message): A list of TargetHttpProxiesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#targetHttpProxyAggregatedList for lists of Target - HTTP Proxies. + Output only. [Output Only] Type of resource. + Alwayscompute#targetHttpProxyAggregatedList for lists of + Target HTTP Proxies. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. """ @property @@ -116607,7 +131442,7 @@ class TargetHttpProxyList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.TargetHttpProxy]): A list of TargetHttpProxy resources. kind (str): - Type of resource. Always + Output only. Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. @@ -116615,14 +131450,15 @@ class TargetHttpProxyList(proto.Message): next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -116705,9 +131541,9 @@ class TargetHttpsProxiesSetCertificateMapRequest(proto.Message): Attributes: certificate_map (str): URL of the Certificate Map to associate with - this TargetHttpsProxy. Accepted format is - //certificatemanager.googleapis.com/projects/{project - }/locations/{location}/certificateMaps/{resourceName}. + this TargetHttpsProxy. + Accepted format + is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificateMaps/{resourceName}. This field is a member of `oneof`_ ``_certificate_map``. """ @@ -116782,19 +131618,25 @@ class TargetHttpsProxiesSetSslCertificatesRequest(proto.Message): class TargetHttpsProxy(proto.Message): - r"""Represents a Target HTTPS Proxy resource. Google Compute Engine has - two Target HTTPS Proxy resources: \* - `Global `__ \* - `Regional `__ + r"""Represents a Target HTTPS Proxy resource. + + Google Compute Engine has two Target HTTPS Proxy resources: + + - `Global `__ + - `Regional `__ + A target HTTPS proxy is a component of Google Cloud HTTPS load - balancers. \* targetHttpsProxies are used by global external - Application Load Balancers, classic Application Load Balancers, - cross-region internal Application Load Balancers, and Traffic - Director. \* regionTargetHttpsProxies are used by regional internal - Application Load Balancers and regional external Application Load - Balancers. Forwarding rules reference a target HTTPS proxy, and the - target proxy then references a URL map. For more information, read - Using Target Proxies and Forwarding rule concepts. + balancers. + + - targetHttpsProxies are used by global external Application Load + Balancers, classic Application Load Balancers, cross-region + internal Application Load Balancers, and Traffic Director. + - regionTargetHttpsProxies are used by regional internal Application + Load Balancers and regional external Application Load Balancers. + + Forwarding rules reference a target HTTPS proxy, and the target + proxy then references a URL map. For more information, readUsing + Target Proxies and Forwarding rule concepts. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -116805,10 +131647,15 @@ class TargetHttpsProxy(proto.Message): networksecurity.AuthorizationPolicy resource that describes how the proxy should authorize inbound traffic. If left blank, access will not be restricted by an authorization - policy. Refer to the AuthorizationPolicy resource for - additional details. authorizationPolicy only applies to a - global TargetHttpsProxy attached to globalForwardingRules - with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. + policy. + + Refer to the AuthorizationPolicy resource for additional + details. + + authorizationPolicy only applies to a globalTargetHttpsProxy + attached toglobalForwardingRules with theloadBalancingScheme + set to INTERNAL_SELF_MANAGED. + Note: This field currently has no impact. This field is a member of `oneof`_ ``_authorization_policy``. @@ -116818,15 +131665,17 @@ class TargetHttpsProxy(proto.Message): proxy. This field can only be set for Global external Application Load Balancer or Classic Application Load Balancer. For other products - use Certificate Manager Certificates instead. If - set, sslCertificates will be ignored. Accepted - format is - //certificatemanager.googleapis.com/projects/{project - }/locations/{location}/certificateMaps/{resourceName}. + use Certificate Manager Certificates instead. + + If set, sslCertificates will be ignored. + + Accepted format + is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificateMaps/{resourceName}. This field is a member of `oneof`_ ``_certificate_map``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -116853,11 +131702,14 @@ class TargetHttpsProxy(proto.Message): after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value - (610 seconds) will be used. For global external - Application Load Balancers, the minimum allowed - value is 5 seconds and the maximum allowed value - is 1200 seconds. For classic Application Load - Balancers, this option is not supported. + (610 seconds) will be used. + + For global external Application Load Balancers, + the minimum allowed value is 5 seconds and the + maximum allowed value is 1200 seconds. + + For classic Application Load Balancers, this + option is not supported. This field is a member of `oneof`_ ``_http_keep_alive_timeout_sec``. id (int): @@ -116866,14 +131718,14 @@ class TargetHttpsProxy(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of resource. Always - compute#targetHttpsProxy for target HTTPS proxies. + Output only. [Output Only] Type of resource. + Alwayscompute#targetHttpsProxy for target HTTPS proxies. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -116884,13 +131736,16 @@ class TargetHttpsProxy(proto.Message): proxy_bind (bool): This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set - to INTERNAL_SELF_MANAGED. When this field is set to true, - Envoy proxies set up inbound traffic interception and bind - to the IP address and port specified in the forwarding rule. - This is generally useful when using Traffic Director to - configure Envoy as a gateway or middle proxy (in other - words, not a sidecar proxy). The Envoy proxy listens for - inbound requests and handles requests when it receives them. + toINTERNAL_SELF_MANAGED. + + When this field is set to true, Envoy proxies set up inbound + traffic interception and bind to the IP address and port + specified in the forwarding rule. This is generally useful + when using Traffic Director to configure Envoy as a gateway + or middle proxy (in other words, not a sidecar proxy). The + Envoy proxy listens for inbound requests and handles + requests when it receives them. + The default is false. This field is a member of `oneof`_ ``_proxy_bind``. @@ -116898,22 +131753,25 @@ class TargetHttpsProxy(proto.Message): Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines whether the load balancer attempts to - negotiate QUIC with clients. You can specify - NONE, ENABLE, or DISABLE. - When quic-override - is set to NONE, Google manages whether QUIC is - used. - When quic-override is set to ENABLE, the - load balancer uses QUIC when possible. - When - quic-override is set to DISABLE, the load - balancer doesn't use QUIC. - If the - quic-override flag is not specified, NONE is - implied. Check the QuicOverride enum for the - list of possible values. + negotiate QUIC with clients. + You can specify NONE, ENABLE, orDISABLE. + + - When quic-override is set to NONE, + Google manages whether QUIC is used. + - When quic-override is set to ENABLE, the + load balancer uses QUIC when possible. + - When quic-override is set to DISABLE, the + load balancer doesn't use QUIC. + - If the quic-override flag is not + specified,NONE is implied. Check the + QuicOverride enum for the list of possible + values. This field is a member of `oneof`_ ``_quic_override``. region (str): - [Output Only] URL of the region where the regional - TargetHttpsProxy resides. This field is not applicable to - global TargetHttpsProxies. + Output only. [Output Only] URL of the region where the + regional TargetHttpsProxy resides. This field is not + applicable to global TargetHttpsProxies. This field is a member of `oneof`_ ``_region``. self_link (str): @@ -116924,18 +131782,20 @@ class TargetHttpsProxy(proto.Message): Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. - serverTlsPolicy only applies to a global TargetHttpsProxy - attached to globalForwardingRules with the - loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL - or EXTERNAL_MANAGED or INTERNAL_MANAGED. It also applies to - a regional TargetHttpsProxy attached to regional - forwardingRules with the loadBalancingScheme set to - EXTERNAL_MANAGED or INTERNAL_MANAGED. For details which - ServerTlsPolicy resources are accepted with - INTERNAL_SELF_MANAGED and which with EXTERNAL, - INTERNAL_MANAGED, EXTERNAL_MANAGED loadBalancingScheme - consult ServerTlsPolicy documentation. If left blank, - communications are not encrypted. + + serverTlsPolicy only applies to a globalTargetHttpsProxy + attached toglobalForwardingRules with theloadBalancingScheme + set to INTERNAL_SELF_MANAGED or EXTERNAL orEXTERNAL_MANAGED + or INTERNAL_MANAGED. It also applies to a regional + TargetHttpsProxy attached to regional forwardingRules with + theloadBalancingScheme set to EXTERNAL_MANAGED + orINTERNAL_MANAGED. For details whichServerTlsPolicy + resources are accepted withINTERNAL_SELF_MANAGED and which + with EXTERNAL,INTERNAL_MANAGED, + EXTERNAL_MANAGEDloadBalancingScheme consult ServerTlsPolicy + documentation. + + If left blank, communications are not encrypted. This field is a member of `oneof`_ ``_server_tls_policy``. ssl_certificates (MutableSequence[str]): @@ -116943,22 +131803,26 @@ class TargetHttpsProxy(proto.Message): authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme - is set to INTERNAL_SELF_MANAGED. The URLs should refer to a - SSL Certificate resource or Certificate Manager Certificate - resource. Mixing Classic Certificates and Certificate - Manager Certificates is not allowed. Certificate Manager - Certificates must include the certificatemanager API - namespace. Using Certificate Manager Certificates in this - field is not supported by Global external Application Load - Balancer or Classic Application Load Balancer, use - certificate_map instead. Currently, you may specify up to 15 - Classic SSL Certificates or up to 100 Certificate Manager - Certificates. Certificate Manager Certificates accepted - formats are: - - //certificatemanager.googleapis.com/projects/{project}/locations/{ - location}/certificates/{resourceName}. - - https://certificatemanager.googleapis.com/v1alpha1/projects/{project - }/locations/{location}/certificates/{resourceName}. + is set to INTERNAL_SELF_MANAGED. + + The URLs should refer to a SSL Certificate resource or + Certificate Manager Certificate resource. Mixing Classic + Certificates and Certificate Manager Certificates is not + allowed. Certificate Manager Certificates must include the + certificatemanager API namespace. Using Certificate Manager + Certificates in this field is not supported by Global + external Application Load Balancer or Classic Application + Load Balancer, use certificate_map instead. + + Currently, you may specify up to 15 Classic SSL Certificates + or up to 100 Certificate Manager Certificates. + + Certificate Manager Certificates accepted formats are: + + :: + + - //certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificates/{resourceName}. + - https://certificatemanager.googleapis.com/v1alpha1/projects/{project}/locations/{location}/certificates/{resourceName}. ssl_policy (str): URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. @@ -116974,14 +131838,18 @@ class TargetHttpsProxy(proto.Message): request) alongside the handshake, reducing the effective round trips to "zero". This applies to TLS 1.3 connections over TCP (HTTP/2) as well as - over UDP (QUIC/h3). This can improve application - performance, especially on networks where - interruptions may be common, such as on mobile. + over UDP (QUIC/h3). + + This can improve application performance, + especially on networks where interruptions may + be common, such as on mobile. + Requests with Early Data will have the "Early-Data" HTTP header set on the request, with a value of "1", to allow the backend to - determine whether Early Data was included. Note: - TLS Early Data may allow requests to be + determine whether Early Data was included. + + Note: TLS Early Data may allow requests to be replayed, as the data is sent to the backend before the handshake has fully completed. Applications that allow idempotent HTTP methods @@ -116990,9 +131858,11 @@ class TargetHttpsProxy(proto.Message): Early Data on those requests, and reject requests with the "Early-Data: 1" HTTP header by returning a HTTP 425 (Too Early) status code, in - order to remain RFC compliant. The default value - is DISABLED. Check the TlsEarlyData enum for the - list of possible values. + order to remain RFC compliant. + + The default value is DISABLED. + Check the TlsEarlyData enum for the list of + possible values. This field is a member of `oneof`_ ``_tls_early_data``. url_map (str): @@ -117000,11 +131870,12 @@ class TargetHttpsProxy(proto.Message): UrlMap resource that defines the mapping from URL to the BackendService. For example, the following are all valid URLs for specifying a - URL map: - - https://www.googleapis.compute/v1/projects/project/global/urlMaps/ - url-map - - projects/project/global/urlMaps/url-map - - global/urlMaps/url-map + URL map: + + - + https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map + - projects/project/global/urlMaps/url-map + - global/urlMaps/url-map This field is a member of `oneof`_ ``_url_map``. """ @@ -117012,13 +131883,16 @@ class TargetHttpsProxy(proto.Message): class QuicOverride(proto.Enum): r"""Specifies the QUIC override policy for this TargetHttpsProxy resource. This setting determines whether the load balancer - attempts to negotiate QUIC with clients. You can specify NONE, - ENABLE, or DISABLE. - When quic-override is set to NONE, Google - manages whether QUIC is used. - When quic-override is set to - ENABLE, the load balancer uses QUIC when possible. - When - quic-override is set to DISABLE, the load balancer doesn't use - QUIC. - If the quic-override flag is not specified, NONE is - implied. + attempts to negotiate QUIC with clients. + You can specify NONE, ENABLE, orDISABLE. + + - When quic-override is set to NONE, + Google manages whether QUIC is used. + - When quic-override is set to ENABLE, the + load balancer uses QUIC when possible. + - When quic-override is set to DISABLE, the + load balancer doesn't use QUIC. + - If the quic-override flag is not specified,NONE is implied. Values: UNDEFINED_QUIC_OVERRIDE (0): @@ -117046,20 +131920,25 @@ class TlsEarlyData(proto.Enum): handshake to include the initial application payload (a HTTP request) alongside the handshake, reducing the effective round trips to "zero". This applies to TLS 1.3 connections over TCP - (HTTP/2) as well as over UDP (QUIC/h3). This can improve - application performance, especially on networks where - interruptions may be common, such as on mobile. Requests with - Early Data will have the "Early-Data" HTTP header set on the - request, with a value of "1", to allow the backend to determine - whether Early Data was included. Note: TLS Early Data may allow - requests to be replayed, as the data is sent to the backend - before the handshake has fully completed. Applications that - allow idempotent HTTP methods to make non-idempotent changes, - such as a GET request updating a database, should not accept - Early Data on those requests, and reject requests with the - "Early-Data: 1" HTTP header by returning a HTTP 425 (Too Early) - status code, in order to remain RFC compliant. The default value - is DISABLED. + (HTTP/2) as well as over UDP (QUIC/h3). + + This can improve application performance, especially on networks + where interruptions may be common, such as on mobile. + + Requests with Early Data will have the "Early-Data" HTTP header + set on the request, with a value of "1", to allow the backend to + determine whether Early Data was included. + + Note: TLS Early Data may allow requests to be replayed, as the + data is sent to the backend before the handshake has fully + completed. Applications that allow idempotent HTTP methods to + make non-idempotent changes, such as a GET request updating a + database, should not accept Early Data on those requests, and + reject requests with the "Early-Data: 1" HTTP header by + returning a HTTP 425 (Too Early) status code, in order to remain + RFC compliant. + + The default value is DISABLED. Values: UNDEFINED_TLS_EARLY_DATA (0): @@ -117206,26 +132085,27 @@ class TargetHttpsProxyAggregatedList(proto.Message): A list of TargetHttpsProxiesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#targetHttpsProxyAggregatedList for lists of Target - HTTP Proxies. + Output only. [Output Only] Type of resource. + Alwayscompute#targetHttpsProxyAggregatedList for lists of + Target HTTP Proxies. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -117288,7 +132168,7 @@ class TargetHttpsProxyList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.TargetHttpsProxy]): A list of TargetHttpsProxy resources. kind (str): - Type of resource. Always + Output only. Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. @@ -117296,14 +132176,15 @@ class TargetHttpsProxyList(proto.Message): next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -117350,18 +132231,22 @@ def raw_page(self): class TargetInstance(proto.Message): - r"""Represents a Target Instance resource. You can use a target - instance to handle traffic for one or more forwarding rules, - which is ideal for forwarding protocol traffic that is managed - by a single source. For example, ESP, AH, TCP, or UDP. For more - information, read Target instances. + r"""Represents a Target Instance resource. + + You can use a target instance to handle traffic for one or more + forwarding rules, which is ideal for forwarding protocol traffic + that is managed by a single source. For example, ESP, AH, TCP, + or UDP. + For more information, readTarget + instances. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -117381,22 +132266,24 @@ class TargetInstance(proto.Message): creating a target instance, you can provide the fully-qualified URL or a valid partial URL to the desired virtual machine. For example, the - following are all valid URLs: - - https://www.googleapis.com/compute/v1/projects/project/zones/zone - /instances/instance - - projects/project/zones/zone/instances/instance - - zones/zone/instances/instance + following are all valid URLs: + + - + https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance + - + projects/project/zones/zone/instances/instance + - zones/zone/instances/instance This field is a member of `oneof`_ ``_instance``. kind (str): - [Output Only] The type of the resource. Always - compute#targetInstance for target instances. + Output only. [Output Only] The type of the resource. + Alwayscompute#targetInstance for target instances. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -117428,10 +132315,10 @@ class TargetInstance(proto.Message): This field is a member of `oneof`_ ``_self_link``. zone (str): - [Output Only] URL of the zone where the target instance - resides. You must specify this field as part of the HTTP - request URL. It is not settable as a field in the request - body. + Output only. [Output Only] URL of the zone where the target + instance resides. You must specify this field as part of the + HTTP request URL. It is not settable as a field in the + request body. This field is a member of `oneof`_ ``_zone``. """ @@ -117522,24 +132409,25 @@ class TargetInstanceAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.TargetInstancesScopedList]): A list of TargetInstance resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -117602,20 +132490,21 @@ class TargetInstanceList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.TargetInstance]): A list of TargetInstance resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -117691,11 +132580,13 @@ class TargetInstancesScopedList(proto.Message): class TargetPool(proto.Message): - r"""Represents a Target Pool resource. Target pools are used with - external passthrough Network Load Balancers. A target pool - references member instances, an associated legacy - HttpHealthCheck resource, and, optionally, a backup target pool. - For more information, read Using target pools. + r"""Represents a Target Pool resource. + + Target pools are used with external passthrough Network Load + Balancers. A target pool references member instances, an + associated legacy HttpHealthCheck resource, and, optionally, a + backup target pool. For more information, readUsing target + pools. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -117705,21 +132596,24 @@ class TargetPool(proto.Message): The server-defined URL for the resource. This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool, and its failoverRatio - field is properly set to a value between [0, 1]. backupPool + field is properly set to a value between [0, 1].backupPool and failoverRatio together define the fallback behavior of the primary target pool: if the ratio of the healthy - instances in the primary pool is at or below failoverRatio, + instances in the primary pool is at or belowfailoverRatio, traffic arriving at the load-balanced IP will be directed to - the backup pool. In case where failoverRatio and backupPool - are not set, or all the instances in the backup pool are - unhealthy, the traffic will be directed back to the primary - pool in the "force" mode, where traffic will be spread to - the healthy instances with the best effort, or to all - instances when no instance is healthy. + the backup pool. + + In case where failoverRatio and backupPool are not set, or + all the instances in the backup pool are unhealthy, the + traffic will be directed back to the primary pool in the + "force" mode, where traffic will be spread to the healthy + instances with the best effort, or to all instances when no + instance is healthy. This field is a member of `oneof`_ ``_backup_pool``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -117732,17 +132626,20 @@ class TargetPool(proto.Message): This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value - of the field must be in [0, 1]. If set, backupPool must also - be set. They together define the fallback behavior of the - primary target pool: if the ratio of the healthy instances - in the primary pool is at or below this number, traffic - arriving at the load-balanced IP will be directed to the - backup pool. In case where failoverRatio is not set or all - the instances in the backup pool are unhealthy, the traffic - will be directed back to the primary pool in the "force" - mode, where traffic will be spread to the healthy instances - with the best effort, or to all instances when no instance - is healthy. + of the field must be in [0, 1]. + + If set, backupPool must also be set. They together define + the fallback behavior of the primary target pool: if the + ratio of the healthy instances in the primary pool is at or + below this number, traffic arriving at the load-balanced IP + will be directed to the backup pool. + + In case where failoverRatio is not set or all the instances + in the backup pool are unhealthy, the traffic will be + directed back to the primary pool in the "force" mode, where + traffic will be spread to the healthy instances with the + best effort, or to all instances when no instance is + healthy. This field is a member of `oneof`_ ``_failover_ratio``. health_checks (MutableSequence[str]): @@ -117762,14 +132659,14 @@ class TargetPool(proto.Message): live in zones contained in the same region as this pool. kind (str): - [Output Only] Type of the resource. Always + Output only. [Output Only] Type of the resource. Always compute#targetPool for target pools. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -117778,8 +132675,8 @@ class TargetPool(proto.Message): This field is a member of `oneof`_ ``_name``. region (str): - [Output Only] URL of the region where the target pool - resides. + Output only. [Output Only] URL of the region where the + target pool resides. This field is a member of `oneof`_ ``_region``. security_policy (str): @@ -117958,26 +132855,27 @@ class TargetPoolAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.TargetPoolsScopedList]): A list of TargetPool resources. kind (str): - [Output Only] Type of resource. Always - compute#targetPoolAggregatedList for aggregated lists of - target pools. + Output only. [Output Only] Type of resource. + Alwayscompute#targetPoolAggregatedList for aggregated lists + of target pools. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -118035,9 +132933,9 @@ class TargetPoolInstanceHealth(proto.Message): health_status (MutableSequence[google.cloud.compute_v1.types.HealthStatus]): kind (str): - [Output Only] Type of resource. Always - compute#targetPoolInstanceHealth when checking the health of - an instance. + Output only. [Output Only] Type of resource. + Alwayscompute#targetPoolInstanceHealth when checking the + health of an instance. This field is a member of `oneof`_ ``_kind``. """ @@ -118068,21 +132966,22 @@ class TargetPoolList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.TargetPool]): A list of TargetPool resources. kind (str): - [Output Only] Type of resource. Always + Output only. [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -118152,11 +133051,13 @@ class TargetPoolsAddInstanceRequest(proto.Message): A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are - valid URLs: - - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone - /instances/instance-name - - projects/project-id/zones/zone/instances/instance-name - - zones/zone/instances/instance-name + valid URLs: + + - + https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name + - + projects/project-id/zones/zone/instances/instance-name + - zones/zone/instances/instance-name """ instances: MutableSequence["InstanceReference"] = proto.RepeatedField( @@ -118173,11 +133074,13 @@ class TargetPoolsRemoveHealthCheckRequest(proto.Message): health_checks (MutableSequence[google.cloud.compute_v1.types.HealthCheckReference]): Health check URL to be removed. This can be a full or valid partial URL. For example, the - following are valid URLs: - - https://www.googleapis.com/compute/beta/projects/project - /global/httpHealthChecks/health-check - - projects/project/global/httpHealthChecks/health-check - - global/httpHealthChecks/health-check + following are valid URLs: + + - + https://www.googleapis.com/compute/beta/projects/project/global/httpHealthChecks/health-check + - + projects/project/global/httpHealthChecks/health-check + - global/httpHealthChecks/health-check """ health_checks: MutableSequence["HealthCheckReference"] = proto.RepeatedField( @@ -118278,9 +133181,9 @@ class TargetSslProxiesSetCertificateMapRequest(proto.Message): Attributes: certificate_map (str): URL of the Certificate Map to associate with - this TargetSslProxy. Accepted format is - //certificatemanager.googleapis.com/projects/{project - }/locations/{location}/certificateMaps/{resourceName}. + this TargetSslProxy. + Accepted format + is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificateMaps/{resourceName}. This field is a member of `oneof`_ ``_certificate_map``. """ @@ -118349,11 +133252,12 @@ class TargetSslProxiesSetSslCertificatesRequest(proto.Message): class TargetSslProxy(proto.Message): - r"""Represents a Target SSL Proxy resource. A target SSL proxy is - a component of a Proxy Network Load Balancer. The forwarding - rule references the target SSL proxy, and the target proxy then - references a backend service. For more information, read Proxy - Network Load Balancer overview. + r"""Represents a Target SSL Proxy resource. + + A target SSL proxy is a component of a Proxy Network Load + Balancer. The forwarding rule references the target SSL proxy, + and the target proxy then references a backend service. For more + information, readProxy Network Load Balancer overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -118364,13 +133268,15 @@ class TargetSslProxy(proto.Message): certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will be - ignored. Accepted format is - //certificatemanager.googleapis.com/projects/{project - }/locations/{location}/certificateMaps/{resourceName}. + ignored. + + Accepted format + is//certificatemanager.googleapis.com/projects/{project}/locations/{location}/certificateMaps/{resourceName}. This field is a member of `oneof`_ ``_certificate_map``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -118385,14 +133291,14 @@ class TargetSslProxy(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#targetSslProxy for target SSL proxies. + Output only. [Output Only] Type of the resource. + Alwayscompute#targetSslProxy for target SSL proxies. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -118517,20 +133423,21 @@ class TargetSslProxyList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.TargetSslProxy]): A list of TargetSslProxy resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -118664,18 +133571,20 @@ class ProxyHeader(proto.Enum): class TargetTcpProxy(proto.Message): - r"""Represents a Target TCP Proxy resource. A target TCP proxy is - a component of a Proxy Network Load Balancer. The forwarding - rule references the target TCP proxy, and the target proxy then - references a backend service. For more information, read Proxy - Network Load Balancer overview. + r"""Represents a Target TCP Proxy resource. + + A target TCP proxy is a component of a Proxy Network Load + Balancer. The forwarding rule references the target TCP proxy, + and the target proxy then references a backend service. For more + information, readProxy Network Load Balancer overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -118690,14 +133599,14 @@ class TargetTcpProxy(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always - compute#targetTcpProxy for target TCP proxies. + Output only. [Output Only] Type of the resource. + Alwayscompute#targetTcpProxy for target TCP proxies. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -118708,13 +133617,16 @@ class TargetTcpProxy(proto.Message): proxy_bind (bool): This field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set - to INTERNAL_SELF_MANAGED. When this field is set to true, - Envoy proxies set up inbound traffic interception and bind - to the IP address and port specified in the forwarding rule. - This is generally useful when using Traffic Director to - configure Envoy as a gateway or middle proxy (in other - words, not a sidecar proxy). The Envoy proxy listens for - inbound requests and handles requests when it receives them. + toINTERNAL_SELF_MANAGED. + + When this field is set to true, Envoy proxies set up inbound + traffic interception and bind to the IP address and port + specified in the forwarding rule. This is generally useful + when using Traffic Director to configure Envoy as a gateway + or middle proxy (in other words, not a sidecar proxy). The + Envoy proxy listens for inbound requests and handles + requests when it receives them. + The default is false. This field is a member of `oneof`_ ``_proxy_bind``. @@ -118726,8 +133638,9 @@ class TargetTcpProxy(proto.Message): This field is a member of `oneof`_ ``_proxy_header``. region (str): - [Output Only] URL of the region where the regional TCP proxy - resides. This field is not applicable to global TCP proxy. + Output only. [Output Only] URL of the region where the + regional TCP proxy resides. This field is not applicable to + global TCP proxy. This field is a member of `oneof`_ ``_region``. self_link (str): @@ -118824,26 +133737,27 @@ class TargetTcpProxyAggregatedList(proto.Message): A list of TargetTcpProxiesScopedList resources. kind (str): - [Output Only] Type of resource. Always - compute#targetTcpProxyAggregatedList for lists of Target TCP - Proxies. + Output only. [Output Only] Type of resource. + Alwayscompute#targetTcpProxyAggregatedList for lists of + Target TCP Proxies. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -118906,20 +133820,21 @@ class TargetTcpProxyList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.TargetTcpProxy]): A list of TargetTcpProxy resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -118966,16 +133881,19 @@ def raw_page(self): class TargetVpnGateway(proto.Message): - r"""Represents a Target VPN Gateway resource. The target VPN - gateway resource represents a Classic Cloud VPN gateway. For - more information, read the the Cloud VPN Overview. + r"""Represents a Target VPN Gateway resource. + + The target VPN gateway resource represents a Classic Cloud VPN + gateway. For more information, read thethe + Cloud VPN Overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -118986,17 +133904,17 @@ class TargetVpnGateway(proto.Message): This field is a member of `oneof`_ ``_description``. forwarding_rules (MutableSequence[str]): [Output Only] A list of URLs to the ForwardingRule - resources. ForwardingRules are created using - compute.forwardingRules.insert and associated with a VPN - gateway. + resources. ForwardingRules are created + usingcompute.forwardingRules.insert and associated with a + VPN gateway. id (int): [Output Only] The unique identifier for the resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of resource. Always - compute#targetVpnGateway for target VPN gateways. + Output only. [Output Only] Type of resource. + Alwayscompute#targetVpnGateway for target VPN gateways. This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -119008,21 +133926,21 @@ class TargetVpnGateway(proto.Message): request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the - request will fail with error 412 - conditionNotMet. To see the latest fingerprint, - make a get() request to retrieve a - TargetVpnGateway. + request will fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a TargetVpnGateway. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): Labels for this resource. These can only be - added or modified by the setLabels method. Each - label key/value pair must comply with RFC1035. + added or modified by thesetLabels method. Each + label key/value pair must comply withRFC1035. Label values may be empty. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -119161,25 +134079,26 @@ class TargetVpnGatewayAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.TargetVpnGatewaysScopedList]): A list of TargetVpnGateway resources. kind (str): - [Output Only] Type of resource. Always - compute#targetVpnGateway for target VPN gateways. + Output only. [Output Only] Type of resource. + Alwayscompute#targetVpnGateway for target VPN gateways. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -119242,21 +134161,22 @@ class TargetVpnGatewayList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.TargetVpnGateway]): A list of TargetVpnGateway resources. kind (str): - [Output Only] Type of resource. Always - compute#targetVpnGateway for target VPN gateways. + Output only. [Output Only] Type of resource. + Alwayscompute#targetVpnGateway for target VPN gateways. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -119603,6 +134523,34 @@ class TestIamPermissionsFirewallPolicyRequest(proto.Message): ) +class TestIamPermissionsFirewallRequest(proto.Message): + r"""A request message for Firewalls.TestIamPermissions. See the + method description for details. + + Attributes: + project (str): + Project ID for this request. + resource (str): + Name or id of the resource for this request. + test_permissions_request_resource (google.cloud.compute_v1.types.TestPermissionsRequest): + The body resource for this request + """ + + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + test_permissions_request_resource: "TestPermissionsRequest" = proto.Field( + proto.MESSAGE, + number=439214758, + message="TestPermissionsRequest", + ) + + class TestIamPermissionsGlobalAddressRequest(proto.Message): r"""A request message for GlobalAddresses.TestIamPermissions. See the method description for details. @@ -120130,10 +135078,44 @@ class TestIamPermissionsPacketMirroringRequest(proto.Message): ) -class TestIamPermissionsRegionBackendServiceRequest(proto.Message): - r"""A request message for - RegionBackendServices.TestIamPermissions. See the method - description for details. +class TestIamPermissionsRegionBackendServiceRequest(proto.Message): + r"""A request message for + RegionBackendServices.TestIamPermissions. See the method + description for details. + + Attributes: + project (str): + Project ID for this request. + region (str): + The name of the region for this request. + resource (str): + Name or id of the resource for this request. + test_permissions_request_resource (google.cloud.compute_v1.types.TestPermissionsRequest): + The body resource for this request + """ + + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + region: str = proto.Field( + proto.STRING, + number=138946292, + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + test_permissions_request_resource: "TestPermissionsRequest" = proto.Field( + proto.MESSAGE, + number=439214758, + message="TestPermissionsRequest", + ) + + +class TestIamPermissionsRegionDiskRequest(proto.Message): + r"""A request message for RegionDisks.TestIamPermissions. See the + method description for details. Attributes: project (str): @@ -120165,9 +135147,10 @@ class TestIamPermissionsRegionBackendServiceRequest(proto.Message): ) -class TestIamPermissionsRegionDiskRequest(proto.Message): - r"""A request message for RegionDisks.TestIamPermissions. See the - method description for details. +class TestIamPermissionsRegionInstanceGroupRequest(proto.Message): + r"""A request message for + RegionInstanceGroups.TestIamPermissions. See the method + description for details. Attributes: project (str): @@ -120199,9 +135182,9 @@ class TestIamPermissionsRegionDiskRequest(proto.Message): ) -class TestIamPermissionsRegionInstanceGroupRequest(proto.Message): +class TestIamPermissionsRegionInstantSnapshotRequest(proto.Message): r"""A request message for - RegionInstanceGroups.TestIamPermissions. See the method + RegionInstantSnapshots.TestIamPermissions. See the method description for details. Attributes: @@ -120234,9 +135217,9 @@ class TestIamPermissionsRegionInstanceGroupRequest(proto.Message): ) -class TestIamPermissionsRegionInstantSnapshotRequest(proto.Message): +class TestIamPermissionsRegionNetworkFirewallPolicyRequest(proto.Message): r"""A request message for - RegionInstantSnapshots.TestIamPermissions. See the method + RegionNetworkFirewallPolicies.TestIamPermissions. See the method description for details. Attributes: @@ -120269,29 +135252,31 @@ class TestIamPermissionsRegionInstantSnapshotRequest(proto.Message): ) -class TestIamPermissionsRegionNetworkFirewallPolicyRequest(proto.Message): - r"""A request message for - RegionNetworkFirewallPolicies.TestIamPermissions. See the method - description for details. +class TestIamPermissionsReservationBlockRequest(proto.Message): + r"""A request message for ReservationBlocks.TestIamPermissions. + See the method description for details. Attributes: + parent_resource (str): + Name or id of parent resource of the resource + for this request. project (str): Project ID for this request. - region (str): - The name of the region for this request. resource (str): Name or id of the resource for this request. test_permissions_request_resource (google.cloud.compute_v1.types.TestPermissionsRequest): The body resource for this request + zone (str): + The name of the zone for this request. """ - project: str = proto.Field( + parent_resource: str = proto.Field( proto.STRING, - number=227560217, + number=18091011, ) - region: str = proto.Field( + project: str = proto.Field( proto.STRING, - number=138946292, + number=227560217, ) resource: str = proto.Field( proto.STRING, @@ -120302,6 +135287,10 @@ class TestIamPermissionsRegionNetworkFirewallPolicyRequest(proto.Message): number=439214758, message="TestPermissionsRequest", ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) class TestIamPermissionsReservationRequest(proto.Message): @@ -120338,6 +135327,48 @@ class TestIamPermissionsReservationRequest(proto.Message): ) +class TestIamPermissionsReservationSubBlockRequest(proto.Message): + r"""A request message for + ReservationSubBlocks.TestIamPermissions. See the method + description for details. + + Attributes: + parent_resource (str): + Name or id of parent resource of the resource + for this request. + project (str): + Project ID for this request. + resource (str): + Name or id of the resource for this request. + test_permissions_request_resource (google.cloud.compute_v1.types.TestPermissionsRequest): + The body resource for this request + zone (str): + The name of the zone for this request. + """ + + parent_resource: str = proto.Field( + proto.STRING, + number=18091011, + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + resource: str = proto.Field( + proto.STRING, + number=195806222, + ) + test_permissions_request_resource: "TestPermissionsRequest" = proto.Field( + proto.MESSAGE, + number=439214758, + message="TestPermissionsRequest", + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + class TestIamPermissionsResourcePolicyRequest(proto.Message): r"""A request message for ResourcePolicies.TestIamPermissions. See the method description for details. @@ -120745,6 +135776,8 @@ class MaintenanceReasons(proto.Enum): Maintenance due to NVLink failure. FAILURE_REDUNDANT_HARDWARE_FAULT (31000530): Maintenance due to redundant hardware fault. + FAILURE_TPU (467889412): + Maintenance due to TPU errors. INFRASTRUCTURE_RELOCATION (359845636): Maintenance due to infrastructure relocation. MAINTENANCE_REASON_UNKNOWN (50570235): @@ -120769,6 +135802,7 @@ class MaintenanceReasons(proto.Enum): FAILURE_NETWORK = 42811449 FAILURE_NVLINK = 484426295 FAILURE_REDUNDANT_HARDWARE_FAULT = 31000530 + FAILURE_TPU = 467889412 INFRASTRUCTURE_RELOCATION = 359845636 MAINTENANCE_REASON_UNKNOWN = 50570235 PLANNED_NETWORK_UPDATE = 135494677 @@ -120882,17 +135916,21 @@ class UpdateAccessConfigInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -120948,17 +135986,21 @@ class UpdateAutoscalerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -121009,17 +136051,21 @@ class UpdateBackendBucketRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -121064,17 +136110,21 @@ class UpdateBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -121121,17 +136171,21 @@ class UpdateDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. update_mask (str): @@ -121196,17 +136250,21 @@ class UpdateDisplayDeviceInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -121256,17 +136314,21 @@ class UpdateFirewallRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -121291,6 +136353,82 @@ class UpdateFirewallRequest(proto.Message): ) +class UpdateFutureReservationRequest(proto.Message): + r"""A request message for FutureReservations.Update. See the + method description for details. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + future_reservation (str): + Name of the reservation to update. Name + should conform to RFC1035. + future_reservation_resource (google.cloud.compute_v1.types.FutureReservation): + The body resource for this request + project (str): + Project ID for this request. + request_id (str): + An optional request ID to identify requests. + Specify a unique request ID so that if you must + retry your request, the server will know to + ignore the request if it has already been + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). + + This field is a member of `oneof`_ ``_request_id``. + update_mask (str): + update_mask indicates fields to be updated as part of this + request. + + This field is a member of `oneof`_ ``_update_mask``. + zone (str): + Name of the zone for this request. Name + should conform to RFC1035. + """ + + future_reservation: str = proto.Field( + proto.STRING, + number=56206160, + ) + future_reservation_resource: "FutureReservation" = proto.Field( + proto.MESSAGE, + number=466750493, + message="FutureReservation", + ) + project: str = proto.Field( + proto.STRING, + number=227560217, + ) + request_id: str = proto.Field( + proto.STRING, + number=37109963, + optional=True, + ) + update_mask: str = proto.Field( + proto.STRING, + number=500079778, + optional=True, + ) + zone: str = proto.Field( + proto.STRING, + number=3744684, + ) + + class UpdateHealthCheckRequest(proto.Message): r"""A request message for HealthChecks.Update. See the method description for details. @@ -121310,17 +136448,21 @@ class UpdateHealthCheckRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -121362,9 +136504,9 @@ class UpdateInstanceRequest(proto.Message): instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the - updated properties require. Check the - MinimalAction enum for the list of possible - values. + updated properties require. + Check the MinimalAction enum for the list of + possible values. This field is a member of `oneof`_ ``_minimal_action``. most_disruptive_allowed_action (str): @@ -121384,17 +136526,21 @@ class UpdateInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -121485,17 +136631,21 @@ class UpdateLicenseRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. update_mask (str): @@ -121551,17 +136701,21 @@ class UpdateNetworkInterfaceInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): @@ -121616,17 +136770,21 @@ class UpdatePeeringNetworkRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -121663,8 +136821,8 @@ class UpdatePerInstanceConfigsInstanceGroupManagerRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. It - should conform to RFC1035. + The name of the managed instance group. + It should conform to RFC1035. instance_group_managers_update_per_instance_configs_req_resource (google.cloud.compute_v1.types.InstanceGroupManagersUpdatePerInstanceConfigsReq): The body resource for this request project (str): @@ -121674,23 +136832,27 @@ class UpdatePerInstanceConfigsInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. zone (str): - The name of the zone where the managed - instance group is located. It should conform to - RFC1035. + The name of thezone + where the managed instance group is located. + It should conform to RFC1035. """ instance_group_manager: str = proto.Field( @@ -121727,8 +136889,8 @@ class UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest(proto.Message): Attributes: instance_group_manager (str): - The name of the managed instance group. It - should conform to RFC1035. + The name of the managed instance group. + It should conform to RFC1035. project (str): Project ID for this request. region (str): @@ -121741,17 +136903,21 @@ class UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -121799,17 +136965,21 @@ class UpdatePreviewFeatureRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -121857,17 +137027,21 @@ class UpdateRegionAutoscalerRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -121919,17 +137093,21 @@ class UpdateRegionBackendServiceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -121983,17 +137161,21 @@ class UpdateRegionCommitmentRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. update_mask (str): @@ -122061,17 +137243,21 @@ class UpdateRegionDiskRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. update_mask (str): @@ -122136,17 +137322,21 @@ class UpdateRegionHealthCheckRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -122240,17 +137430,21 @@ class UpdateReservationRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. reservation (str): @@ -122317,17 +137511,21 @@ class UpdateRoutePolicyRouterRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. route_policy_resource (google.cloud.compute_v1.types.RoutePolicy): @@ -122378,17 +137576,21 @@ class UpdateRouterRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. router (str): @@ -122439,17 +137641,21 @@ class UpdateShieldedInstanceConfigInstanceRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. shielded_instance_config_resource (google.cloud.compute_v1.types.ShieldedInstanceConfig): @@ -122497,17 +137703,21 @@ class UpdateStoragePoolRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. storage_pool (str): @@ -122567,17 +137777,21 @@ class UpdateUrlMapRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. url_map (str): @@ -122607,64 +137821,88 @@ class UpdateUrlMapRequest(proto.Message): class UrlMap(proto.Message): - r"""Represents a URL Map resource. Compute Engine has two URL Map - resources: \* `Global `__ - \* `Regional `__ A - URL map resource is a component of certain types of cloud load - balancers and Traffic Director: \* urlMaps are used by global - external Application Load Balancers, classic Application Load - Balancers, and cross-region internal Application Load Balancers. \* - regionUrlMaps are used by internal Application Load Balancers, - regional external Application Load Balancers and regional internal - Application Load Balancers. For a list of supported URL map features - by the load balancer type, see the Load balancing features: Routing - and traffic management table. For a list of supported URL map - features for Traffic Director, see the Traffic Director features: - Routing and traffic management table. This resource defines mappings - from hostnames and URL paths to either a backend service or a - backend bucket. To use the global urlMaps resource, the backend - service must have a loadBalancingScheme of either EXTERNAL, - EXTERNAL_MANAGED, or INTERNAL_SELF_MANAGED. To use the regionUrlMaps - resource, the backend service must have a loadBalancingScheme of - INTERNAL_MANAGED. For more information, read URL Map Concepts. + r"""Represents a URL Map resource. + + Compute Engine has two URL Map resources: + + - `Global `__ + - `Regional `__ + + A URL map resource is a component of certain types of cloud load + balancers and Traffic Director: + + - urlMaps are used by global external Application Load Balancers, + classic Application Load Balancers, and cross-region internal + Application Load Balancers. + - regionUrlMaps are used by internal Application Load Balancers, + regional external Application Load Balancers and regional internal + Application Load Balancers. + + For a list of supported URL map features by the load balancer type, + see the Load balancing features: Routing and traffic management + table. + + For a list of supported URL map features for Traffic Director, see + the Traffic Director features: Routing and traffic management table. + + This resource defines mappings from hostnames and URL paths to + either a backend service or a backend bucket. + + To use the global urlMaps resource, the backend service must have a + loadBalancingScheme of either EXTERNAL,EXTERNAL_MANAGED, or + INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the + backend service must have aloadBalancingScheme of INTERNAL_MANAGED. + For more information, read URL Map Concepts. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. default_custom_error_response_policy (google.cloud.compute_v1.types.CustomErrorResponsePolicy): defaultCustomErrorResponsePolicy specifies how the Load - Balancer returns error responses when BackendServiceor - BackendBucket responds with an error. This policy takes - effect at the load balancer level and applies only when no - policy has been defined for the error code at lower levels - like PathMatcher, RouteRule and PathRule within this UrlMap. + Balancer returns error responses when + BackendServiceorBackendBucket responds with an error. + + This policy takes effect at the load balancer level and + applies only when no policy has been defined for the error + code at lower levels like PathMatcher, RouteRule and + PathRule within this UrlMap. + For example, consider a UrlMap with the following - configuration: - defaultCustomErrorResponsePolicy containing - policies for responding to 5xx and 4xx errors - A - PathMatcher configured for \*.example.com has - defaultCustomErrorResponsePolicy for 4xx. If a request for - http://www.example.com/ encounters a 404, the policy in - pathMatcher.defaultCustomErrorResponsePolicy will be - enforced. When the request for http://www.example.com/ - encounters a 502, the policy in - UrlMap.defaultCustomErrorResponsePolicy will be enforced. + configuration: + + :: + + - defaultCustomErrorResponsePolicy containing policies for + responding to 5xx and 4xx errors + - A PathMatcher configured for *.example.com has + defaultCustomErrorResponsePolicy for 4xx. + + If a request for http://www.example.com/ encounters a404, + the policy inpathMatcher.defaultCustomErrorResponsePolicy + will be enforced. When the request for + http://www.example.com/ encounters a502, the policy + inUrlMap.defaultCustomErrorResponsePolicy will be enforced. When a request that does not match any host in \*.example.com such as http://www.myotherexample.com/, - encounters a 404, UrlMap.defaultCustomErrorResponsePolicy - takes effect. When used in conjunction with - defaultRouteAction.retryPolicy, retries take precedence. - Only once all retries are exhausted, the - defaultCustomErrorResponsePolicy is applied. While - attempting a retry, if load balancer is successful in + encounters a404, UrlMap.defaultCustomErrorResponsePolicy + takes effect. + + When used in conjunction withdefaultRouteAction.retryPolicy, + retries take precedence. Only once all retries are + exhausted, thedefaultCustomErrorResponsePolicy is applied. + While attempting a retry, if load balancer is successful in reaching the service, the defaultCustomErrorResponsePolicy is ignored and the response from the service is returned to - the client. defaultCustomErrorResponsePolicy is supported - only for global external Application Load Balancers. + the client. + + defaultCustomErrorResponsePolicy is supported only for + global external Application Load Balancers. This field is a member of `oneof`_ ``_default_custom_error_response_policy``. default_route_action (google.cloud.compute_v1.types.HttpRouteAction): @@ -122672,14 +137910,19 @@ class UrlMap(proto.Message): the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding - the request to the selected backend. Only one of - defaultUrlRedirect, defaultService or - defaultRouteAction.weightedBackendService can be - set. URL maps for classic Application Load - Balancers only support the urlRewrite action - within defaultRouteAction. defaultRouteAction - has no effect when the URL map is bound to a - target gRPC proxy that has the + the request to the selected backend. + + Only one of defaultUrlRedirect, defaultService + or defaultRouteAction.weightedBackendService can + be set. + + + URL maps for classic Application Load Balancers + only support the urlRewrite action within + defaultRouteAction. + + defaultRouteAction has no effect when the URL + map is bound to a target gRPC proxy that has the validateForProxyless field set to true. This field is a member of `oneof`_ ``_default_route_action``. @@ -122689,22 +137932,28 @@ class UrlMap(proto.Message): the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the - request to the backend. Only one of - defaultUrlRedirect, defaultService or - defaultRouteAction.weightedBackendService can be - set. defaultService has no effect when the URL - map is bound to a target gRPC proxy that has the + request to the backend. + + Only one of defaultUrlRedirect, defaultService + or defaultRouteAction.weightedBackendService can + be set. + + defaultService has no effect when the URL map is + bound to a target gRPC proxy that has the validateForProxyless field set to true. This field is a member of `oneof`_ ``_default_service``. default_url_redirect (google.cloud.compute_v1.types.HttpRedirectAction): When none of the specified hostRules match, the request is redirected to a URL specified by - defaultUrlRedirect. Only one of - defaultUrlRedirect, defaultService or - defaultRouteAction.weightedBackendService can be - set. Not supported when the URL map is bound to - a target gRPC proxy. + defaultUrlRedirect. + + Only one of defaultUrlRedirect, defaultService + or defaultRouteAction.weightedBackendService can + be set. + + Not supported when the URL map is bound to a + target gRPC proxy. This field is a member of `oneof`_ ``_default_url_redirect``. description (str): @@ -122720,22 +137969,27 @@ class UrlMap(proto.Message): ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with - error 412 conditionNotMet. To see the latest - fingerprint, make a get() request to retrieve a - UrlMap. + error 412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a UrlMap. This field is a member of `oneof`_ ``_fingerprint``. header_action (google.cloud.compute_v1.types.HttpHeaderAction): Specifies changes to request and response headers that need to take effect for the - selected backendService. The headerAction - specified here take effect after headerAction - specified under pathMatcher. headerAction is not - supported for load balancers that have their - loadBalancingScheme set to EXTERNAL. Not - supported when the URL map is bound to a target - gRPC proxy that has validateForProxyless field - set to true. + selected backendService. + + The headerAction specified here take effect + afterheaderAction specified under pathMatcher. + + headerAction is not supported for load balancers + that have + their loadBalancingScheme set to EXTERNAL. + + Not supported when the URL map is bound to a + target gRPC proxy that has validateForProxyless + field set to true. This field is a member of `oneof`_ ``_header_action``. host_rules (MutableSequence[google.cloud.compute_v1.types.HostRule]): @@ -122747,14 +138001,14 @@ class UrlMap(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always compute#urlMaps - for url maps. + Output only. [Output Only] Type of the resource. Always + compute#urlMaps for url maps. This field is a member of `oneof`_ ``_kind``. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -122766,10 +138020,11 @@ class UrlMap(proto.Message): The list of named PathMatchers to use against the URL. region (str): - [Output Only] URL of the region where the regional URL map - resides. This field is not applicable to global URL maps. - You must specify this field as part of the HTTP request URL. - It is not settable as a field in the request body. + Output only. [Output Only] URL of the region where the + regional URL map resides. This field is not applicable to + global URL maps. You must specify this field as part of the + HTTP request URL. It is not settable as a field in the + request body. This field is a member of `oneof`_ ``_region``. self_link (str): @@ -122778,11 +138033,13 @@ class UrlMap(proto.Message): This field is a member of `oneof`_ ``_self_link``. tests (MutableSequence[google.cloud.compute_v1.types.UrlMapTest]): The list of expected URL mapping tests. - Request to update the UrlMap succeeds only if - all test cases pass. You can specify a maximum - of 100 tests per UrlMap. Not supported when the - URL map is bound to a target gRPC proxy that has - validateForProxyless field set to true. + Request to update theUrlMap succeeds only if all + test cases pass. You can specify a maximum of + 100 tests per UrlMap. + + Not supported when the URL map is bound to a + target gRPC proxy that has validateForProxyless + field set to true. """ creation_timestamp: str = proto.Field( @@ -122885,20 +138142,21 @@ class UrlMapList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.UrlMap]): A list of UrlMap resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -122974,29 +138232,35 @@ class UrlMapTest(proto.Message): This field is a member of `oneof`_ ``_description``. expected_output_url (str): The expected output URL evaluated by the load balancer - containing the scheme, host, path and query parameters. For - rules that forward requests to backends, the test passes - only when expectedOutputUrl matches the request forwarded by + containing the scheme, host, path and query parameters. + + For rules that forward requests to backends, the test passes + only whenexpectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, - the test verifies that the forwarded request matches - hostRewrite and pathPrefixRewrite in the urlRewrite action. - When service is specified, expectedOutputUrl`s scheme is - ignored. For rules with urlRedirect, the test passes only if - expectedOutputUrl matches the URL in the load balancer's - redirect response. If urlRedirect specifies https_redirect, - the test passes only if the scheme in expectedOutputUrl is + the test verifies that the forwarded request + matcheshostRewrite and pathPrefixRewrite in theurlRewrite + action. When service is specified,expectedOutputUrl`s scheme + is ignored. + + For rules with urlRedirect, the test passes only + ifexpectedOutputUrl matches the URL in the load balancer's + redirect response. If urlRedirect specifieshttps_redirect, + the test passes only if the scheme inexpectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any - query parameters. expectedOutputUrl is optional when service - is specified. + query parameters. + + expectedOutputUrl is optional whenservice is specified. This field is a member of `oneof`_ ``_expected_output_url``. expected_redirect_response_code (int): For rules with urlRedirect, the test passes - only if expectedRedirectResponseCode matches the + only ifexpectedRedirectResponseCode matches the HTTP status code in load balancer's redirect - response. expectedRedirectResponseCode cannot be - set when service is set. + response. + + expectedRedirectResponseCode cannot be set + whenservice is set. This field is a member of `oneof`_ ``_expected_redirect_response_code``. headers (MutableSequence[google.cloud.compute_v1.types.UrlMapTestHeader]): @@ -123015,9 +138279,10 @@ class UrlMapTest(proto.Message): This field is a member of `oneof`_ ``_path``. service (str): Expected BackendService or BackendBucket - resource the given URL should be mapped to. The - service field cannot be set if - expectedRedirectResponseCode is set. + resource the given URL should be mapped to. + + The service field cannot + be set if expectedRedirectResponseCode is set. This field is a member of `oneof`_ ``_service``. """ @@ -123146,24 +138411,25 @@ class UrlMapsAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.UrlMapsScopedList]): A list of UrlMapsScopedList resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -123248,18 +138514,23 @@ class UrlMapsValidateRequest(proto.Message): Attributes: load_balancing_schemes (MutableSequence[str]): Specifies the load balancer type(s) this validation request - is for. Use EXTERNAL_MANAGED for global external Application + is for. UseEXTERNAL_MANAGED for global external Application Load Balancers and regional external Application Load Balancers. Use EXTERNAL for classic Application Load - Balancers. Use INTERNAL_MANAGED for internal Application - Load Balancers. For more information, refer to Choosing a - load balancer. If unspecified, the load balancing scheme - will be inferred from the backend service resources this URL - map references. If that can not be inferred (for example, - this URL map only references backend buckets, or this Url - map is for rewrites and redirects only and doesn't reference - any backends), EXTERNAL will be used as the default type. If - specified, the scheme(s) must not conflict with the load + Balancers. + + Use INTERNAL_MANAGED for internal Application Load + Balancers. For more information, refer to Choosing a load + balancer. + + If unspecified, the load balancing scheme will be inferred + from the backend service resources this URL map references. + If that can not be inferred (for example, this URL map only + references backend buckets, or this Url map is for rewrites + and redirects only and doesn't reference any + backends),EXTERNAL will be used as the default type. + + If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references. Check the LoadBalancingSchemes enum for the list of possible values. @@ -123337,34 +138608,46 @@ class UrlRewrite(proto.Message): host_rewrite (str): Before forwarding the request to the selected service, the request's host header is replaced - with contents of hostRewrite. The value must be - from 1 to 255 characters. + with contents of hostRewrite. + + The value must be from 1 to 255 characters. This field is a member of `oneof`_ ``_host_rewrite``. path_prefix_rewrite (str): Before forwarding the request to the selected backend service, the matching portion of the - request's path is replaced by pathPrefixRewrite. + request's path is replaced bypathPrefixRewrite. + The value must be from 1 to 1024 characters. This field is a member of `oneof`_ ``_path_prefix_rewrite``. path_template_rewrite (str): If specified, the pattern rewrites the URL path (based on - the :path header) using the HTTP template syntax. A - corresponding path_template_match must be specified. Any + the :path header) using the HTTP template syntax. + + A corresponding path_template_match must be specified. Any template variables must exist in the path_template_match - field. - -At least one variable must be specified in the - path_template_match field - You can omit variables from the - rewritten URL - The \* and \*\* operators cannot be matched - unless they have a corresponding variable name - e.g. - {format=\*} or {var=\ **}. For example, a - path_template_match of /static/{format=**} could be - rewritten as /static/content/{format} to prefix /content to - the URL. Variables can also be re-ordered in a rewrite, so - that /{country}/{format}/{suffix=*\*} can be rewritten as - /content/{format}/{country}/{suffix}. At least one non-empty + field. + + :: + + - -At least one variable must be specified in the path_template_match + field + - You can omit variables from the rewritten URL + - The * and ** operators cannot be matched + unless they have a corresponding variable name - e.g. + {format=*} or {var=**}. + + For example, a path_template_match of /static/{format=\ **} + could be rewritten as /static/content/{format} to + prefix/content to the URL. Variables can also be re-ordered + in a rewrite, so that /{country}/{format}/{suffix=**} can be + rewritten as /content/{format}/{country}/{suffix}. + + At least one non-empty routeRules[].matchRules[].path_template_match is required. - Only one of path_prefix_rewrite or path_template_rewrite may + + Only one of path_prefix_rewrite orpath_template_rewrite may be specified. This field is a member of `oneof`_ ``_path_template_rewrite``. @@ -123396,13 +138679,13 @@ class UsableSubnetwork(proto.Message): Attributes: external_ipv6_prefix (str): - [Output Only] The external IPv6 address range that is - assigned to this subnetwork. + Output only. [Output Only] The external IPv6 address range + that is assigned to this subnetwork. This field is a member of `oneof`_ ``_external_ipv6_prefix``. internal_ipv6_prefix (str): - [Output Only] The internal IPv6 address range that is - assigned to this subnetwork. + Output only. [Output Only] The internal IPv6 address range + that is assigned to this subnetwork. This field is a member of `oneof`_ ``_internal_ipv6_prefix``. ip_cidr_range (str): @@ -123429,8 +138712,8 @@ class UsableSubnetwork(proto.Message): This field is a member of `oneof`_ ``_purpose``. role (str): The role of subnetwork. Currently, this field is only used - when purpose is set to GLOBAL_MANAGED_PROXY or - REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or + when purpose is set to GLOBAL_MANAGED_PROXY + orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or @@ -123443,12 +138726,13 @@ class UsableSubnetwork(proto.Message): Secondary IP ranges. stack_type (str): The stack type for the subnet. If set to IPV4_ONLY, new VMs - in the subnet are assigned IPv4 addresses only. If set to - IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 + in the subnet are assigned IPv4 addresses only. If set + toIPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. + This field can be both set at resource creation time and - updated using patch. Check the StackType enum for the list - of possible values. + updated usingpatch. Check the StackType enum for the list of + possible values. This field is a member of `oneof`_ ``_stack_type``. subnetwork (str): @@ -123525,9 +138809,9 @@ class Purpose(proto.Enum): class Role(proto.Enum): r"""The role of subnetwork. Currently, this field is only used when - purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. - The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is - one that is currently being used for Envoy-based load balancers in a + purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The + value can be set toACTIVE or BACKUP. An ACTIVE subnetwork is one + that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. @@ -123548,10 +138832,12 @@ class Role(proto.Enum): class StackType(proto.Enum): r"""The stack type for the subnet. If set to IPV4_ONLY, new VMs in the - subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new - VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If - not specified, IPV4_ONLY is used. This field can be both set at - resource creation time and updated using patch. + subnet are assigned IPv4 addresses only. If set toIPV4_IPV6, new VMs + in the subnet can be assigned both IPv4 and IPv6 addresses. If not + specified, IPV4_ONLY is used. + + This field can be both set at resource creation time and updated + usingpatch. Values: UNDEFINED_STACK_TYPE (0): @@ -123641,7 +138927,7 @@ class UsableSubnetworkSecondaryRange(proto.Message): The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 - characters long, and comply with RFC1035. The + characters long, and comply withRFC1035. The name must be unique within the subnetwork. This field is a member of `oneof`_ ``_range_name``. @@ -123673,31 +138959,32 @@ class UsableSubnetworksAggregatedList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.UsableSubnetwork]): [Output] A list of usable subnetwork URLs. kind (str): - [Output Only] Type of resource. Always - compute#usableSubnetworksAggregatedList for aggregated lists - of usable subnetworks. + Output only. [Output Only] Type of resource. + Alwayscompute#usableSubnetworksAggregatedList for aggregated + lists of usable subnetworks. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. In special cases - listUsable may return 0 subnetworks and nextPageToken which + listUsable may return 0 subnetworks andnextPageToken which still should be used to get the next page of results. This field is a member of `oneof`_ ``_next_page_token``. scoped_warnings (MutableSequence[google.cloud.compute_v1.types.SubnetworksScopedWarning]): - [Output Only] Informational warning messages for failures - encountered from scopes. + Output only. [Output Only] Informational warning messages + for failures encountered from scopes. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -123763,20 +139050,20 @@ class UsageExportLocation(proto.Message): Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This can either be the - bucket name by itself, such as example-bucket, - or the bucket name with gs:// or + bucket name by itself, such asexample-bucket, or + the bucket name with gs:// or https://storage.googleapis.com/ in front of it, such as gs://example-bucket. This field is a member of `oneof`_ ``_bucket_name``. report_name_prefix (str): An optional prefix for the name of the usage report object - stored in bucketName. If not supplied, defaults to - usage_gce. The report is stored as a CSV file named - report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the - day of the usage according to Pacific Time. If you supply a - prefix, it should conform to Cloud Storage object naming - conventions. + stored inbucketName. If not supplied, defaults tousage_gce. + The report is stored as a CSV file + namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is + the day of the usage according to Pacific Time. If you + supply a prefix, it should conform to Cloud Storageobject + naming conventions. This field is a member of `oneof`_ ``_report_name_prefix``. """ @@ -123868,8 +139155,8 @@ class VmEndpointNatMappings(proto.Message): Attributes: instance_name (str): - Name of the VM instance which the endpoint - belongs to + Output only. Name of the VM instance which + the endpoint belongs to This field is a member of `oneof`_ ``_instance_name``. interface_nat_mappings (MutableSequence[google.cloud.compute_v1.types.VmEndpointNatMappingsInterfaceNatMappings]): @@ -123899,38 +139186,40 @@ class VmEndpointNatMappingsInterfaceNatMappings(proto.Message): Attributes: drain_nat_ip_port_ranges (MutableSequence[str]): - List of all drain IP:port-range mappings assigned to this - interface. These ranges are inclusive, that is, both the - first and the last ports can be used for NAT. Example: - ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + Output only. List of all drain IP:port-range mappings + assigned to this interface. These ranges are inclusive, that + is, both the first and the last ports can be used for NAT. + Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. nat_ip_port_ranges (MutableSequence[str]): - A list of all IP:port-range mappings assigned to this - interface. These ranges are inclusive, that is, both the - first and the last ports can be used for NAT. Example: + Output only. A list of all IP:port-range mappings assigned + to this interface. These ranges are inclusive, that is, both + the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. num_total_drain_nat_ports (int): - Total number of drain ports across all NAT IPs allocated to - this interface. It equals to the aggregated port number in - the field drain_nat_ip_port_ranges. + Output only. Total number of drain ports across all NAT IPs + allocated to this interface. It equals to the aggregated + port number in the field drain_nat_ip_port_ranges. This field is a member of `oneof`_ ``_num_total_drain_nat_ports``. num_total_nat_ports (int): - Total number of ports across all NAT IPs allocated to this - interface. It equals to the aggregated port number in the - field nat_ip_port_ranges. + Output only. Total number of ports across all NAT IPs + allocated to this interface. It equals to the aggregated + port number in the field nat_ip_port_ranges. This field is a member of `oneof`_ ``_num_total_nat_ports``. rule_mappings (MutableSequence[google.cloud.compute_v1.types.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings]): - Information about mappings provided by rules - in this NAT. + Output only. Information about mappings + provided by rules in this NAT. source_alias_ip_range (str): - Alias IP range for this interface endpoint. - It will be a private (RFC 1918) IP range. - Examples: "10.33.4.55/32", or "192.168.5.0/24". + Output only. Alias IP range for this + interface endpoint. It will be a private (RFC + 1918) IP range. Examples: "10.33.4.55/32", or + "192.168.5.0/24". This field is a member of `oneof`_ ``_source_alias_ip_range``. source_virtual_ip (str): - Primary IP of the VM for this NIC. + Output only. Primary IP of the VM for this + NIC. This field is a member of `oneof`_ ``_source_virtual_ip``. """ @@ -123979,29 +139268,31 @@ class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings(proto.Message): Attributes: drain_nat_ip_port_ranges (MutableSequence[str]): - List of all drain IP:port-range mappings assigned to this - interface by this rule. These ranges are inclusive, that is, - both the first and the last ports can be used for NAT. - Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + Output only. List of all drain IP:port-range mappings + assigned to this interface by this rule. These ranges are + inclusive, that is, both the first and the last ports can be + used for NAT. Example: ["2.2.2.2:12345-12355", + "1.1.1.1:2234-2234"]. nat_ip_port_ranges (MutableSequence[str]): - A list of all IP:port-range mappings assigned to this - interface by this rule. These ranges are inclusive, that is, - both the first and the last ports can be used for NAT. - Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + Output only. A list of all IP:port-range mappings assigned + to this interface by this rule. These ranges are inclusive, + that is, both the first and the last ports can be used for + NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. num_total_drain_nat_ports (int): - Total number of drain ports across all NAT IPs allocated to - this interface by this rule. It equals the aggregated port - number in the field drain_nat_ip_port_ranges. + Output only. Total number of drain ports across all NAT IPs + allocated to this interface by this rule. It equals the + aggregated port number in the field + drain_nat_ip_port_ranges. This field is a member of `oneof`_ ``_num_total_drain_nat_ports``. num_total_nat_ports (int): - Total number of ports across all NAT IPs allocated to this - interface by this rule. It equals the aggregated port number - in the field nat_ip_port_ranges. + Output only. Total number of ports across all NAT IPs + allocated to this interface by this rule. It equals the + aggregated port number in the field nat_ip_port_ranges. This field is a member of `oneof`_ ``_num_total_nat_ports``. rule_number (int): - Rule number of the NAT Rule. + Output only. Rule number of the NAT Rule. This field is a member of `oneof`_ ``_rule_number``. """ @@ -124043,15 +139334,15 @@ class VmEndpointNatMappingsList(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of resource. Always - compute#vmEndpointNatMappingsList for lists of Nat mappings - of VM endpoints. + Output only. [Output Only] Type of resource. + Alwayscompute#vmEndpointNatMappingsList for lists of Nat + mappings of VM endpoints. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -124061,7 +139352,8 @@ class VmEndpointNatMappingsList(proto.Message): [Output Only] A list of Nat mapping information of VM endpoints. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -124108,19 +139400,21 @@ def raw_page(self): class VpnGateway(proto.Message): - r"""Represents a HA VPN gateway. HA VPN is a high-availability - (HA) Cloud VPN solution that lets you securely connect your - on-premises network to your Google Cloud Virtual Private Cloud - network through an IPsec VPN connection in a single region. For - more information about Cloud HA VPN solutions, see Cloud VPN - topologies . + r"""Represents a HA VPN gateway. + + HA VPN is a high-availability (HA) Cloud VPN solution that lets + you securely connect your on-premises network to your Google + Cloud Virtual Private Cloud network through an IPsec VPN + connection in a single region. For more information about Cloud + HA VPN solutions, see Cloud VPN topologies . .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields Attributes: creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -124137,13 +139431,13 @@ class VpnGateway(proto.Message): This field is a member of `oneof`_ ``_gateway_ip_version``. id (int): - [Output Only] The unique identifier for the resource. This - identifier is defined by the server. + Output only. [Output Only] The unique identifier for the + resource. This identifier is defined by the server. This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of resource. Always compute#vpnGateway - for VPN gateways. + Output only. [Output Only] Type of resource. Always + compute#vpnGateway for VPN gateways. This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -124155,20 +139449,21 @@ class VpnGateway(proto.Message): or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make a get() request to - retrieve a VpnGateway. + fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a VpnGateway. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): Labels for this resource. These can only be - added or modified by the setLabels method. Each - label key/value pair must comply with RFC1035. + added or modified by thesetLabels method. Each + label key/value pair must comply withRFC1035. Label values may be empty. name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -124183,21 +139478,22 @@ class VpnGateway(proto.Message): This field is a member of `oneof`_ ``_network``. region (str): - [Output Only] URL of the region where the VPN gateway - resides. + Output only. [Output Only] URL of the region where the VPN + gateway resides. This field is a member of `oneof`_ ``_region``. self_link (str): - [Output Only] Server-defined URL for the resource. + Output only. [Output Only] Server-defined URL for the + resource. This field is a member of `oneof`_ ``_self_link``. stack_type (str): The stack type for this VPN gateway to identify the IP - protocols that are enabled. Possible values are: IPV4_ONLY, - IPV4_IPV6, IPV6_ONLY. If not specified, IPV4_ONLY is used if - the gateway IP version is IPV4, or IPV4_IPV6 if the gateway - IP version is IPV6. Check the StackType enum for the list of - possible values. + protocols that are enabled. Possible values are: + IPV4_ONLY,IPV4_IPV6, IPV6_ONLY. If not specified,IPV4_ONLY + is used if the gateway IP version isIPV4, or IPV4_IPV6 if + the gateway IP version isIPV6. Check the StackType enum for + the list of possible values. This field is a member of `oneof`_ ``_stack_type``. vpn_interfaces (MutableSequence[google.cloud.compute_v1.types.VpnGatewayVpnGatewayInterface]): @@ -124226,9 +139522,9 @@ class GatewayIpVersion(proto.Enum): class StackType(proto.Enum): r"""The stack type for this VPN gateway to identify the IP protocols - that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6, - IPV6_ONLY. If not specified, IPV4_ONLY is used if the gateway IP - version is IPV4, or IPV4_IPV6 if the gateway IP version is IPV6. + that are enabled. Possible values are: IPV4_ONLY,IPV4_IPV6, + IPV6_ONLY. If not specified,IPV4_ONLY is used if the gateway IP + version isIPV4, or IPV4_IPV6 if the gateway IP version isIPV6. Values: UNDEFINED_STACK_TYPE (0): @@ -124330,25 +139626,26 @@ class VpnGatewayAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.VpnGatewaysScopedList]): A list of VpnGateway resources. kind (str): - [Output Only] Type of resource. Always compute#vpnGateway - for VPN gateways. + Output only. [Output Only] Type of resource. Always + compute#vpnGateway for VPN gateways. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -124411,21 +139708,22 @@ class VpnGatewayList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.VpnGateway]): A list of VpnGateway resources. kind (str): - [Output Only] Type of resource. Always compute#vpnGateway - for VPN gateways. + Output only. [Output Only] Type of resource. Always + compute#vpnGateway for VPN gateways. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -124476,7 +139774,8 @@ class VpnGatewayStatus(proto.Message): Attributes: vpn_connections (MutableSequence[google.cloud.compute_v1.types.VpnGatewayStatusVpnConnection]): - List of VPN connection for this VpnGateway. + Output only. List of VPN connection for this + VpnGateway. """ vpn_connections: MutableSequence[ @@ -124498,9 +139797,9 @@ class VpnGatewayStatusHighAvailabilityRequirementState(proto.Message): Attributes: state (str): Indicates the high availability requirement state for the - VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, - CONNECTION_REDUNDANCY_NOT_MET. Check the State enum for the - list of possible values. + VPN connection. Valid values are + CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. + Check the State enum for the list of possible values. This field is a member of `oneof`_ ``_state``. unsatisfied_reason (str): @@ -124514,8 +139813,8 @@ class VpnGatewayStatusHighAvailabilityRequirementState(proto.Message): class State(proto.Enum): r"""Indicates the high availability requirement state for the VPN - connection. Valid values are CONNECTION_REDUNDANCY_MET, - CONNECTION_REDUNDANCY_NOT_MET. + connection. Valid values are + CONNECTION_REDUNDANCY_MET,CONNECTION_REDUNDANCY_NOT_MET. Values: UNDEFINED_STATE (0): @@ -124574,19 +139873,19 @@ class VpnGatewayStatusTunnel(proto.Message): Attributes: local_gateway_interface (int): - The VPN gateway interface this VPN tunnel is - associated with. + Output only. The VPN gateway interface this + VPN tunnel is associated with. This field is a member of `oneof`_ ``_local_gateway_interface``. peer_gateway_interface (int): - The peer gateway interface this VPN tunnel is - connected to, the peer gateway could either be - an external VPN gateway or a Google Cloud VPN - gateway. + Output only. The peer gateway interface this + VPN tunnel is connected to, the peer gateway + could either be an external VPN gateway or a + Google Cloud VPN gateway. This field is a member of `oneof`_ ``_peer_gateway_interface``. tunnel_url (str): - URL reference to the VPN tunnel. + Output only. URL reference to the VPN tunnel. This field is a member of `oneof`_ ``_tunnel_url``. """ @@ -124618,15 +139917,16 @@ class VpnGatewayStatusVpnConnection(proto.Message): Attributes: peer_external_gateway (str): - URL reference to the peer external VPN gateways to which the - VPN tunnels in this VPN connection are connected. This field - is mutually exclusive with peer_gcp_gateway. + Output only. URL reference to the peer external VPN gateways + to which the VPN tunnels in this VPN connection are + connected. This field is mutually exclusive with + peer_gcp_gateway. This field is a member of `oneof`_ ``_peer_external_gateway``. peer_gcp_gateway (str): - URL reference to the peer side VPN gateways to which the VPN - tunnels in this VPN connection are connected. This field is - mutually exclusive with peer_gcp_gateway. + Output only. URL reference to the peer side VPN gateways to + which the VPN tunnels in this VPN connection are connected. + This field is mutually exclusive with peer_gcp_gateway. This field is a member of `oneof`_ ``_peer_gcp_gateway``. state (google.cloud.compute_v1.types.VpnGatewayStatusHighAvailabilityRequirementState): @@ -124669,8 +139969,8 @@ class VpnGatewayVpnGatewayInterface(proto.Message): Attributes: id (int): - [Output Only] Numeric identifier for this VPN interface - associated with the VPN gateway. + Output only. [Output Only] Numeric identifier for this VPN + interface associated with the VPN gateway. This field is a member of `oneof`_ ``_id``. interconnect_attachment (str): @@ -124684,12 +139984,12 @@ class VpnGatewayVpnGatewayInterface(proto.Message): This field is a member of `oneof`_ ``_interconnect_attachment``. ip_address (str): - [Output Only] IP address for this VPN interface associated - with the VPN gateway. The IP address could be either a - regional external IP address or a regional internal IP - address. The two IP addresses for a VPN gateway must be all - regional external or regional internal IP addresses. There - cannot be a mix of regional external IP addresses and + Output only. [Output Only] IP address for this VPN interface + associated with the VPN gateway. The IP address could be + either a regional external IP address or a regional internal + IP address. The two IP addresses for a VPN gateway must be + all regional external or regional internal IP addresses. + There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional @@ -124699,10 +139999,10 @@ class VpnGatewayVpnGatewayInterface(proto.Message): This field is a member of `oneof`_ ``_ip_address``. ipv6_address (str): - [Output Only] IPv6 address for this VPN interface associated - with the VPN gateway. The IPv6 address must be a regional - external IPv6 address. The format is RFC 5952 format (e.g. - 2001:db8::2d9:51:0:0). + Output only. [Output Only] IPv6 address for this VPN + interface associated with the VPN gateway. The IPv6 address + must be a regional external IPv6 address. The format is RFC + 5952 format (e.g. 2001:db8::2d9:51:0:0). This field is a member of `oneof`_ ``_ipv6_address``. """ @@ -124778,8 +140078,10 @@ class VpnGatewaysScopedList(proto.Message): class VpnTunnel(proto.Message): - r"""Represents a Cloud VPN Tunnel resource. For more information - about VPN, read the the Cloud VPN Overview. + r"""Represents a Cloud VPN Tunnel resource. + + For more information about VPN, read the + the Cloud VPN Overview. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -124791,7 +140093,8 @@ class VpnTunnel(proto.Message): This field is a member of `oneof`_ ``_cipher_suite``. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + Output only. [Output Only] Creation timestamp inRFC3339 text + format. This field is a member of `oneof`_ ``_creation_timestamp``. description (str): @@ -124817,8 +140120,8 @@ class VpnTunnel(proto.Message): This field is a member of `oneof`_ ``_ike_version``. kind (str): - [Output Only] Type of resource. Always compute#vpnTunnel for - VPN tunnels. + Output only. [Output Only] Type of resource. Always + compute#vpnTunnel for VPN tunnels. This field is a member of `oneof`_ ``_kind``. label_fingerprint (str): @@ -124830,15 +140133,16 @@ class VpnTunnel(proto.Message): or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will - fail with error 412 conditionNotMet. To see the - latest fingerprint, make a get() request to - retrieve a VpnTunnel. + fail with error412 conditionNotMet. + + To see the latest fingerprint, make a get() + request to retrieve a VpnTunnel. This field is a member of `oneof`_ ``_label_fingerprint``. labels (MutableMapping[str, str]): Labels for this resource. These can only be - added or modified by the setLabels method. Each - label key/value pair must comply with RFC1035. + added or modified by thesetLabels method. Each + label key/value pair must comply withRFC1035. Label values may be empty. local_traffic_selector (MutableSequence[str]): Local traffic selector to use when @@ -124851,7 +140155,7 @@ class VpnTunnel(proto.Message): name (str): Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, - and comply with RFC1035. Specifically, the name must be 1-63 + and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first character must be a lowercase letter, and all following @@ -124861,9 +140165,9 @@ class VpnTunnel(proto.Message): This field is a member of `oneof`_ ``_name``. peer_external_gateway (str): URL of the peer side external VPN gateway to - which this VPN tunnel is connected. Provided by - the client when the VPN tunnel is created. This - field is exclusive with the field + which this VPN tunnel is connected. + Provided by the client when the VPN tunnel is + created. This field is exclusive with the field peerGcpGateway. This field is a member of `oneof`_ ``_peer_external_gateway``. @@ -124929,30 +140233,41 @@ class VpnTunnel(proto.Message): This field is a member of `oneof`_ ``_shared_secret_hash``. status (str): [Output Only] The status of the VPN tunnel, which can be one - of the following: - PROVISIONING: Resource is being - allocated for the VPN tunnel. - WAITING_FOR_FULL_CONFIG: - Waiting to receive all VPN-related configs from the user. - Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and - Route resources are needed to setup the VPN tunnel. - - FIRST_HANDSHAKE: Successful first handshake with the peer - VPN. - ESTABLISHED: Secure session is successfully - established with the peer VPN. - NETWORK_ERROR: Deprecated, - replaced by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth - error (for example, bad shared secret). - - NEGOTIATION_FAILURE: Handshake failed. - DEPROVISIONING: - Resources are being deallocated for the VPN tunnel. - - FAILED: Tunnel creation has failed and the tunnel is not - ready to be used. - NO_INCOMING_PACKETS: No incoming packets - from peer. - REJECTED: Tunnel configuration was rejected, - can be result of being denied access. - - ALLOCATING_RESOURCES: Cloud VPN is in the process of - allocating all required resources. - STOPPED: Tunnel is - stopped due to its Forwarding Rules being deleted for - Classic VPN tunnels or the project is in frozen state. - - PEER_IDENTITY_MISMATCH: Peer identity does not match peer - IP, probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic - selector narrowing not allowed for an HA-VPN tunnel. Check - the Status enum for the list of possible values. + of the following: + + :: + + - PROVISIONING: Resource is being allocated for the VPN tunnel. + - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs + from + the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route + resources are needed to setup the VPN tunnel. + - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. + - ESTABLISHED: Secure session is successfully established with the peer + VPN. + - NETWORK_ERROR: Deprecated, replaced by + NO_INCOMING_PACKETS + - AUTHORIZATION_ERROR: Auth error (for example, + bad shared secret). + - NEGOTIATION_FAILURE: Handshake failed. + - DEPROVISIONING: Resources are being deallocated for the VPN + tunnel. + - FAILED: Tunnel creation has failed and the tunnel is not + ready to be used. + - NO_INCOMING_PACKETS: No incoming packets from + peer. + - REJECTED: Tunnel configuration was rejected, can be result + of being denied access. + - ALLOCATING_RESOURCES: Cloud VPN is in the + process of allocating all required resources. + - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted + for Classic VPN tunnels or the project is in frozen state. + - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, + probably behind NAT. + - TS_NARROWING_NOT_ALLOWED: Traffic selector + narrowing not allowed for an HA-VPN tunnel. + + Check the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. target_vpn_gateway (str): @@ -124978,26 +140293,39 @@ class VpnTunnel(proto.Message): class Status(proto.Enum): r"""[Output Only] The status of the VPN tunnel, which can be one of the - following: - PROVISIONING: Resource is being allocated for the VPN - tunnel. - WAITING_FOR_FULL_CONFIG: Waiting to receive all - VPN-related configs from the user. Network, TargetVpnGateway, - VpnTunnel, ForwardingRule, and Route resources are needed to setup - the VPN tunnel. - FIRST_HANDSHAKE: Successful first handshake with - the peer VPN. - ESTABLISHED: Secure session is successfully - established with the peer VPN. - NETWORK_ERROR: Deprecated, replaced - by NO_INCOMING_PACKETS - AUTHORIZATION_ERROR: Auth error (for - example, bad shared secret). - NEGOTIATION_FAILURE: Handshake - failed. - DEPROVISIONING: Resources are being deallocated for the - VPN tunnel. - FAILED: Tunnel creation has failed and the tunnel is - not ready to be used. - NO_INCOMING_PACKETS: No incoming packets - from peer. - REJECTED: Tunnel configuration was rejected, can be - result of being denied access. - ALLOCATING_RESOURCES: Cloud VPN is - in the process of allocating all required resources. - STOPPED: - Tunnel is stopped due to its Forwarding Rules being deleted for - Classic VPN tunnels or the project is in frozen state. - - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, - probably behind NAT. - TS_NARROWING_NOT_ALLOWED: Traffic selector - narrowing not allowed for an HA-VPN tunnel. + following: + + :: + + - PROVISIONING: Resource is being allocated for the VPN tunnel. + - WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs + from + the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route + resources are needed to setup the VPN tunnel. + - FIRST_HANDSHAKE: Successful first handshake with the peer VPN. + - ESTABLISHED: Secure session is successfully established with the peer + VPN. + - NETWORK_ERROR: Deprecated, replaced by + NO_INCOMING_PACKETS + - AUTHORIZATION_ERROR: Auth error (for example, + bad shared secret). + - NEGOTIATION_FAILURE: Handshake failed. + - DEPROVISIONING: Resources are being deallocated for the VPN + tunnel. + - FAILED: Tunnel creation has failed and the tunnel is not + ready to be used. + - NO_INCOMING_PACKETS: No incoming packets from + peer. + - REJECTED: Tunnel configuration was rejected, can be result + of being denied access. + - ALLOCATING_RESOURCES: Cloud VPN is in the + process of allocating all required resources. + - STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted + for Classic VPN tunnels or the project is in frozen state. + - PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, + probably behind NAT. + - TS_NARROWING_NOT_ALLOWED: Traffic selector + narrowing not allowed for an HA-VPN tunnel. Values: UNDEFINED_STATUS (0): @@ -125195,25 +140523,26 @@ class VpnTunnelAggregatedList(proto.Message): items (MutableMapping[str, google.cloud.compute_v1.types.VpnTunnelsScopedList]): A list of VpnTunnelsScopedList resources. kind (str): - [Output Only] Type of resource. Always compute#vpnTunnel for - VPN tunnels. + Output only. [Output Only] Type of resource. Always + compute#vpnTunnel for VPN tunnels. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. unreachables (MutableSequence[str]): - [Output Only] Unreachable resources. + Output only. [Output Only] Unreachable resources. warning (google.cloud.compute_v1.types.Warning): [Output Only] Informational warning message. @@ -125304,21 +140633,22 @@ class VpnTunnelList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.VpnTunnel]): A list of VpnTunnel resources. kind (str): - [Output Only] Type of resource. Always compute#vpnTunnel for - VPN tunnels. + Output only. [Output Only] Type of resource. Always + compute#vpnTunnel for VPN tunnels. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -125459,16 +140789,22 @@ class WafExpressionSet(proto.Message): Attributes: aliases (MutableSequence[str]): A list of alternate IDs. The format should - be: - E.g. XSS-stable Generic suffix like - "stable" is particularly useful if a policy - likes to avail newer set of expressions without - having to change the policy. A given alias name - can't be used for more than one entity set. + be: + + - E.g. XSS-stable + Generic suffix like "stable" is particularly + useful if a policy likes to avail newer set of + expressions without having to change the policy. + A given alias name can't be used for more than + one entity set. expressions (MutableSequence[google.cloud.compute_v1.types.WafExpressionSetExpression]): List of available expressions. id (str): Google specified expression set ID. The - format should be: - E.g. XSS-20170329 required + format should be: + + - E.g. XSS-20170329 + required This field is a member of `oneof`_ ``_id``. """ @@ -125499,11 +140835,12 @@ class WafExpressionSetExpression(proto.Message): Expression ID should uniquely identify the origin of the expression. E.g. owasp-crs-v020901-id973337 identifies Owasp core - rule set version 2.9.1 rule id 973337. The ID - could be used to determine the individual attack - definition that has been detected. It could also - be used to exclude it from the policy in case of - false positive. required + rule set version 2.9.1 rule id 973337. + The ID could be used to determine the individual + attack definition that has been detected. It + could also be used to exclude it from the policy + in case of false positive. + required This field is a member of `oneof`_ ``_id``. sensitivity (int): @@ -125620,8 +140957,9 @@ class Warning(proto.Message): This field is a member of `oneof`_ ``_code``. data (MutableSequence[google.cloud.compute_v1.types.Data]): [Output Only] Metadata about this warning in key: value - format. For example: "data": [ { "key": "scope", "value": - "zones/us-east1-d" } + format. For example: + + "data": [ { "key": "scope", "value": "zones/us-east1-d" } message (str): [Output Only] A human-readable description of the warning code. @@ -125792,8 +141130,9 @@ class Warnings(proto.Message): This field is a member of `oneof`_ ``_code``. data (MutableSequence[google.cloud.compute_v1.types.Data]): [Output Only] Metadata about this warning in key: value - format. For example: "data": [ { "key": "scope", "value": - "zones/us-east1-d" } + format. For example: + + "data": [ { "key": "scope", "value": "zones/us-east1-d" } message (str): [Output Only] A human-readable description of the warning code. @@ -125950,9 +141289,9 @@ class Code(proto.Enum): class WeightedBackendService(proto.Message): - r"""In contrast to a single BackendService in HttpRouteAction to - which all matching traffic is directed to, - WeightedBackendService allows traffic to be split across + r"""In contrast to a single BackendService in + HttpRouteAction to which all matching traffic is directed + to,WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService @@ -125963,39 +141302,46 @@ class WeightedBackendService(proto.Message): Attributes: backend_service (str): The full or partial URL to the default - BackendService resource. Before forwarding the - request to backendService, the load balancer - applies any relevant headerActions specified as - part of this backendServiceWeight. + BackendService resource. Before + forwarding the request to backendService, the + load balancer applies any relevant headerActions + specified as part of thisbackendServiceWeight. This field is a member of `oneof`_ ``_backend_service``. header_action (google.cloud.compute_v1.types.HttpHeaderAction): Specifies changes to request and response headers that need to take effect for the - selected backendService. headerAction specified - here take effect before headerAction in the - enclosing HttpRouteRule, PathMatcher and UrlMap. + selected backendService. + + headerAction specified here take effect + beforeheaderAction in the enclosing + HttpRouteRule,PathMatcher and UrlMap. + headerAction is not supported for load balancers that have their loadBalancingScheme set to - EXTERNAL. Not supported when the URL map is - bound to a target gRPC proxy that has - validateForProxyless field set to true. + EXTERNAL. + + Not supported when the URL map is bound to a + target gRPC proxy that has validateForProxyless + field set to true. This field is a member of `oneof`_ ``_header_action``. weight (int): Specifies the fraction of traffic sent to a - backend service, computed as weight / (sum of - all weightedBackendService weights in - routeAction) . The selection of a backend - service is determined only for new traffic. Once - a user's request has been directed to a backend - service, subsequent requests are sent to the - same backend service as determined by the - backend service's session affinity policy. Don't - configure session affinity if you're using - weighted traffic splitting. If you do, the - weighted traffic splitting configuration takes - precedence. The value must be from 0 to 1000. + backend service, computed asweight / (sum of all + weightedBackendService weights in routeAction). + + The selection of a backend service is determined + only for new traffic. Once a user's request has + been directed to a backend service, subsequent + requests are sent to the same backend service as + determined by the backend service's session + affinity policy. Don't configure session + affinity if you're using weighted traffic + splitting. If you do, the weighted traffic + splitting configuration takes precedence. + + The value must be from 0 to 1000. This field is a member of `oneof`_ ``_weight``. """ @@ -126018,6 +141364,574 @@ class WeightedBackendService(proto.Message): ) +class Wire(proto.Message): + r"""A pseudowire that connects two Interconnect connections. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + admin_enabled (bool): + Output only. [Output Only] Indicates whether the wire is + enabled. When false, the wire is disabled. When true and + when the wire group of the wire is also enabled, the wire is + enabled. Defaults to true. + + This field is a member of `oneof`_ ``_admin_enabled``. + endpoints (MutableSequence[google.cloud.compute_v1.types.WireEndpoint]): + Output only. Wire endpoints are specific + Interconnect connections. + label (str): + Output only. [Output Only] A label that identifies the wire. + The format of this label combines the existing labels of the + wire group endpoints and Interconnect connections used by + this wire in alphabetical order as follows: + ``ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1``, + where: + + :: + + - ENDPOINT_A and ENDPOINT_B: are the labels + that you entered as map keys when you specified the wire group endpoint + objects. + - CONNECTION_A1 and CONNECTION_B1: are the + labels that you entered as map keys when you specified the wire group + Interconnect objects. + + This field is a member of `oneof`_ ``_label``. + wire_properties (google.cloud.compute_v1.types.WireProperties): + Output only. [Output Only] Properties of the wire. + + This field is a member of `oneof`_ ``_wire_properties``. + """ + + admin_enabled: bool = proto.Field( + proto.BOOL, + number=445675089, + optional=True, + ) + endpoints: MutableSequence["WireEndpoint"] = proto.RepeatedField( + proto.MESSAGE, + number=287085950, + message="WireEndpoint", + ) + label: str = proto.Field( + proto.STRING, + number=102727412, + optional=True, + ) + wire_properties: "WireProperties" = proto.Field( + proto.MESSAGE, + number=303111469, + optional=True, + message="WireProperties", + ) + + +class WireEndpoint(proto.Message): + r"""Wire endpoints are specific Interconnect connections. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + interconnect (str): + + This field is a member of `oneof`_ ``_interconnect``. + vlan_tag (int): + + This field is a member of `oneof`_ ``_vlan_tag``. + """ + + interconnect: str = proto.Field( + proto.STRING, + number=224601230, + optional=True, + ) + vlan_tag: int = proto.Field( + proto.INT32, + number=514640574, + optional=True, + ) + + +class WireGroup(proto.Message): + r"""A resource that represents a group of redundant wires. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + admin_enabled (bool): + Indicates whether the wires in the wire group are enabled. + When false, the wires in the wire group are disabled. When + true and when there is simultaneously no wire-specific + override of ``adminEnabled`` to false, a given wire is + enabled. Defaults to true. + + This field is a member of `oneof`_ ``_admin_enabled``. + creation_timestamp (str): + Output only. [Output Only] Creation timestamp inRFC3339 text + format. + + This field is a member of `oneof`_ ``_creation_timestamp``. + description (str): + An optional description of the wire group. + + This field is a member of `oneof`_ ``_description``. + endpoints (MutableMapping[str, google.cloud.compute_v1.types.WireGroupEndpoint]): + A map that contains the logical endpoints of + the wire group. Specify key-value pairs for the + map as follows: + + - Key: an RFC1035 user-specified label. + - Value: an Endpoint object. + id (int): + Output only. [Output Only] The unique identifier for the + resource type. The server generates this identifier. + + This field is a member of `oneof`_ ``_id``. + kind (str): + Output only. [Output Only] Type of the resource. + Alwayscompute#wireGroups for wire groups. + + This field is a member of `oneof`_ ``_kind``. + name (str): + Name of the resource. Provided by the client when the + resource is created. The name must be 1-63 characters long, + and comply withRFC1035. Specifically, the name must be 1-63 + characters long and match the regular expression + ``[a-z]([-a-z0-9]*[a-z0-9])?`` which means the first + character must be a lowercase letter, and all following + characters must be a dash, lowercase letter, or digit, + except the last character, which cannot be a dash. + + This field is a member of `oneof`_ ``_name``. + reconciling (bool): + Output only. [Output Only] Indicates whether there are wire + changes yet to be processed. + + This field is a member of `oneof`_ ``_reconciling``. + self_link (str): + Output only. [Output Only] Server-defined URL for the + resource. + + This field is a member of `oneof`_ ``_self_link``. + topology (google.cloud.compute_v1.types.WireGroupTopology): + Output only. Topology details for the wire + group configuration. + + This field is a member of `oneof`_ ``_topology``. + wire_properties (google.cloud.compute_v1.types.WireProperties): + Properties for all wires in the wire group. + + This field is a member of `oneof`_ ``_wire_properties``. + wires (MutableSequence[google.cloud.compute_v1.types.Wire]): + Output only. The single/redundant wire(s) + managed by the wire group. + """ + + admin_enabled: bool = proto.Field( + proto.BOOL, + number=445675089, + optional=True, + ) + creation_timestamp: str = proto.Field( + proto.STRING, + number=30525366, + optional=True, + ) + description: str = proto.Field( + proto.STRING, + number=422937596, + optional=True, + ) + endpoints: MutableMapping[str, "WireGroupEndpoint"] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=287085950, + message="WireGroupEndpoint", + ) + id: int = proto.Field( + proto.UINT64, + number=3355, + optional=True, + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + name: str = proto.Field( + proto.STRING, + number=3373707, + optional=True, + ) + reconciling: bool = proto.Field( + proto.BOOL, + number=432155787, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + topology: "WireGroupTopology" = proto.Field( + proto.MESSAGE, + number=122274415, + optional=True, + message="WireGroupTopology", + ) + wire_properties: "WireProperties" = proto.Field( + proto.MESSAGE, + number=303111469, + optional=True, + message="WireProperties", + ) + wires: MutableSequence["Wire"] = proto.RepeatedField( + proto.MESSAGE, + number=113139854, + message="Wire", + ) + + +class WireGroupEndpoint(proto.Message): + r"""A logical endpoint for the wire group. An endpoint represents + a metro that contains redundant Interconnect connections. A wire + group is created between two endpoints. + + Attributes: + interconnects (MutableMapping[str, google.cloud.compute_v1.types.WireGroupEndpointInterconnect]): + A map that contains the redundant + Interconnect connections. Specify key-value + pairs for the map as follows: + + - Key: an RFC1035 user-specified label. + - Value: an Interconnect object. + """ + + interconnects: MutableMapping[ + str, "WireGroupEndpointInterconnect" + ] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=520187301, + message="WireGroupEndpointInterconnect", + ) + + +class WireGroupEndpointInterconnect(proto.Message): + r"""The redundant Interconnect connections for this endpoint. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + interconnect (str): + Required. An Interconnect connection. You can specify the + connection as a partial or full URL. If the connection is in + a different project from the cross-site network, use a + format that specifies the project. See the following + examples of partial and full URLs: + + :: + + global/interconnects/NAME + + + projects/PROJECT_ID/global/interconnects/NAME + + - + https://compute.googleapis.com/compute/projects/PROJECT_ID/global/interconnects/NAME + + This field is a member of `oneof`_ ``_interconnect``. + vlan_tags (MutableSequence[int]): + Required. To configure the wire group for VLAN mode, enter a + VLAN tag, which is a number from ``2`` to ``4093``. You can + autoallocate a tag by entering ``0``. To configure the wire + group for port mode, enter ``-1``. Review the following + guidelines: + + :: + + - A VLAN tag must be unique for an Interconnect connection across all + attachments and wire groups. + - Both endpoints of a wire must use the same VLAN tag value. + - Single wire and redundant type wire groups must have only one + VLAN tag. + - Port mode pseudowires must have a single VLAN tag with a value of + `-1` for both endpoints. + - Box and cross type wire groups must have two VLAN tags. The first + is for the same-zone pseudowire, and the second is for the cross-zone + pseudowire. + """ + + interconnect: str = proto.Field( + proto.STRING, + number=224601230, + optional=True, + ) + vlan_tags: MutableSequence[int] = proto.RepeatedField( + proto.INT32, + number=384601461, + ) + + +class WireGroupList(proto.Message): + r"""Response for the list request. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + etag (str): + + This field is a member of `oneof`_ ``_etag``. + id (str): + [Output Only] Unique identifier for the resource; defined by + the server. + + This field is a member of `oneof`_ ``_id``. + items (MutableSequence[google.cloud.compute_v1.types.WireGroup]): + A list of wire group resources. + kind (str): + Output only. [Output Only] Type of the resource. + Alwayscompute#wireGroups for wire groups. + + This field is a member of `oneof`_ ``_kind``. + next_page_token (str): + [Output Only] This token allows you to get the next page of + results for list requests. If the number of results is + larger thanmaxResults, use the nextPageToken as a value for + the query parameter pageToken in the next list request. + Subsequent list requests will have their own nextPageToken + to continue paging through the results. + + This field is a member of `oneof`_ ``_next_page_token``. + self_link (str): + [Output Only] Server-defined URL for this resource. + + This field is a member of `oneof`_ ``_self_link``. + unreachables (MutableSequence[str]): + Output only. [Output Only] Unreachable resources. + end_interface: MixerListResponseWithEtagBuilder + warning (google.cloud.compute_v1.types.Warning): + [Output Only] Informational warning message. + + This field is a member of `oneof`_ ``_warning``. + """ + + @property + def raw_page(self): + return self + + etag: str = proto.Field( + proto.STRING, + number=3123477, + optional=True, + ) + id: str = proto.Field( + proto.STRING, + number=3355, + optional=True, + ) + items: MutableSequence["WireGroup"] = proto.RepeatedField( + proto.MESSAGE, + number=100526016, + message="WireGroup", + ) + kind: str = proto.Field( + proto.STRING, + number=3292052, + optional=True, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=79797525, + optional=True, + ) + self_link: str = proto.Field( + proto.STRING, + number=456214797, + optional=True, + ) + unreachables: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=243372063, + ) + warning: "Warning" = proto.Field( + proto.MESSAGE, + number=50704284, + optional=True, + message="Warning", + ) + + +class WireGroupTopology(proto.Message): + r"""Topology details for the wire group. + + Attributes: + endpoints (MutableSequence[google.cloud.compute_v1.types.WireGroupTopologyEndpoint]): + Output only. Topology details for all + endpoints in the wire group. + """ + + endpoints: MutableSequence["WireGroupTopologyEndpoint"] = proto.RepeatedField( + proto.MESSAGE, + number=287085950, + message="WireGroupTopologyEndpoint", + ) + + +class WireGroupTopologyEndpoint(proto.Message): + r"""Topology details for a single wire group endpoint. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + city (str): + Output only. The InterconnectLocation.city + (metropolitan area designator) that all + interconnects are located in. + + This field is a member of `oneof`_ ``_city``. + label (str): + Output only. Endpoint label from the wire + group. + + This field is a member of `oneof`_ ``_label``. + """ + + city: str = proto.Field( + proto.STRING, + number=3053931, + optional=True, + ) + label: str = proto.Field( + proto.STRING, + number=102727412, + optional=True, + ) + + +class WireProperties(proto.Message): + r"""The properties of a wire. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + bandwidth_allocation (str): + The configuration of the bandwidth allocation, one of the + following: + + :: + + - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation + (and associated charges) for each wire in the group. + - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures + one unmetered bandwidth allocation for the wire group. The unmetered + bandwidth is divided equally across each wire in the group, but dynamic + throttling reallocates unused unmetered bandwidth from unused or underused + wires to other wires in the group. + + Check the BandwidthAllocation enum for the list of possible + values. + + This field is a member of `oneof`_ ``_bandwidth_allocation``. + bandwidth_unmetered (int): + The unmetered bandwidth in Gigabits per second, using + decimal units. ``10`` is 10 Gbps, ``100`` is 100 Gbps. The + bandwidth must be greater than 0. + + This field is a member of `oneof`_ ``_bandwidth_unmetered``. + fault_response (str): + Response when a fault is detected in a pseudowire: + + :: + + - NONE: default. + - DISABLE_PORT: set the port line protocol down when inline probes + detect a fault. This setting is only permitted on port mode + pseudowires. + + Check the FaultResponse enum for the list of possible + values. + + This field is a member of `oneof`_ ``_fault_response``. + """ + + class BandwidthAllocation(proto.Enum): + r"""The configuration of the bandwidth allocation, one of the following: + + :: + + - ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation + (and associated charges) for each wire in the group. + - SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures + one unmetered bandwidth allocation for the wire group. The unmetered + bandwidth is divided equally across each wire in the group, but dynamic + throttling reallocates unused unmetered bandwidth from unused or underused + wires to other wires in the group. + + Values: + UNDEFINED_BANDWIDTH_ALLOCATION (0): + A value indicating that the enum field is not + set. + ALLOCATE_PER_WIRE (358730057): + Configures a separate unmetered bandwidth + allocation (and associated charges) for each + wire in the group. + SHARED_WITH_WIRE_GROUP (286454628): + This is the default behavior. Configures one + unmetered bandwidth allocation for the wire + group. The unmetered bandwidth is divided + equally across each wire in the group, but + dynamic throttling reallocates unused unmetered + bandwidth from unused or underused wires to + other wires in the group. + """ + UNDEFINED_BANDWIDTH_ALLOCATION = 0 + ALLOCATE_PER_WIRE = 358730057 + SHARED_WITH_WIRE_GROUP = 286454628 + + class FaultResponse(proto.Enum): + r"""Response when a fault is detected in a pseudowire: + + :: + + - NONE: default. + - DISABLE_PORT: set the port line protocol down when inline probes + detect a fault. This setting is only permitted on port mode + pseudowires. + + Values: + UNDEFINED_FAULT_RESPONSE (0): + A value indicating that the enum field is not + set. + DISABLE_PORT (287086488): + Set the port line protocol down when inline + probes detect a fault. This setting is only + permitted on port mode pseudowires. + NONE (2402104): + Default. + """ + UNDEFINED_FAULT_RESPONSE = 0 + DISABLE_PORT = 287086488 + NONE = 2402104 + + bandwidth_allocation: str = proto.Field( + proto.STRING, + number=90651950, + optional=True, + ) + bandwidth_unmetered: int = proto.Field( + proto.INT64, + number=272650017, + optional=True, + ) + fault_response: str = proto.Field( + proto.STRING, + number=353587646, + optional=True, + ) + + class WithdrawPublicAdvertisedPrefixeRequest(proto.Message): r"""A request message for PublicAdvertisedPrefixes.Withdraw. See the method description for details. @@ -126036,17 +141950,21 @@ class WithdrawPublicAdvertisedPrefixeRequest(proto.Message): Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -126080,25 +141998,29 @@ class WithdrawPublicDelegatedPrefixeRequest(proto.Message): The name of the public delegated prefix. It should comply with RFC1035. region (str): - The name of the region where the public - delegated prefix is located. It should comply - with RFC1035. + The name of theregion where + the public delegated prefix is located. It + should comply with RFC1035. request_id (str): An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been - completed. For example, consider a situation - where you make an initial request and the - request times out. If you make the request again - with the same request ID, the server can check - if original operation with the same request ID - was received, and if so, will ignore the second - request. This prevents clients from accidentally - creating duplicate commitments. The request ID - must be a valid UUID with the exception that - zero UUID is not supported ( - 00000000-0000-0000-0000-000000000000). + completed. + + For example, consider a situation where you make + an initial request and the request times out. If + you make the request again with the same request + ID, the server can check if original operation + with the same request ID was received, and if + so, will ignore the second request. This + prevents clients from accidentally creating + duplicate commitments. + + The request ID must be + a valid UUID with the exception that zero UUID + is not supported + (00000000-0000-0000-0000-000000000000). This field is a member of `oneof`_ ``_request_id``. """ @@ -126136,21 +142058,22 @@ class XpnHostList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Project]): [Output Only] A list of shared VPC host project URLs. kind (str): - [Output Only] Type of resource. Always compute#xpnHostList - for lists of shared VPC hosts. + Output only. [Output Only] Type of resource. Always + compute#xpnHostList for lists of shared VPC hosts. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -126246,10 +142169,11 @@ class Type(proto.Enum): class Zone(proto.Message): - r"""Represents a Zone resource. A zone is a deployment area. - These deployment areas are subsets of a region. For example the - zone us-east1-b is located in the us-east1 region. For more - information, read Regions and Zones. + r"""Represents a Zone resource. + + A zone is a deployment area. These deployment areas are subsets + of a region. For example the zone us-east1-b is located in + theus-east1 region. For more information, readRegions and Zones. .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields @@ -126259,7 +142183,7 @@ class Zone(proto.Message): [Output Only] Available cpu/platform selections for the zone. creation_timestamp (str): - [Output Only] Creation timestamp in RFC3339 text format. + [Output Only] Creation timestamp inRFC3339 text format. This field is a member of `oneof`_ ``_creation_timestamp``. deprecated (google.cloud.compute_v1.types.DeprecationStatus): @@ -126277,8 +142201,8 @@ class Zone(proto.Message): This field is a member of `oneof`_ ``_id``. kind (str): - [Output Only] Type of the resource. Always compute#zone for - zones. + Output only. [Output Only] Type of the resource. Always + compute#zone for zones. This field is a member of `oneof`_ ``_kind``. name (str): @@ -126295,18 +142219,18 @@ class Zone(proto.Message): This field is a member of `oneof`_ ``_self_link``. status (str): - [Output Only] Status of the zone, either UP or DOWN. Check + [Output Only] Status of the zone, either UP orDOWN. Check the Status enum for the list of possible values. This field is a member of `oneof`_ ``_status``. supports_pzs (bool): - [Output Only] Reserved for future use. + Output only. [Output Only] Reserved for future use. This field is a member of `oneof`_ ``_supports_pzs``. """ class Status(proto.Enum): - r"""[Output Only] Status of the zone, either UP or DOWN. + r"""[Output Only] Status of the zone, either UP orDOWN. Values: UNDEFINED_STATUS (0): @@ -126392,20 +142316,21 @@ class ZoneList(proto.Message): items (MutableSequence[google.cloud.compute_v1.types.Zone]): A list of Zone resources. kind (str): - Type of resource. + Output only. Type of resource. This field is a member of `oneof`_ ``_kind``. next_page_token (str): [Output Only] This token allows you to get the next page of results for list requests. If the number of results is - larger than maxResults, use the nextPageToken as a value for + larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. This field is a member of `oneof`_ ``_next_page_token``. self_link (str): - [Output Only] Server-defined URL for this resource. + Output only. [Output Only] Server-defined URL for this + resource. This field is a member of `oneof`_ ``_self_link``. warning (google.cloud.compute_v1.types.Warning): @@ -126484,6 +142409,50 @@ class ZoneSetLabelsRequest(proto.Message): ) +class ZoneSetNestedPolicyRequest(proto.Message): + r""" + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + bindings (MutableSequence[google.cloud.compute_v1.types.Binding]): + Flatten Policy to create a backwacd + compatible wire-format. Deprecated. Use 'policy' + to specify bindings. + etag (str): + Flatten Policy to create a backward + compatible wire-format. Deprecated. Use 'policy' + to specify the etag. + + This field is a member of `oneof`_ ``_etag``. + policy (google.cloud.compute_v1.types.Policy): + REQUIRED: The complete policy to be applied + to the 'resource'. The size of the policy is + limited to a few 10s of KB. An empty policy is + in general a valid policy but certain services + (like Projects) might reject them. + + This field is a member of `oneof`_ ``_policy``. + """ + + bindings: MutableSequence["Binding"] = proto.RepeatedField( + proto.MESSAGE, + number=403251854, + message="Binding", + ) + etag: str = proto.Field( + proto.STRING, + number=3123477, + optional=True, + ) + policy: "Policy" = proto.Field( + proto.MESSAGE, + number=91071794, + optional=True, + message="Policy", + ) + + class ZoneSetPolicyRequest(proto.Message): r""" diff --git a/packages/google-cloud-compute/noxfile.py b/packages/google-cloud-compute/noxfile.py index 7b4b863a8656..be171e3f5de2 100644 --- a/packages/google-cloud-compute/noxfile.py +++ b/packages/google-cloud-compute/noxfile.py @@ -60,6 +60,7 @@ "pytest", "pytest-cov", "pytest-asyncio", + "pytest-xdist", ] UNIT_TEST_EXTERNAL_DEPENDENCIES: List[str] = [] UNIT_TEST_LOCAL_DEPENDENCIES: List[str] = [] @@ -253,10 +254,14 @@ def unit(session, protobuf_implementation): if protobuf_implementation == "cpp": session.install("protobuf<4") + import os + os.environ['export PYTHONFAULTHANDLER'] = "1" + concurrent_args = ["-n", "4", "--max-worker-restart", "16"] + # Run py.test against the unit tests. session.run( "py.test", - "--quiet", + "-vvv", f"--junitxml=unit_{session.python}_sponge_log.xml", "--cov=google", "--cov=tests/unit", @@ -266,6 +271,7 @@ def unit(session, protobuf_implementation): "--cov-fail-under=0", os.path.join("tests", "unit"), *session.posargs, + *concurrent_args, env={ "PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION": protobuf_implementation, }, diff --git a/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json index 48efec2b7452..ade3354a882b 100644 --- a/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json +++ b/packages/google-cloud-compute/samples/generated_samples/snippet_metadata_google.cloud.compute.v1.json @@ -967,6 +967,94 @@ ], "title": "compute_v1_generated_addresses_test_iam_permissions_sync.py" }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.AdviceClient", + "shortName": "AdviceClient" + }, + "fullName": "google.cloud.compute_v1.AdviceClient.calendar_mode", + "method": { + "fullName": "google.cloud.compute.v1.Advice.CalendarMode", + "service": { + "fullName": "google.cloud.compute.v1.Advice", + "shortName": "Advice" + }, + "shortName": "CalendarMode" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.CalendarModeAdviceRpcRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "calendar_mode_advice_request_resource", + "type": "google.cloud.compute_v1.types.CalendarModeAdviceRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.CalendarModeAdviceResponse", + "shortName": "calendar_mode" + }, + "description": "Sample for CalendarMode", + "file": "compute_v1_generated_advice_calendar_mode_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Advice_CalendarMode_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_advice_calendar_mode_sync.py" + }, { "canonical": true, "clientMethod": { @@ -4059,27 +4147,31 @@ "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.DiskTypesClient", - "shortName": "DiskTypesClient" + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient", + "shortName": "CrossSiteNetworksClient" }, - "fullName": "google.cloud.compute_v1.DiskTypesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient.delete", "method": { - "fullName": "google.cloud.compute.v1.DiskTypes.AggregatedList", + "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Delete", "service": { - "fullName": "google.cloud.compute.v1.DiskTypes", - "shortName": "DiskTypes" + "fullName": "google.cloud.compute.v1.CrossSiteNetworks", + "shortName": "CrossSiteNetworks" }, - "shortName": "AggregatedList" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListDiskTypesRequest" + "type": "google.cloud.compute_v1.types.DeleteCrossSiteNetworkRequest" }, { "name": "project", "type": "str" }, + { + "name": "cross_site_network", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -4093,14 +4185,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.disk_types.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_disk_types_aggregated_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_cross_site_networks_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_DiskTypes_AggregatedList_sync", + "regionTag": "compute_v1_generated_CrossSiteNetworks_Delete_sync", "segments": [ { "end": 52, @@ -4118,54 +4210,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disk_types_aggregated_list_sync.py" + "title": "compute_v1_generated_cross_site_networks_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.DiskTypesClient", - "shortName": "DiskTypesClient" + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient", + "shortName": "CrossSiteNetworksClient" }, - "fullName": "google.cloud.compute_v1.DiskTypesClient.get", + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient.get", "method": { - "fullName": "google.cloud.compute.v1.DiskTypes.Get", + "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Get", "service": { - "fullName": "google.cloud.compute.v1.DiskTypes", - "shortName": "DiskTypes" + "fullName": "google.cloud.compute.v1.CrossSiteNetworks", + "shortName": "CrossSiteNetworks" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetDiskTypeRequest" + "type": "google.cloud.compute_v1.types.GetCrossSiteNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "disk_type", + "name": "cross_site_network", "type": "str" }, { @@ -4181,106 +4269,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.DiskType", + "resultType": "google.cloud.compute_v1.types.CrossSiteNetwork", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_disk_types_get_sync.py", + "file": "compute_v1_generated_cross_site_networks_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_DiskTypes_Get_sync", + "regionTag": "compute_v1_generated_CrossSiteNetworks_Get_sync", "segments": [ { - "end": 53, - "start": 27, - "type": "FULL" - }, - { - "end": 53, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 47, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 50, - "start": 48, - "type": "REQUEST_EXECUTION" - }, - { - "end": 54, - "start": 51, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_disk_types_get_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.DiskTypesClient", - "shortName": "DiskTypesClient" - }, - "fullName": "google.cloud.compute_v1.DiskTypesClient.list", - "method": { - "fullName": "google.cloud.compute.v1.DiskTypes.List", - "service": { - "fullName": "google.cloud.compute.v1.DiskTypes", - "shortName": "DiskTypes" - }, - "shortName": "List" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.ListDiskTypesRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "zone", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.cloud.compute_v1.services.disk_types.pagers.ListPager", - "shortName": "list" - }, - "description": "Sample for List", - "file": "compute_v1_generated_disk_types_list_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_DiskTypes_List_sync", - "segments": [ - { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -4300,49 +4304,41 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 53, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disk_types_list_sync.py" + "title": "compute_v1_generated_cross_site_networks_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.DisksClient", - "shortName": "DisksClient" + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient", + "shortName": "CrossSiteNetworksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.add_resource_policies", + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient.insert", "method": { - "fullName": "google.cloud.compute.v1.Disks.AddResourcePolicies", + "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Insert", "service": { - "fullName": "google.cloud.compute.v1.Disks", - "shortName": "Disks" + "fullName": "google.cloud.compute.v1.CrossSiteNetworks", + "shortName": "CrossSiteNetworks" }, - "shortName": "AddResourcePolicies" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddResourcePoliciesDiskRequest" + "type": "google.cloud.compute_v1.types.InsertCrossSiteNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "disk", - "type": "str" - }, - { - "name": "disks_add_resource_policies_request_resource", - "type": "google.cloud.compute_v1.types.DisksAddResourcePoliciesRequest" + "name": "cross_site_network_resource", + "type": "google.cloud.compute_v1.types.CrossSiteNetwork" }, { "name": "retry", @@ -4358,21 +4354,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_resource_policies" + "shortName": "insert" }, - "description": "Sample for AddResourcePolicies", - "file": "compute_v1_generated_disks_add_resource_policies_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_cross_site_networks_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_AddResourcePolicies_sync", + "regionTag": "compute_v1_generated_CrossSiteNetworks_Insert_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -4382,43 +4378,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_add_resource_policies_sync.py" + "title": "compute_v1_generated_cross_site_networks_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.DisksClient", - "shortName": "DisksClient" + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient", + "shortName": "CrossSiteNetworksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.aggregated_list", + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient.list", "method": { - "fullName": "google.cloud.compute.v1.Disks.AggregatedList", + "fullName": "google.cloud.compute.v1.CrossSiteNetworks.List", "service": { - "fullName": "google.cloud.compute.v1.Disks", - "shortName": "Disks" + "fullName": "google.cloud.compute.v1.CrossSiteNetworks", + "shortName": "CrossSiteNetworks" }, - "shortName": "AggregatedList" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListDisksRequest" + "type": "google.cloud.compute_v1.types.ListCrossSiteNetworksRequest" }, { "name": "project", @@ -4437,14 +4433,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.disks.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.services.cross_site_networks.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_disks_aggregated_list_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_cross_site_networks_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_AggregatedList_sync", + "regionTag": "compute_v1_generated_CrossSiteNetworks_List_sync", "segments": [ { "end": 52, @@ -4477,40 +4473,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_aggregated_list_sync.py" + "title": "compute_v1_generated_cross_site_networks_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.DisksClient", - "shortName": "DisksClient" + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient", + "shortName": "CrossSiteNetworksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.bulk_insert", + "fullName": "google.cloud.compute_v1.CrossSiteNetworksClient.patch", "method": { - "fullName": "google.cloud.compute.v1.Disks.BulkInsert", + "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Patch", "service": { - "fullName": "google.cloud.compute.v1.Disks", - "shortName": "Disks" + "fullName": "google.cloud.compute.v1.CrossSiteNetworks", + "shortName": "CrossSiteNetworks" }, - "shortName": "BulkInsert" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.BulkInsertDiskRequest" + "type": "google.cloud.compute_v1.types.PatchCrossSiteNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "cross_site_network", "type": "str" }, { - "name": "bulk_insert_disk_resource_resource", - "type": "google.cloud.compute_v1.types.BulkInsertDiskResource" + "name": "cross_site_network_resource", + "type": "google.cloud.compute_v1.types.CrossSiteNetwork" }, { "name": "retry", @@ -4526,13 +4522,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "bulk_insert" + "shortName": "patch" }, - "description": "Sample for BulkInsert", - "file": "compute_v1_generated_disks_bulk_insert_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_cross_site_networks_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_BulkInsert_sync", + "regionTag": "compute_v1_generated_CrossSiteNetworks_Patch_sync", "segments": [ { "end": 52, @@ -4565,41 +4561,33 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_bulk_insert_sync.py" + "title": "compute_v1_generated_cross_site_networks_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.DisksClient", - "shortName": "DisksClient" + "fullName": "google.cloud.compute_v1.DiskTypesClient", + "shortName": "DiskTypesClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.bulk_set_labels", + "fullName": "google.cloud.compute_v1.DiskTypesClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.Disks.BulkSetLabels", + "fullName": "google.cloud.compute.v1.DiskTypes.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.Disks", - "shortName": "Disks" + "fullName": "google.cloud.compute.v1.DiskTypes", + "shortName": "DiskTypes" }, - "shortName": "BulkSetLabels" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.BulkSetLabelsDiskRequest" + "type": "google.cloud.compute_v1.types.AggregatedListDiskTypesRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "bulk_zone_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.BulkZoneSetLabelsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -4613,14 +4601,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "bulk_set_labels" + "resultType": "google.cloud.compute_v1.services.disk_types.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for BulkSetLabels", - "file": "compute_v1_generated_disks_bulk_set_labels_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_disk_types_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_BulkSetLabels_sync", + "regionTag": "compute_v1_generated_DiskTypes_AggregatedList_sync", "segments": [ { "end": 52, @@ -4638,43 +4626,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_bulk_set_labels_sync.py" + "title": "compute_v1_generated_disk_types_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.DisksClient", - "shortName": "DisksClient" + "fullName": "google.cloud.compute_v1.DiskTypesClient", + "shortName": "DiskTypesClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.create_snapshot", + "fullName": "google.cloud.compute_v1.DiskTypesClient.get", "method": { - "fullName": "google.cloud.compute.v1.Disks.CreateSnapshot", + "fullName": "google.cloud.compute.v1.DiskTypes.Get", "service": { - "fullName": "google.cloud.compute.v1.Disks", - "shortName": "Disks" + "fullName": "google.cloud.compute.v1.DiskTypes", + "shortName": "DiskTypes" }, - "shortName": "CreateSnapshot" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CreateSnapshotDiskRequest" + "type": "google.cloud.compute_v1.types.GetDiskTypeRequest" }, { "name": "project", @@ -4685,13 +4673,9 @@ "type": "str" }, { - "name": "disk", + "name": "disk_type", "type": "str" }, - { - "name": "snapshot_resource", - "type": "google.cloud.compute_v1.types.Snapshot" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -4705,14 +4689,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "create_snapshot" + "resultType": "google.cloud.compute_v1.types.DiskType", + "shortName": "get" }, - "description": "Sample for CreateSnapshot", - "file": "compute_v1_generated_disks_create_snapshot_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_disk_types_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_CreateSnapshot_sync", + "regionTag": "compute_v1_generated_DiskTypes_Get_sync", "segments": [ { "end": 53, @@ -4745,28 +4729,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_create_snapshot_sync.py" + "title": "compute_v1_generated_disk_types_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.DisksClient", - "shortName": "DisksClient" + "fullName": "google.cloud.compute_v1.DiskTypesClient", + "shortName": "DiskTypesClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.delete", + "fullName": "google.cloud.compute_v1.DiskTypesClient.list", "method": { - "fullName": "google.cloud.compute.v1.Disks.Delete", + "fullName": "google.cloud.compute.v1.DiskTypes.List", "service": { - "fullName": "google.cloud.compute.v1.Disks", - "shortName": "Disks" + "fullName": "google.cloud.compute.v1.DiskTypes", + "shortName": "DiskTypes" }, - "shortName": "Delete" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteDiskRequest" + "type": "google.cloud.compute_v1.types.ListDiskTypesRequest" }, { "name": "project", @@ -4776,10 +4760,6 @@ "name": "zone", "type": "str" }, - { - "name": "disk", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -4793,14 +4773,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.disk_types.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_disks_delete_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_disk_types_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_Delete_sync", + "regionTag": "compute_v1_generated_DiskTypes_List_sync", "segments": [ { "end": 53, @@ -4818,22 +4798,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_delete_sync.py" + "title": "compute_v1_generated_disk_types_list_sync.py" }, { "canonical": true, @@ -4842,19 +4822,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.DisksClient.add_resource_policies", "method": { - "fullName": "google.cloud.compute.v1.Disks.GetIamPolicy", + "fullName": "google.cloud.compute.v1.Disks.AddResourcePolicies", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "GetIamPolicy" + "shortName": "AddResourcePolicies" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyDiskRequest" + "type": "google.cloud.compute_v1.types.AddResourcePoliciesDiskRequest" }, { "name": "project", @@ -4865,9 +4845,13 @@ "type": "str" }, { - "name": "resource", + "name": "disk", "type": "str" }, + { + "name": "disks_add_resource_policies_request_resource", + "type": "google.cloud.compute_v1.types.DisksAddResourcePoliciesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -4881,14 +4865,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_resource_policies" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_disks_get_iam_policy_sync.py", + "description": "Sample for AddResourcePolicies", + "file": "compute_v1_generated_disks_add_resource_policies_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_Disks_AddResourcePolicies_sync", "segments": [ { "end": 53, @@ -4921,7 +4905,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_get_iam_policy_sync.py" + "title": "compute_v1_generated_disks_add_resource_policies_sync.py" }, { "canonical": true, @@ -4930,32 +4914,24 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.get", + "fullName": "google.cloud.compute_v1.DisksClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.Disks.Get", + "fullName": "google.cloud.compute.v1.Disks.AggregatedList", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "Get" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetDiskRequest" + "type": "google.cloud.compute_v1.types.AggregatedListDisksRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "disk", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -4969,22 +4945,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Disk", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.disks.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_disks_get_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_disks_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_Get_sync", + "regionTag": "compute_v1_generated_Disks_AggregatedList_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -4994,22 +4970,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_get_sync.py" + "title": "compute_v1_generated_disks_aggregated_list_sync.py" }, { "canonical": true, @@ -5018,19 +4994,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.insert", + "fullName": "google.cloud.compute_v1.DisksClient.bulk_insert", "method": { - "fullName": "google.cloud.compute.v1.Disks.Insert", + "fullName": "google.cloud.compute.v1.Disks.BulkInsert", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "Insert" + "shortName": "BulkInsert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertDiskRequest" + "type": "google.cloud.compute_v1.types.BulkInsertDiskRequest" }, { "name": "project", @@ -5041,8 +5017,8 @@ "type": "str" }, { - "name": "disk_resource", - "type": "google.cloud.compute_v1.types.Disk" + "name": "bulk_insert_disk_resource_resource", + "type": "google.cloud.compute_v1.types.BulkInsertDiskResource" }, { "name": "retry", @@ -5058,13 +5034,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "bulk_insert" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_disks_insert_sync.py", + "description": "Sample for BulkInsert", + "file": "compute_v1_generated_disks_bulk_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_Insert_sync", + "regionTag": "compute_v1_generated_Disks_BulkInsert_sync", "segments": [ { "end": 52, @@ -5097,7 +5073,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_insert_sync.py" + "title": "compute_v1_generated_disks_bulk_insert_sync.py" }, { "canonical": true, @@ -5106,19 +5082,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.list", + "fullName": "google.cloud.compute_v1.DisksClient.bulk_set_labels", "method": { - "fullName": "google.cloud.compute.v1.Disks.List", + "fullName": "google.cloud.compute.v1.Disks.BulkSetLabels", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "List" + "shortName": "BulkSetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListDisksRequest" + "type": "google.cloud.compute_v1.types.BulkSetLabelsDiskRequest" }, { "name": "project", @@ -5128,6 +5104,10 @@ "name": "zone", "type": "str" }, + { + "name": "bulk_zone_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.BulkZoneSetLabelsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -5141,22 +5121,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.disks.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "bulk_set_labels" }, - "description": "Sample for List", - "file": "compute_v1_generated_disks_list_sync.py", + "description": "Sample for BulkSetLabels", + "file": "compute_v1_generated_disks_bulk_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_List_sync", + "regionTag": "compute_v1_generated_Disks_BulkSetLabels_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -5176,12 +5156,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 53, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_list_sync.py" + "title": "compute_v1_generated_disks_bulk_set_labels_sync.py" }, { "canonical": true, @@ -5190,19 +5170,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.remove_resource_policies", + "fullName": "google.cloud.compute_v1.DisksClient.create_snapshot", "method": { - "fullName": "google.cloud.compute.v1.Disks.RemoveResourcePolicies", + "fullName": "google.cloud.compute.v1.Disks.CreateSnapshot", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "RemoveResourcePolicies" + "shortName": "CreateSnapshot" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveResourcePoliciesDiskRequest" + "type": "google.cloud.compute_v1.types.CreateSnapshotDiskRequest" }, { "name": "project", @@ -5217,8 +5197,8 @@ "type": "str" }, { - "name": "disks_remove_resource_policies_request_resource", - "type": "google.cloud.compute_v1.types.DisksRemoveResourcePoliciesRequest" + "name": "snapshot_resource", + "type": "google.cloud.compute_v1.types.Snapshot" }, { "name": "retry", @@ -5234,13 +5214,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_resource_policies" + "shortName": "create_snapshot" }, - "description": "Sample for RemoveResourcePolicies", - "file": "compute_v1_generated_disks_remove_resource_policies_sync.py", + "description": "Sample for CreateSnapshot", + "file": "compute_v1_generated_disks_create_snapshot_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_RemoveResourcePolicies_sync", + "regionTag": "compute_v1_generated_Disks_CreateSnapshot_sync", "segments": [ { "end": 53, @@ -5273,7 +5253,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_remove_resource_policies_sync.py" + "title": "compute_v1_generated_disks_create_snapshot_sync.py" }, { "canonical": true, @@ -5282,19 +5262,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.resize", + "fullName": "google.cloud.compute_v1.DisksClient.delete", "method": { - "fullName": "google.cloud.compute.v1.Disks.Resize", + "fullName": "google.cloud.compute.v1.Disks.Delete", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "Resize" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ResizeDiskRequest" + "type": "google.cloud.compute_v1.types.DeleteDiskRequest" }, { "name": "project", @@ -5308,10 +5288,6 @@ "name": "disk", "type": "str" }, - { - "name": "disks_resize_request_resource", - "type": "google.cloud.compute_v1.types.DisksResizeRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -5326,13 +5302,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "resize" + "shortName": "delete" }, - "description": "Sample for Resize", - "file": "compute_v1_generated_disks_resize_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_disks_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_Resize_sync", + "regionTag": "compute_v1_generated_Disks_Delete_sync", "segments": [ { "end": 53, @@ -5365,7 +5341,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_resize_sync.py" + "title": "compute_v1_generated_disks_delete_sync.py" }, { "canonical": true, @@ -5374,19 +5350,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.DisksClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Disks.SetIamPolicy", + "fullName": "google.cloud.compute.v1.Disks.GetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "SetIamPolicy" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyDiskRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyDiskRequest" }, { "name": "project", @@ -5400,10 +5376,6 @@ "name": "resource", "type": "str" }, - { - "name": "zone_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.ZoneSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -5418,13 +5390,13 @@ } ], "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "shortName": "get_iam_policy" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_disks_set_iam_policy_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_disks_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_Disks_GetIamPolicy_sync", "segments": [ { "end": 53, @@ -5457,7 +5429,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_set_iam_policy_sync.py" + "title": "compute_v1_generated_disks_get_iam_policy_sync.py" }, { "canonical": true, @@ -5466,19 +5438,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.set_labels", + "fullName": "google.cloud.compute_v1.DisksClient.get", "method": { - "fullName": "google.cloud.compute.v1.Disks.SetLabels", + "fullName": "google.cloud.compute.v1.Disks.Get", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "SetLabels" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsDiskRequest" + "type": "google.cloud.compute_v1.types.GetDiskRequest" }, { "name": "project", @@ -5489,13 +5461,9 @@ "type": "str" }, { - "name": "resource", + "name": "disk", "type": "str" }, - { - "name": "zone_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.ZoneSetLabelsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -5509,14 +5477,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "resultType": "google.cloud.compute_v1.types.Disk", + "shortName": "get" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_disks_set_labels_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_disks_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_SetLabels_sync", + "regionTag": "compute_v1_generated_Disks_Get_sync", "segments": [ { "end": 53, @@ -5549,7 +5517,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_set_labels_sync.py" + "title": "compute_v1_generated_disks_get_sync.py" }, { "canonical": true, @@ -5558,19 +5526,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.start_async_replication", + "fullName": "google.cloud.compute_v1.DisksClient.insert", "method": { - "fullName": "google.cloud.compute.v1.Disks.StartAsyncReplication", + "fullName": "google.cloud.compute.v1.Disks.Insert", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "StartAsyncReplication" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StartAsyncReplicationDiskRequest" + "type": "google.cloud.compute_v1.types.InsertDiskRequest" }, { "name": "project", @@ -5581,12 +5549,92 @@ "type": "str" }, { - "name": "disk", + "name": "disk_resource", + "type": "google.cloud.compute_v1.types.Disk" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_disks_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Disks_Insert_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_disks_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" + }, + "fullName": "google.cloud.compute_v1.DisksClient.list", + "method": { + "fullName": "google.cloud.compute.v1.Disks.List", + "service": { + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListDisksRequest" + }, + { + "name": "project", "type": "str" }, { - "name": "disks_start_async_replication_request_resource", - "type": "google.cloud.compute_v1.types.DisksStartAsyncReplicationRequest" + "name": "zone", + "type": "str" }, { "name": "retry", @@ -5601,14 +5649,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "start_async_replication" + "resultType": "google.cloud.compute_v1.services.disks.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for StartAsyncReplication", - "file": "compute_v1_generated_disks_start_async_replication_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_disks_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_StartAsyncReplication_sync", + "regionTag": "compute_v1_generated_Disks_List_sync", "segments": [ { "end": 53, @@ -5626,22 +5674,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_start_async_replication_sync.py" + "title": "compute_v1_generated_disks_list_sync.py" }, { "canonical": true, @@ -5650,19 +5698,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.stop_async_replication", + "fullName": "google.cloud.compute_v1.DisksClient.remove_resource_policies", "method": { - "fullName": "google.cloud.compute.v1.Disks.StopAsyncReplication", + "fullName": "google.cloud.compute.v1.Disks.RemoveResourcePolicies", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "StopAsyncReplication" + "shortName": "RemoveResourcePolicies" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StopAsyncReplicationDiskRequest" + "type": "google.cloud.compute_v1.types.RemoveResourcePoliciesDiskRequest" }, { "name": "project", @@ -5676,6 +5724,10 @@ "name": "disk", "type": "str" }, + { + "name": "disks_remove_resource_policies_request_resource", + "type": "google.cloud.compute_v1.types.DisksRemoveResourcePoliciesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -5690,13 +5742,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "stop_async_replication" + "shortName": "remove_resource_policies" }, - "description": "Sample for StopAsyncReplication", - "file": "compute_v1_generated_disks_stop_async_replication_sync.py", + "description": "Sample for RemoveResourcePolicies", + "file": "compute_v1_generated_disks_remove_resource_policies_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_StopAsyncReplication_sync", + "regionTag": "compute_v1_generated_Disks_RemoveResourcePolicies_sync", "segments": [ { "end": 53, @@ -5729,7 +5781,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_stop_async_replication_sync.py" + "title": "compute_v1_generated_disks_remove_resource_policies_sync.py" }, { "canonical": true, @@ -5738,19 +5790,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.stop_group_async_replication", + "fullName": "google.cloud.compute_v1.DisksClient.resize", "method": { - "fullName": "google.cloud.compute.v1.Disks.StopGroupAsyncReplication", + "fullName": "google.cloud.compute.v1.Disks.Resize", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "StopGroupAsyncReplication" + "shortName": "Resize" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StopGroupAsyncReplicationDiskRequest" + "type": "google.cloud.compute_v1.types.ResizeDiskRequest" }, { "name": "project", @@ -5761,8 +5813,12 @@ "type": "str" }, { - "name": "disks_stop_group_async_replication_resource_resource", - "type": "google.cloud.compute_v1.types.DisksStopGroupAsyncReplicationResource" + "name": "disk", + "type": "str" + }, + { + "name": "disks_resize_request_resource", + "type": "google.cloud.compute_v1.types.DisksResizeRequest" }, { "name": "retry", @@ -5778,21 +5834,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "stop_group_async_replication" + "shortName": "resize" }, - "description": "Sample for StopGroupAsyncReplication", - "file": "compute_v1_generated_disks_stop_group_async_replication_sync.py", + "description": "Sample for Resize", + "file": "compute_v1_generated_disks_resize_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_StopGroupAsyncReplication_sync", + "regionTag": "compute_v1_generated_Disks_Resize_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -5802,22 +5858,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_stop_group_async_replication_sync.py" + "title": "compute_v1_generated_disks_resize_sync.py" }, { "canonical": true, @@ -5826,19 +5882,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.DisksClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Disks.TestIamPermissions", + "fullName": "google.cloud.compute.v1.Disks.SetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "TestIamPermissions" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsDiskRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyDiskRequest" }, { "name": "project", @@ -5853,8 +5909,8 @@ "type": "str" }, { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "zone_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.ZoneSetPolicyRequest" }, { "name": "retry", @@ -5869,14 +5925,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_disks_test_iam_permissions_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_disks_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_Disks_SetIamPolicy_sync", "segments": [ { "end": 53, @@ -5909,7 +5965,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_test_iam_permissions_sync.py" + "title": "compute_v1_generated_disks_set_iam_policy_sync.py" }, { "canonical": true, @@ -5918,19 +5974,19 @@ "fullName": "google.cloud.compute_v1.DisksClient", "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.DisksClient.update", + "fullName": "google.cloud.compute_v1.DisksClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.Disks.Update", + "fullName": "google.cloud.compute.v1.Disks.SetLabels", "service": { "fullName": "google.cloud.compute.v1.Disks", "shortName": "Disks" }, - "shortName": "Update" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateDiskRequest" + "type": "google.cloud.compute_v1.types.SetLabelsDiskRequest" }, { "name": "project", @@ -5941,12 +5997,12 @@ "type": "str" }, { - "name": "disk", + "name": "resource", "type": "str" }, { - "name": "disk_resource", - "type": "google.cloud.compute_v1.types.Disk" + "name": "zone_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.ZoneSetLabelsRequest" }, { "name": "retry", @@ -5962,13 +6018,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" + "shortName": "set_labels" }, - "description": "Sample for Update", - "file": "compute_v1_generated_disks_update_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_disks_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Disks_Update_sync", + "regionTag": "compute_v1_generated_Disks_SetLabels_sync", "segments": [ { "end": 53, @@ -6001,37 +6057,45 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_disks_update_sync.py" + "title": "compute_v1_generated_disks_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", - "shortName": "ExternalVpnGatewaysClient" + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.delete", + "fullName": "google.cloud.compute_v1.DisksClient.start_async_replication", "method": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Delete", + "fullName": "google.cloud.compute.v1.Disks.StartAsyncReplication", "service": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways", - "shortName": "ExternalVpnGateways" + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" }, - "shortName": "Delete" + "shortName": "StartAsyncReplication" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteExternalVpnGatewayRequest" + "type": "google.cloud.compute_v1.types.StartAsyncReplicationDiskRequest" }, { "name": "project", "type": "str" }, { - "name": "external_vpn_gateway", + "name": "zone", + "type": "str" + }, + { + "name": "disk", "type": "str" }, + { + "name": "disks_start_async_replication_request_resource", + "type": "google.cloud.compute_v1.types.DisksStartAsyncReplicationRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -6046,21 +6110,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "start_async_replication" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_external_vpn_gateways_delete_sync.py", + "description": "Sample for StartAsyncReplication", + "file": "compute_v1_generated_disks_start_async_replication_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ExternalVpnGateways_Delete_sync", + "regionTag": "compute_v1_generated_Disks_StartAsyncReplication_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -6070,50 +6134,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_external_vpn_gateways_delete_sync.py" + "title": "compute_v1_generated_disks_start_async_replication_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", - "shortName": "ExternalVpnGatewaysClient" + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.get", + "fullName": "google.cloud.compute_v1.DisksClient.stop_async_replication", "method": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Get", + "fullName": "google.cloud.compute.v1.Disks.StopAsyncReplication", "service": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways", - "shortName": "ExternalVpnGateways" + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" }, - "shortName": "Get" + "shortName": "StopAsyncReplication" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetExternalVpnGatewayRequest" + "type": "google.cloud.compute_v1.types.StopAsyncReplicationDiskRequest" }, { "name": "project", "type": "str" }, { - "name": "external_vpn_gateway", + "name": "zone", + "type": "str" + }, + { + "name": "disk", "type": "str" }, { @@ -6129,22 +6197,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.ExternalVpnGateway", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "stop_async_replication" }, - "description": "Sample for Get", - "file": "compute_v1_generated_external_vpn_gateways_get_sync.py", + "description": "Sample for StopAsyncReplication", + "file": "compute_v1_generated_disks_stop_async_replication_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ExternalVpnGateways_Get_sync", + "regionTag": "compute_v1_generated_Disks_StopAsyncReplication_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -6154,51 +6222,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_external_vpn_gateways_get_sync.py" + "title": "compute_v1_generated_disks_stop_async_replication_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", - "shortName": "ExternalVpnGatewaysClient" + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.insert", + "fullName": "google.cloud.compute_v1.DisksClient.stop_group_async_replication", "method": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Insert", + "fullName": "google.cloud.compute.v1.Disks.StopGroupAsyncReplication", "service": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways", - "shortName": "ExternalVpnGateways" + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" }, - "shortName": "Insert" + "shortName": "StopGroupAsyncReplication" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertExternalVpnGatewayRequest" + "type": "google.cloud.compute_v1.types.StopGroupAsyncReplicationDiskRequest" }, { "name": "project", "type": "str" }, { - "name": "external_vpn_gateway_resource", - "type": "google.cloud.compute_v1.types.ExternalVpnGateway" + "name": "zone", + "type": "str" + }, + { + "name": "disks_stop_group_async_replication_resource_resource", + "type": "google.cloud.compute_v1.types.DisksStopGroupAsyncReplicationResource" }, { "name": "retry", @@ -6214,21 +6286,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "stop_group_async_replication" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_external_vpn_gateways_insert_sync.py", + "description": "Sample for StopGroupAsyncReplication", + "file": "compute_v1_generated_disks_stop_group_async_replication_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ExternalVpnGateways_Insert_sync", + "regionTag": "compute_v1_generated_Disks_StopGroupAsyncReplication_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -6238,48 +6310,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_external_vpn_gateways_insert_sync.py" + "title": "compute_v1_generated_disks_stop_group_async_replication_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", - "shortName": "ExternalVpnGatewaysClient" + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.list", + "fullName": "google.cloud.compute_v1.DisksClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.List", + "fullName": "google.cloud.compute.v1.Disks.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways", - "shortName": "ExternalVpnGateways" + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" }, - "shortName": "List" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListExternalVpnGatewaysRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsDiskRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -6293,22 +6377,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.external_vpn_gateways.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for List", - "file": "compute_v1_generated_external_vpn_gateways_list_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_disks_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ExternalVpnGateways_List_sync", + "regionTag": "compute_v1_generated_Disks_TestIamPermissions_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -6318,55 +6402,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_external_vpn_gateways_list_sync.py" + "title": "compute_v1_generated_disks_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", - "shortName": "ExternalVpnGatewaysClient" + "fullName": "google.cloud.compute_v1.DisksClient", + "shortName": "DisksClient" }, - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.set_labels", + "fullName": "google.cloud.compute_v1.DisksClient.update", "method": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.SetLabels", + "fullName": "google.cloud.compute.v1.Disks.Update", "service": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways", - "shortName": "ExternalVpnGateways" + "fullName": "google.cloud.compute.v1.Disks", + "shortName": "Disks" }, - "shortName": "SetLabels" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsExternalVpnGatewayRequest" + "type": "google.cloud.compute_v1.types.UpdateDiskRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "zone", "type": "str" }, { - "name": "global_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" + "name": "disk", + "type": "str" + }, + { + "name": "disk_resource", + "type": "google.cloud.compute_v1.types.Disk" }, { "name": "retry", @@ -6382,21 +6470,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "shortName": "update" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_external_vpn_gateways_set_labels_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_disks_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ExternalVpnGateways_SetLabels_sync", + "regionTag": "compute_v1_generated_Disks_Update_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -6406,22 +6494,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_external_vpn_gateways_set_labels_sync.py" + "title": "compute_v1_generated_disks_update_sync.py" }, { "canonical": true, @@ -6430,32 +6518,28 @@ "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", "shortName": "ExternalVpnGatewaysClient" }, - "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.delete", "method": { - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.TestIamPermissions", + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Delete", "service": { "fullName": "google.cloud.compute.v1.ExternalVpnGateways", "shortName": "ExternalVpnGateways" }, - "shortName": "TestIamPermissions" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsExternalVpnGatewayRequest" + "type": "google.cloud.compute_v1.types.DeleteExternalVpnGatewayRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "external_vpn_gateway", "type": "str" }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -6469,14 +6553,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_external_vpn_gateways_test_iam_permissions_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_external_vpn_gateways_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ExternalVpnGateways_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_ExternalVpnGateways_Delete_sync", "segments": [ { "end": 52, @@ -6509,36 +6593,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_external_vpn_gateways_test_iam_permissions_sync.py" + "title": "compute_v1_generated_external_vpn_gateways_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", - "shortName": "FirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.add_association", + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.get", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.AddAssociation", + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Get", "service": { - "fullName": "google.cloud.compute.v1.FirewallPolicies", - "shortName": "FirewallPolicies" + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" }, - "shortName": "AddAssociation" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddAssociationFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetExternalVpnGatewayRequest" }, { - "name": "firewall_policy", + "name": "project", "type": "str" }, { - "name": "firewall_policy_association_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyAssociation" + "name": "external_vpn_gateway", + "type": "str" }, { "name": "retry", @@ -6553,22 +6637,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_association" + "resultType": "google.cloud.compute_v1.types.ExternalVpnGateway", + "shortName": "get" }, - "description": "Sample for AddAssociation", - "file": "compute_v1_generated_firewall_policies_add_association_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_external_vpn_gateways_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_AddAssociation_sync", + "regionTag": "compute_v1_generated_ExternalVpnGateways_Get_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -6578,51 +6662,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_add_association_sync.py" + "title": "compute_v1_generated_external_vpn_gateways_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", - "shortName": "FirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.add_rule", + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.insert", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.AddRule", + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Insert", "service": { - "fullName": "google.cloud.compute.v1.FirewallPolicies", - "shortName": "FirewallPolicies" + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" }, - "shortName": "AddRule" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddRuleFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.InsertExternalVpnGatewayRequest" }, { - "name": "firewall_policy", + "name": "project", "type": "str" }, { - "name": "firewall_policy_rule_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyRule" + "name": "external_vpn_gateway_resource", + "type": "google.cloud.compute_v1.types.ExternalVpnGateway" }, { "name": "retry", @@ -6638,13 +6722,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_rule" + "shortName": "insert" }, - "description": "Sample for AddRule", - "file": "compute_v1_generated_firewall_policies_add_rule_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_external_vpn_gateways_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_AddRule_sync", + "regionTag": "compute_v1_generated_ExternalVpnGateways_Insert_sync", "segments": [ { "end": 51, @@ -6677,31 +6761,31 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_add_rule_sync.py" + "title": "compute_v1_generated_external_vpn_gateways_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", - "shortName": "FirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.clone_rules", + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.list", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.CloneRules", + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.List", "service": { - "fullName": "google.cloud.compute.v1.FirewallPolicies", - "shortName": "FirewallPolicies" + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" }, - "shortName": "CloneRules" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CloneRulesFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.ListExternalVpnGatewaysRequest" }, { - "name": "firewall_policy", + "name": "project", "type": "str" }, { @@ -6717,22 +6801,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "clone_rules" + "resultType": "google.cloud.compute_v1.services.external_vpn_gateways.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for CloneRules", - "file": "compute_v1_generated_firewall_policies_clone_rules_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_external_vpn_gateways_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_CloneRules_sync", + "regionTag": "compute_v1_generated_ExternalVpnGateways_List_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -6752,38 +6836,46 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 53, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_clone_rules_sync.py" + "title": "compute_v1_generated_external_vpn_gateways_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", - "shortName": "FirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.delete", + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.Delete", + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.SetLabels", "service": { - "fullName": "google.cloud.compute.v1.FirewallPolicies", - "shortName": "FirewallPolicies" + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" }, - "shortName": "Delete" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.SetLabelsExternalVpnGatewayRequest" }, { - "name": "firewall_policy", + "name": "project", "type": "str" }, + { + "name": "resource", + "type": "str" + }, + { + "name": "global_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -6798,21 +6890,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "set_labels" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_firewall_policies_delete_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_external_vpn_gateways_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_Delete_sync", + "regionTag": "compute_v1_generated_ExternalVpnGateways_SetLabels_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -6822,48 +6914,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_delete_sync.py" + "title": "compute_v1_generated_external_vpn_gateways_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", - "shortName": "FirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient", + "shortName": "ExternalVpnGatewaysClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get_association", + "fullName": "google.cloud.compute_v1.ExternalVpnGatewaysClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.GetAssociation", + "fullName": "google.cloud.compute.v1.ExternalVpnGateways.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.FirewallPolicies", - "shortName": "FirewallPolicies" + "fullName": "google.cloud.compute.v1.ExternalVpnGateways", + "shortName": "ExternalVpnGateways" }, - "shortName": "GetAssociation" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetAssociationFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsExternalVpnGatewayRequest" }, { - "name": "firewall_policy", + "name": "project", "type": "str" }, + { + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -6877,22 +6977,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicyAssociation", - "shortName": "get_association" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for GetAssociation", - "file": "compute_v1_generated_firewall_policies_get_association_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_external_vpn_gateways_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_GetAssociation_sync", + "regionTag": "compute_v1_generated_ExternalVpnGateways_TestIamPermissions_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -6902,22 +7002,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_get_association_sync.py" + "title": "compute_v1_generated_external_vpn_gateways_test_iam_permissions_sync.py" }, { "canonical": true, @@ -6926,24 +7026,28 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.add_association", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.GetIamPolicy", + "fullName": "google.cloud.compute.v1.FirewallPolicies.AddAssociation", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "GetIamPolicy" + "shortName": "AddAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.AddAssociationFirewallPolicyRequest" }, { - "name": "resource", + "name": "firewall_policy", "type": "str" }, + { + "name": "firewall_policy_association_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyAssociation" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -6957,14 +7061,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_association" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_firewall_policies_get_iam_policy_sync.py", + "description": "Sample for AddAssociation", + "file": "compute_v1_generated_firewall_policies_add_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_AddAssociation_sync", "segments": [ { "end": 51, @@ -6997,7 +7101,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_get_iam_policy_sync.py" + "title": "compute_v1_generated_firewall_policies_add_association_sync.py" }, { "canonical": true, @@ -7006,24 +7110,28 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get_rule", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.add_rule", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.GetRule", + "fullName": "google.cloud.compute.v1.FirewallPolicies.AddRule", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "GetRule" + "shortName": "AddRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRuleFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.AddRuleFirewallPolicyRequest" }, { "name": "firewall_policy", "type": "str" }, + { + "name": "firewall_policy_rule_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -7037,14 +7145,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", - "shortName": "get_rule" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_rule" }, - "description": "Sample for GetRule", - "file": "compute_v1_generated_firewall_policies_get_rule_sync.py", + "description": "Sample for AddRule", + "file": "compute_v1_generated_firewall_policies_add_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_GetRule_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_AddRule_sync", "segments": [ { "end": 51, @@ -7077,7 +7185,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_get_rule_sync.py" + "title": "compute_v1_generated_firewall_policies_add_rule_sync.py" }, { "canonical": true, @@ -7086,19 +7194,19 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.clone_rules", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.Get", + "fullName": "google.cloud.compute.v1.FirewallPolicies.CloneRules", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "Get" + "shortName": "CloneRules" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.CloneRulesFirewallPolicyRequest" }, { "name": "firewall_policy", @@ -7117,14 +7225,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicy", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "clone_rules" }, - "description": "Sample for Get", - "file": "compute_v1_generated_firewall_policies_get_sync.py", + "description": "Sample for CloneRules", + "file": "compute_v1_generated_firewall_policies_clone_rules_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_Get_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_CloneRules_sync", "segments": [ { "end": 51, @@ -7157,7 +7265,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_get_sync.py" + "title": "compute_v1_generated_firewall_policies_clone_rules_sync.py" }, { "canonical": true, @@ -7166,28 +7274,24 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.insert", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.Insert", + "fullName": "google.cloud.compute.v1.FirewallPolicies.Delete", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "Insert" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.DeleteFirewallPolicyRequest" }, { - "name": "parent_id", + "name": "firewall_policy", "type": "str" }, - { - "name": "firewall_policy_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicy" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -7202,13 +7306,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "delete" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_firewall_policies_insert_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_firewall_policies_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_Insert_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_Delete_sync", "segments": [ { "end": 51, @@ -7241,7 +7345,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_insert_sync.py" + "title": "compute_v1_generated_firewall_policies_delete_sync.py" }, { "canonical": true, @@ -7250,19 +7354,23 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.list_associations", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get_association", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.ListAssociations", + "fullName": "google.cloud.compute.v1.FirewallPolicies.GetAssociation", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "ListAssociations" + "shortName": "GetAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListAssociationsFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetAssociationFirewallPolicyRequest" + }, + { + "name": "firewall_policy", + "type": "str" }, { "name": "retry", @@ -7277,22 +7385,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPoliciesListAssociationsResponse", - "shortName": "list_associations" + "resultType": "google.cloud.compute_v1.types.FirewallPolicyAssociation", + "shortName": "get_association" }, - "description": "Sample for ListAssociations", - "file": "compute_v1_generated_firewall_policies_list_associations_sync.py", + "description": "Sample for GetAssociation", + "file": "compute_v1_generated_firewall_policies_get_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_ListAssociations_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_GetAssociation_sync", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 50, + "end": 51, "start": 27, "type": "SHORT" }, @@ -7302,22 +7410,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 44, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 47, - "start": 45, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 51, - "start": 48, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_list_associations_sync.py" + "title": "compute_v1_generated_firewall_policies_get_association_sync.py" }, { "canonical": true, @@ -7326,19 +7434,23 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.list", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.List", + "fullName": "google.cloud.compute.v1.FirewallPolicies.GetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "List" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListFirewallPoliciesRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyFirewallPolicyRequest" + }, + { + "name": "resource", + "type": "str" }, { "name": "retry", @@ -7353,14 +7465,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.firewall_policies.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for List", - "file": "compute_v1_generated_firewall_policies_list_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_firewall_policies_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_List_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_GetIamPolicy_sync", "segments": [ { "end": 51, @@ -7378,22 +7490,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 44, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 47, - "start": 45, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 52, - "start": 48, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_list_sync.py" + "title": "compute_v1_generated_firewall_policies_get_iam_policy_sync.py" }, { "canonical": true, @@ -7402,28 +7514,24 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.move", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get_rule", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.Move", + "fullName": "google.cloud.compute.v1.FirewallPolicies.GetRule", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "Move" + "shortName": "GetRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.MoveFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetRuleFirewallPolicyRequest" }, { "name": "firewall_policy", "type": "str" }, - { - "name": "parent_id", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -7437,22 +7545,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "move" + "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", + "shortName": "get_rule" }, - "description": "Sample for Move", - "file": "compute_v1_generated_firewall_policies_move_sync.py", + "description": "Sample for GetRule", + "file": "compute_v1_generated_firewall_policies_get_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_Move_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_GetRule_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -7462,22 +7570,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_move_sync.py" + "title": "compute_v1_generated_firewall_policies_get_rule_sync.py" }, { "canonical": true, @@ -7486,28 +7594,24 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.patch_rule", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.get", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.PatchRule", + "fullName": "google.cloud.compute.v1.FirewallPolicies.Get", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "PatchRule" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRuleFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetFirewallPolicyRequest" }, { "name": "firewall_policy", "type": "str" }, - { - "name": "firewall_policy_rule_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyRule" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -7521,14 +7625,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch_rule" + "resultType": "google.cloud.compute_v1.types.FirewallPolicy", + "shortName": "get" }, - "description": "Sample for PatchRule", - "file": "compute_v1_generated_firewall_policies_patch_rule_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_firewall_policies_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_PatchRule_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_Get_sync", "segments": [ { "end": 51, @@ -7561,7 +7665,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_patch_rule_sync.py" + "title": "compute_v1_generated_firewall_policies_get_sync.py" }, { "canonical": true, @@ -7570,22 +7674,22 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.patch", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.Patch", + "fullName": "google.cloud.compute.v1.FirewallPolicies.Insert", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "Patch" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.InsertFirewallPolicyRequest" }, { - "name": "firewall_policy", + "name": "parent_id", "type": "str" }, { @@ -7606,13 +7710,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "insert" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_firewall_policies_patch_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_firewall_policies_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_Patch_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_Insert_sync", "segments": [ { "end": 51, @@ -7645,7 +7749,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_patch_sync.py" + "title": "compute_v1_generated_firewall_policies_insert_sync.py" }, { "canonical": true, @@ -7654,23 +7758,19 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.remove_association", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.list_associations", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveAssociation", + "fullName": "google.cloud.compute.v1.FirewallPolicies.ListAssociations", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "RemoveAssociation" + "shortName": "ListAssociations" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveAssociationFirewallPolicyRequest" - }, - { - "name": "firewall_policy", - "type": "str" + "type": "google.cloud.compute_v1.types.ListAssociationsFirewallPolicyRequest" }, { "name": "retry", @@ -7685,22 +7785,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_association" + "resultType": "google.cloud.compute_v1.types.FirewallPoliciesListAssociationsResponse", + "shortName": "list_associations" }, - "description": "Sample for RemoveAssociation", - "file": "compute_v1_generated_firewall_policies_remove_association_sync.py", + "description": "Sample for ListAssociations", + "file": "compute_v1_generated_firewall_policies_list_associations_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_RemoveAssociation_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_ListAssociations_sync", "segments": [ { - "end": 51, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 50, "start": 27, "type": "SHORT" }, @@ -7710,22 +7810,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 44, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_remove_association_sync.py" + "title": "compute_v1_generated_firewall_policies_list_associations_sync.py" }, { "canonical": true, @@ -7734,23 +7834,19 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.remove_rule", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.list", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveRule", + "fullName": "google.cloud.compute.v1.FirewallPolicies.List", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "RemoveRule" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveRuleFirewallPolicyRequest" - }, - { - "name": "firewall_policy", - "type": "str" + "type": "google.cloud.compute_v1.types.ListFirewallPoliciesRequest" }, { "name": "retry", @@ -7765,14 +7861,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_rule" + "resultType": "google.cloud.compute_v1.services.firewall_policies.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for RemoveRule", - "file": "compute_v1_generated_firewall_policies_remove_rule_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_firewall_policies_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_RemoveRule_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_List_sync", "segments": [ { "end": 51, @@ -7790,22 +7886,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 44, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { "end": 52, - "start": 49, + "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_remove_rule_sync.py" + "title": "compute_v1_generated_firewall_policies_list_sync.py" }, { "canonical": true, @@ -7814,27 +7910,27 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.move", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.SetIamPolicy", + "fullName": "google.cloud.compute.v1.FirewallPolicies.Move", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "SetIamPolicy" + "shortName": "Move" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.MoveFirewallPolicyRequest" }, { - "name": "resource", + "name": "firewall_policy", "type": "str" }, { - "name": "global_organization_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.GlobalOrganizationSetPolicyRequest" + "name": "parent_id", + "type": "str" }, { "name": "retry", @@ -7849,22 +7945,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "move" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_firewall_policies_set_iam_policy_sync.py", + "description": "Sample for Move", + "file": "compute_v1_generated_firewall_policies_move_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_Move_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -7874,22 +7970,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_set_iam_policy_sync.py" + "title": "compute_v1_generated_firewall_policies_move_sync.py" }, { "canonical": true, @@ -7898,27 +7994,27 @@ "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.patch_rule", "method": { - "fullName": "google.cloud.compute.v1.FirewallPolicies.TestIamPermissions", + "fullName": "google.cloud.compute.v1.FirewallPolicies.PatchRule", "service": { "fullName": "google.cloud.compute.v1.FirewallPolicies", "shortName": "FirewallPolicies" }, - "shortName": "TestIamPermissions" + "shortName": "PatchRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchRuleFirewallPolicyRequest" }, { - "name": "resource", + "name": "firewall_policy", "type": "str" }, { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "firewall_policy_rule_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyRule" }, { "name": "retry", @@ -7933,14 +8029,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_rule" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_firewall_policies_test_iam_permissions_sync.py", + "description": "Sample for PatchRule", + "file": "compute_v1_generated_firewall_policies_patch_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_FirewallPolicies_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_PatchRule_sync", "segments": [ { "end": 51, @@ -7973,36 +8069,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewall_policies_test_iam_permissions_sync.py" + "title": "compute_v1_generated_firewall_policies_patch_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallsClient", - "shortName": "FirewallsClient" + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallsClient.delete", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.Firewalls.Delete", + "fullName": "google.cloud.compute.v1.FirewallPolicies.Patch", "service": { - "fullName": "google.cloud.compute.v1.Firewalls", - "shortName": "Firewalls" + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" }, - "shortName": "Delete" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteFirewallRequest" + "type": "google.cloud.compute_v1.types.PatchFirewallPolicyRequest" }, { - "name": "project", + "name": "firewall_policy", "type": "str" }, { - "name": "firewall", - "type": "str" + "name": "firewall_policy_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicy" }, { "name": "retry", @@ -8018,21 +8114,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "patch" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_firewalls_delete_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_firewall_policies_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Firewalls_Delete_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_Patch_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -8042,50 +8138,46 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewalls_delete_sync.py" + "title": "compute_v1_generated_firewall_policies_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallsClient", - "shortName": "FirewallsClient" + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallsClient.get", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.remove_association", "method": { - "fullName": "google.cloud.compute.v1.Firewalls.Get", + "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveAssociation", "service": { - "fullName": "google.cloud.compute.v1.Firewalls", - "shortName": "Firewalls" + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" }, - "shortName": "Get" + "shortName": "RemoveAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetFirewallRequest" - }, - { - "name": "project", - "type": "str" + "type": "google.cloud.compute_v1.types.RemoveAssociationFirewallPolicyRequest" }, { - "name": "firewall", + "name": "firewall_policy", "type": "str" }, { @@ -8101,22 +8193,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Firewall", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_association" }, - "description": "Sample for Get", - "file": "compute_v1_generated_firewalls_get_sync.py", + "description": "Sample for RemoveAssociation", + "file": "compute_v1_generated_firewall_policies_remove_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Firewalls_Get_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_RemoveAssociation_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -8126,52 +8218,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewalls_get_sync.py" + "title": "compute_v1_generated_firewall_policies_remove_association_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallsClient", - "shortName": "FirewallsClient" + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallsClient.insert", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.remove_rule", "method": { - "fullName": "google.cloud.compute.v1.Firewalls.Insert", + "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveRule", "service": { - "fullName": "google.cloud.compute.v1.Firewalls", - "shortName": "Firewalls" + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" }, - "shortName": "Insert" + "shortName": "RemoveRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertFirewallRequest" + "type": "google.cloud.compute_v1.types.RemoveRuleFirewallPolicyRequest" }, { - "name": "project", + "name": "firewall_policy", "type": "str" }, - { - "name": "firewall_resource", - "type": "google.cloud.compute_v1.types.Firewall" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -8186,13 +8274,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "remove_rule" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_firewalls_insert_sync.py", + "description": "Sample for RemoveRule", + "file": "compute_v1_generated_firewall_policies_remove_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Firewalls_Insert_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_RemoveRule_sync", "segments": [ { "end": 51, @@ -8225,33 +8313,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewalls_insert_sync.py" + "title": "compute_v1_generated_firewall_policies_remove_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallsClient", - "shortName": "FirewallsClient" + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallsClient.list", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Firewalls.List", + "fullName": "google.cloud.compute.v1.FirewallPolicies.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.Firewalls", - "shortName": "Firewalls" + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" }, - "shortName": "List" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListFirewallsRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyFirewallPolicyRequest" }, { - "name": "project", + "name": "resource", "type": "str" }, + { + "name": "global_organization_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.GlobalOrganizationSetPolicyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -8265,22 +8357,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.firewalls.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for List", - "file": "compute_v1_generated_firewalls_list_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_firewall_policies_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Firewalls_List_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_SetIamPolicy_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -8300,45 +8392,41 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewalls_list_sync.py" + "title": "compute_v1_generated_firewall_policies_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.FirewallsClient", - "shortName": "FirewallsClient" + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient", + "shortName": "FirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.FirewallsClient.patch", + "fullName": "google.cloud.compute_v1.FirewallPoliciesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.Firewalls.Patch", + "fullName": "google.cloud.compute.v1.FirewallPolicies.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.Firewalls", - "shortName": "Firewalls" + "fullName": "google.cloud.compute.v1.FirewallPolicies", + "shortName": "FirewallPolicies" }, - "shortName": "Patch" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchFirewallRequest" - }, - { - "name": "project", - "type": "str" + "type": "google.cloud.compute_v1.types.TestIamPermissionsFirewallPolicyRequest" }, { - "name": "firewall", + "name": "resource", "type": "str" }, { - "name": "firewall_resource", - "type": "google.cloud.compute_v1.types.Firewall" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -8353,22 +8441,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_firewalls_patch_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_firewall_policies_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Firewalls_Patch_sync", + "regionTag": "compute_v1_generated_FirewallPolicies_TestIamPermissions_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -8378,22 +8466,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewalls_patch_sync.py" + "title": "compute_v1_generated_firewall_policies_test_iam_permissions_sync.py" }, { "canonical": true, @@ -8402,19 +8490,19 @@ "fullName": "google.cloud.compute_v1.FirewallsClient", "shortName": "FirewallsClient" }, - "fullName": "google.cloud.compute_v1.FirewallsClient.update", + "fullName": "google.cloud.compute_v1.FirewallsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.Firewalls.Update", + "fullName": "google.cloud.compute.v1.Firewalls.Delete", "service": { "fullName": "google.cloud.compute.v1.Firewalls", "shortName": "Firewalls" }, - "shortName": "Update" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateFirewallRequest" + "type": "google.cloud.compute_v1.types.DeleteFirewallRequest" }, { "name": "project", @@ -8424,10 +8512,6 @@ "name": "firewall", "type": "str" }, - { - "name": "firewall_resource", - "type": "google.cloud.compute_v1.types.Firewall" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -8442,13 +8526,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" + "shortName": "delete" }, - "description": "Sample for Update", - "file": "compute_v1_generated_firewalls_update_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_firewalls_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Firewalls_Update_sync", + "regionTag": "compute_v1_generated_Firewalls_Delete_sync", "segments": [ { "end": 52, @@ -8481,33 +8565,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_firewalls_update_sync.py" + "title": "compute_v1_generated_firewalls_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ForwardingRulesClient", - "shortName": "ForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" }, - "fullName": "google.cloud.compute_v1.ForwardingRulesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.FirewallsClient.get", "method": { - "fullName": "google.cloud.compute.v1.ForwardingRules.AggregatedList", + "fullName": "google.cloud.compute.v1.Firewalls.Get", "service": { - "fullName": "google.cloud.compute.v1.ForwardingRules", - "shortName": "ForwardingRules" + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" }, - "shortName": "AggregatedList" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListForwardingRulesRequest" + "type": "google.cloud.compute_v1.types.GetFirewallRequest" }, { "name": "project", "type": "str" }, + { + "name": "firewall", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -8521,14 +8609,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.forwarding_rules.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.types.Firewall", + "shortName": "get" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_forwarding_rules_aggregated_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_firewalls_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ForwardingRules_AggregatedList_sync", + "regionTag": "compute_v1_generated_Firewalls_Get_sync", "segments": [ { "end": 52, @@ -8546,55 +8634,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_forwarding_rules_aggregated_list_sync.py" + "title": "compute_v1_generated_firewalls_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ForwardingRulesClient", - "shortName": "ForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" }, - "fullName": "google.cloud.compute_v1.ForwardingRulesClient.delete", + "fullName": "google.cloud.compute_v1.FirewallsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.ForwardingRules.Delete", + "fullName": "google.cloud.compute.v1.Firewalls.Insert", "service": { - "fullName": "google.cloud.compute.v1.ForwardingRules", - "shortName": "ForwardingRules" + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" }, - "shortName": "Delete" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.InsertFirewallRequest" }, { "name": "project", "type": "str" }, { - "name": "region", - "type": "str" - }, - { - "name": "forwarding_rule", - "type": "str" + "name": "firewall_resource", + "type": "google.cloud.compute_v1.types.Firewall" }, { "name": "retry", @@ -8610,21 +8694,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "insert" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_forwarding_rules_delete_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_firewalls_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ForwardingRules_Delete_sync", + "regionTag": "compute_v1_generated_Firewalls_Insert_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -8634,56 +8718,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_forwarding_rules_delete_sync.py" + "title": "compute_v1_generated_firewalls_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ForwardingRulesClient", - "shortName": "ForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" }, - "fullName": "google.cloud.compute_v1.ForwardingRulesClient.get", + "fullName": "google.cloud.compute_v1.FirewallsClient.list", "method": { - "fullName": "google.cloud.compute.v1.ForwardingRules.Get", + "fullName": "google.cloud.compute.v1.Firewalls.List", "service": { - "fullName": "google.cloud.compute.v1.ForwardingRules", - "shortName": "ForwardingRules" + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" }, - "shortName": "Get" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.ListFirewallsRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, - { - "name": "forwarding_rule", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -8697,22 +8773,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.ForwardingRule", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.firewalls.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_forwarding_rules_get_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_firewalls_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ForwardingRules_Get_sync", + "regionTag": "compute_v1_generated_Firewalls_List_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -8722,55 +8798,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_forwarding_rules_get_sync.py" + "title": "compute_v1_generated_firewalls_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ForwardingRulesClient", - "shortName": "ForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" }, - "fullName": "google.cloud.compute_v1.ForwardingRulesClient.insert", + "fullName": "google.cloud.compute_v1.FirewallsClient.patch", "method": { - "fullName": "google.cloud.compute.v1.ForwardingRules.Insert", + "fullName": "google.cloud.compute.v1.Firewalls.Patch", "service": { - "fullName": "google.cloud.compute.v1.ForwardingRules", - "shortName": "ForwardingRules" + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" }, - "shortName": "Insert" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.PatchFirewallRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "firewall", "type": "str" }, { - "name": "forwarding_rule_resource", - "type": "google.cloud.compute_v1.types.ForwardingRule" + "name": "firewall_resource", + "type": "google.cloud.compute_v1.types.Firewall" }, { "name": "retry", @@ -8786,13 +8862,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "patch" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_forwarding_rules_insert_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_firewalls_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ForwardingRules_Insert_sync", + "regionTag": "compute_v1_generated_Firewalls_Patch_sync", "segments": [ { "end": 52, @@ -8825,37 +8901,41 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_forwarding_rules_insert_sync.py" + "title": "compute_v1_generated_firewalls_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ForwardingRulesClient", - "shortName": "ForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" }, - "fullName": "google.cloud.compute_v1.ForwardingRulesClient.list", + "fullName": "google.cloud.compute_v1.FirewallsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.ForwardingRules.List", + "fullName": "google.cloud.compute.v1.Firewalls.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.ForwardingRules", - "shortName": "ForwardingRules" + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" }, - "shortName": "List" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListForwardingRulesRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsFirewallRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "resource", "type": "str" }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -8869,22 +8949,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.forwarding_rules.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for List", - "file": "compute_v1_generated_forwarding_rules_list_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_firewalls_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ForwardingRules_List_sync", + "regionTag": "compute_v1_generated_Firewalls_TestIamPermissions_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -8904,49 +8984,45 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 53, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_forwarding_rules_list_sync.py" + "title": "compute_v1_generated_firewalls_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ForwardingRulesClient", - "shortName": "ForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FirewallsClient", + "shortName": "FirewallsClient" }, - "fullName": "google.cloud.compute_v1.ForwardingRulesClient.patch", + "fullName": "google.cloud.compute_v1.FirewallsClient.update", "method": { - "fullName": "google.cloud.compute.v1.ForwardingRules.Patch", + "fullName": "google.cloud.compute.v1.Firewalls.Update", "service": { - "fullName": "google.cloud.compute.v1.ForwardingRules", - "shortName": "ForwardingRules" + "fullName": "google.cloud.compute.v1.Firewalls", + "shortName": "Firewalls" }, - "shortName": "Patch" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.UpdateFirewallRequest" }, { "name": "project", "type": "str" }, { - "name": "region", - "type": "str" - }, - { - "name": "forwarding_rule", + "name": "firewall", "type": "str" }, { - "name": "forwarding_rule_resource", - "type": "google.cloud.compute_v1.types.ForwardingRule" + "name": "firewall_resource", + "type": "google.cloud.compute_v1.types.Firewall" }, { "name": "retry", @@ -8962,21 +9038,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "update" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_forwarding_rules_patch_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_firewalls_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ForwardingRules_Patch_sync", + "regionTag": "compute_v1_generated_Firewalls_Update_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -8986,22 +9062,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_forwarding_rules_patch_sync.py" + "title": "compute_v1_generated_firewalls_update_sync.py" }, { "canonical": true, @@ -9010,36 +9086,24 @@ "fullName": "google.cloud.compute_v1.ForwardingRulesClient", "shortName": "ForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.ForwardingRulesClient.set_labels", + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.ForwardingRules.SetLabels", + "fullName": "google.cloud.compute.v1.ForwardingRules.AggregatedList", "service": { "fullName": "google.cloud.compute.v1.ForwardingRules", "shortName": "ForwardingRules" }, - "shortName": "SetLabels" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.AggregatedListForwardingRulesRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, - { - "name": "resource", - "type": "str" - }, - { - "name": "region_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -9053,22 +9117,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "resultType": "google.cloud.compute_v1.services.forwarding_rules.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_forwarding_rules_set_labels_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_forwarding_rules_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ForwardingRules_SetLabels_sync", + "regionTag": "compute_v1_generated_ForwardingRules_AggregatedList_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -9078,22 +9142,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_forwarding_rules_set_labels_sync.py" + "title": "compute_v1_generated_forwarding_rules_aggregated_list_sync.py" }, { "canonical": true, @@ -9102,19 +9166,19 @@ "fullName": "google.cloud.compute_v1.ForwardingRulesClient", "shortName": "ForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.ForwardingRulesClient.set_target", + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.ForwardingRules.SetTarget", + "fullName": "google.cloud.compute.v1.ForwardingRules.Delete", "service": { "fullName": "google.cloud.compute.v1.ForwardingRules", "shortName": "ForwardingRules" }, - "shortName": "SetTarget" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetTargetForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.DeleteForwardingRuleRequest" }, { "name": "project", @@ -9128,10 +9192,6 @@ "name": "forwarding_rule", "type": "str" }, - { - "name": "target_reference_resource", - "type": "google.cloud.compute_v1.types.TargetReference" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -9146,13 +9206,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_target" + "shortName": "delete" }, - "description": "Sample for SetTarget", - "file": "compute_v1_generated_forwarding_rules_set_target_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_forwarding_rules_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ForwardingRules_SetTarget_sync", + "regionTag": "compute_v1_generated_ForwardingRules_Delete_sync", "segments": [ { "end": 53, @@ -9185,35 +9245,39 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_forwarding_rules_set_target_sync.py" + "title": "compute_v1_generated_forwarding_rules_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalAddressesClient", - "shortName": "GlobalAddressesClient" + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalAddressesClient.delete", + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.get", "method": { - "fullName": "google.cloud.compute.v1.GlobalAddresses.Delete", + "fullName": "google.cloud.compute.v1.ForwardingRules.Get", "service": { - "fullName": "google.cloud.compute.v1.GlobalAddresses", - "shortName": "GlobalAddresses" + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" }, - "shortName": "Delete" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteGlobalAddressRequest" + "type": "google.cloud.compute_v1.types.GetForwardingRuleRequest" }, { "name": "project", "type": "str" }, { - "name": "address", + "name": "region", + "type": "str" + }, + { + "name": "forwarding_rule", "type": "str" }, { @@ -9229,22 +9293,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.ForwardingRule", + "shortName": "get" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_global_addresses_delete_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_forwarding_rules_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalAddresses_Delete_sync", + "regionTag": "compute_v1_generated_ForwardingRules_Get_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -9254,52 +9318,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_addresses_delete_sync.py" + "title": "compute_v1_generated_forwarding_rules_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalAddressesClient", - "shortName": "GlobalAddressesClient" + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalAddressesClient.get", + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.GlobalAddresses.Get", + "fullName": "google.cloud.compute.v1.ForwardingRules.Insert", "service": { - "fullName": "google.cloud.compute.v1.GlobalAddresses", - "shortName": "GlobalAddresses" + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" }, - "shortName": "Get" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetGlobalAddressRequest" + "type": "google.cloud.compute_v1.types.InsertForwardingRuleRequest" }, { "name": "project", "type": "str" }, { - "name": "address", + "name": "region", "type": "str" }, + { + "name": "forwarding_rule_resource", + "type": "google.cloud.compute_v1.types.ForwardingRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -9313,14 +9381,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Address", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for Get", - "file": "compute_v1_generated_global_addresses_get_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_forwarding_rules_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalAddresses_Get_sync", + "regionTag": "compute_v1_generated_ForwardingRules_Insert_sync", "segments": [ { "end": 52, @@ -9353,36 +9421,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_addresses_get_sync.py" + "title": "compute_v1_generated_forwarding_rules_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalAddressesClient", - "shortName": "GlobalAddressesClient" + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalAddressesClient.insert", + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.list", "method": { - "fullName": "google.cloud.compute.v1.GlobalAddresses.Insert", + "fullName": "google.cloud.compute.v1.ForwardingRules.List", "service": { - "fullName": "google.cloud.compute.v1.GlobalAddresses", - "shortName": "GlobalAddresses" + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" }, - "shortName": "Insert" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertGlobalAddressRequest" + "type": "google.cloud.compute_v1.types.ListForwardingRulesRequest" }, { "name": "project", "type": "str" }, { - "name": "address_resource", - "type": "google.cloud.compute_v1.types.Address" + "name": "region", + "type": "str" }, { "name": "retry", @@ -9397,22 +9465,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.services.forwarding_rules.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_global_addresses_insert_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_forwarding_rules_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalAddresses_Insert_sync", + "regionTag": "compute_v1_generated_ForwardingRules_List_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -9422,48 +9490,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_addresses_insert_sync.py" + "title": "compute_v1_generated_forwarding_rules_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalAddressesClient", - "shortName": "GlobalAddressesClient" + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalAddressesClient.list", + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.GlobalAddresses.List", + "fullName": "google.cloud.compute.v1.ForwardingRules.Patch", "service": { - "fullName": "google.cloud.compute.v1.GlobalAddresses", - "shortName": "GlobalAddresses" + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" }, - "shortName": "List" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListGlobalAddressesRequest" + "type": "google.cloud.compute_v1.types.PatchForwardingRuleRequest" }, { "name": "project", "type": "str" }, + { + "name": "region", + "type": "str" + }, + { + "name": "forwarding_rule", + "type": "str" + }, + { + "name": "forwarding_rule_resource", + "type": "google.cloud.compute_v1.types.ForwardingRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -9477,22 +9557,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.global_addresses.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for List", - "file": "compute_v1_generated_global_addresses_list_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_forwarding_rules_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalAddresses_List_sync", + "regionTag": "compute_v1_generated_ForwardingRules_Patch_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -9502,55 +9582,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_addresses_list_sync.py" + "title": "compute_v1_generated_forwarding_rules_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalAddressesClient", - "shortName": "GlobalAddressesClient" + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalAddressesClient.move", + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.GlobalAddresses.Move", + "fullName": "google.cloud.compute.v1.ForwardingRules.SetLabels", "service": { - "fullName": "google.cloud.compute.v1.GlobalAddresses", - "shortName": "GlobalAddresses" + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" }, - "shortName": "Move" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.MoveGlobalAddressRequest" + "type": "google.cloud.compute_v1.types.SetLabelsForwardingRuleRequest" }, { "name": "project", "type": "str" }, { - "name": "address", + "name": "region", "type": "str" }, { - "name": "global_addresses_move_request_resource", - "type": "google.cloud.compute_v1.types.GlobalAddressesMoveRequest" + "name": "resource", + "type": "str" + }, + { + "name": "region_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" }, { "name": "retry", @@ -9566,21 +9650,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "move" + "shortName": "set_labels" }, - "description": "Sample for Move", - "file": "compute_v1_generated_global_addresses_move_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_forwarding_rules_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalAddresses_Move_sync", + "regionTag": "compute_v1_generated_ForwardingRules_SetLabels_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -9590,55 +9674,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_addresses_move_sync.py" + "title": "compute_v1_generated_forwarding_rules_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalAddressesClient", - "shortName": "GlobalAddressesClient" + "fullName": "google.cloud.compute_v1.ForwardingRulesClient", + "shortName": "ForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalAddressesClient.set_labels", + "fullName": "google.cloud.compute_v1.ForwardingRulesClient.set_target", "method": { - "fullName": "google.cloud.compute.v1.GlobalAddresses.SetLabels", + "fullName": "google.cloud.compute.v1.ForwardingRules.SetTarget", "service": { - "fullName": "google.cloud.compute.v1.GlobalAddresses", - "shortName": "GlobalAddresses" + "fullName": "google.cloud.compute.v1.ForwardingRules", + "shortName": "ForwardingRules" }, - "shortName": "SetLabels" + "shortName": "SetTarget" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsGlobalAddressRequest" + "type": "google.cloud.compute_v1.types.SetTargetForwardingRuleRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "region", "type": "str" }, { - "name": "global_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" + "name": "forwarding_rule", + "type": "str" + }, + { + "name": "target_reference_resource", + "type": "google.cloud.compute_v1.types.TargetReference" }, { "name": "retry", @@ -9654,21 +9742,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "shortName": "set_target" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_global_addresses_set_labels_sync.py", + "description": "Sample for SetTarget", + "file": "compute_v1_generated_forwarding_rules_set_target_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalAddresses_SetLabels_sync", + "regionTag": "compute_v1_generated_ForwardingRules_SetTarget_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -9678,56 +9766,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_addresses_set_labels_sync.py" + "title": "compute_v1_generated_forwarding_rules_set_target_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalAddressesClient", - "shortName": "GlobalAddressesClient" + "fullName": "google.cloud.compute_v1.FutureReservationsClient", + "shortName": "FutureReservationsClient" }, - "fullName": "google.cloud.compute_v1.GlobalAddressesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.FutureReservationsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.GlobalAddresses.TestIamPermissions", + "fullName": "google.cloud.compute.v1.FutureReservations.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.GlobalAddresses", - "shortName": "GlobalAddresses" + "fullName": "google.cloud.compute.v1.FutureReservations", + "shortName": "FutureReservations" }, - "shortName": "TestIamPermissions" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsGlobalAddressRequest" + "type": "google.cloud.compute_v1.types.AggregatedListFutureReservationsRequest" }, { "name": "project", "type": "str" }, - { - "name": "resource", - "type": "str" - }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -9741,14 +9821,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.services.future_reservations.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_global_addresses_test_iam_permissions_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_future_reservations_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalAddresses_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_FutureReservations_AggregatedList_sync", "segments": [ { "end": 52, @@ -9766,50 +9846,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_addresses_test_iam_permissions_sync.py" + "title": "compute_v1_generated_future_reservations_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", - "shortName": "GlobalForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FutureReservationsClient", + "shortName": "FutureReservationsClient" }, - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.delete", + "fullName": "google.cloud.compute_v1.FutureReservationsClient.cancel", "method": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Delete", + "fullName": "google.cloud.compute.v1.FutureReservations.Cancel", "service": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules", - "shortName": "GlobalForwardingRules" + "fullName": "google.cloud.compute.v1.FutureReservations", + "shortName": "FutureReservations" }, - "shortName": "Delete" + "shortName": "Cancel" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteGlobalForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.CancelFutureReservationRequest" }, { "name": "project", "type": "str" }, { - "name": "forwarding_rule", + "name": "zone", + "type": "str" + }, + { + "name": "future_reservation", "type": "str" }, { @@ -9826,21 +9910,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "cancel" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_global_forwarding_rules_delete_sync.py", + "description": "Sample for Cancel", + "file": "compute_v1_generated_future_reservations_cancel_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalForwardingRules_Delete_sync", + "regionTag": "compute_v1_generated_FutureReservations_Cancel_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -9850,50 +9934,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_forwarding_rules_delete_sync.py" + "title": "compute_v1_generated_future_reservations_cancel_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", - "shortName": "GlobalForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FutureReservationsClient", + "shortName": "FutureReservationsClient" }, - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.get", + "fullName": "google.cloud.compute_v1.FutureReservationsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Get", + "fullName": "google.cloud.compute.v1.FutureReservations.Delete", "service": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules", - "shortName": "GlobalForwardingRules" + "fullName": "google.cloud.compute.v1.FutureReservations", + "shortName": "FutureReservations" }, - "shortName": "Get" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetGlobalForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.DeleteFutureReservationRequest" }, { "name": "project", "type": "str" }, { - "name": "forwarding_rule", + "name": "zone", + "type": "str" + }, + { + "name": "future_reservation", "type": "str" }, { @@ -9909,22 +9997,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.ForwardingRule", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for Get", - "file": "compute_v1_generated_global_forwarding_rules_get_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_future_reservations_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalForwardingRules_Get_sync", + "regionTag": "compute_v1_generated_FutureReservations_Delete_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -9934,51 +10022,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_forwarding_rules_get_sync.py" + "title": "compute_v1_generated_future_reservations_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", - "shortName": "GlobalForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FutureReservationsClient", + "shortName": "FutureReservationsClient" }, - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.insert", + "fullName": "google.cloud.compute_v1.FutureReservationsClient.get", "method": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Insert", + "fullName": "google.cloud.compute.v1.FutureReservations.Get", "service": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules", - "shortName": "GlobalForwardingRules" + "fullName": "google.cloud.compute.v1.FutureReservations", + "shortName": "FutureReservations" }, - "shortName": "Insert" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertGlobalForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.GetFutureReservationRequest" }, { "name": "project", "type": "str" }, { - "name": "forwarding_rule_resource", - "type": "google.cloud.compute_v1.types.ForwardingRule" + "name": "zone", + "type": "str" + }, + { + "name": "future_reservation", + "type": "str" }, { "name": "retry", @@ -9993,22 +10085,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.types.FutureReservation", + "shortName": "get" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_global_forwarding_rules_insert_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_future_reservations_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalForwardingRules_Insert_sync", + "regionTag": "compute_v1_generated_FutureReservations_Get_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -10018,48 +10110,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_forwarding_rules_insert_sync.py" + "title": "compute_v1_generated_future_reservations_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", - "shortName": "GlobalForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FutureReservationsClient", + "shortName": "FutureReservationsClient" }, - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.list", + "fullName": "google.cloud.compute_v1.FutureReservationsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.List", + "fullName": "google.cloud.compute.v1.FutureReservations.Insert", "service": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules", - "shortName": "GlobalForwardingRules" + "fullName": "google.cloud.compute.v1.FutureReservations", + "shortName": "FutureReservations" }, - "shortName": "List" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListGlobalForwardingRulesRequest" + "type": "google.cloud.compute_v1.types.InsertFutureReservationRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "future_reservation_resource", + "type": "google.cloud.compute_v1.types.FutureReservation" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -10073,14 +10173,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.global_forwarding_rules.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for List", - "file": "compute_v1_generated_global_forwarding_rules_list_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_future_reservations_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalForwardingRules_List_sync", + "regionTag": "compute_v1_generated_FutureReservations_Insert_sync", "segments": [ { "end": 52, @@ -10098,56 +10198,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_forwarding_rules_list_sync.py" + "title": "compute_v1_generated_future_reservations_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", - "shortName": "GlobalForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FutureReservationsClient", + "shortName": "FutureReservationsClient" }, - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.patch", + "fullName": "google.cloud.compute_v1.FutureReservationsClient.list", "method": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Patch", + "fullName": "google.cloud.compute.v1.FutureReservations.List", "service": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules", - "shortName": "GlobalForwardingRules" + "fullName": "google.cloud.compute.v1.FutureReservations", + "shortName": "FutureReservations" }, - "shortName": "Patch" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchGlobalForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.ListFutureReservationsRequest" }, { "name": "project", "type": "str" }, { - "name": "forwarding_rule", + "name": "zone", "type": "str" }, - { - "name": "forwarding_rule_resource", - "type": "google.cloud.compute_v1.types.ForwardingRule" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -10161,22 +10257,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.services.future_reservations.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_global_forwarding_rules_patch_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_future_reservations_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalForwardingRules_Patch_sync", + "regionTag": "compute_v1_generated_FutureReservations_List_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -10196,45 +10292,49 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 54, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_forwarding_rules_patch_sync.py" + "title": "compute_v1_generated_future_reservations_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", - "shortName": "GlobalForwardingRulesClient" + "fullName": "google.cloud.compute_v1.FutureReservationsClient", + "shortName": "FutureReservationsClient" }, - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.set_labels", + "fullName": "google.cloud.compute_v1.FutureReservationsClient.update", "method": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetLabels", + "fullName": "google.cloud.compute.v1.FutureReservations.Update", "service": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules", - "shortName": "GlobalForwardingRules" + "fullName": "google.cloud.compute.v1.FutureReservations", + "shortName": "FutureReservations" }, - "shortName": "SetLabels" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsGlobalForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.UpdateFutureReservationRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "zone", "type": "str" }, { - "name": "global_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" + "name": "future_reservation", + "type": "str" + }, + { + "name": "future_reservation_resource", + "type": "google.cloud.compute_v1.types.FutureReservation" }, { "name": "retry", @@ -10250,21 +10350,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "shortName": "update" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_global_forwarding_rules_set_labels_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_future_reservations_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalForwardingRules_SetLabels_sync", + "regionTag": "compute_v1_generated_FutureReservations_Update_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -10274,56 +10374,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_forwarding_rules_set_labels_sync.py" + "title": "compute_v1_generated_future_reservations_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", - "shortName": "GlobalForwardingRulesClient" + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" }, - "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.set_target", + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetTarget", + "fullName": "google.cloud.compute.v1.GlobalAddresses.Delete", "service": { - "fullName": "google.cloud.compute.v1.GlobalForwardingRules", - "shortName": "GlobalForwardingRules" + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" }, - "shortName": "SetTarget" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetTargetGlobalForwardingRuleRequest" + "type": "google.cloud.compute_v1.types.DeleteGlobalAddressRequest" }, { "name": "project", "type": "str" }, { - "name": "forwarding_rule", + "name": "address", "type": "str" }, - { - "name": "target_reference_resource", - "type": "google.cloud.compute_v1.types.TargetReference" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -10338,13 +10434,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_target" + "shortName": "delete" }, - "description": "Sample for SetTarget", - "file": "compute_v1_generated_global_forwarding_rules_set_target_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_global_addresses_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalForwardingRules_SetTarget_sync", + "regionTag": "compute_v1_generated_GlobalAddresses_Delete_sync", "segments": [ { "end": 52, @@ -10377,41 +10473,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_forwarding_rules_set_target_sync.py" + "title": "compute_v1_generated_global_addresses_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", - "shortName": "GlobalNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" }, - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.attach_network_endpoints", + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.get", "method": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.AttachNetworkEndpoints", + "fullName": "google.cloud.compute.v1.GlobalAddresses.Get", "service": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", - "shortName": "GlobalNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" }, - "shortName": "AttachNetworkEndpoints" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.GetGlobalAddressRequest" }, { "name": "project", "type": "str" }, { - "name": "network_endpoint_group", + "name": "address", "type": "str" }, - { - "name": "global_network_endpoint_groups_attach_endpoints_request_resource", - "type": "google.cloud.compute_v1.types.GlobalNetworkEndpointGroupsAttachEndpointsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -10425,14 +10517,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "attach_network_endpoints" + "resultType": "google.cloud.compute_v1.types.Address", + "shortName": "get" }, - "description": "Sample for AttachNetworkEndpoints", - "file": "compute_v1_generated_global_network_endpoint_groups_attach_network_endpoints_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_global_addresses_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_sync", + "regionTag": "compute_v1_generated_GlobalAddresses_Get_sync", "segments": [ { "end": 52, @@ -10465,36 +10557,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_network_endpoint_groups_attach_network_endpoints_sync.py" + "title": "compute_v1_generated_global_addresses_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", - "shortName": "GlobalNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" }, - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.delete", + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Delete", + "fullName": "google.cloud.compute.v1.GlobalAddresses.Insert", "service": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", - "shortName": "GlobalNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" }, - "shortName": "Delete" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteGlobalNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.InsertGlobalAddressRequest" }, { "name": "project", "type": "str" }, { - "name": "network_endpoint_group", - "type": "str" + "name": "address_resource", + "type": "google.cloud.compute_v1.types.Address" }, { "name": "retry", @@ -10510,21 +10602,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "insert" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_global_network_endpoint_groups_delete_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_global_addresses_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Delete_sync", + "regionTag": "compute_v1_generated_GlobalAddresses_Insert_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -10534,56 +10626,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_network_endpoint_groups_delete_sync.py" + "title": "compute_v1_generated_global_addresses_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", - "shortName": "GlobalNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" }, - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.detach_network_endpoints", + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.list", "method": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.DetachNetworkEndpoints", + "fullName": "google.cloud.compute.v1.GlobalAddresses.List", "service": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", - "shortName": "GlobalNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" }, - "shortName": "DetachNetworkEndpoints" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.ListGlobalAddressesRequest" }, { "name": "project", "type": "str" }, - { - "name": "network_endpoint_group", - "type": "str" - }, - { - "name": "global_network_endpoint_groups_detach_endpoints_request_resource", - "type": "google.cloud.compute_v1.types.GlobalNetworkEndpointGroupsDetachEndpointsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -10597,14 +10681,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "detach_network_endpoints" + "resultType": "google.cloud.compute_v1.services.global_addresses.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for DetachNetworkEndpoints", - "file": "compute_v1_generated_global_network_endpoint_groups_detach_network_endpoints_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_global_addresses_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_sync", + "regionTag": "compute_v1_generated_GlobalAddresses_List_sync", "segments": [ { "end": 52, @@ -10622,52 +10706,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_network_endpoint_groups_detach_network_endpoints_sync.py" + "title": "compute_v1_generated_global_addresses_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", - "shortName": "GlobalNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" }, - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.get", + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.move", "method": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Get", + "fullName": "google.cloud.compute.v1.GlobalAddresses.Move", "service": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", - "shortName": "GlobalNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" }, - "shortName": "Get" + "shortName": "Move" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetGlobalNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.MoveGlobalAddressRequest" }, { "name": "project", "type": "str" }, { - "name": "network_endpoint_group", + "name": "address", "type": "str" }, + { + "name": "global_addresses_move_request_resource", + "type": "google.cloud.compute_v1.types.GlobalAddressesMoveRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -10681,14 +10769,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NetworkEndpointGroup", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "move" }, - "description": "Sample for Get", - "file": "compute_v1_generated_global_network_endpoint_groups_get_sync.py", + "description": "Sample for Move", + "file": "compute_v1_generated_global_addresses_move_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Get_sync", + "regionTag": "compute_v1_generated_GlobalAddresses_Move_sync", "segments": [ { "end": 52, @@ -10721,36 +10809,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_network_endpoint_groups_get_sync.py" + "title": "compute_v1_generated_global_addresses_move_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", - "shortName": "GlobalNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" }, - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.insert", + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Insert", + "fullName": "google.cloud.compute.v1.GlobalAddresses.SetLabels", "service": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", - "shortName": "GlobalNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" }, - "shortName": "Insert" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertGlobalNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.SetLabelsGlobalAddressRequest" }, { "name": "project", "type": "str" }, { - "name": "network_endpoint_group_resource", - "type": "google.cloud.compute_v1.types.NetworkEndpointGroup" + "name": "resource", + "type": "str" + }, + { + "name": "global_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" }, { "name": "retry", @@ -10766,21 +10858,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "set_labels" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_global_network_endpoint_groups_insert_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_global_addresses_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Insert_sync", + "regionTag": "compute_v1_generated_GlobalAddresses_SetLabels_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -10790,52 +10882,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_network_endpoint_groups_insert_sync.py" + "title": "compute_v1_generated_global_addresses_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", - "shortName": "GlobalNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.GlobalAddressesClient", + "shortName": "GlobalAddressesClient" }, - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.list_network_endpoints", + "fullName": "google.cloud.compute_v1.GlobalAddressesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.ListNetworkEndpoints", + "fullName": "google.cloud.compute.v1.GlobalAddresses.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", - "shortName": "GlobalNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.GlobalAddresses", + "shortName": "GlobalAddresses" }, - "shortName": "ListNetworkEndpoints" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsGlobalAddressRequest" }, { "name": "project", "type": "str" }, { - "name": "network_endpoint_group", + "name": "resource", "type": "str" }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -10849,22 +10945,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.global_network_endpoint_groups.pagers.ListNetworkEndpointsPager", - "shortName": "list_network_endpoints" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for ListNetworkEndpoints", - "file": "compute_v1_generated_global_network_endpoint_groups_list_network_endpoints_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_global_addresses_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_sync", + "regionTag": "compute_v1_generated_GlobalAddresses_TestIamPermissions_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -10884,38 +10980,42 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 53, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_network_endpoint_groups_list_network_endpoints_sync.py" + "title": "compute_v1_generated_global_addresses_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", - "shortName": "GlobalNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.list", + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.List", + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Delete", "service": { - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", - "shortName": "GlobalNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" }, - "shortName": "List" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListGlobalNetworkEndpointGroupsRequest" + "type": "google.cloud.compute_v1.types.DeleteGlobalForwardingRuleRequest" }, { "name": "project", "type": "str" }, + { + "name": "forwarding_rule", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -10929,14 +11029,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.global_network_endpoint_groups.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for List", - "file": "compute_v1_generated_global_network_endpoint_groups_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_global_forwarding_rules_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_List_sync", + "regionTag": "compute_v1_generated_GlobalForwardingRules_Delete_sync", "segments": [ { "end": 52, @@ -10954,48 +11054,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_network_endpoint_groups_list_sync.py" + "title": "compute_v1_generated_global_forwarding_rules_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalOperationsClient", - "shortName": "GlobalOperationsClient" + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalOperationsClient.aggregated_list", + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.get", "method": { - "fullName": "google.cloud.compute.v1.GlobalOperations.AggregatedList", + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Get", "service": { - "fullName": "google.cloud.compute.v1.GlobalOperations", - "shortName": "GlobalOperations" + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" }, - "shortName": "AggregatedList" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListGlobalOperationsRequest" + "type": "google.cloud.compute_v1.types.GetGlobalForwardingRuleRequest" }, { "name": "project", "type": "str" }, + { + "name": "forwarding_rule", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -11009,14 +11113,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.global_operations.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.types.ForwardingRule", + "shortName": "get" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_global_operations_aggregated_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_global_forwarding_rules_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalOperations_AggregatedList_sync", + "regionTag": "compute_v1_generated_GlobalForwardingRules_Get_sync", "segments": [ { "end": 52, @@ -11034,51 +11138,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_operations_aggregated_list_sync.py" + "title": "compute_v1_generated_global_forwarding_rules_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalOperationsClient", - "shortName": "GlobalOperationsClient" + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalOperationsClient.delete", + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.GlobalOperations.Delete", + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Insert", "service": { - "fullName": "google.cloud.compute.v1.GlobalOperations", - "shortName": "GlobalOperations" + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" }, - "shortName": "Delete" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteGlobalOperationRequest" + "type": "google.cloud.compute_v1.types.InsertGlobalForwardingRuleRequest" }, { "name": "project", "type": "str" }, { - "name": "operation", - "type": "str" + "name": "forwarding_rule_resource", + "type": "google.cloud.compute_v1.types.ForwardingRule" }, { "name": "retry", @@ -11093,22 +11197,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.DeleteGlobalOperationResponse", - "shortName": "delete" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_global_operations_delete_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_global_forwarding_rules_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalOperations_Delete_sync", + "regionTag": "compute_v1_generated_GlobalForwardingRules_Insert_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -11118,52 +11222,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_operations_delete_sync.py" + "title": "compute_v1_generated_global_forwarding_rules_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalOperationsClient", - "shortName": "GlobalOperationsClient" + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalOperationsClient.get", + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.list", "method": { - "fullName": "google.cloud.compute.v1.GlobalOperations.Get", + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.List", "service": { - "fullName": "google.cloud.compute.v1.GlobalOperations", - "shortName": "GlobalOperations" + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" }, - "shortName": "Get" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetGlobalOperationRequest" + "type": "google.cloud.compute_v1.types.ListGlobalForwardingRulesRequest" }, { "name": "project", "type": "str" }, - { - "name": "operation", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -11177,14 +11277,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Operation", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.global_forwarding_rules.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_global_operations_get_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_global_forwarding_rules_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalOperations_Get_sync", + "regionTag": "compute_v1_generated_GlobalForwardingRules_List_sync", "segments": [ { "end": 52, @@ -11202,48 +11302,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_operations_get_sync.py" + "title": "compute_v1_generated_global_forwarding_rules_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalOperationsClient", - "shortName": "GlobalOperationsClient" + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalOperationsClient.list", + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.GlobalOperations.List", + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Patch", "service": { - "fullName": "google.cloud.compute.v1.GlobalOperations", - "shortName": "GlobalOperations" + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" }, - "shortName": "List" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListGlobalOperationsRequest" + "type": "google.cloud.compute_v1.types.PatchGlobalForwardingRuleRequest" }, { "name": "project", "type": "str" }, + { + "name": "forwarding_rule", + "type": "str" + }, + { + "name": "forwarding_rule_resource", + "type": "google.cloud.compute_v1.types.ForwardingRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -11257,14 +11365,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.global_operations.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for List", - "file": "compute_v1_generated_global_operations_list_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_global_forwarding_rules_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalOperations_List_sync", + "regionTag": "compute_v1_generated_GlobalForwardingRules_Patch_sync", "segments": [ { "end": 52, @@ -11282,52 +11390,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_operations_list_sync.py" + "title": "compute_v1_generated_global_forwarding_rules_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalOperationsClient", - "shortName": "GlobalOperationsClient" + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalOperationsClient.wait", + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.GlobalOperations.Wait", + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetLabels", "service": { - "fullName": "google.cloud.compute.v1.GlobalOperations", - "shortName": "GlobalOperations" + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" }, - "shortName": "Wait" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.WaitGlobalOperationRequest" + "type": "google.cloud.compute_v1.types.SetLabelsGlobalForwardingRuleRequest" }, { "name": "project", "type": "str" }, { - "name": "operation", + "name": "resource", "type": "str" }, + { + "name": "global_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -11341,14 +11453,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Operation", - "shortName": "wait" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" }, - "description": "Sample for Wait", - "file": "compute_v1_generated_global_operations_wait_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_global_forwarding_rules_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalOperations_Wait_sync", + "regionTag": "compute_v1_generated_GlobalForwardingRules_SetLabels_sync", "segments": [ { "end": 52, @@ -11381,33 +11493,41 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_operations_wait_sync.py" + "title": "compute_v1_generated_global_forwarding_rules_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient", - "shortName": "GlobalOrganizationOperationsClient" + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient", + "shortName": "GlobalForwardingRulesClient" }, - "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient.delete", + "fullName": "google.cloud.compute_v1.GlobalForwardingRulesClient.set_target", "method": { - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Delete", + "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetTarget", "service": { - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations", - "shortName": "GlobalOrganizationOperations" + "fullName": "google.cloud.compute.v1.GlobalForwardingRules", + "shortName": "GlobalForwardingRules" }, - "shortName": "Delete" + "shortName": "SetTarget" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteGlobalOrganizationOperationRequest" + "type": "google.cloud.compute_v1.types.SetTargetGlobalForwardingRuleRequest" }, { - "name": "operation", + "name": "project", "type": "str" }, + { + "name": "forwarding_rule", + "type": "str" + }, + { + "name": "target_reference_resource", + "type": "google.cloud.compute_v1.types.TargetReference" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -11421,22 +11541,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.DeleteGlobalOrganizationOperationResponse", - "shortName": "delete" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_target" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_global_organization_operations_delete_sync.py", + "description": "Sample for SetTarget", + "file": "compute_v1_generated_global_forwarding_rules_set_target_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalOrganizationOperations_Delete_sync", + "regionTag": "compute_v1_generated_GlobalForwardingRules_SetTarget_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -11446,48 +11566,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_organization_operations_delete_sync.py" + "title": "compute_v1_generated_global_forwarding_rules_set_target_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient", - "shortName": "GlobalOrganizationOperationsClient" + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient.get", + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.attach_network_endpoints", "method": { - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Get", + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.AttachNetworkEndpoints", "service": { - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations", - "shortName": "GlobalOrganizationOperations" + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" }, - "shortName": "Get" + "shortName": "AttachNetworkEndpoints" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetGlobalOrganizationOperationRequest" + "type": "google.cloud.compute_v1.types.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest" }, { - "name": "operation", + "name": "project", + "type": "str" + }, + { + "name": "network_endpoint_group", "type": "str" }, + { + "name": "global_network_endpoint_groups_attach_endpoints_request_resource", + "type": "google.cloud.compute_v1.types.GlobalNetworkEndpointGroupsAttachEndpointsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -11501,22 +11629,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Operation", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "attach_network_endpoints" }, - "description": "Sample for Get", - "file": "compute_v1_generated_global_organization_operations_get_sync.py", + "description": "Sample for AttachNetworkEndpoints", + "file": "compute_v1_generated_global_network_endpoint_groups_attach_network_endpoints_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalOrganizationOperations_Get_sync", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -11526,43 +11654,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_organization_operations_get_sync.py" + "title": "compute_v1_generated_global_network_endpoint_groups_attach_network_endpoints_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient", - "shortName": "GlobalOrganizationOperationsClient" + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient.list", + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.List", + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Delete", "service": { - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations", - "shortName": "GlobalOrganizationOperations" + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" }, - "shortName": "List" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListGlobalOrganizationOperationsRequest" + "type": "google.cloud.compute_v1.types.DeleteGlobalNetworkEndpointGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "network_endpoint_group", + "type": "str" }, { "name": "retry", @@ -11577,22 +11713,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.global_organization_operations.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for List", - "file": "compute_v1_generated_global_organization_operations_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_global_network_endpoint_groups_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalOrganizationOperations_List_sync", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Delete_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -11602,52 +11738,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 44, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 47, - "start": 45, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 48, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_organization_operations_list_sync.py" + "title": "compute_v1_generated_global_network_endpoint_groups_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", - "shortName": "GlobalPublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.delete", + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.detach_network_endpoints", "method": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Delete", + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.DetachNetworkEndpoints", "service": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", - "shortName": "GlobalPublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" }, - "shortName": "Delete" + "shortName": "DetachNetworkEndpoints" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteGlobalPublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "public_delegated_prefix", + "name": "network_endpoint_group", "type": "str" }, + { + "name": "global_network_endpoint_groups_detach_endpoints_request_resource", + "type": "google.cloud.compute_v1.types.GlobalNetworkEndpointGroupsDetachEndpointsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -11662,13 +11802,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "detach_network_endpoints" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_global_public_delegated_prefixes_delete_sync.py", + "description": "Sample for DetachNetworkEndpoints", + "file": "compute_v1_generated_global_network_endpoint_groups_detach_network_endpoints_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Delete_sync", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_sync", "segments": [ { "end": 52, @@ -11701,35 +11841,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_public_delegated_prefixes_delete_sync.py" + "title": "compute_v1_generated_global_network_endpoint_groups_detach_network_endpoints_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", - "shortName": "GlobalPublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.get", + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.get", "method": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Get", + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Get", "service": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", - "shortName": "GlobalPublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetGlobalPublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.GetGlobalNetworkEndpointGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "public_delegated_prefix", + "name": "network_endpoint_group", "type": "str" }, { @@ -11745,14 +11885,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.PublicDelegatedPrefix", + "resultType": "google.cloud.compute_v1.types.NetworkEndpointGroup", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_global_public_delegated_prefixes_get_sync.py", + "file": "compute_v1_generated_global_network_endpoint_groups_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Get_sync", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Get_sync", "segments": [ { "end": 52, @@ -11785,36 +11925,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_public_delegated_prefixes_get_sync.py" + "title": "compute_v1_generated_global_network_endpoint_groups_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", - "shortName": "GlobalPublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.insert", + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Insert", + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Insert", "service": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", - "shortName": "GlobalPublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertGlobalPublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.InsertGlobalNetworkEndpointGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "public_delegated_prefix_resource", - "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" + "name": "network_endpoint_group_resource", + "type": "google.cloud.compute_v1.types.NetworkEndpointGroup" }, { "name": "retry", @@ -11833,10 +11973,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_global_public_delegated_prefixes_insert_sync.py", + "file": "compute_v1_generated_global_network_endpoint_groups_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Insert_sync", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Insert_sync", "segments": [ { "end": 51, @@ -11869,33 +12009,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_public_delegated_prefixes_insert_sync.py" + "title": "compute_v1_generated_global_network_endpoint_groups_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", - "shortName": "GlobalPublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.list", + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.list_network_endpoints", "method": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.List", + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.ListNetworkEndpoints", "service": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", - "shortName": "GlobalPublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" }, - "shortName": "List" + "shortName": "ListNetworkEndpoints" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListGlobalPublicDelegatedPrefixesRequest" + "type": "google.cloud.compute_v1.types.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest" }, { "name": "project", "type": "str" }, + { + "name": "network_endpoint_group", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -11909,22 +12053,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.global_public_delegated_prefixes.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.services.global_network_endpoint_groups.pagers.ListNetworkEndpointsPager", + "shortName": "list_network_endpoints" }, - "description": "Sample for List", - "file": "compute_v1_generated_global_public_delegated_prefixes_list_sync.py", + "description": "Sample for ListNetworkEndpoints", + "file": "compute_v1_generated_global_network_endpoint_groups_list_network_endpoints_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_List_sync", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -11934,56 +12078,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_public_delegated_prefixes_list_sync.py" + "title": "compute_v1_generated_global_network_endpoint_groups_list_network_endpoints_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", - "shortName": "GlobalPublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient", + "shortName": "GlobalNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.patch", + "fullName": "google.cloud.compute_v1.GlobalNetworkEndpointGroupsClient.list", "method": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Patch", + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.List", "service": { - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", - "shortName": "GlobalPublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups", + "shortName": "GlobalNetworkEndpointGroups" }, - "shortName": "Patch" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchGlobalPublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.ListGlobalNetworkEndpointGroupsRequest" }, { "name": "project", "type": "str" }, - { - "name": "public_delegated_prefix", - "type": "str" - }, - { - "name": "public_delegated_prefix_resource", - "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -11997,14 +12133,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.services.global_network_endpoint_groups.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_global_public_delegated_prefixes_patch_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_global_network_endpoint_groups_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_sync", + "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_List_sync", "segments": [ { "end": 52, @@ -12022,43 +12158,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_global_public_delegated_prefixes_patch_sync.py" + "title": "compute_v1_generated_global_network_endpoint_groups_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.HealthChecksClient", - "shortName": "HealthChecksClient" + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" }, - "fullName": "google.cloud.compute_v1.HealthChecksClient.aggregated_list", + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.HealthChecks.AggregatedList", + "fullName": "google.cloud.compute.v1.GlobalOperations.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.HealthChecks", - "shortName": "HealthChecks" + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" }, "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListHealthChecksRequest" + "type": "google.cloud.compute_v1.types.AggregatedListGlobalOperationsRequest" }, { "name": "project", @@ -12077,14 +12213,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.health_checks.pagers.AggregatedListPager", + "resultType": "google.cloud.compute_v1.services.global_operations.pagers.AggregatedListPager", "shortName": "aggregated_list" }, "description": "Sample for AggregatedList", - "file": "compute_v1_generated_health_checks_aggregated_list_sync.py", + "file": "compute_v1_generated_global_operations_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_HealthChecks_AggregatedList_sync", + "regionTag": "compute_v1_generated_GlobalOperations_AggregatedList_sync", "segments": [ { "end": 52, @@ -12117,35 +12253,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_health_checks_aggregated_list_sync.py" + "title": "compute_v1_generated_global_operations_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.HealthChecksClient", - "shortName": "HealthChecksClient" + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" }, - "fullName": "google.cloud.compute_v1.HealthChecksClient.delete", + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.HealthChecks.Delete", + "fullName": "google.cloud.compute.v1.GlobalOperations.Delete", "service": { - "fullName": "google.cloud.compute.v1.HealthChecks", - "shortName": "HealthChecks" + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" }, "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteHealthCheckRequest" + "type": "google.cloud.compute_v1.types.DeleteGlobalOperationRequest" }, { "name": "project", "type": "str" }, { - "name": "health_check", + "name": "operation", "type": "str" }, { @@ -12161,14 +12297,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", + "resultType": "google.cloud.compute_v1.types.DeleteGlobalOperationResponse", "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_health_checks_delete_sync.py", + "file": "compute_v1_generated_global_operations_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_HealthChecks_Delete_sync", + "regionTag": "compute_v1_generated_GlobalOperations_Delete_sync", "segments": [ { "end": 52, @@ -12201,35 +12337,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_health_checks_delete_sync.py" + "title": "compute_v1_generated_global_operations_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.HealthChecksClient", - "shortName": "HealthChecksClient" + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" }, - "fullName": "google.cloud.compute_v1.HealthChecksClient.get", + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.get", "method": { - "fullName": "google.cloud.compute.v1.HealthChecks.Get", + "fullName": "google.cloud.compute.v1.GlobalOperations.Get", "service": { - "fullName": "google.cloud.compute.v1.HealthChecks", - "shortName": "HealthChecks" + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetHealthCheckRequest" + "type": "google.cloud.compute_v1.types.GetGlobalOperationRequest" }, { "name": "project", "type": "str" }, { - "name": "health_check", + "name": "operation", "type": "str" }, { @@ -12245,14 +12381,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.HealthCheck", + "resultType": "google.cloud.compute_v1.types.Operation", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_health_checks_get_sync.py", + "file": "compute_v1_generated_global_operations_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_HealthChecks_Get_sync", + "regionTag": "compute_v1_generated_GlobalOperations_Get_sync", "segments": [ { "end": 52, @@ -12285,112 +12421,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_health_checks_get_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.HealthChecksClient", - "shortName": "HealthChecksClient" - }, - "fullName": "google.cloud.compute_v1.HealthChecksClient.insert", - "method": { - "fullName": "google.cloud.compute.v1.HealthChecks.Insert", - "service": { - "fullName": "google.cloud.compute.v1.HealthChecks", - "shortName": "HealthChecks" - }, - "shortName": "Insert" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.InsertHealthCheckRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "health_check_resource", - "type": "google.cloud.compute_v1.types.HealthCheck" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" - }, - "description": "Sample for Insert", - "file": "compute_v1_generated_health_checks_insert_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_HealthChecks_Insert_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_health_checks_insert_sync.py" + "title": "compute_v1_generated_global_operations_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.HealthChecksClient", - "shortName": "HealthChecksClient" + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" }, - "fullName": "google.cloud.compute_v1.HealthChecksClient.list", + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.list", "method": { - "fullName": "google.cloud.compute.v1.HealthChecks.List", + "fullName": "google.cloud.compute.v1.GlobalOperations.List", "service": { - "fullName": "google.cloud.compute.v1.HealthChecks", - "shortName": "HealthChecks" + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListHealthChecksRequest" + "type": "google.cloud.compute_v1.types.ListGlobalOperationsRequest" }, { "name": "project", @@ -12409,14 +12461,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.health_checks.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.global_operations.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_health_checks_list_sync.py", + "file": "compute_v1_generated_global_operations_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_HealthChecks_List_sync", + "regionTag": "compute_v1_generated_GlobalOperations_List_sync", "segments": [ { "end": 52, @@ -12449,41 +12501,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_health_checks_list_sync.py" + "title": "compute_v1_generated_global_operations_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.HealthChecksClient", - "shortName": "HealthChecksClient" + "fullName": "google.cloud.compute_v1.GlobalOperationsClient", + "shortName": "GlobalOperationsClient" }, - "fullName": "google.cloud.compute_v1.HealthChecksClient.patch", + "fullName": "google.cloud.compute_v1.GlobalOperationsClient.wait", "method": { - "fullName": "google.cloud.compute.v1.HealthChecks.Patch", + "fullName": "google.cloud.compute.v1.GlobalOperations.Wait", "service": { - "fullName": "google.cloud.compute.v1.HealthChecks", - "shortName": "HealthChecks" + "fullName": "google.cloud.compute.v1.GlobalOperations", + "shortName": "GlobalOperations" }, - "shortName": "Patch" + "shortName": "Wait" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchHealthCheckRequest" + "type": "google.cloud.compute_v1.types.WaitGlobalOperationRequest" }, { "name": "project", "type": "str" }, { - "name": "health_check", + "name": "operation", "type": "str" }, - { - "name": "health_check_resource", - "type": "google.cloud.compute_v1.types.HealthCheck" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -12497,14 +12545,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.types.Operation", + "shortName": "wait" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_health_checks_patch_sync.py", + "description": "Sample for Wait", + "file": "compute_v1_generated_global_operations_wait_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_HealthChecks_Patch_sync", + "regionTag": "compute_v1_generated_GlobalOperations_Wait_sync", "segments": [ { "end": 52, @@ -12537,41 +12585,33 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_health_checks_patch_sync.py" + "title": "compute_v1_generated_global_operations_wait_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.HealthChecksClient", - "shortName": "HealthChecksClient" + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient", + "shortName": "GlobalOrganizationOperationsClient" }, - "fullName": "google.cloud.compute_v1.HealthChecksClient.update", + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.HealthChecks.Update", + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Delete", "service": { - "fullName": "google.cloud.compute.v1.HealthChecks", - "shortName": "HealthChecks" + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations", + "shortName": "GlobalOrganizationOperations" }, - "shortName": "Update" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateHealthCheckRequest" - }, - { - "name": "project", - "type": "str" + "type": "google.cloud.compute_v1.types.DeleteGlobalOrganizationOperationRequest" }, { - "name": "health_check", + "name": "operation", "type": "str" }, - { - "name": "health_check_resource", - "type": "google.cloud.compute_v1.types.HealthCheck" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -12585,22 +12625,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" + "resultType": "google.cloud.compute_v1.types.DeleteGlobalOrganizationOperationResponse", + "shortName": "delete" }, - "description": "Sample for Update", - "file": "compute_v1_generated_health_checks_update_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_global_organization_operations_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_HealthChecks_Update_sync", + "regionTag": "compute_v1_generated_GlobalOrganizationOperations_Delete_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -12610,54 +12650,46 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_health_checks_update_sync.py" + "title": "compute_v1_generated_global_organization_operations_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImageFamilyViewsClient", - "shortName": "ImageFamilyViewsClient" + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient", + "shortName": "GlobalOrganizationOperationsClient" }, - "fullName": "google.cloud.compute_v1.ImageFamilyViewsClient.get", + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient.get", "method": { - "fullName": "google.cloud.compute.v1.ImageFamilyViews.Get", + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Get", "service": { - "fullName": "google.cloud.compute.v1.ImageFamilyViews", - "shortName": "ImageFamilyViews" + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations", + "shortName": "GlobalOrganizationOperations" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetImageFamilyViewRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "zone", - "type": "str" + "type": "google.cloud.compute_v1.types.GetGlobalOrganizationOperationRequest" }, { - "name": "family", + "name": "operation", "type": "str" }, { @@ -12673,22 +12705,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.ImageFamilyView", + "resultType": "google.cloud.compute_v1.types.Operation", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_image_family_views_get_sync.py", + "file": "compute_v1_generated_global_organization_operations_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ImageFamilyViews_Get_sync", + "regionTag": "compute_v1_generated_GlobalOrganizationOperations_Get_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -12698,51 +12730,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_image_family_views_get_sync.py" + "title": "compute_v1_generated_global_organization_operations_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient", + "shortName": "GlobalOrganizationOperationsClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.delete", + "fullName": "google.cloud.compute_v1.GlobalOrganizationOperationsClient.list", "method": { - "fullName": "google.cloud.compute.v1.Images.Delete", + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.List", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations", + "shortName": "GlobalOrganizationOperations" }, - "shortName": "Delete" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteImageRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "image", - "type": "str" + "type": "google.cloud.compute_v1.types.ListGlobalOrganizationOperationsRequest" }, { "name": "retry", @@ -12757,22 +12781,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.global_organization_operations.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_images_delete_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_global_organization_operations_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_Delete_sync", + "regionTag": "compute_v1_generated_GlobalOrganizationOperations_List_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -12782,56 +12806,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 44, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_delete_sync.py" + "title": "compute_v1_generated_global_organization_operations_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.deprecate", + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.Images.Deprecate", + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Delete", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" }, - "shortName": "Deprecate" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeprecateImageRequest" + "type": "google.cloud.compute_v1.types.DeleteGlobalPublicDelegatedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "image", + "name": "public_delegated_prefix", "type": "str" }, - { - "name": "deprecation_status_resource", - "type": "google.cloud.compute_v1.types.DeprecationStatus" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -12846,13 +12866,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "deprecate" + "shortName": "delete" }, - "description": "Sample for Deprecate", - "file": "compute_v1_generated_images_deprecate_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_global_public_delegated_prefixes_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_Deprecate_sync", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Delete_sync", "segments": [ { "end": 52, @@ -12885,35 +12905,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_deprecate_sync.py" + "title": "compute_v1_generated_global_public_delegated_prefixes_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.get_from_family", + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.get", "method": { - "fullName": "google.cloud.compute.v1.Images.GetFromFamily", + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Get", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" }, - "shortName": "GetFromFamily" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetFromFamilyImageRequest" + "type": "google.cloud.compute_v1.types.GetGlobalPublicDelegatedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "family", + "name": "public_delegated_prefix", "type": "str" }, { @@ -12929,14 +12949,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Image", - "shortName": "get_from_family" + "resultType": "google.cloud.compute_v1.types.PublicDelegatedPrefix", + "shortName": "get" }, - "description": "Sample for GetFromFamily", - "file": "compute_v1_generated_images_get_from_family_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_global_public_delegated_prefixes_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_GetFromFamily_sync", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Get_sync", "segments": [ { "end": 52, @@ -12969,36 +12989,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_get_from_family_sync.py" + "title": "compute_v1_generated_global_public_delegated_prefixes_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.Images.GetIamPolicy", + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Insert", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" }, - "shortName": "GetIamPolicy" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyImageRequest" + "type": "google.cloud.compute_v1.types.InsertGlobalPublicDelegatedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", - "type": "str" + "name": "public_delegated_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" }, { "name": "retry", @@ -13013,22 +13033,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_images_get_iam_policy_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_global_public_delegated_prefixes_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Insert_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -13038,52 +13058,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_get_iam_policy_sync.py" + "title": "compute_v1_generated_global_public_delegated_prefixes_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.get", + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.list", "method": { - "fullName": "google.cloud.compute.v1.Images.Get", + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.List", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" }, - "shortName": "Get" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetImageRequest" + "type": "google.cloud.compute_v1.types.ListGlobalPublicDelegatedPrefixesRequest" }, { "name": "project", "type": "str" }, - { - "name": "image", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -13097,14 +13113,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Image", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.global_public_delegated_prefixes.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_images_get_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_global_public_delegated_prefixes_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_Get_sync", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_List_sync", "segments": [ { "end": 52, @@ -13122,51 +13138,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_get_sync.py" + "title": "compute_v1_generated_global_public_delegated_prefixes_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient", + "shortName": "GlobalPublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.insert", + "fullName": "google.cloud.compute_v1.GlobalPublicDelegatedPrefixesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.Images.Insert", + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Patch", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes", + "shortName": "GlobalPublicDelegatedPrefixes" }, - "shortName": "Insert" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertImageRequest" + "type": "google.cloud.compute_v1.types.PatchGlobalPublicDelegatedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "image_resource", - "type": "google.cloud.compute_v1.types.Image" + "name": "public_delegated_prefix", + "type": "str" + }, + { + "name": "public_delegated_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" }, { "name": "retry", @@ -13182,21 +13202,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "patch" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_images_insert_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_global_public_delegated_prefixes_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_Insert_sync", + "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -13206,43 +13226,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_insert_sync.py" + "title": "compute_v1_generated_global_public_delegated_prefixes_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.list", + "fullName": "google.cloud.compute_v1.HealthChecksClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.Images.List", + "fullName": "google.cloud.compute.v1.HealthChecks.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" }, - "shortName": "List" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListImagesRequest" + "type": "google.cloud.compute_v1.types.AggregatedListHealthChecksRequest" }, { "name": "project", @@ -13261,14 +13281,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.images.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.services.health_checks.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for List", - "file": "compute_v1_generated_images_list_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_health_checks_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_List_sync", + "regionTag": "compute_v1_generated_HealthChecks_AggregatedList_sync", "segments": [ { "end": 52, @@ -13301,41 +13321,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_list_sync.py" + "title": "compute_v1_generated_health_checks_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.patch", + "fullName": "google.cloud.compute_v1.HealthChecksClient.delete", "method": { - "fullName": "google.cloud.compute.v1.Images.Patch", + "fullName": "google.cloud.compute.v1.HealthChecks.Delete", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" }, - "shortName": "Patch" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchImageRequest" + "type": "google.cloud.compute_v1.types.DeleteHealthCheckRequest" }, { "name": "project", "type": "str" }, { - "name": "image", + "name": "health_check", "type": "str" }, - { - "name": "image_resource", - "type": "google.cloud.compute_v1.types.Image" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -13350,13 +13366,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "delete" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_images_patch_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_health_checks_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_Patch_sync", + "regionTag": "compute_v1_generated_HealthChecks_Delete_sync", "segments": [ { "end": 52, @@ -13389,41 +13405,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_patch_sync.py" + "title": "compute_v1_generated_health_checks_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.HealthChecksClient.get", "method": { - "fullName": "google.cloud.compute.v1.Images.SetIamPolicy", + "fullName": "google.cloud.compute.v1.HealthChecks.Get", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" }, - "shortName": "SetIamPolicy" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyImageRequest" + "type": "google.cloud.compute_v1.types.GetHealthCheckRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "health_check", "type": "str" }, - { - "name": "global_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -13437,14 +13449,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.cloud.compute_v1.types.HealthCheck", + "shortName": "get" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_images_set_iam_policy_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_health_checks_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_HealthChecks_Get_sync", "segments": [ { "end": 52, @@ -13477,40 +13489,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_set_iam_policy_sync.py" + "title": "compute_v1_generated_health_checks_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.set_labels", + "fullName": "google.cloud.compute_v1.HealthChecksClient.insert", "method": { - "fullName": "google.cloud.compute.v1.Images.SetLabels", + "fullName": "google.cloud.compute.v1.HealthChecks.Insert", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" }, - "shortName": "SetLabels" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsImageRequest" + "type": "google.cloud.compute_v1.types.InsertHealthCheckRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", - "type": "str" - }, - { - "name": "global_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" + "name": "health_check_resource", + "type": "google.cloud.compute_v1.types.HealthCheck" }, { "name": "retry", @@ -13526,21 +13534,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "shortName": "insert" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_images_set_labels_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_health_checks_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_SetLabels_sync", + "regionTag": "compute_v1_generated_HealthChecks_Insert_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -13550,56 +13558,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_set_labels_sync.py" + "title": "compute_v1_generated_health_checks_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ImagesClient", - "shortName": "ImagesClient" + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" }, - "fullName": "google.cloud.compute_v1.ImagesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.HealthChecksClient.list", "method": { - "fullName": "google.cloud.compute.v1.Images.TestIamPermissions", + "fullName": "google.cloud.compute.v1.HealthChecks.List", "service": { - "fullName": "google.cloud.compute.v1.Images", - "shortName": "Images" + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" }, - "shortName": "TestIamPermissions" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsImageRequest" + "type": "google.cloud.compute_v1.types.ListHealthChecksRequest" }, { "name": "project", "type": "str" }, - { - "name": "resource", - "type": "str" - }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -13613,14 +13613,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.services.health_checks.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_images_test_iam_permissions_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_health_checks_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Images_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_HealthChecks_List_sync", "segments": [ { "end": 52, @@ -13638,59 +13638,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_images_test_iam_permissions_sync.py" + "title": "compute_v1_generated_health_checks_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", - "shortName": "InstanceGroupManagerResizeRequestsClient" + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.cancel", + "fullName": "google.cloud.compute_v1.HealthChecksClient.patch", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Cancel", + "fullName": "google.cloud.compute.v1.HealthChecks.Patch", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", - "shortName": "InstanceGroupManagerResizeRequests" + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" }, - "shortName": "Cancel" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CancelInstanceGroupManagerResizeRequestRequest" + "type": "google.cloud.compute_v1.types.PatchHealthCheckRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance_group_manager", + "name": "health_check", "type": "str" }, { - "name": "resize_request", - "type": "str" + "name": "health_check_resource", + "type": "google.cloud.compute_v1.types.HealthCheck" }, { "name": "retry", @@ -13706,21 +13702,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "cancel" + "shortName": "patch" }, - "description": "Sample for Cancel", - "file": "compute_v1_generated_instance_group_manager_resize_requests_cancel_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_health_checks_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Cancel_sync", + "regionTag": "compute_v1_generated_HealthChecks_Patch_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -13730,59 +13726,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_manager_resize_requests_cancel_sync.py" + "title": "compute_v1_generated_health_checks_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", - "shortName": "InstanceGroupManagerResizeRequestsClient" + "fullName": "google.cloud.compute_v1.HealthChecksClient", + "shortName": "HealthChecksClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.delete", + "fullName": "google.cloud.compute_v1.HealthChecksClient.update", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Delete", + "fullName": "google.cloud.compute.v1.HealthChecks.Update", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", - "shortName": "InstanceGroupManagerResizeRequests" + "fullName": "google.cloud.compute.v1.HealthChecks", + "shortName": "HealthChecks" }, - "shortName": "Delete" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInstanceGroupManagerResizeRequestRequest" + "type": "google.cloud.compute_v1.types.UpdateHealthCheckRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance_group_manager", + "name": "health_check", "type": "str" }, { - "name": "resize_request", - "type": "str" + "name": "health_check_resource", + "type": "google.cloud.compute_v1.types.HealthCheck" }, { "name": "retry", @@ -13798,21 +13790,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "update" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_instance_group_manager_resize_requests_delete_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_health_checks_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Delete_sync", + "regionTag": "compute_v1_generated_HealthChecks_Update_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -13822,43 +13814,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_manager_resize_requests_delete_sync.py" + "title": "compute_v1_generated_health_checks_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", - "shortName": "InstanceGroupManagerResizeRequestsClient" + "fullName": "google.cloud.compute_v1.ImageFamilyViewsClient", + "shortName": "ImageFamilyViewsClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.get", + "fullName": "google.cloud.compute_v1.ImageFamilyViewsClient.get", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Get", + "fullName": "google.cloud.compute.v1.ImageFamilyViews.Get", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", - "shortName": "InstanceGroupManagerResizeRequests" + "fullName": "google.cloud.compute.v1.ImageFamilyViews", + "shortName": "ImageFamilyViews" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInstanceGroupManagerResizeRequestRequest" + "type": "google.cloud.compute_v1.types.GetImageFamilyViewRequest" }, { "name": "project", @@ -13869,11 +13861,7 @@ "type": "str" }, { - "name": "instance_group_manager", - "type": "str" - }, - { - "name": "resize_request", + "name": "family", "type": "str" }, { @@ -13889,22 +13877,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstanceGroupManagerResizeRequest", + "resultType": "google.cloud.compute_v1.types.ImageFamilyView", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_instance_group_manager_resize_requests_get_sync.py", + "file": "compute_v1_generated_image_family_views_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Get_sync", + "regionTag": "compute_v1_generated_ImageFamilyViews_Get_sync", "segments": [ { - "end": 54, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 53, "start": 27, "type": "SHORT" }, @@ -13914,60 +13902,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_manager_resize_requests_get_sync.py" + "title": "compute_v1_generated_image_family_views_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", - "shortName": "InstanceGroupManagerResizeRequestsClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.insert", + "fullName": "google.cloud.compute_v1.ImagesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Insert", + "fullName": "google.cloud.compute.v1.Images.Delete", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", - "shortName": "InstanceGroupManagerResizeRequests" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "Insert" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInstanceGroupManagerResizeRequestRequest" + "type": "google.cloud.compute_v1.types.DeleteImageRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance_group_manager", + "name": "image", "type": "str" }, - { - "name": "instance_group_manager_resize_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagerResizeRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -13982,21 +13962,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "delete" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_instance_group_manager_resize_requests_insert_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_images_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Insert_sync", + "regionTag": "compute_v1_generated_Images_Delete_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -14006,55 +13986,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_manager_resize_requests_insert_sync.py" + "title": "compute_v1_generated_images_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", - "shortName": "InstanceGroupManagerResizeRequestsClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.list", + "fullName": "google.cloud.compute_v1.ImagesClient.deprecate", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.List", + "fullName": "google.cloud.compute.v1.Images.Deprecate", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", - "shortName": "InstanceGroupManagerResizeRequests" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "List" + "shortName": "Deprecate" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInstanceGroupManagerResizeRequestsRequest" + "type": "google.cloud.compute_v1.types.DeprecateImageRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "image", "type": "str" }, { - "name": "instance_group_manager", - "type": "str" + "name": "deprecation_status_resource", + "type": "google.cloud.compute_v1.types.DeprecationStatus" }, { "name": "retry", @@ -14069,22 +14049,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_group_manager_resize_requests.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "deprecate" }, - "description": "Sample for List", - "file": "compute_v1_generated_instance_group_manager_resize_requests_list_sync.py", + "description": "Sample for Deprecate", + "file": "compute_v1_generated_images_deprecate_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_List_sync", + "regionTag": "compute_v1_generated_Images_Deprecate_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -14094,60 +14074,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_manager_resize_requests_list_sync.py" + "title": "compute_v1_generated_images_deprecate_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.abandon_instances", + "fullName": "google.cloud.compute_v1.ImagesClient.get_from_family", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AbandonInstances", + "fullName": "google.cloud.compute.v1.Images.GetFromFamily", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "AbandonInstances" + "shortName": "GetFromFamily" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AbandonInstancesInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.GetFromFamilyImageRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance_group_manager", + "name": "family", "type": "str" }, - { - "name": "instance_group_managers_abandon_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersAbandonInstancesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -14161,22 +14133,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "abandon_instances" + "resultType": "google.cloud.compute_v1.types.Image", + "shortName": "get_from_family" }, - "description": "Sample for AbandonInstances", - "file": "compute_v1_generated_instance_group_managers_abandon_instances_sync.py", + "description": "Sample for GetFromFamily", + "file": "compute_v1_generated_images_get_from_family_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_AbandonInstances_sync", + "regionTag": "compute_v1_generated_Images_GetFromFamily_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -14186,48 +14158,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_abandon_instances_sync.py" + "title": "compute_v1_generated_images_get_from_family_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.aggregated_list", + "fullName": "google.cloud.compute_v1.ImagesClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AggregatedList", + "fullName": "google.cloud.compute.v1.Images.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "AggregatedList" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListInstanceGroupManagersRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyImageRequest" }, { "name": "project", "type": "str" }, + { + "name": "resource", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -14241,14 +14217,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_instance_group_managers_aggregated_list_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_images_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_AggregatedList_sync", + "regionTag": "compute_v1_generated_Images_GetIamPolicy_sync", "segments": [ { "end": 52, @@ -14266,60 +14242,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_aggregated_list_sync.py" + "title": "compute_v1_generated_images_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.apply_updates_to_instances", + "fullName": "google.cloud.compute_v1.ImagesClient.get", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ApplyUpdatesToInstances", + "fullName": "google.cloud.compute.v1.Images.Get", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "ApplyUpdatesToInstances" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ApplyUpdatesToInstancesInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.GetImageRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "image", "type": "str" }, - { - "name": "instance_group_manager", - "type": "str" - }, - { - "name": "instance_group_managers_apply_updates_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersApplyUpdatesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -14333,22 +14301,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "apply_updates_to_instances" + "resultType": "google.cloud.compute_v1.types.Image", + "shortName": "get" }, - "description": "Sample for ApplyUpdatesToInstances", - "file": "compute_v1_generated_instance_group_managers_apply_updates_to_instances_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_images_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_ApplyUpdatesToInstances_sync", + "regionTag": "compute_v1_generated_Images_Get_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -14358,59 +14326,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_apply_updates_to_instances_sync.py" + "title": "compute_v1_generated_images_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.create_instances", + "fullName": "google.cloud.compute_v1.ImagesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.CreateInstances", + "fullName": "google.cloud.compute.v1.Images.Insert", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "CreateInstances" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CreateInstancesInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.InsertImageRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance_group_manager", - "type": "str" - }, - { - "name": "instance_group_managers_create_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersCreateInstancesRequest" + "name": "image_resource", + "type": "google.cloud.compute_v1.types.Image" }, { "name": "retry", @@ -14426,21 +14386,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "create_instances" + "shortName": "insert" }, - "description": "Sample for CreateInstances", - "file": "compute_v1_generated_instance_group_managers_create_instances_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_images_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_CreateInstances_sync", + "regionTag": "compute_v1_generated_Images_Insert_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -14450,60 +14410,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_create_instances_sync.py" + "title": "compute_v1_generated_images_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.delete_instances", + "fullName": "google.cloud.compute_v1.ImagesClient.list", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeleteInstances", + "fullName": "google.cloud.compute.v1.Images.List", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "DeleteInstances" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInstancesInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.ListImagesRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "instance_group_manager", - "type": "str" - }, - { - "name": "instance_group_managers_delete_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersDeleteInstancesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -14517,22 +14465,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete_instances" + "resultType": "google.cloud.compute_v1.services.images.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for DeleteInstances", - "file": "compute_v1_generated_instance_group_managers_delete_instances_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_images_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_DeleteInstances_sync", + "regionTag": "compute_v1_generated_Images_List_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -14542,59 +14490,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_delete_instances_sync.py" + "title": "compute_v1_generated_images_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.delete_per_instance_configs", + "fullName": "google.cloud.compute_v1.ImagesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeletePerInstanceConfigs", + "fullName": "google.cloud.compute.v1.Images.Patch", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "DeletePerInstanceConfigs" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeletePerInstanceConfigsInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.PatchImageRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance_group_manager", + "name": "image", "type": "str" }, { - "name": "instance_group_managers_delete_per_instance_configs_req_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersDeletePerInstanceConfigsReq" + "name": "image_resource", + "type": "google.cloud.compute_v1.types.Image" }, { "name": "retry", @@ -14610,21 +14554,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete_per_instance_configs" + "shortName": "patch" }, - "description": "Sample for DeletePerInstanceConfigs", - "file": "compute_v1_generated_instance_group_managers_delete_per_instance_configs_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_images_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_DeletePerInstanceConfigs_sync", + "regionTag": "compute_v1_generated_Images_Patch_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -14634,55 +14578,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_delete_per_instance_configs_sync.py" + "title": "compute_v1_generated_images_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.delete", + "fullName": "google.cloud.compute_v1.ImagesClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Delete", + "fullName": "google.cloud.compute.v1.Images.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "Delete" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyImageRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "resource", "type": "str" }, { - "name": "instance_group_manager", - "type": "str" + "name": "global_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" }, { "name": "retry", @@ -14697,22 +14641,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_instance_group_managers_delete_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_images_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_Delete_sync", + "regionTag": "compute_v1_generated_Images_SetIamPolicy_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -14722,55 +14666,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_delete_sync.py" + "title": "compute_v1_generated_images_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.get", + "fullName": "google.cloud.compute_v1.ImagesClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Get", + "fullName": "google.cloud.compute.v1.Images.SetLabels", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "Get" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.SetLabelsImageRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "resource", "type": "str" }, { - "name": "instance_group_manager", - "type": "str" + "name": "global_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" }, { "name": "retry", @@ -14785,22 +14729,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstanceGroupManager", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" }, - "description": "Sample for Get", - "file": "compute_v1_generated_instance_group_managers_get_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_images_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_Get_sync", + "regionTag": "compute_v1_generated_Images_SetLabels_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -14810,55 +14754,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_get_sync.py" + "title": "compute_v1_generated_images_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.ImagesClient", + "shortName": "ImagesClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.insert", + "fullName": "google.cloud.compute_v1.ImagesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Insert", + "fullName": "google.cloud.compute.v1.Images.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.Images", + "shortName": "Images" }, - "shortName": "Insert" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsImageRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "resource", "type": "str" }, { - "name": "instance_group_manager_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManager" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -14873,14 +14817,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_instance_group_managers_insert_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_images_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_Insert_sync", + "regionTag": "compute_v1_generated_Images_TestIamPermissions_sync", "segments": [ { "end": 52, @@ -14913,28 +14857,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_insert_sync.py" + "title": "compute_v1_generated_images_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", + "shortName": "InstanceGroupManagerResizeRequestsClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list_errors", + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.cancel", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListErrors", + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Cancel", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", + "shortName": "InstanceGroupManagerResizeRequests" }, - "shortName": "ListErrors" + "shortName": "Cancel" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListErrorsInstanceGroupManagersRequest" + "type": "google.cloud.compute_v1.types.CancelInstanceGroupManagerResizeRequestRequest" }, { "name": "project", @@ -14948,6 +14892,10 @@ "name": "instance_group_manager", "type": "str" }, + { + "name": "resize_request", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -14961,14 +14909,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListErrorsPager", - "shortName": "list_errors" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "cancel" }, - "description": "Sample for ListErrors", - "file": "compute_v1_generated_instance_group_managers_list_errors_sync.py", + "description": "Sample for Cancel", + "file": "compute_v1_generated_instance_group_manager_resize_requests_cancel_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_ListErrors_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Cancel_sync", "segments": [ { "end": 54, @@ -14986,43 +14934,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { "end": 55, - "start": 51, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_list_errors_sync.py" + "title": "compute_v1_generated_instance_group_manager_resize_requests_cancel_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", + "shortName": "InstanceGroupManagerResizeRequestsClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list_managed_instances", + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListManagedInstances", + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Delete", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", + "shortName": "InstanceGroupManagerResizeRequests" }, - "shortName": "ListManagedInstances" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListManagedInstancesInstanceGroupManagersRequest" + "type": "google.cloud.compute_v1.types.DeleteInstanceGroupManagerResizeRequestRequest" }, { "name": "project", @@ -15036,6 +14984,10 @@ "name": "instance_group_manager", "type": "str" }, + { + "name": "resize_request", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -15049,14 +15001,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListManagedInstancesPager", - "shortName": "list_managed_instances" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for ListManagedInstances", - "file": "compute_v1_generated_instance_group_managers_list_managed_instances_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_instance_group_manager_resize_requests_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_ListManagedInstances_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Delete_sync", "segments": [ { "end": 54, @@ -15074,43 +15026,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { "end": 55, - "start": 51, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_list_managed_instances_sync.py" + "title": "compute_v1_generated_instance_group_manager_resize_requests_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", + "shortName": "InstanceGroupManagerResizeRequestsClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list_per_instance_configs", + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.get", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListPerInstanceConfigs", + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Get", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", + "shortName": "InstanceGroupManagerResizeRequests" }, - "shortName": "ListPerInstanceConfigs" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListPerInstanceConfigsInstanceGroupManagersRequest" + "type": "google.cloud.compute_v1.types.GetInstanceGroupManagerResizeRequestRequest" }, { "name": "project", @@ -15124,6 +15076,10 @@ "name": "instance_group_manager", "type": "str" }, + { + "name": "resize_request", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -15137,14 +15093,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListPerInstanceConfigsPager", - "shortName": "list_per_instance_configs" + "resultType": "google.cloud.compute_v1.types.InstanceGroupManagerResizeRequest", + "shortName": "get" }, - "description": "Sample for ListPerInstanceConfigs", - "file": "compute_v1_generated_instance_group_managers_list_per_instance_configs_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_instance_group_manager_resize_requests_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_ListPerInstanceConfigs_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Get_sync", "segments": [ { "end": 54, @@ -15162,43 +15118,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { "end": 55, - "start": 51, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_list_per_instance_configs_sync.py" + "title": "compute_v1_generated_instance_group_manager_resize_requests_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", + "shortName": "InstanceGroupManagerResizeRequestsClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list", + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.List", + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Insert", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", + "shortName": "InstanceGroupManagerResizeRequests" }, - "shortName": "List" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInstanceGroupManagersRequest" + "type": "google.cloud.compute_v1.types.InsertInstanceGroupManagerResizeRequestRequest" }, { "name": "project", @@ -15208,6 +15164,14 @@ "name": "zone", "type": "str" }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "instance_group_manager_resize_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagerResizeRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -15221,14 +15185,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for List", - "file": "compute_v1_generated_instance_group_managers_list_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_instance_group_manager_resize_requests_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_List_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Insert_sync", "segments": [ { "end": 53, @@ -15246,43 +15210,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_list_sync.py" + "title": "compute_v1_generated_instance_group_manager_resize_requests_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient", + "shortName": "InstanceGroupManagerResizeRequestsClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.patch_per_instance_configs", + "fullName": "google.cloud.compute_v1.InstanceGroupManagerResizeRequestsClient.list", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.PatchPerInstanceConfigs", + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.List", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" + "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests", + "shortName": "InstanceGroupManagerResizeRequests" }, - "shortName": "PatchPerInstanceConfigs" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchPerInstanceConfigsInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.ListInstanceGroupManagerResizeRequestsRequest" }, { "name": "project", @@ -15296,10 +15260,6 @@ "name": "instance_group_manager", "type": "str" }, - { - "name": "instance_group_managers_patch_per_instance_configs_req_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersPatchPerInstanceConfigsReq" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -15313,114 +15273,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch_per_instance_configs" + "resultType": "google.cloud.compute_v1.services.instance_group_manager_resize_requests.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for PatchPerInstanceConfigs", - "file": "compute_v1_generated_instance_group_managers_patch_per_instance_configs_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_instance_group_manager_resize_requests_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_PatchPerInstanceConfigs_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_List_sync", "segments": [ - { - "end": 53, - "start": 27, - "type": "FULL" - }, - { - "end": 53, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 47, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 50, - "start": 48, - "type": "REQUEST_EXECUTION" - }, { "end": 54, - "start": 51, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_instance_group_managers_patch_per_instance_configs_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", - "shortName": "InstanceGroupManagersClient" - }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.patch", - "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Patch", - "service": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers", - "shortName": "InstanceGroupManagers" - }, - "shortName": "Patch" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.PatchInstanceGroupManagerRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "zone", - "type": "str" - }, - { - "name": "instance_group_manager", - "type": "str" - }, - { - "name": "instance_group_manager_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManager" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" - }, - "description": "Sample for Patch", - "file": "compute_v1_generated_instance_group_managers_patch_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_Patch_sync", - "segments": [ - { - "end": 53, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -15440,12 +15308,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_patch_sync.py" + "title": "compute_v1_generated_instance_group_manager_resize_requests_list_sync.py" }, { "canonical": true, @@ -15454,19 +15322,19 @@ "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.recreate_instances", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.abandon_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.RecreateInstances", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AbandonInstances", "service": { "fullName": "google.cloud.compute.v1.InstanceGroupManagers", "shortName": "InstanceGroupManagers" }, - "shortName": "RecreateInstances" + "shortName": "AbandonInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RecreateInstancesInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.AbandonInstancesInstanceGroupManagerRequest" }, { "name": "project", @@ -15481,8 +15349,8 @@ "type": "str" }, { - "name": "instance_group_managers_recreate_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersRecreateInstancesRequest" + "name": "instance_group_managers_abandon_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersAbandonInstancesRequest" }, { "name": "retry", @@ -15498,13 +15366,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "recreate_instances" + "shortName": "abandon_instances" }, - "description": "Sample for RecreateInstances", - "file": "compute_v1_generated_instance_group_managers_recreate_instances_sync.py", + "description": "Sample for AbandonInstances", + "file": "compute_v1_generated_instance_group_managers_abandon_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_RecreateInstances_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_AbandonInstances_sync", "segments": [ { "end": 53, @@ -15537,7 +15405,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_recreate_instances_sync.py" + "title": "compute_v1_generated_instance_group_managers_abandon_instances_sync.py" }, { "canonical": true, @@ -15546,36 +15414,24 @@ "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.resize", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Resize", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AggregatedList", "service": { "fullName": "google.cloud.compute.v1.InstanceGroupManagers", "shortName": "InstanceGroupManagers" }, - "shortName": "Resize" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ResizeInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.AggregatedListInstanceGroupManagersRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "instance_group_manager", - "type": "str" - }, - { - "name": "size", - "type": "int" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -15589,22 +15445,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "resize" + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for Resize", - "file": "compute_v1_generated_instance_group_managers_resize_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_instance_group_managers_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_Resize_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_AggregatedList_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -15614,22 +15470,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_resize_sync.py" + "title": "compute_v1_generated_instance_group_managers_aggregated_list_sync.py" }, { "canonical": true, @@ -15638,19 +15494,19 @@ "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.resume_instances", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.apply_updates_to_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ResumeInstances", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ApplyUpdatesToInstances", "service": { "fullName": "google.cloud.compute.v1.InstanceGroupManagers", "shortName": "InstanceGroupManagers" }, - "shortName": "ResumeInstances" + "shortName": "ApplyUpdatesToInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ResumeInstancesInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.ApplyUpdatesToInstancesInstanceGroupManagerRequest" }, { "name": "project", @@ -15665,8 +15521,8 @@ "type": "str" }, { - "name": "instance_group_managers_resume_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersResumeInstancesRequest" + "name": "instance_group_managers_apply_updates_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersApplyUpdatesRequest" }, { "name": "retry", @@ -15682,13 +15538,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "resume_instances" + "shortName": "apply_updates_to_instances" }, - "description": "Sample for ResumeInstances", - "file": "compute_v1_generated_instance_group_managers_resume_instances_sync.py", + "description": "Sample for ApplyUpdatesToInstances", + "file": "compute_v1_generated_instance_group_managers_apply_updates_to_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_ResumeInstances_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_ApplyUpdatesToInstances_sync", "segments": [ { "end": 53, @@ -15721,7 +15577,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_resume_instances_sync.py" + "title": "compute_v1_generated_instance_group_managers_apply_updates_to_instances_sync.py" }, { "canonical": true, @@ -15730,19 +15586,19 @@ "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.set_instance_template", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.create_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetInstanceTemplate", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.CreateInstances", "service": { "fullName": "google.cloud.compute.v1.InstanceGroupManagers", "shortName": "InstanceGroupManagers" }, - "shortName": "SetInstanceTemplate" + "shortName": "CreateInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetInstanceTemplateInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.CreateInstancesInstanceGroupManagerRequest" }, { "name": "project", @@ -15757,8 +15613,8 @@ "type": "str" }, { - "name": "instance_group_managers_set_instance_template_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersSetInstanceTemplateRequest" + "name": "instance_group_managers_create_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersCreateInstancesRequest" }, { "name": "retry", @@ -15774,13 +15630,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_instance_template" + "shortName": "create_instances" }, - "description": "Sample for SetInstanceTemplate", - "file": "compute_v1_generated_instance_group_managers_set_instance_template_sync.py", + "description": "Sample for CreateInstances", + "file": "compute_v1_generated_instance_group_managers_create_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_SetInstanceTemplate_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_CreateInstances_sync", "segments": [ { "end": 53, @@ -15813,7 +15669,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_set_instance_template_sync.py" + "title": "compute_v1_generated_instance_group_managers_create_instances_sync.py" }, { "canonical": true, @@ -15822,19 +15678,19 @@ "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.set_target_pools", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.delete_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetTargetPools", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeleteInstances", "service": { "fullName": "google.cloud.compute.v1.InstanceGroupManagers", "shortName": "InstanceGroupManagers" }, - "shortName": "SetTargetPools" + "shortName": "DeleteInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetTargetPoolsInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.DeleteInstancesInstanceGroupManagerRequest" }, { "name": "project", @@ -15849,8 +15705,8 @@ "type": "str" }, { - "name": "instance_group_managers_set_target_pools_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersSetTargetPoolsRequest" + "name": "instance_group_managers_delete_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersDeleteInstancesRequest" }, { "name": "retry", @@ -15866,13 +15722,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_target_pools" + "shortName": "delete_instances" }, - "description": "Sample for SetTargetPools", - "file": "compute_v1_generated_instance_group_managers_set_target_pools_sync.py", + "description": "Sample for DeleteInstances", + "file": "compute_v1_generated_instance_group_managers_delete_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_SetTargetPools_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_DeleteInstances_sync", "segments": [ { "end": 53, @@ -15905,7 +15761,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_set_target_pools_sync.py" + "title": "compute_v1_generated_instance_group_managers_delete_instances_sync.py" }, { "canonical": true, @@ -15914,19 +15770,19 @@ "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.start_instances", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.delete_per_instance_configs", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.StartInstances", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeletePerInstanceConfigs", "service": { "fullName": "google.cloud.compute.v1.InstanceGroupManagers", "shortName": "InstanceGroupManagers" }, - "shortName": "StartInstances" + "shortName": "DeletePerInstanceConfigs" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StartInstancesInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.DeletePerInstanceConfigsInstanceGroupManagerRequest" }, { "name": "project", @@ -15941,8 +15797,8 @@ "type": "str" }, { - "name": "instance_group_managers_start_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersStartInstancesRequest" + "name": "instance_group_managers_delete_per_instance_configs_req_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersDeletePerInstanceConfigsReq" }, { "name": "retry", @@ -15958,13 +15814,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "start_instances" + "shortName": "delete_per_instance_configs" }, - "description": "Sample for StartInstances", - "file": "compute_v1_generated_instance_group_managers_start_instances_sync.py", + "description": "Sample for DeletePerInstanceConfigs", + "file": "compute_v1_generated_instance_group_managers_delete_per_instance_configs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_StartInstances_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_DeletePerInstanceConfigs_sync", "segments": [ { "end": 53, @@ -15997,7 +15853,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_start_instances_sync.py" + "title": "compute_v1_generated_instance_group_managers_delete_per_instance_configs_sync.py" }, { "canonical": true, @@ -16006,19 +15862,19 @@ "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.stop_instances", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.delete", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.StopInstances", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Delete", "service": { "fullName": "google.cloud.compute.v1.InstanceGroupManagers", "shortName": "InstanceGroupManagers" }, - "shortName": "StopInstances" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StopInstancesInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.DeleteInstanceGroupManagerRequest" }, { "name": "project", @@ -16032,10 +15888,6 @@ "name": "instance_group_manager", "type": "str" }, - { - "name": "instance_group_managers_stop_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersStopInstancesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -16050,13 +15902,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "stop_instances" + "shortName": "delete" }, - "description": "Sample for StopInstances", - "file": "compute_v1_generated_instance_group_managers_stop_instances_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_instance_group_managers_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_StopInstances_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_Delete_sync", "segments": [ { "end": 53, @@ -16089,7 +15941,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_stop_instances_sync.py" + "title": "compute_v1_generated_instance_group_managers_delete_sync.py" }, { "canonical": true, @@ -16098,19 +15950,19 @@ "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.suspend_instances", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.get", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SuspendInstances", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Get", "service": { "fullName": "google.cloud.compute.v1.InstanceGroupManagers", "shortName": "InstanceGroupManagers" }, - "shortName": "SuspendInstances" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SuspendInstancesInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.GetInstanceGroupManagerRequest" }, { "name": "project", @@ -16124,10 +15976,6 @@ "name": "instance_group_manager", "type": "str" }, - { - "name": "instance_group_managers_suspend_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersSuspendInstancesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -16141,14 +15989,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "suspend_instances" + "resultType": "google.cloud.compute_v1.types.InstanceGroupManager", + "shortName": "get" }, - "description": "Sample for SuspendInstances", - "file": "compute_v1_generated_instance_group_managers_suspend_instances_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_instance_group_managers_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_SuspendInstances_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_Get_sync", "segments": [ { "end": 53, @@ -16181,7 +16029,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_suspend_instances_sync.py" + "title": "compute_v1_generated_instance_group_managers_get_sync.py" }, { "canonical": true, @@ -16190,19 +16038,19 @@ "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.update_per_instance_configs", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.insert", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.UpdatePerInstanceConfigs", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Insert", "service": { "fullName": "google.cloud.compute.v1.InstanceGroupManagers", "shortName": "InstanceGroupManagers" }, - "shortName": "UpdatePerInstanceConfigs" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdatePerInstanceConfigsInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.InsertInstanceGroupManagerRequest" }, { "name": "project", @@ -16213,12 +16061,8 @@ "type": "str" }, { - "name": "instance_group_manager", - "type": "str" - }, - { - "name": "instance_group_managers_update_per_instance_configs_req_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManagersUpdatePerInstanceConfigsReq" + "name": "instance_group_manager_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManager" }, { "name": "retry", @@ -16234,21 +16078,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update_per_instance_configs" + "shortName": "insert" }, - "description": "Sample for UpdatePerInstanceConfigs", - "file": "compute_v1_generated_instance_group_managers_update_per_instance_configs_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_instance_group_managers_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_Insert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -16258,43 +16102,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_group_managers_update_per_instance_configs_sync.py" + "title": "compute_v1_generated_instance_group_managers_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.add_instances", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list_errors", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.AddInstances", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListErrors", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "AddInstances" + "shortName": "ListErrors" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddInstancesInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.ListErrorsInstanceGroupManagersRequest" }, { "name": "project", @@ -16305,13 +16149,9 @@ "type": "str" }, { - "name": "instance_group", + "name": "instance_group_manager", "type": "str" }, - { - "name": "instance_groups_add_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupsAddInstancesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -16325,22 +16165,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_instances" + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListErrorsPager", + "shortName": "list_errors" }, - "description": "Sample for AddInstances", - "file": "compute_v1_generated_instance_groups_add_instances_sync.py", + "description": "Sample for ListErrors", + "file": "compute_v1_generated_instance_group_managers_list_errors_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_AddInstances_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_ListErrors_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -16360,38 +16200,46 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_add_instances_sync.py" + "title": "compute_v1_generated_instance_group_managers_list_errors_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.aggregated_list", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list_managed_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.AggregatedList", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListManagedInstances", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "AggregatedList" + "shortName": "ListManagedInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListInstanceGroupsRequest" + "type": "google.cloud.compute_v1.types.ListManagedInstancesInstanceGroupManagersRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -16405,22 +16253,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_groups.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListManagedInstancesPager", + "shortName": "list_managed_instances" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_instance_groups_aggregated_list_sync.py", + "description": "Sample for ListManagedInstances", + "file": "compute_v1_generated_instance_group_managers_list_managed_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_AggregatedList_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_ListManagedInstances_sync", "segments": [ { - "end": 52, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 54, "start": 27, "type": "SHORT" }, @@ -16430,43 +16278,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 55, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_aggregated_list_sync.py" + "title": "compute_v1_generated_instance_group_managers_list_managed_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.delete", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list_per_instance_configs", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.Delete", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListPerInstanceConfigs", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "Delete" + "shortName": "ListPerInstanceConfigs" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.ListPerInstanceConfigsInstanceGroupManagersRequest" }, { "name": "project", @@ -16477,7 +16325,7 @@ "type": "str" }, { - "name": "instance_group", + "name": "instance_group_manager", "type": "str" }, { @@ -16493,22 +16341,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListPerInstanceConfigsPager", + "shortName": "list_per_instance_configs" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_instance_groups_delete_sync.py", + "description": "Sample for ListPerInstanceConfigs", + "file": "compute_v1_generated_instance_group_managers_list_per_instance_configs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_Delete_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_ListPerInstanceConfigs_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -16528,33 +16376,33 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_delete_sync.py" + "title": "compute_v1_generated_instance_group_managers_list_per_instance_configs_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.get", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.list", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.Get", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.List", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "Get" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.ListInstanceGroupManagersRequest" }, { "name": "project", @@ -16564,10 +16412,6 @@ "name": "zone", "type": "str" }, - { - "name": "instance_group", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -16581,14 +16425,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstanceGroup", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.instance_group_managers.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_instance_groups_get_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_instance_group_managers_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_Get_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_List_sync", "segments": [ { "end": 53, @@ -16606,43 +16450,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_get_sync.py" + "title": "compute_v1_generated_instance_group_managers_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.insert", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.patch_per_instance_configs", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.Insert", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.PatchPerInstanceConfigs", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "Insert" + "shortName": "PatchPerInstanceConfigs" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.PatchPerInstanceConfigsInstanceGroupManagerRequest" }, { "name": "project", @@ -16653,8 +16497,12 @@ "type": "str" }, { - "name": "instance_group_resource", - "type": "google.cloud.compute_v1.types.InstanceGroup" + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "instance_group_managers_patch_per_instance_configs_req_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersPatchPerInstanceConfigsReq" }, { "name": "retry", @@ -16670,21 +16518,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "patch_per_instance_configs" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_instance_groups_insert_sync.py", + "description": "Sample for PatchPerInstanceConfigs", + "file": "compute_v1_generated_instance_group_managers_patch_per_instance_configs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_Insert_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_PatchPerInstanceConfigs_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -16694,43 +16542,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_insert_sync.py" + "title": "compute_v1_generated_instance_group_managers_patch_per_instance_configs_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.list_instances", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.patch", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.ListInstances", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Patch", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "ListInstances" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInstancesInstanceGroupsRequest" + "type": "google.cloud.compute_v1.types.PatchInstanceGroupManagerRequest" }, { "name": "project", @@ -16741,12 +16589,12 @@ "type": "str" }, { - "name": "instance_group", + "name": "instance_group_manager", "type": "str" }, { - "name": "instance_groups_list_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupsListInstancesRequest" + "name": "instance_group_manager_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManager" }, { "name": "retry", @@ -16761,22 +16609,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_groups.pagers.ListInstancesPager", - "shortName": "list_instances" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for ListInstances", - "file": "compute_v1_generated_instance_groups_list_instances_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_instance_group_managers_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_ListInstances_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_Patch_sync", "segments": [ { - "end": 54, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 53, "start": 27, "type": "SHORT" }, @@ -16796,33 +16644,33 @@ "type": "REQUEST_EXECUTION" }, { - "end": 55, + "end": 54, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_list_instances_sync.py" + "title": "compute_v1_generated_instance_group_managers_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.list", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.recreate_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.List", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.RecreateInstances", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "List" + "shortName": "RecreateInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInstanceGroupsRequest" + "type": "google.cloud.compute_v1.types.RecreateInstancesInstanceGroupManagerRequest" }, { "name": "project", @@ -16832,6 +16680,14 @@ "name": "zone", "type": "str" }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "instance_group_managers_recreate_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersRecreateInstancesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -16845,14 +16701,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_groups.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "recreate_instances" }, - "description": "Sample for List", - "file": "compute_v1_generated_instance_groups_list_sync.py", + "description": "Sample for RecreateInstances", + "file": "compute_v1_generated_instance_group_managers_recreate_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_List_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_RecreateInstances_sync", "segments": [ { "end": 53, @@ -16870,43 +16726,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_list_sync.py" + "title": "compute_v1_generated_instance_group_managers_recreate_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.remove_instances", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.resize", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.RemoveInstances", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Resize", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "RemoveInstances" + "shortName": "Resize" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveInstancesInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.ResizeInstanceGroupManagerRequest" }, { "name": "project", @@ -16917,12 +16773,12 @@ "type": "str" }, { - "name": "instance_group", + "name": "instance_group_manager", "type": "str" }, { - "name": "instance_groups_remove_instances_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupsRemoveInstancesRequest" + "name": "size", + "type": "int" }, { "name": "retry", @@ -16938,21 +16794,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_instances" + "shortName": "resize" }, - "description": "Sample for RemoveInstances", - "file": "compute_v1_generated_instance_groups_remove_instances_sync.py", + "description": "Sample for Resize", + "file": "compute_v1_generated_instance_group_managers_resize_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_RemoveInstances_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_Resize_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -16962,43 +16818,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_remove_instances_sync.py" + "title": "compute_v1_generated_instance_group_managers_resize_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.set_named_ports", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.resume_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.SetNamedPorts", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ResumeInstances", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "SetNamedPorts" + "shortName": "ResumeInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetNamedPortsInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.ResumeInstancesInstanceGroupManagerRequest" }, { "name": "project", @@ -17009,12 +16865,12 @@ "type": "str" }, { - "name": "instance_group", + "name": "instance_group_manager", "type": "str" }, { - "name": "instance_groups_set_named_ports_request_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupsSetNamedPortsRequest" + "name": "instance_group_managers_resume_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersResumeInstancesRequest" }, { "name": "retry", @@ -17030,13 +16886,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_named_ports" + "shortName": "resume_instances" }, - "description": "Sample for SetNamedPorts", - "file": "compute_v1_generated_instance_groups_set_named_ports_sync.py", + "description": "Sample for ResumeInstances", + "file": "compute_v1_generated_instance_group_managers_resume_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_SetNamedPorts_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_ResumeInstances_sync", "segments": [ { "end": 53, @@ -17069,28 +16925,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_set_named_ports_sync.py" + "title": "compute_v1_generated_instance_group_managers_resume_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceGroupsClient", - "shortName": "InstanceGroupsClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceGroupsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.set_instance_template", "method": { - "fullName": "google.cloud.compute.v1.InstanceGroups.TestIamPermissions", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetInstanceTemplate", "service": { - "fullName": "google.cloud.compute.v1.InstanceGroups", - "shortName": "InstanceGroups" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "TestIamPermissions" + "shortName": "SetInstanceTemplate" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.SetInstanceTemplateInstanceGroupManagerRequest" }, { "name": "project", @@ -17101,12 +16957,12 @@ "type": "str" }, { - "name": "resource", + "name": "instance_group_manager", "type": "str" }, { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "instance_group_managers_set_instance_template_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersSetInstanceTemplateRequest" }, { "name": "retry", @@ -17121,14 +16977,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_instance_template" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_instance_groups_test_iam_permissions_sync.py", + "description": "Sample for SetInstanceTemplate", + "file": "compute_v1_generated_instance_group_managers_set_instance_template_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceGroups_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_SetInstanceTemplate_sync", "segments": [ { "end": 53, @@ -17161,28 +17017,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_groups_test_iam_permissions_sync.py" + "title": "compute_v1_generated_instance_group_managers_set_instance_template_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceSettingsServiceClient", - "shortName": "InstanceSettingsServiceClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceSettingsServiceClient.get", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.set_target_pools", "method": { - "fullName": "google.cloud.compute.v1.InstanceSettingsService.Get", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetTargetPools", "service": { - "fullName": "google.cloud.compute.v1.InstanceSettingsService", - "shortName": "InstanceSettingsService" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "Get" + "shortName": "SetTargetPools" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInstanceSettingRequest" + "type": "google.cloud.compute_v1.types.SetTargetPoolsInstanceGroupManagerRequest" }, { "name": "project", @@ -17192,6 +17048,14 @@ "name": "zone", "type": "str" }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "instance_group_managers_set_target_pools_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersSetTargetPoolsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -17205,22 +17069,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstanceSettings", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_target_pools" }, - "description": "Sample for Get", - "file": "compute_v1_generated_instance_settings_service_get_sync.py", + "description": "Sample for SetTargetPools", + "file": "compute_v1_generated_instance_group_managers_set_target_pools_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceSettingsService_Get_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_SetTargetPools_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -17230,43 +17094,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_settings_service_get_sync.py" + "title": "compute_v1_generated_instance_group_managers_set_target_pools_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceSettingsServiceClient", - "shortName": "InstanceSettingsServiceClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceSettingsServiceClient.patch", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.start_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceSettingsService.Patch", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.StartInstances", "service": { - "fullName": "google.cloud.compute.v1.InstanceSettingsService", - "shortName": "InstanceSettingsService" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "Patch" + "shortName": "StartInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchInstanceSettingRequest" + "type": "google.cloud.compute_v1.types.StartInstancesInstanceGroupManagerRequest" }, { "name": "project", @@ -17277,8 +17141,12 @@ "type": "str" }, { - "name": "instance_settings_resource", - "type": "google.cloud.compute_v1.types.InstanceSettings" + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "instance_group_managers_start_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersStartInstancesRequest" }, { "name": "retry", @@ -17294,21 +17162,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "start_instances" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_instance_settings_service_patch_sync.py", + "description": "Sample for StartInstances", + "file": "compute_v1_generated_instance_group_managers_start_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceSettingsService_Patch_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_StartInstances_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -17318,48 +17186,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_settings_service_patch_sync.py" + "title": "compute_v1_generated_instance_group_managers_start_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", - "shortName": "InstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.stop_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceTemplates.AggregatedList", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.StopInstances", "service": { - "fullName": "google.cloud.compute.v1.InstanceTemplates", - "shortName": "InstanceTemplates" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "AggregatedList" + "shortName": "StopInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListInstanceTemplatesRequest" + "type": "google.cloud.compute_v1.types.StopInstancesInstanceGroupManagerRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "instance_group_managers_stop_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersStopInstancesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -17373,22 +17253,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_templates.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "stop_instances" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_instance_templates_aggregated_list_sync.py", + "description": "Sample for StopInstances", + "file": "compute_v1_generated_instance_group_managers_stop_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceTemplates_AggregatedList_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_StopInstances_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -17398,52 +17278,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_templates_aggregated_list_sync.py" + "title": "compute_v1_generated_instance_group_managers_stop_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", - "shortName": "InstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.delete", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.suspend_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceTemplates.Delete", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SuspendInstances", "service": { - "fullName": "google.cloud.compute.v1.InstanceTemplates", - "shortName": "InstanceTemplates" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "Delete" + "shortName": "SuspendInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInstanceTemplateRequest" + "type": "google.cloud.compute_v1.types.SuspendInstancesInstanceGroupManagerRequest" }, { "name": "project", "type": "str" }, { - "name": "instance_template", + "name": "zone", + "type": "str" + }, + { + "name": "instance_group_manager", "type": "str" }, + { + "name": "instance_group_managers_suspend_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersSuspendInstancesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -17458,21 +17346,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "suspend_instances" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_instance_templates_delete_sync.py", + "description": "Sample for SuspendInstances", + "file": "compute_v1_generated_instance_group_managers_suspend_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceTemplates_Delete_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_SuspendInstances_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -17482,52 +17370,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_templates_delete_sync.py" + "title": "compute_v1_generated_instance_group_managers_suspend_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", - "shortName": "InstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient", + "shortName": "InstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.InstanceGroupManagersClient.update_per_instance_configs", "method": { - "fullName": "google.cloud.compute.v1.InstanceTemplates.GetIamPolicy", + "fullName": "google.cloud.compute.v1.InstanceGroupManagers.UpdatePerInstanceConfigs", "service": { - "fullName": "google.cloud.compute.v1.InstanceTemplates", - "shortName": "InstanceTemplates" + "fullName": "google.cloud.compute.v1.InstanceGroupManagers", + "shortName": "InstanceGroupManagers" }, - "shortName": "GetIamPolicy" + "shortName": "UpdatePerInstanceConfigs" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyInstanceTemplateRequest" + "type": "google.cloud.compute_v1.types.UpdatePerInstanceConfigsInstanceGroupManagerRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "zone", "type": "str" }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "instance_group_managers_update_per_instance_configs_req_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManagersUpdatePerInstanceConfigsReq" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -17541,22 +17437,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_per_instance_configs" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_instance_templates_get_iam_policy_sync.py", + "description": "Sample for UpdatePerInstanceConfigs", + "file": "compute_v1_generated_instance_group_managers_update_per_instance_configs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceTemplates_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -17566,52 +17462,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_templates_get_iam_policy_sync.py" + "title": "compute_v1_generated_instance_group_managers_update_per_instance_configs_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", - "shortName": "InstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.get", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.add_instances", "method": { - "fullName": "google.cloud.compute.v1.InstanceTemplates.Get", + "fullName": "google.cloud.compute.v1.InstanceGroups.AddInstances", "service": { - "fullName": "google.cloud.compute.v1.InstanceTemplates", - "shortName": "InstanceTemplates" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "Get" + "shortName": "AddInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInstanceTemplateRequest" + "type": "google.cloud.compute_v1.types.AddInstancesInstanceGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "instance_template", + "name": "zone", + "type": "str" + }, + { + "name": "instance_group", "type": "str" }, + { + "name": "instance_groups_add_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupsAddInstancesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -17625,22 +17529,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstanceTemplate", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_instances" }, - "description": "Sample for Get", - "file": "compute_v1_generated_instance_templates_get_sync.py", + "description": "Sample for AddInstances", + "file": "compute_v1_generated_instance_groups_add_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceTemplates_Get_sync", + "regionTag": "compute_v1_generated_InstanceGroups_AddInstances_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -17650,52 +17554,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_templates_get_sync.py" + "title": "compute_v1_generated_instance_groups_add_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", - "shortName": "InstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.insert", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.InstanceTemplates.Insert", + "fullName": "google.cloud.compute.v1.InstanceGroups.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.InstanceTemplates", - "shortName": "InstanceTemplates" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "Insert" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInstanceTemplateRequest" + "type": "google.cloud.compute_v1.types.AggregatedListInstanceGroupsRequest" }, { "name": "project", "type": "str" }, - { - "name": "instance_template_resource", - "type": "google.cloud.compute_v1.types.InstanceTemplate" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -17709,22 +17609,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.services.instance_groups.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_instance_templates_insert_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_instance_groups_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceTemplates_Insert_sync", + "regionTag": "compute_v1_generated_InstanceGroups_AggregatedList_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -17744,38 +17644,46 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 53, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_templates_insert_sync.py" + "title": "compute_v1_generated_instance_groups_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", - "shortName": "InstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.list", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.InstanceTemplates.List", + "fullName": "google.cloud.compute.v1.InstanceGroups.Delete", "service": { - "fullName": "google.cloud.compute.v1.InstanceTemplates", - "shortName": "InstanceTemplates" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "List" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInstanceTemplatesRequest" + "type": "google.cloud.compute_v1.types.DeleteInstanceGroupRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -17789,22 +17697,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instance_templates.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for List", - "file": "compute_v1_generated_instance_templates_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_instance_groups_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceTemplates_List_sync", + "regionTag": "compute_v1_generated_InstanceGroups_Delete_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -17814,55 +17722,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_templates_list_sync.py" + "title": "compute_v1_generated_instance_groups_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", - "shortName": "InstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.get", "method": { - "fullName": "google.cloud.compute.v1.InstanceTemplates.SetIamPolicy", + "fullName": "google.cloud.compute.v1.InstanceGroups.Get", "service": { - "fullName": "google.cloud.compute.v1.InstanceTemplates", - "shortName": "InstanceTemplates" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "SetIamPolicy" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyInstanceTemplateRequest" + "type": "google.cloud.compute_v1.types.GetInstanceGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "zone", "type": "str" }, { - "name": "global_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" + "name": "instance_group", + "type": "str" }, { "name": "retry", @@ -17877,22 +17785,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.cloud.compute_v1.types.InstanceGroup", + "shortName": "get" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_instance_templates_set_iam_policy_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_instance_groups_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceTemplates_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_InstanceGroups_Get_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -17902,55 +17810,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_templates_set_iam_policy_sync.py" + "title": "compute_v1_generated_instance_groups_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", - "shortName": "InstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.InstanceTemplates.TestIamPermissions", + "fullName": "google.cloud.compute.v1.InstanceGroups.Insert", "service": { - "fullName": "google.cloud.compute.v1.InstanceTemplates", - "shortName": "InstanceTemplates" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "TestIamPermissions" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsInstanceTemplateRequest" + "type": "google.cloud.compute_v1.types.InsertInstanceGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "zone", "type": "str" }, { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "instance_group_resource", + "type": "google.cloud.compute_v1.types.InstanceGroup" }, { "name": "retry", @@ -17965,14 +17873,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_instance_templates_test_iam_permissions_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_instance_groups_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstanceTemplates_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_InstanceGroups_Insert_sync", "segments": [ { "end": 52, @@ -18005,28 +17913,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instance_templates_test_iam_permissions_sync.py" + "title": "compute_v1_generated_instance_groups_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.add_access_config", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.list_instances", "method": { - "fullName": "google.cloud.compute.v1.Instances.AddAccessConfig", + "fullName": "google.cloud.compute.v1.InstanceGroups.ListInstances", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "AddAccessConfig" + "shortName": "ListInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddAccessConfigInstanceRequest" + "type": "google.cloud.compute_v1.types.ListInstancesInstanceGroupsRequest" }, { "name": "project", @@ -18037,16 +17945,12 @@ "type": "str" }, { - "name": "instance", - "type": "str" - }, - { - "name": "network_interface", + "name": "instance_group", "type": "str" }, { - "name": "access_config_resource", - "type": "google.cloud.compute_v1.types.AccessConfig" + "name": "instance_groups_list_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupsListInstancesRequest" }, { "name": "retry", @@ -18061,14 +17965,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_access_config" + "resultType": "google.cloud.compute_v1.services.instance_groups.pagers.ListInstancesPager", + "shortName": "list_instances" }, - "description": "Sample for AddAccessConfig", - "file": "compute_v1_generated_instances_add_access_config_sync.py", + "description": "Sample for ListInstances", + "file": "compute_v1_generated_instance_groups_list_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_AddAccessConfig_sync", + "regionTag": "compute_v1_generated_InstanceGroups_ListInstances_sync", "segments": [ { "end": 54, @@ -18086,43 +17990,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 55, - "start": 52, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_add_access_config_sync.py" + "title": "compute_v1_generated_instance_groups_list_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.add_network_interface", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.list", "method": { - "fullName": "google.cloud.compute.v1.Instances.AddNetworkInterface", + "fullName": "google.cloud.compute.v1.InstanceGroups.List", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "AddNetworkInterface" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddNetworkInterfaceInstanceRequest" + "type": "google.cloud.compute_v1.types.ListInstanceGroupsRequest" }, { "name": "project", @@ -18132,14 +18036,6 @@ "name": "zone", "type": "str" }, - { - "name": "instance", - "type": "str" - }, - { - "name": "network_interface_resource", - "type": "google.cloud.compute_v1.types.NetworkInterface" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -18153,14 +18049,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_network_interface" + "resultType": "google.cloud.compute_v1.services.instance_groups.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for AddNetworkInterface", - "file": "compute_v1_generated_instances_add_network_interface_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_instance_groups_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_AddNetworkInterface_sync", + "regionTag": "compute_v1_generated_InstanceGroups_List_sync", "segments": [ { "end": 53, @@ -18178,43 +18074,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_add_network_interface_sync.py" + "title": "compute_v1_generated_instance_groups_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.add_resource_policies", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.remove_instances", "method": { - "fullName": "google.cloud.compute.v1.Instances.AddResourcePolicies", + "fullName": "google.cloud.compute.v1.InstanceGroups.RemoveInstances", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "AddResourcePolicies" + "shortName": "RemoveInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddResourcePoliciesInstanceRequest" + "type": "google.cloud.compute_v1.types.RemoveInstancesInstanceGroupRequest" }, { "name": "project", @@ -18225,12 +18121,12 @@ "type": "str" }, { - "name": "instance", + "name": "instance_group", "type": "str" }, { - "name": "instances_add_resource_policies_request_resource", - "type": "google.cloud.compute_v1.types.InstancesAddResourcePoliciesRequest" + "name": "instance_groups_remove_instances_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupsRemoveInstancesRequest" }, { "name": "retry", @@ -18246,13 +18142,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_resource_policies" + "shortName": "remove_instances" }, - "description": "Sample for AddResourcePolicies", - "file": "compute_v1_generated_instances_add_resource_policies_sync.py", + "description": "Sample for RemoveInstances", + "file": "compute_v1_generated_instance_groups_remove_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_AddResourcePolicies_sync", + "regionTag": "compute_v1_generated_InstanceGroups_RemoveInstances_sync", "segments": [ { "end": 53, @@ -18285,33 +18181,45 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_add_resource_policies_sync.py" + "title": "compute_v1_generated_instance_groups_remove_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.set_named_ports", "method": { - "fullName": "google.cloud.compute.v1.Instances.AggregatedList", + "fullName": "google.cloud.compute.v1.InstanceGroups.SetNamedPorts", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "AggregatedList" + "shortName": "SetNamedPorts" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListInstancesRequest" + "type": "google.cloud.compute_v1.types.SetNamedPortsInstanceGroupRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance_group", + "type": "str" + }, + { + "name": "instance_groups_set_named_ports_request_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupsSetNamedPortsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -18325,22 +18233,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instances.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_named_ports" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_instances_aggregated_list_sync.py", + "description": "Sample for SetNamedPorts", + "file": "compute_v1_generated_instance_groups_set_named_ports_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_AggregatedList_sync", + "regionTag": "compute_v1_generated_InstanceGroups_SetNamedPorts_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -18350,43 +18258,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_aggregated_list_sync.py" + "title": "compute_v1_generated_instance_groups_set_named_ports_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceGroupsClient", + "shortName": "InstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.attach_disk", + "fullName": "google.cloud.compute_v1.InstanceGroupsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.Instances.AttachDisk", + "fullName": "google.cloud.compute.v1.InstanceGroups.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceGroups", + "shortName": "InstanceGroups" }, - "shortName": "AttachDisk" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AttachDiskInstanceRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsInstanceGroupRequest" }, { "name": "project", @@ -18397,12 +18305,12 @@ "type": "str" }, { - "name": "instance", + "name": "resource", "type": "str" }, { - "name": "attached_disk_resource", - "type": "google.cloud.compute_v1.types.AttachedDisk" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -18417,14 +18325,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "attach_disk" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for AttachDisk", - "file": "compute_v1_generated_instances_attach_disk_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_instance_groups_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_AttachDisk_sync", + "regionTag": "compute_v1_generated_InstanceGroups_TestIamPermissions_sync", "segments": [ { "end": 53, @@ -18457,28 +18365,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_attach_disk_sync.py" + "title": "compute_v1_generated_instance_groups_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceSettingsServiceClient", + "shortName": "InstanceSettingsServiceClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.bulk_insert", + "fullName": "google.cloud.compute_v1.InstanceSettingsServiceClient.get", "method": { - "fullName": "google.cloud.compute.v1.Instances.BulkInsert", + "fullName": "google.cloud.compute.v1.InstanceSettingsService.Get", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceSettingsService", + "shortName": "InstanceSettingsService" }, - "shortName": "BulkInsert" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.BulkInsertInstanceRequest" + "type": "google.cloud.compute_v1.types.GetInstanceSettingRequest" }, { "name": "project", @@ -18488,10 +18396,6 @@ "name": "zone", "type": "str" }, - { - "name": "bulk_insert_instance_resource_resource", - "type": "google.cloud.compute_v1.types.BulkInsertInstanceResource" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -18505,14 +18409,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "bulk_insert" + "resultType": "google.cloud.compute_v1.types.InstanceSettings", + "shortName": "get" }, - "description": "Sample for BulkInsert", - "file": "compute_v1_generated_instances_bulk_insert_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_instance_settings_service_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_BulkInsert_sync", + "regionTag": "compute_v1_generated_InstanceSettingsService_Get_sync", "segments": [ { "end": 52, @@ -18545,28 +18449,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_bulk_insert_sync.py" + "title": "compute_v1_generated_instance_settings_service_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceSettingsServiceClient", + "shortName": "InstanceSettingsServiceClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.delete_access_config", + "fullName": "google.cloud.compute_v1.InstanceSettingsServiceClient.patch", "method": { - "fullName": "google.cloud.compute.v1.Instances.DeleteAccessConfig", + "fullName": "google.cloud.compute.v1.InstanceSettingsService.Patch", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceSettingsService", + "shortName": "InstanceSettingsService" }, - "shortName": "DeleteAccessConfig" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteAccessConfigInstanceRequest" + "type": "google.cloud.compute_v1.types.PatchInstanceSettingRequest" }, { "name": "project", @@ -18577,16 +18481,8 @@ "type": "str" }, { - "name": "instance", - "type": "str" - }, - { - "name": "access_config", - "type": "str" - }, - { - "name": "network_interface", - "type": "str" + "name": "instance_settings_resource", + "type": "google.cloud.compute_v1.types.InstanceSettings" }, { "name": "retry", @@ -18602,21 +18498,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete_access_config" + "shortName": "patch" }, - "description": "Sample for DeleteAccessConfig", - "file": "compute_v1_generated_instances_delete_access_config_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_instance_settings_service_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_DeleteAccessConfig_sync", + "regionTag": "compute_v1_generated_InstanceSettingsService_Patch_sync", "segments": [ { - "end": 55, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 52, "start": 27, "type": "SHORT" }, @@ -18626,60 +18522,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 49, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 52, - "start": 50, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_delete_access_config_sync.py" + "title": "compute_v1_generated_instance_settings_service_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.delete_network_interface", + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.Instances.DeleteNetworkInterface", + "fullName": "google.cloud.compute.v1.InstanceTemplates.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" }, - "shortName": "DeleteNetworkInterface" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteNetworkInterfaceInstanceRequest" + "type": "google.cloud.compute_v1.types.AggregatedListInstanceTemplatesRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "instance", - "type": "str" - }, - { - "name": "network_interface_name", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -18693,22 +18577,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete_network_interface" + "resultType": "google.cloud.compute_v1.services.instance_templates.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for DeleteNetworkInterface", - "file": "compute_v1_generated_instances_delete_network_interface_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_instance_templates_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_DeleteNetworkInterface_sync", + "regionTag": "compute_v1_generated_InstanceTemplates_AggregatedList_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -18718,54 +18602,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_delete_network_interface_sync.py" + "title": "compute_v1_generated_instance_templates_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.delete", + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.Instances.Delete", + "fullName": "google.cloud.compute.v1.InstanceTemplates.Delete", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" }, "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInstanceRequest" + "type": "google.cloud.compute_v1.types.DeleteInstanceTemplateRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance", + "name": "instance_template", "type": "str" }, { @@ -18785,18 +18665,18 @@ "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_instances_delete_sync.py", + "file": "compute_v1_generated_instance_templates_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_Delete_sync", + "regionTag": "compute_v1_generated_InstanceTemplates_Delete_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -18806,58 +18686,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_delete_sync.py" + "title": "compute_v1_generated_instance_templates_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.detach_disk", + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Instances.DetachDisk", + "fullName": "google.cloud.compute.v1.InstanceTemplates.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" }, - "shortName": "DetachDisk" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DetachDiskInstanceRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyInstanceTemplateRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance", - "type": "str" - }, - { - "name": "device_name", + "name": "resource", "type": "str" }, { @@ -18873,22 +18745,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "detach_disk" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for DetachDisk", - "file": "compute_v1_generated_instances_detach_disk_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_instance_templates_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_DetachDisk_sync", + "regionTag": "compute_v1_generated_InstanceTemplates_GetIamPolicy_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -18898,58 +18770,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_detach_disk_sync.py" + "title": "compute_v1_generated_instance_templates_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.get_effective_firewalls", + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.get", "method": { - "fullName": "google.cloud.compute.v1.Instances.GetEffectiveFirewalls", + "fullName": "google.cloud.compute.v1.InstanceTemplates.Get", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" }, - "shortName": "GetEffectiveFirewalls" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetEffectiveFirewallsInstanceRequest" + "type": "google.cloud.compute_v1.types.GetInstanceTemplateRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance", - "type": "str" - }, - { - "name": "network_interface", + "name": "instance_template", "type": "str" }, { @@ -18965,22 +18829,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstancesGetEffectiveFirewallsResponse", - "shortName": "get_effective_firewalls" + "resultType": "google.cloud.compute_v1.types.InstanceTemplate", + "shortName": "get" }, - "description": "Sample for GetEffectiveFirewalls", - "file": "compute_v1_generated_instances_get_effective_firewalls_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_instance_templates_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_GetEffectiveFirewalls_sync", + "regionTag": "compute_v1_generated_InstanceTemplates_Get_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -18990,55 +18854,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_get_effective_firewalls_sync.py" + "title": "compute_v1_generated_instance_templates_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.get_guest_attributes", + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.Instances.GetGuestAttributes", + "fullName": "google.cloud.compute.v1.InstanceTemplates.Insert", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" }, - "shortName": "GetGuestAttributes" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetGuestAttributesInstanceRequest" + "type": "google.cloud.compute_v1.types.InsertInstanceTemplateRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "instance", - "type": "str" + "name": "instance_template_resource", + "type": "google.cloud.compute_v1.types.InstanceTemplate" }, { "name": "retry", @@ -19053,22 +18913,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.GuestAttributes", - "shortName": "get_guest_attributes" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for GetGuestAttributes", - "file": "compute_v1_generated_instances_get_guest_attributes_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_instance_templates_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_GetGuestAttributes_sync", + "regionTag": "compute_v1_generated_InstanceTemplates_Insert_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -19078,56 +18938,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_get_guest_attributes_sync.py" + "title": "compute_v1_generated_instance_templates_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.list", "method": { - "fullName": "google.cloud.compute.v1.Instances.GetIamPolicy", + "fullName": "google.cloud.compute.v1.InstanceTemplates.List", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" }, - "shortName": "GetIamPolicy" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyInstanceRequest" + "type": "google.cloud.compute_v1.types.ListInstanceTemplatesRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "resource", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -19141,22 +18993,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.cloud.compute_v1.services.instance_templates.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_instances_get_iam_policy_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_instance_templates_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_InstanceTemplates_List_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -19166,55 +19018,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_get_iam_policy_sync.py" + "title": "compute_v1_generated_instance_templates_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.get_screenshot", + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Instances.GetScreenshot", + "fullName": "google.cloud.compute.v1.InstanceTemplates.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" }, - "shortName": "GetScreenshot" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetScreenshotInstanceRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyInstanceTemplateRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "resource", "type": "str" }, { - "name": "instance", - "type": "str" + "name": "global_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" }, { "name": "retry", @@ -19229,22 +19081,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Screenshot", - "shortName": "get_screenshot" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for GetScreenshot", - "file": "compute_v1_generated_instances_get_screenshot_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_instance_templates_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_GetScreenshot_sync", + "regionTag": "compute_v1_generated_InstanceTemplates_SetIamPolicy_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -19254,55 +19106,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_get_screenshot_sync.py" + "title": "compute_v1_generated_instance_templates_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient", + "shortName": "InstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.get_serial_port_output", + "fullName": "google.cloud.compute_v1.InstanceTemplatesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.Instances.GetSerialPortOutput", + "fullName": "google.cloud.compute.v1.InstanceTemplates.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" + "fullName": "google.cloud.compute.v1.InstanceTemplates", + "shortName": "InstanceTemplates" }, - "shortName": "GetSerialPortOutput" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetSerialPortOutputInstanceRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsInstanceTemplateRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "resource", "type": "str" }, { - "name": "instance", - "type": "str" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -19317,22 +19169,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SerialPortOutput", - "shortName": "get_serial_port_output" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for GetSerialPortOutput", - "file": "compute_v1_generated_instances_get_serial_port_output_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_instance_templates_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_GetSerialPortOutput_sync", + "regionTag": "compute_v1_generated_InstanceTemplates_TestIamPermissions_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -19342,22 +19194,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_get_serial_port_output_sync.py" + "title": "compute_v1_generated_instance_templates_test_iam_permissions_sync.py" }, { "canonical": true, @@ -19366,19 +19218,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.get_shielded_instance_identity", + "fullName": "google.cloud.compute_v1.InstancesClient.add_access_config", "method": { - "fullName": "google.cloud.compute.v1.Instances.GetShieldedInstanceIdentity", + "fullName": "google.cloud.compute.v1.Instances.AddAccessConfig", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "GetShieldedInstanceIdentity" + "shortName": "AddAccessConfig" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetShieldedInstanceIdentityInstanceRequest" + "type": "google.cloud.compute_v1.types.AddAccessConfigInstanceRequest" }, { "name": "project", @@ -19392,6 +19244,14 @@ "name": "instance", "type": "str" }, + { + "name": "network_interface", + "type": "str" + }, + { + "name": "access_config_resource", + "type": "google.cloud.compute_v1.types.AccessConfig" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -19405,22 +19265,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.ShieldedInstanceIdentity", - "shortName": "get_shielded_instance_identity" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_access_config" }, - "description": "Sample for GetShieldedInstanceIdentity", - "file": "compute_v1_generated_instances_get_shielded_instance_identity_sync.py", + "description": "Sample for AddAccessConfig", + "file": "compute_v1_generated_instances_add_access_config_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_GetShieldedInstanceIdentity_sync", + "regionTag": "compute_v1_generated_Instances_AddAccessConfig_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -19430,22 +19290,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_get_shielded_instance_identity_sync.py" + "title": "compute_v1_generated_instances_add_access_config_sync.py" }, { "canonical": true, @@ -19454,19 +19314,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.get", + "fullName": "google.cloud.compute_v1.InstancesClient.add_network_interface", "method": { - "fullName": "google.cloud.compute.v1.Instances.Get", + "fullName": "google.cloud.compute.v1.Instances.AddNetworkInterface", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "Get" + "shortName": "AddNetworkInterface" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInstanceRequest" + "type": "google.cloud.compute_v1.types.AddNetworkInterfaceInstanceRequest" }, { "name": "project", @@ -19480,6 +19340,10 @@ "name": "instance", "type": "str" }, + { + "name": "network_interface_resource", + "type": "google.cloud.compute_v1.types.NetworkInterface" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -19493,14 +19357,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Instance", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_network_interface" }, - "description": "Sample for Get", - "file": "compute_v1_generated_instances_get_sync.py", + "description": "Sample for AddNetworkInterface", + "file": "compute_v1_generated_instances_add_network_interface_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_Get_sync", + "regionTag": "compute_v1_generated_Instances_AddNetworkInterface_sync", "segments": [ { "end": 53, @@ -19533,7 +19397,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_get_sync.py" + "title": "compute_v1_generated_instances_add_network_interface_sync.py" }, { "canonical": true, @@ -19542,19 +19406,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.insert", + "fullName": "google.cloud.compute_v1.InstancesClient.add_resource_policies", "method": { - "fullName": "google.cloud.compute.v1.Instances.Insert", + "fullName": "google.cloud.compute.v1.Instances.AddResourcePolicies", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "Insert" + "shortName": "AddResourcePolicies" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInstanceRequest" + "type": "google.cloud.compute_v1.types.AddResourcePoliciesInstanceRequest" }, { "name": "project", @@ -19565,8 +19429,12 @@ "type": "str" }, { - "name": "instance_resource", - "type": "google.cloud.compute_v1.types.Instance" + "name": "instance", + "type": "str" + }, + { + "name": "instances_add_resource_policies_request_resource", + "type": "google.cloud.compute_v1.types.InstancesAddResourcePoliciesRequest" }, { "name": "retry", @@ -19582,21 +19450,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "add_resource_policies" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_instances_insert_sync.py", + "description": "Sample for AddResourcePolicies", + "file": "compute_v1_generated_instances_add_resource_policies_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_Insert_sync", + "regionTag": "compute_v1_generated_Instances_AddResourcePolicies_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -19606,22 +19474,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_insert_sync.py" + "title": "compute_v1_generated_instances_add_resource_policies_sync.py" }, { "canonical": true, @@ -19630,32 +19498,24 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.list_referrers", + "fullName": "google.cloud.compute_v1.InstancesClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.Instances.ListReferrers", + "fullName": "google.cloud.compute.v1.Instances.AggregatedList", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "ListReferrers" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListReferrersInstancesRequest" + "type": "google.cloud.compute_v1.types.AggregatedListInstancesRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "instance", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -19669,22 +19529,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instances.pagers.ListReferrersPager", - "shortName": "list_referrers" + "resultType": "google.cloud.compute_v1.services.instances.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for ListReferrers", - "file": "compute_v1_generated_instances_list_referrers_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_instances_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_ListReferrers_sync", + "regionTag": "compute_v1_generated_Instances_AggregatedList_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -19694,22 +19554,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_list_referrers_sync.py" + "title": "compute_v1_generated_instances_aggregated_list_sync.py" }, { "canonical": true, @@ -19718,19 +19578,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.list", + "fullName": "google.cloud.compute_v1.InstancesClient.attach_disk", "method": { - "fullName": "google.cloud.compute.v1.Instances.List", + "fullName": "google.cloud.compute.v1.Instances.AttachDisk", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "List" + "shortName": "AttachDisk" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInstancesRequest" + "type": "google.cloud.compute_v1.types.AttachDiskInstanceRequest" }, { "name": "project", @@ -19740,6 +19600,14 @@ "name": "zone", "type": "str" }, + { + "name": "instance", + "type": "str" + }, + { + "name": "attached_disk_resource", + "type": "google.cloud.compute_v1.types.AttachedDisk" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -19753,14 +19621,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instances.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "attach_disk" }, - "description": "Sample for List", - "file": "compute_v1_generated_instances_list_sync.py", + "description": "Sample for AttachDisk", + "file": "compute_v1_generated_instances_attach_disk_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_List_sync", + "regionTag": "compute_v1_generated_Instances_AttachDisk_sync", "segments": [ { "end": 53, @@ -19778,22 +19646,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_list_sync.py" + "title": "compute_v1_generated_instances_attach_disk_sync.py" }, { "canonical": true, @@ -19802,19 +19670,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.perform_maintenance", + "fullName": "google.cloud.compute_v1.InstancesClient.bulk_insert", "method": { - "fullName": "google.cloud.compute.v1.Instances.PerformMaintenance", + "fullName": "google.cloud.compute.v1.Instances.BulkInsert", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "PerformMaintenance" + "shortName": "BulkInsert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PerformMaintenanceInstanceRequest" + "type": "google.cloud.compute_v1.types.BulkInsertInstanceRequest" }, { "name": "project", @@ -19825,8 +19693,8 @@ "type": "str" }, { - "name": "instance", - "type": "str" + "name": "bulk_insert_instance_resource_resource", + "type": "google.cloud.compute_v1.types.BulkInsertInstanceResource" }, { "name": "retry", @@ -19842,21 +19710,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "perform_maintenance" + "shortName": "bulk_insert" }, - "description": "Sample for PerformMaintenance", - "file": "compute_v1_generated_instances_perform_maintenance_sync.py", + "description": "Sample for BulkInsert", + "file": "compute_v1_generated_instances_bulk_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_PerformMaintenance_sync", + "regionTag": "compute_v1_generated_Instances_BulkInsert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -19866,22 +19734,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_perform_maintenance_sync.py" + "title": "compute_v1_generated_instances_bulk_insert_sync.py" }, { "canonical": true, @@ -19890,19 +19758,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.remove_resource_policies", + "fullName": "google.cloud.compute_v1.InstancesClient.delete_access_config", "method": { - "fullName": "google.cloud.compute.v1.Instances.RemoveResourcePolicies", + "fullName": "google.cloud.compute.v1.Instances.DeleteAccessConfig", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "RemoveResourcePolicies" + "shortName": "DeleteAccessConfig" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveResourcePoliciesInstanceRequest" + "type": "google.cloud.compute_v1.types.DeleteAccessConfigInstanceRequest" }, { "name": "project", @@ -19917,8 +19785,12 @@ "type": "str" }, { - "name": "instances_remove_resource_policies_request_resource", - "type": "google.cloud.compute_v1.types.InstancesRemoveResourcePoliciesRequest" + "name": "access_config", + "type": "str" + }, + { + "name": "network_interface", + "type": "str" }, { "name": "retry", @@ -19934,21 +19806,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_resource_policies" + "shortName": "delete_access_config" }, - "description": "Sample for RemoveResourcePolicies", - "file": "compute_v1_generated_instances_remove_resource_policies_sync.py", + "description": "Sample for DeleteAccessConfig", + "file": "compute_v1_generated_instances_delete_access_config_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_RemoveResourcePolicies_sync", + "regionTag": "compute_v1_generated_Instances_DeleteAccessConfig_sync", "segments": [ { - "end": 53, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 55, "start": 27, "type": "SHORT" }, @@ -19958,22 +19830,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 49, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 52, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_remove_resource_policies_sync.py" + "title": "compute_v1_generated_instances_delete_access_config_sync.py" }, { "canonical": true, @@ -19982,19 +19854,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.report_host_as_faulty", + "fullName": "google.cloud.compute_v1.InstancesClient.delete_network_interface", "method": { - "fullName": "google.cloud.compute.v1.Instances.ReportHostAsFaulty", + "fullName": "google.cloud.compute.v1.Instances.DeleteNetworkInterface", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "ReportHostAsFaulty" + "shortName": "DeleteNetworkInterface" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ReportHostAsFaultyInstanceRequest" + "type": "google.cloud.compute_v1.types.DeleteNetworkInterfaceInstanceRequest" }, { "name": "project", @@ -20009,8 +19881,8 @@ "type": "str" }, { - "name": "instances_report_host_as_faulty_request_resource", - "type": "google.cloud.compute_v1.types.InstancesReportHostAsFaultyRequest" + "name": "network_interface_name", + "type": "str" }, { "name": "retry", @@ -20026,21 +19898,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "report_host_as_faulty" + "shortName": "delete_network_interface" }, - "description": "Sample for ReportHostAsFaulty", - "file": "compute_v1_generated_instances_report_host_as_faulty_sync.py", + "description": "Sample for DeleteNetworkInterface", + "file": "compute_v1_generated_instances_delete_network_interface_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_ReportHostAsFaulty_sync", + "regionTag": "compute_v1_generated_Instances_DeleteNetworkInterface_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -20050,22 +19922,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_report_host_as_faulty_sync.py" + "title": "compute_v1_generated_instances_delete_network_interface_sync.py" }, { "canonical": true, @@ -20074,19 +19946,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.reset", + "fullName": "google.cloud.compute_v1.InstancesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.Instances.Reset", + "fullName": "google.cloud.compute.v1.Instances.Delete", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "Reset" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ResetInstanceRequest" + "type": "google.cloud.compute_v1.types.DeleteInstanceRequest" }, { "name": "project", @@ -20114,13 +19986,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "reset" + "shortName": "delete" }, - "description": "Sample for Reset", - "file": "compute_v1_generated_instances_reset_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_instances_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_Reset_sync", + "regionTag": "compute_v1_generated_Instances_Delete_sync", "segments": [ { "end": 53, @@ -20153,7 +20025,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_reset_sync.py" + "title": "compute_v1_generated_instances_delete_sync.py" }, { "canonical": true, @@ -20162,19 +20034,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.resume", + "fullName": "google.cloud.compute_v1.InstancesClient.detach_disk", "method": { - "fullName": "google.cloud.compute.v1.Instances.Resume", + "fullName": "google.cloud.compute.v1.Instances.DetachDisk", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "Resume" + "shortName": "DetachDisk" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ResumeInstanceRequest" + "type": "google.cloud.compute_v1.types.DetachDiskInstanceRequest" }, { "name": "project", @@ -20188,6 +20060,10 @@ "name": "instance", "type": "str" }, + { + "name": "device_name", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -20202,21 +20078,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "resume" + "shortName": "detach_disk" }, - "description": "Sample for Resume", - "file": "compute_v1_generated_instances_resume_sync.py", + "description": "Sample for DetachDisk", + "file": "compute_v1_generated_instances_detach_disk_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_Resume_sync", + "regionTag": "compute_v1_generated_Instances_DetachDisk_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -20226,22 +20102,114 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, + { + "end": 55, + "start": 52, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_instances_detach_disk_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" + }, + "fullName": "google.cloud.compute_v1.InstancesClient.get_effective_firewalls", + "method": { + "fullName": "google.cloud.compute.v1.Instances.GetEffectiveFirewalls", + "service": { + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" + }, + "shortName": "GetEffectiveFirewalls" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetEffectiveFirewallsInstanceRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "network_interface", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.InstancesGetEffectiveFirewallsResponse", + "shortName": "get_effective_firewalls" + }, + "description": "Sample for GetEffectiveFirewalls", + "file": "compute_v1_generated_instances_get_effective_firewalls_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_Instances_GetEffectiveFirewalls_sync", + "segments": [ { "end": 54, - "start": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 54, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 51, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_resume_sync.py" + "title": "compute_v1_generated_instances_get_effective_firewalls_sync.py" }, { "canonical": true, @@ -20250,19 +20218,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.send_diagnostic_interrupt", + "fullName": "google.cloud.compute_v1.InstancesClient.get_guest_attributes", "method": { - "fullName": "google.cloud.compute.v1.Instances.SendDiagnosticInterrupt", + "fullName": "google.cloud.compute.v1.Instances.GetGuestAttributes", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SendDiagnosticInterrupt" + "shortName": "GetGuestAttributes" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SendDiagnosticInterruptInstanceRequest" + "type": "google.cloud.compute_v1.types.GetGuestAttributesInstanceRequest" }, { "name": "project", @@ -20289,14 +20257,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SendDiagnosticInterruptInstanceResponse", - "shortName": "send_diagnostic_interrupt" + "resultType": "google.cloud.compute_v1.types.GuestAttributes", + "shortName": "get_guest_attributes" }, - "description": "Sample for SendDiagnosticInterrupt", - "file": "compute_v1_generated_instances_send_diagnostic_interrupt_sync.py", + "description": "Sample for GetGuestAttributes", + "file": "compute_v1_generated_instances_get_guest_attributes_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SendDiagnosticInterrupt_sync", + "regionTag": "compute_v1_generated_Instances_GetGuestAttributes_sync", "segments": [ { "end": 53, @@ -20329,7 +20297,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_send_diagnostic_interrupt_sync.py" + "title": "compute_v1_generated_instances_get_guest_attributes_sync.py" }, { "canonical": true, @@ -20338,19 +20306,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_deletion_protection", + "fullName": "google.cloud.compute_v1.InstancesClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetDeletionProtection", + "fullName": "google.cloud.compute.v1.Instances.GetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetDeletionProtection" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetDeletionProtectionInstanceRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyInstanceRequest" }, { "name": "project", @@ -20377,14 +20345,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_deletion_protection" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for SetDeletionProtection", - "file": "compute_v1_generated_instances_set_deletion_protection_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_instances_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetDeletionProtection_sync", + "regionTag": "compute_v1_generated_Instances_GetIamPolicy_sync", "segments": [ { "end": 53, @@ -20417,7 +20385,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_deletion_protection_sync.py" + "title": "compute_v1_generated_instances_get_iam_policy_sync.py" }, { "canonical": true, @@ -20426,19 +20394,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_disk_auto_delete", + "fullName": "google.cloud.compute_v1.InstancesClient.get_screenshot", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetDiskAutoDelete", + "fullName": "google.cloud.compute.v1.Instances.GetScreenshot", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetDiskAutoDelete" + "shortName": "GetScreenshot" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetDiskAutoDeleteInstanceRequest" + "type": "google.cloud.compute_v1.types.GetScreenshotInstanceRequest" }, { "name": "project", @@ -20452,14 +20420,6 @@ "name": "instance", "type": "str" }, - { - "name": "auto_delete", - "type": "bool" - }, - { - "name": "device_name", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -20473,22 +20433,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_disk_auto_delete" + "resultType": "google.cloud.compute_v1.types.Screenshot", + "shortName": "get_screenshot" }, - "description": "Sample for SetDiskAutoDelete", - "file": "compute_v1_generated_instances_set_disk_auto_delete_sync.py", + "description": "Sample for GetScreenshot", + "file": "compute_v1_generated_instances_get_screenshot_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetDiskAutoDelete_sync", + "regionTag": "compute_v1_generated_Instances_GetScreenshot_sync", "segments": [ { - "end": 55, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 53, "start": 27, "type": "SHORT" }, @@ -20498,22 +20458,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 49, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 52, - "start": 50, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_disk_auto_delete_sync.py" + "title": "compute_v1_generated_instances_get_screenshot_sync.py" }, { "canonical": true, @@ -20522,19 +20482,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.InstancesClient.get_serial_port_output", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetIamPolicy", + "fullName": "google.cloud.compute.v1.Instances.GetSerialPortOutput", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetIamPolicy" + "shortName": "GetSerialPortOutput" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyInstanceRequest" + "type": "google.cloud.compute_v1.types.GetSerialPortOutputInstanceRequest" }, { "name": "project", @@ -20545,13 +20505,9 @@ "type": "str" }, { - "name": "resource", + "name": "instance", "type": "str" }, - { - "name": "zone_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.ZoneSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -20565,14 +20521,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.cloud.compute_v1.types.SerialPortOutput", + "shortName": "get_serial_port_output" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_instances_set_iam_policy_sync.py", + "description": "Sample for GetSerialPortOutput", + "file": "compute_v1_generated_instances_get_serial_port_output_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_Instances_GetSerialPortOutput_sync", "segments": [ { "end": 53, @@ -20605,7 +20561,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_iam_policy_sync.py" + "title": "compute_v1_generated_instances_get_serial_port_output_sync.py" }, { "canonical": true, @@ -20614,19 +20570,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_labels", + "fullName": "google.cloud.compute_v1.InstancesClient.get_shielded_instance_identity", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetLabels", + "fullName": "google.cloud.compute.v1.Instances.GetShieldedInstanceIdentity", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetLabels" + "shortName": "GetShieldedInstanceIdentity" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsInstanceRequest" + "type": "google.cloud.compute_v1.types.GetShieldedInstanceIdentityInstanceRequest" }, { "name": "project", @@ -20640,10 +20596,6 @@ "name": "instance", "type": "str" }, - { - "name": "instances_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.InstancesSetLabelsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -20657,14 +20609,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "resultType": "google.cloud.compute_v1.types.ShieldedInstanceIdentity", + "shortName": "get_shielded_instance_identity" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_instances_set_labels_sync.py", + "description": "Sample for GetShieldedInstanceIdentity", + "file": "compute_v1_generated_instances_get_shielded_instance_identity_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetLabels_sync", + "regionTag": "compute_v1_generated_Instances_GetShieldedInstanceIdentity_sync", "segments": [ { "end": 53, @@ -20697,7 +20649,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_labels_sync.py" + "title": "compute_v1_generated_instances_get_shielded_instance_identity_sync.py" }, { "canonical": true, @@ -20706,19 +20658,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_machine_resources", + "fullName": "google.cloud.compute_v1.InstancesClient.get", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetMachineResources", + "fullName": "google.cloud.compute.v1.Instances.Get", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetMachineResources" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetMachineResourcesInstanceRequest" + "type": "google.cloud.compute_v1.types.GetInstanceRequest" }, { "name": "project", @@ -20732,10 +20684,6 @@ "name": "instance", "type": "str" }, - { - "name": "instances_set_machine_resources_request_resource", - "type": "google.cloud.compute_v1.types.InstancesSetMachineResourcesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -20749,14 +20697,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_machine_resources" + "resultType": "google.cloud.compute_v1.types.Instance", + "shortName": "get" }, - "description": "Sample for SetMachineResources", - "file": "compute_v1_generated_instances_set_machine_resources_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_instances_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetMachineResources_sync", + "regionTag": "compute_v1_generated_Instances_Get_sync", "segments": [ { "end": 53, @@ -20789,7 +20737,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_machine_resources_sync.py" + "title": "compute_v1_generated_instances_get_sync.py" }, { "canonical": true, @@ -20798,19 +20746,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_machine_type", + "fullName": "google.cloud.compute_v1.InstancesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetMachineType", + "fullName": "google.cloud.compute.v1.Instances.Insert", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetMachineType" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetMachineTypeInstanceRequest" + "type": "google.cloud.compute_v1.types.InsertInstanceRequest" }, { "name": "project", @@ -20821,12 +20769,8 @@ "type": "str" }, { - "name": "instance", - "type": "str" - }, - { - "name": "instances_set_machine_type_request_resource", - "type": "google.cloud.compute_v1.types.InstancesSetMachineTypeRequest" + "name": "instance_resource", + "type": "google.cloud.compute_v1.types.Instance" }, { "name": "retry", @@ -20842,21 +20786,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_machine_type" + "shortName": "insert" }, - "description": "Sample for SetMachineType", - "file": "compute_v1_generated_instances_set_machine_type_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_instances_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetMachineType_sync", + "regionTag": "compute_v1_generated_Instances_Insert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -20866,22 +20810,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_machine_type_sync.py" + "title": "compute_v1_generated_instances_insert_sync.py" }, { "canonical": true, @@ -20890,19 +20834,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_metadata", + "fullName": "google.cloud.compute_v1.InstancesClient.list_referrers", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetMetadata", + "fullName": "google.cloud.compute.v1.Instances.ListReferrers", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetMetadata" + "shortName": "ListReferrers" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetMetadataInstanceRequest" + "type": "google.cloud.compute_v1.types.ListReferrersInstancesRequest" }, { "name": "project", @@ -20916,10 +20860,6 @@ "name": "instance", "type": "str" }, - { - "name": "metadata_resource", - "type": "google.cloud.compute_v1.types.Metadata" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -20933,22 +20873,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_metadata" + "resultType": "google.cloud.compute_v1.services.instances.pagers.ListReferrersPager", + "shortName": "list_referrers" }, - "description": "Sample for SetMetadata", - "file": "compute_v1_generated_instances_set_metadata_sync.py", + "description": "Sample for ListReferrers", + "file": "compute_v1_generated_instances_list_referrers_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetMetadata_sync", + "regionTag": "compute_v1_generated_Instances_ListReferrers_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -20968,12 +20908,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_metadata_sync.py" + "title": "compute_v1_generated_instances_list_referrers_sync.py" }, { "canonical": true, @@ -20982,19 +20922,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_min_cpu_platform", + "fullName": "google.cloud.compute_v1.InstancesClient.list", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetMinCpuPlatform", + "fullName": "google.cloud.compute.v1.Instances.List", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetMinCpuPlatform" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetMinCpuPlatformInstanceRequest" + "type": "google.cloud.compute_v1.types.ListInstancesRequest" }, { "name": "project", @@ -21004,14 +20944,6 @@ "name": "zone", "type": "str" }, - { - "name": "instance", - "type": "str" - }, - { - "name": "instances_set_min_cpu_platform_request_resource", - "type": "google.cloud.compute_v1.types.InstancesSetMinCpuPlatformRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -21025,14 +20957,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_min_cpu_platform" + "resultType": "google.cloud.compute_v1.services.instances.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for SetMinCpuPlatform", - "file": "compute_v1_generated_instances_set_min_cpu_platform_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_instances_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetMinCpuPlatform_sync", + "regionTag": "compute_v1_generated_Instances_List_sync", "segments": [ { "end": 53, @@ -21050,22 +20982,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_min_cpu_platform_sync.py" + "title": "compute_v1_generated_instances_list_sync.py" }, { "canonical": true, @@ -21074,19 +21006,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_name", + "fullName": "google.cloud.compute_v1.InstancesClient.perform_maintenance", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetName", + "fullName": "google.cloud.compute.v1.Instances.PerformMaintenance", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetName" + "shortName": "PerformMaintenance" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetNameInstanceRequest" + "type": "google.cloud.compute_v1.types.PerformMaintenanceInstanceRequest" }, { "name": "project", @@ -21100,10 +21032,6 @@ "name": "instance", "type": "str" }, - { - "name": "instances_set_name_request_resource", - "type": "google.cloud.compute_v1.types.InstancesSetNameRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -21118,13 +21046,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_name" + "shortName": "perform_maintenance" }, - "description": "Sample for SetName", - "file": "compute_v1_generated_instances_set_name_sync.py", + "description": "Sample for PerformMaintenance", + "file": "compute_v1_generated_instances_perform_maintenance_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetName_sync", + "regionTag": "compute_v1_generated_Instances_PerformMaintenance_sync", "segments": [ { "end": 53, @@ -21157,7 +21085,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_name_sync.py" + "title": "compute_v1_generated_instances_perform_maintenance_sync.py" }, { "canonical": true, @@ -21166,19 +21094,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_scheduling", + "fullName": "google.cloud.compute_v1.InstancesClient.remove_resource_policies", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetScheduling", + "fullName": "google.cloud.compute.v1.Instances.RemoveResourcePolicies", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetScheduling" + "shortName": "RemoveResourcePolicies" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetSchedulingInstanceRequest" + "type": "google.cloud.compute_v1.types.RemoveResourcePoliciesInstanceRequest" }, { "name": "project", @@ -21193,8 +21121,8 @@ "type": "str" }, { - "name": "scheduling_resource", - "type": "google.cloud.compute_v1.types.Scheduling" + "name": "instances_remove_resource_policies_request_resource", + "type": "google.cloud.compute_v1.types.InstancesRemoveResourcePoliciesRequest" }, { "name": "retry", @@ -21210,13 +21138,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_scheduling" + "shortName": "remove_resource_policies" }, - "description": "Sample for SetScheduling", - "file": "compute_v1_generated_instances_set_scheduling_sync.py", + "description": "Sample for RemoveResourcePolicies", + "file": "compute_v1_generated_instances_remove_resource_policies_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetScheduling_sync", + "regionTag": "compute_v1_generated_Instances_RemoveResourcePolicies_sync", "segments": [ { "end": 53, @@ -21249,7 +21177,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_scheduling_sync.py" + "title": "compute_v1_generated_instances_remove_resource_policies_sync.py" }, { "canonical": true, @@ -21258,19 +21186,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_security_policy", + "fullName": "google.cloud.compute_v1.InstancesClient.report_host_as_faulty", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetSecurityPolicy", + "fullName": "google.cloud.compute.v1.Instances.ReportHostAsFaulty", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetSecurityPolicy" + "shortName": "ReportHostAsFaulty" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetSecurityPolicyInstanceRequest" + "type": "google.cloud.compute_v1.types.ReportHostAsFaultyInstanceRequest" }, { "name": "project", @@ -21285,8 +21213,8 @@ "type": "str" }, { - "name": "instances_set_security_policy_request_resource", - "type": "google.cloud.compute_v1.types.InstancesSetSecurityPolicyRequest" + "name": "instances_report_host_as_faulty_request_resource", + "type": "google.cloud.compute_v1.types.InstancesReportHostAsFaultyRequest" }, { "name": "retry", @@ -21302,13 +21230,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_security_policy" + "shortName": "report_host_as_faulty" }, - "description": "Sample for SetSecurityPolicy", - "file": "compute_v1_generated_instances_set_security_policy_sync.py", + "description": "Sample for ReportHostAsFaulty", + "file": "compute_v1_generated_instances_report_host_as_faulty_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetSecurityPolicy_sync", + "regionTag": "compute_v1_generated_Instances_ReportHostAsFaulty_sync", "segments": [ { "end": 53, @@ -21341,7 +21269,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_security_policy_sync.py" + "title": "compute_v1_generated_instances_report_host_as_faulty_sync.py" }, { "canonical": true, @@ -21350,19 +21278,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_service_account", + "fullName": "google.cloud.compute_v1.InstancesClient.reset", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetServiceAccount", + "fullName": "google.cloud.compute.v1.Instances.Reset", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetServiceAccount" + "shortName": "Reset" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetServiceAccountInstanceRequest" + "type": "google.cloud.compute_v1.types.ResetInstanceRequest" }, { "name": "project", @@ -21376,10 +21304,6 @@ "name": "instance", "type": "str" }, - { - "name": "instances_set_service_account_request_resource", - "type": "google.cloud.compute_v1.types.InstancesSetServiceAccountRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -21394,13 +21318,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_service_account" + "shortName": "reset" }, - "description": "Sample for SetServiceAccount", - "file": "compute_v1_generated_instances_set_service_account_sync.py", + "description": "Sample for Reset", + "file": "compute_v1_generated_instances_reset_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetServiceAccount_sync", + "regionTag": "compute_v1_generated_Instances_Reset_sync", "segments": [ { "end": 53, @@ -21433,7 +21357,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_service_account_sync.py" + "title": "compute_v1_generated_instances_reset_sync.py" }, { "canonical": true, @@ -21442,19 +21366,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_shielded_instance_integrity_policy", + "fullName": "google.cloud.compute_v1.InstancesClient.resume", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetShieldedInstanceIntegrityPolicy", + "fullName": "google.cloud.compute.v1.Instances.Resume", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetShieldedInstanceIntegrityPolicy" + "shortName": "Resume" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetShieldedInstanceIntegrityPolicyInstanceRequest" + "type": "google.cloud.compute_v1.types.ResumeInstanceRequest" }, { "name": "project", @@ -21468,10 +21392,6 @@ "name": "instance", "type": "str" }, - { - "name": "shielded_instance_integrity_policy_resource", - "type": "google.cloud.compute_v1.types.ShieldedInstanceIntegrityPolicy" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -21486,13 +21406,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_shielded_instance_integrity_policy" + "shortName": "resume" }, - "description": "Sample for SetShieldedInstanceIntegrityPolicy", - "file": "compute_v1_generated_instances_set_shielded_instance_integrity_policy_sync.py", + "description": "Sample for Resume", + "file": "compute_v1_generated_instances_resume_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetShieldedInstanceIntegrityPolicy_sync", + "regionTag": "compute_v1_generated_Instances_Resume_sync", "segments": [ { "end": 53, @@ -21525,7 +21445,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_shielded_instance_integrity_policy_sync.py" + "title": "compute_v1_generated_instances_resume_sync.py" }, { "canonical": true, @@ -21534,19 +21454,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.set_tags", + "fullName": "google.cloud.compute_v1.InstancesClient.send_diagnostic_interrupt", "method": { - "fullName": "google.cloud.compute.v1.Instances.SetTags", + "fullName": "google.cloud.compute.v1.Instances.SendDiagnosticInterrupt", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SetTags" + "shortName": "SendDiagnosticInterrupt" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetTagsInstanceRequest" + "type": "google.cloud.compute_v1.types.SendDiagnosticInterruptInstanceRequest" }, { "name": "project", @@ -21560,10 +21480,6 @@ "name": "instance", "type": "str" }, - { - "name": "tags_resource", - "type": "google.cloud.compute_v1.types.Tags" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -21577,14 +21493,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_tags" + "resultType": "google.cloud.compute_v1.types.SendDiagnosticInterruptInstanceResponse", + "shortName": "send_diagnostic_interrupt" }, - "description": "Sample for SetTags", - "file": "compute_v1_generated_instances_set_tags_sync.py", + "description": "Sample for SendDiagnosticInterrupt", + "file": "compute_v1_generated_instances_send_diagnostic_interrupt_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SetTags_sync", + "regionTag": "compute_v1_generated_Instances_SendDiagnosticInterrupt_sync", "segments": [ { "end": 53, @@ -21617,7 +21533,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_set_tags_sync.py" + "title": "compute_v1_generated_instances_send_diagnostic_interrupt_sync.py" }, { "canonical": true, @@ -21626,19 +21542,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.simulate_maintenance_event", + "fullName": "google.cloud.compute_v1.InstancesClient.set_deletion_protection", "method": { - "fullName": "google.cloud.compute.v1.Instances.SimulateMaintenanceEvent", + "fullName": "google.cloud.compute.v1.Instances.SetDeletionProtection", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "SimulateMaintenanceEvent" + "shortName": "SetDeletionProtection" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SimulateMaintenanceEventInstanceRequest" + "type": "google.cloud.compute_v1.types.SetDeletionProtectionInstanceRequest" }, { "name": "project", @@ -21649,7 +21565,7 @@ "type": "str" }, { - "name": "instance", + "name": "resource", "type": "str" }, { @@ -21666,13 +21582,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "simulate_maintenance_event" + "shortName": "set_deletion_protection" }, - "description": "Sample for SimulateMaintenanceEvent", - "file": "compute_v1_generated_instances_simulate_maintenance_event_sync.py", + "description": "Sample for SetDeletionProtection", + "file": "compute_v1_generated_instances_set_deletion_protection_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_SimulateMaintenanceEvent_sync", + "regionTag": "compute_v1_generated_Instances_SetDeletionProtection_sync", "segments": [ { "end": 53, @@ -21705,7 +21621,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_simulate_maintenance_event_sync.py" + "title": "compute_v1_generated_instances_set_deletion_protection_sync.py" }, { "canonical": true, @@ -21714,19 +21630,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.start_with_encryption_key", + "fullName": "google.cloud.compute_v1.InstancesClient.set_disk_auto_delete", "method": { - "fullName": "google.cloud.compute.v1.Instances.StartWithEncryptionKey", + "fullName": "google.cloud.compute.v1.Instances.SetDiskAutoDelete", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "StartWithEncryptionKey" + "shortName": "SetDiskAutoDelete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StartWithEncryptionKeyInstanceRequest" + "type": "google.cloud.compute_v1.types.SetDiskAutoDeleteInstanceRequest" }, { "name": "project", @@ -21741,8 +21657,12 @@ "type": "str" }, { - "name": "instances_start_with_encryption_key_request_resource", - "type": "google.cloud.compute_v1.types.InstancesStartWithEncryptionKeyRequest" + "name": "auto_delete", + "type": "bool" + }, + { + "name": "device_name", + "type": "str" }, { "name": "retry", @@ -21758,21 +21678,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "start_with_encryption_key" + "shortName": "set_disk_auto_delete" }, - "description": "Sample for StartWithEncryptionKey", - "file": "compute_v1_generated_instances_start_with_encryption_key_sync.py", + "description": "Sample for SetDiskAutoDelete", + "file": "compute_v1_generated_instances_set_disk_auto_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_StartWithEncryptionKey_sync", + "regionTag": "compute_v1_generated_Instances_SetDiskAutoDelete_sync", "segments": [ { - "end": 53, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 55, "start": 27, "type": "SHORT" }, @@ -21782,22 +21702,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 49, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 52, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_start_with_encryption_key_sync.py" + "title": "compute_v1_generated_instances_set_disk_auto_delete_sync.py" }, { "canonical": true, @@ -21806,19 +21726,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.start", + "fullName": "google.cloud.compute_v1.InstancesClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Instances.Start", + "fullName": "google.cloud.compute.v1.Instances.SetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "Start" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StartInstanceRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyInstanceRequest" }, { "name": "project", @@ -21829,9 +21749,13 @@ "type": "str" }, { - "name": "instance", + "name": "resource", "type": "str" }, + { + "name": "zone_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.ZoneSetPolicyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -21845,14 +21769,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "start" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Start", - "file": "compute_v1_generated_instances_start_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_instances_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_Start_sync", + "regionTag": "compute_v1_generated_Instances_SetIamPolicy_sync", "segments": [ { "end": 53, @@ -21885,7 +21809,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_start_sync.py" + "title": "compute_v1_generated_instances_set_iam_policy_sync.py" }, { "canonical": true, @@ -21894,19 +21818,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.stop", + "fullName": "google.cloud.compute_v1.InstancesClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.Instances.Stop", + "fullName": "google.cloud.compute.v1.Instances.SetLabels", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "Stop" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StopInstanceRequest" + "type": "google.cloud.compute_v1.types.SetLabelsInstanceRequest" }, { "name": "project", @@ -21920,6 +21844,10 @@ "name": "instance", "type": "str" }, + { + "name": "instances_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.InstancesSetLabelsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -21934,13 +21862,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "stop" + "shortName": "set_labels" }, - "description": "Sample for Stop", - "file": "compute_v1_generated_instances_stop_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_instances_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_Stop_sync", + "regionTag": "compute_v1_generated_Instances_SetLabels_sync", "segments": [ { "end": 53, @@ -21973,7 +21901,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_stop_sync.py" + "title": "compute_v1_generated_instances_set_labels_sync.py" }, { "canonical": true, @@ -21982,19 +21910,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.suspend", + "fullName": "google.cloud.compute_v1.InstancesClient.set_machine_resources", "method": { - "fullName": "google.cloud.compute.v1.Instances.Suspend", + "fullName": "google.cloud.compute.v1.Instances.SetMachineResources", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "Suspend" + "shortName": "SetMachineResources" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SuspendInstanceRequest" + "type": "google.cloud.compute_v1.types.SetMachineResourcesInstanceRequest" }, { "name": "project", @@ -22008,6 +21936,10 @@ "name": "instance", "type": "str" }, + { + "name": "instances_set_machine_resources_request_resource", + "type": "google.cloud.compute_v1.types.InstancesSetMachineResourcesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -22022,13 +21954,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "suspend" + "shortName": "set_machine_resources" }, - "description": "Sample for Suspend", - "file": "compute_v1_generated_instances_suspend_sync.py", + "description": "Sample for SetMachineResources", + "file": "compute_v1_generated_instances_set_machine_resources_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_Suspend_sync", + "regionTag": "compute_v1_generated_Instances_SetMachineResources_sync", "segments": [ { "end": 53, @@ -22061,7 +21993,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_suspend_sync.py" + "title": "compute_v1_generated_instances_set_machine_resources_sync.py" }, { "canonical": true, @@ -22070,19 +22002,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.InstancesClient.set_machine_type", "method": { - "fullName": "google.cloud.compute.v1.Instances.TestIamPermissions", + "fullName": "google.cloud.compute.v1.Instances.SetMachineType", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "TestIamPermissions" + "shortName": "SetMachineType" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsInstanceRequest" + "type": "google.cloud.compute_v1.types.SetMachineTypeInstanceRequest" }, { "name": "project", @@ -22093,12 +22025,12 @@ "type": "str" }, { - "name": "resource", + "name": "instance", "type": "str" }, { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "instances_set_machine_type_request_resource", + "type": "google.cloud.compute_v1.types.InstancesSetMachineTypeRequest" }, { "name": "retry", @@ -22113,14 +22045,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_machine_type" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_instances_test_iam_permissions_sync.py", + "description": "Sample for SetMachineType", + "file": "compute_v1_generated_instances_set_machine_type_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_Instances_SetMachineType_sync", "segments": [ { "end": 53, @@ -22153,103 +22085,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_test_iam_permissions_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.InstancesClient", - "shortName": "InstancesClient" - }, - "fullName": "google.cloud.compute_v1.InstancesClient.update_access_config", - "method": { - "fullName": "google.cloud.compute.v1.Instances.UpdateAccessConfig", - "service": { - "fullName": "google.cloud.compute.v1.Instances", - "shortName": "Instances" - }, - "shortName": "UpdateAccessConfig" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.UpdateAccessConfigInstanceRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "zone", - "type": "str" - }, - { - "name": "instance", - "type": "str" - }, - { - "name": "network_interface", - "type": "str" - }, - { - "name": "access_config_resource", - "type": "google.cloud.compute_v1.types.AccessConfig" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update_access_config" - }, - "description": "Sample for UpdateAccessConfig", - "file": "compute_v1_generated_instances_update_access_config_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_UpdateAccessConfig_sync", - "segments": [ - { - "end": 54, - "start": 27, - "type": "FULL" - }, - { - "end": 54, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 48, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 51, - "start": 49, - "type": "REQUEST_EXECUTION" - }, - { - "end": 55, - "start": 52, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_instances_update_access_config_sync.py" + "title": "compute_v1_generated_instances_set_machine_type_sync.py" }, { "canonical": true, @@ -22258,19 +22094,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.update_display_device", + "fullName": "google.cloud.compute_v1.InstancesClient.set_metadata", "method": { - "fullName": "google.cloud.compute.v1.Instances.UpdateDisplayDevice", + "fullName": "google.cloud.compute.v1.Instances.SetMetadata", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "UpdateDisplayDevice" + "shortName": "SetMetadata" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateDisplayDeviceInstanceRequest" + "type": "google.cloud.compute_v1.types.SetMetadataInstanceRequest" }, { "name": "project", @@ -22285,8 +22121,8 @@ "type": "str" }, { - "name": "display_device_resource", - "type": "google.cloud.compute_v1.types.DisplayDevice" + "name": "metadata_resource", + "type": "google.cloud.compute_v1.types.Metadata" }, { "name": "retry", @@ -22302,13 +22138,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update_display_device" + "shortName": "set_metadata" }, - "description": "Sample for UpdateDisplayDevice", - "file": "compute_v1_generated_instances_update_display_device_sync.py", + "description": "Sample for SetMetadata", + "file": "compute_v1_generated_instances_set_metadata_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_UpdateDisplayDevice_sync", + "regionTag": "compute_v1_generated_Instances_SetMetadata_sync", "segments": [ { "end": 53, @@ -22341,7 +22177,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_update_display_device_sync.py" + "title": "compute_v1_generated_instances_set_metadata_sync.py" }, { "canonical": true, @@ -22350,19 +22186,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.update_network_interface", + "fullName": "google.cloud.compute_v1.InstancesClient.set_min_cpu_platform", "method": { - "fullName": "google.cloud.compute.v1.Instances.UpdateNetworkInterface", + "fullName": "google.cloud.compute.v1.Instances.SetMinCpuPlatform", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "UpdateNetworkInterface" + "shortName": "SetMinCpuPlatform" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateNetworkInterfaceInstanceRequest" + "type": "google.cloud.compute_v1.types.SetMinCpuPlatformInstanceRequest" }, { "name": "project", @@ -22377,12 +22213,8 @@ "type": "str" }, { - "name": "network_interface", - "type": "str" - }, - { - "name": "network_interface_resource", - "type": "google.cloud.compute_v1.types.NetworkInterface" + "name": "instances_set_min_cpu_platform_request_resource", + "type": "google.cloud.compute_v1.types.InstancesSetMinCpuPlatformRequest" }, { "name": "retry", @@ -22398,21 +22230,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update_network_interface" + "shortName": "set_min_cpu_platform" }, - "description": "Sample for UpdateNetworkInterface", - "file": "compute_v1_generated_instances_update_network_interface_sync.py", + "description": "Sample for SetMinCpuPlatform", + "file": "compute_v1_generated_instances_set_min_cpu_platform_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_UpdateNetworkInterface_sync", + "regionTag": "compute_v1_generated_Instances_SetMinCpuPlatform_sync", "segments": [ { - "end": 54, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 53, "start": 27, "type": "SHORT" }, @@ -22422,22 +22254,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_update_network_interface_sync.py" + "title": "compute_v1_generated_instances_set_min_cpu_platform_sync.py" }, { "canonical": true, @@ -22446,19 +22278,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.update_shielded_instance_config", + "fullName": "google.cloud.compute_v1.InstancesClient.set_name", "method": { - "fullName": "google.cloud.compute.v1.Instances.UpdateShieldedInstanceConfig", + "fullName": "google.cloud.compute.v1.Instances.SetName", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "UpdateShieldedInstanceConfig" + "shortName": "SetName" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateShieldedInstanceConfigInstanceRequest" + "type": "google.cloud.compute_v1.types.SetNameInstanceRequest" }, { "name": "project", @@ -22473,8 +22305,8 @@ "type": "str" }, { - "name": "shielded_instance_config_resource", - "type": "google.cloud.compute_v1.types.ShieldedInstanceConfig" + "name": "instances_set_name_request_resource", + "type": "google.cloud.compute_v1.types.InstancesSetNameRequest" }, { "name": "retry", @@ -22490,13 +22322,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update_shielded_instance_config" + "shortName": "set_name" }, - "description": "Sample for UpdateShieldedInstanceConfig", - "file": "compute_v1_generated_instances_update_shielded_instance_config_sync.py", + "description": "Sample for SetName", + "file": "compute_v1_generated_instances_set_name_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_UpdateShieldedInstanceConfig_sync", + "regionTag": "compute_v1_generated_Instances_SetName_sync", "segments": [ { "end": 53, @@ -22529,7 +22361,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_update_shielded_instance_config_sync.py" + "title": "compute_v1_generated_instances_set_name_sync.py" }, { "canonical": true, @@ -22538,19 +22370,19 @@ "fullName": "google.cloud.compute_v1.InstancesClient", "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstancesClient.update", + "fullName": "google.cloud.compute_v1.InstancesClient.set_scheduling", "method": { - "fullName": "google.cloud.compute.v1.Instances.Update", + "fullName": "google.cloud.compute.v1.Instances.SetScheduling", "service": { "fullName": "google.cloud.compute.v1.Instances", "shortName": "Instances" }, - "shortName": "Update" + "shortName": "SetScheduling" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateInstanceRequest" + "type": "google.cloud.compute_v1.types.SetSchedulingInstanceRequest" }, { "name": "project", @@ -22565,8 +22397,8 @@ "type": "str" }, { - "name": "instance_resource", - "type": "google.cloud.compute_v1.types.Instance" + "name": "scheduling_resource", + "type": "google.cloud.compute_v1.types.Scheduling" }, { "name": "retry", @@ -22582,13 +22414,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" + "shortName": "set_scheduling" }, - "description": "Sample for Update", - "file": "compute_v1_generated_instances_update_sync.py", + "description": "Sample for SetScheduling", + "file": "compute_v1_generated_instances_set_scheduling_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Instances_Update_sync", + "regionTag": "compute_v1_generated_Instances_SetScheduling_sync", "segments": [ { "end": 53, @@ -22621,120 +22453,44 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instances_update_sync.py" + "title": "compute_v1_generated_instances_set_scheduling_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", - "shortName": "InstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.aggregated_list", + "fullName": "google.cloud.compute_v1.InstancesClient.set_security_policy", "method": { - "fullName": "google.cloud.compute.v1.InstantSnapshots.AggregatedList", + "fullName": "google.cloud.compute.v1.Instances.SetSecurityPolicy", "service": { - "fullName": "google.cloud.compute.v1.InstantSnapshots", - "shortName": "InstantSnapshots" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "AggregatedList" + "shortName": "SetSecurityPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListInstantSnapshotsRequest" + "type": "google.cloud.compute_v1.types.SetSecurityPolicyInstanceRequest" }, { "name": "project", "type": "str" }, { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.cloud.compute_v1.services.instant_snapshots.pagers.AggregatedListPager", - "shortName": "aggregated_list" - }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_instant_snapshots_aggregated_list_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstantSnapshots_AggregatedList_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_instant_snapshots_aggregated_list_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", - "shortName": "InstantSnapshotsClient" - }, - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.delete", - "method": { - "fullName": "google.cloud.compute.v1.InstantSnapshots.Delete", - "service": { - "fullName": "google.cloud.compute.v1.InstantSnapshots", - "shortName": "InstantSnapshots" - }, - "shortName": "Delete" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInstantSnapshotRequest" - }, - { - "name": "project", + "name": "zone", "type": "str" }, { - "name": "zone", + "name": "instance", "type": "str" }, { - "name": "instant_snapshot", - "type": "str" + "name": "instances_set_security_policy_request_resource", + "type": "google.cloud.compute_v1.types.InstancesSetSecurityPolicyRequest" }, { "name": "retry", @@ -22750,13 +22506,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "set_security_policy" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_instant_snapshots_delete_sync.py", + "description": "Sample for SetSecurityPolicy", + "file": "compute_v1_generated_instances_set_security_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstantSnapshots_Delete_sync", + "regionTag": "compute_v1_generated_Instances_SetSecurityPolicy_sync", "segments": [ { "end": 53, @@ -22789,28 +22545,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instant_snapshots_delete_sync.py" + "title": "compute_v1_generated_instances_set_security_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", - "shortName": "InstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.InstancesClient.set_service_account", "method": { - "fullName": "google.cloud.compute.v1.InstantSnapshots.GetIamPolicy", + "fullName": "google.cloud.compute.v1.Instances.SetServiceAccount", "service": { - "fullName": "google.cloud.compute.v1.InstantSnapshots", - "shortName": "InstantSnapshots" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "GetIamPolicy" + "shortName": "SetServiceAccount" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.SetServiceAccountInstanceRequest" }, { "name": "project", @@ -22821,9 +22577,13 @@ "type": "str" }, { - "name": "resource", + "name": "instance", "type": "str" }, + { + "name": "instances_set_service_account_request_resource", + "type": "google.cloud.compute_v1.types.InstancesSetServiceAccountRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -22837,14 +22597,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_service_account" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_instant_snapshots_get_iam_policy_sync.py", + "description": "Sample for SetServiceAccount", + "file": "compute_v1_generated_instances_set_service_account_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstantSnapshots_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_Instances_SetServiceAccount_sync", "segments": [ { "end": 53, @@ -22877,28 +22637,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instant_snapshots_get_iam_policy_sync.py" + "title": "compute_v1_generated_instances_set_service_account_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", - "shortName": "InstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.get", + "fullName": "google.cloud.compute_v1.InstancesClient.set_shielded_instance_integrity_policy", "method": { - "fullName": "google.cloud.compute.v1.InstantSnapshots.Get", + "fullName": "google.cloud.compute.v1.Instances.SetShieldedInstanceIntegrityPolicy", "service": { - "fullName": "google.cloud.compute.v1.InstantSnapshots", - "shortName": "InstantSnapshots" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "Get" + "shortName": "SetShieldedInstanceIntegrityPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.SetShieldedInstanceIntegrityPolicyInstanceRequest" }, { "name": "project", @@ -22909,9 +22669,13 @@ "type": "str" }, { - "name": "instant_snapshot", + "name": "instance", "type": "str" }, + { + "name": "shielded_instance_integrity_policy_resource", + "type": "google.cloud.compute_v1.types.ShieldedInstanceIntegrityPolicy" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -22925,14 +22689,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstantSnapshot", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_shielded_instance_integrity_policy" }, - "description": "Sample for Get", - "file": "compute_v1_generated_instant_snapshots_get_sync.py", + "description": "Sample for SetShieldedInstanceIntegrityPolicy", + "file": "compute_v1_generated_instances_set_shielded_instance_integrity_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstantSnapshots_Get_sync", + "regionTag": "compute_v1_generated_Instances_SetShieldedInstanceIntegrityPolicy_sync", "segments": [ { "end": 53, @@ -22965,28 +22729,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instant_snapshots_get_sync.py" + "title": "compute_v1_generated_instances_set_shielded_instance_integrity_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", - "shortName": "InstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.insert", + "fullName": "google.cloud.compute_v1.InstancesClient.set_tags", "method": { - "fullName": "google.cloud.compute.v1.InstantSnapshots.Insert", + "fullName": "google.cloud.compute.v1.Instances.SetTags", "service": { - "fullName": "google.cloud.compute.v1.InstantSnapshots", - "shortName": "InstantSnapshots" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "Insert" + "shortName": "SetTags" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.SetTagsInstanceRequest" }, { "name": "project", @@ -22997,8 +22761,12 @@ "type": "str" }, { - "name": "instant_snapshot_resource", - "type": "google.cloud.compute_v1.types.InstantSnapshot" + "name": "instance", + "type": "str" + }, + { + "name": "tags_resource", + "type": "google.cloud.compute_v1.types.Tags" }, { "name": "retry", @@ -23014,21 +22782,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "set_tags" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_instant_snapshots_insert_sync.py", + "description": "Sample for SetTags", + "file": "compute_v1_generated_instances_set_tags_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstantSnapshots_Insert_sync", + "regionTag": "compute_v1_generated_Instances_SetTags_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -23038,43 +22806,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instant_snapshots_insert_sync.py" + "title": "compute_v1_generated_instances_set_tags_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", - "shortName": "InstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.list", + "fullName": "google.cloud.compute_v1.InstancesClient.simulate_maintenance_event", "method": { - "fullName": "google.cloud.compute.v1.InstantSnapshots.List", + "fullName": "google.cloud.compute.v1.Instances.SimulateMaintenanceEvent", "service": { - "fullName": "google.cloud.compute.v1.InstantSnapshots", - "shortName": "InstantSnapshots" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "List" + "shortName": "SimulateMaintenanceEvent" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInstantSnapshotsRequest" + "type": "google.cloud.compute_v1.types.SimulateMaintenanceEventInstanceRequest" }, { "name": "project", @@ -23084,6 +22852,10 @@ "name": "zone", "type": "str" }, + { + "name": "instance", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -23097,14 +22869,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.instant_snapshots.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "simulate_maintenance_event" }, - "description": "Sample for List", - "file": "compute_v1_generated_instant_snapshots_list_sync.py", + "description": "Sample for SimulateMaintenanceEvent", + "file": "compute_v1_generated_instances_simulate_maintenance_event_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstantSnapshots_List_sync", + "regionTag": "compute_v1_generated_Instances_SimulateMaintenanceEvent_sync", "segments": [ { "end": 53, @@ -23122,43 +22894,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instant_snapshots_list_sync.py" + "title": "compute_v1_generated_instances_simulate_maintenance_event_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", - "shortName": "InstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.InstancesClient.start_with_encryption_key", "method": { - "fullName": "google.cloud.compute.v1.InstantSnapshots.SetIamPolicy", + "fullName": "google.cloud.compute.v1.Instances.StartWithEncryptionKey", "service": { - "fullName": "google.cloud.compute.v1.InstantSnapshots", - "shortName": "InstantSnapshots" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "SetIamPolicy" + "shortName": "StartWithEncryptionKey" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.StartWithEncryptionKeyInstanceRequest" }, { "name": "project", @@ -23169,12 +22941,12 @@ "type": "str" }, { - "name": "resource", + "name": "instance", "type": "str" }, { - "name": "zone_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.ZoneSetPolicyRequest" + "name": "instances_start_with_encryption_key_request_resource", + "type": "google.cloud.compute_v1.types.InstancesStartWithEncryptionKeyRequest" }, { "name": "retry", @@ -23189,14 +22961,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "start_with_encryption_key" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_instant_snapshots_set_iam_policy_sync.py", + "description": "Sample for StartWithEncryptionKey", + "file": "compute_v1_generated_instances_start_with_encryption_key_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstantSnapshots_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_Instances_StartWithEncryptionKey_sync", "segments": [ { "end": 53, @@ -23229,28 +23001,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instant_snapshots_set_iam_policy_sync.py" + "title": "compute_v1_generated_instances_start_with_encryption_key_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", - "shortName": "InstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.set_labels", + "fullName": "google.cloud.compute_v1.InstancesClient.start", "method": { - "fullName": "google.cloud.compute.v1.InstantSnapshots.SetLabels", + "fullName": "google.cloud.compute.v1.Instances.Start", "service": { - "fullName": "google.cloud.compute.v1.InstantSnapshots", - "shortName": "InstantSnapshots" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "SetLabels" + "shortName": "Start" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.StartInstanceRequest" }, { "name": "project", @@ -23261,13 +23033,9 @@ "type": "str" }, { - "name": "resource", + "name": "instance", "type": "str" }, - { - "name": "zone_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.ZoneSetLabelsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -23282,13 +23050,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "shortName": "start" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_instant_snapshots_set_labels_sync.py", + "description": "Sample for Start", + "file": "compute_v1_generated_instances_start_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstantSnapshots_SetLabels_sync", + "regionTag": "compute_v1_generated_Instances_Start_sync", "segments": [ { "end": 53, @@ -23321,28 +23089,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instant_snapshots_set_labels_sync.py" + "title": "compute_v1_generated_instances_start_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", - "shortName": "InstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.InstancesClient.stop", "method": { - "fullName": "google.cloud.compute.v1.InstantSnapshots.TestIamPermissions", + "fullName": "google.cloud.compute.v1.Instances.Stop", "service": { - "fullName": "google.cloud.compute.v1.InstantSnapshots", - "shortName": "InstantSnapshots" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "TestIamPermissions" + "shortName": "Stop" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.StopInstanceRequest" }, { "name": "project", @@ -23353,13 +23121,9 @@ "type": "str" }, { - "name": "resource", + "name": "instance", "type": "str" }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -23373,14 +23137,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "stop" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_instant_snapshots_test_iam_permissions_sync.py", + "description": "Sample for Stop", + "file": "compute_v1_generated_instances_stop_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InstantSnapshots_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_Instances_Stop_sync", "segments": [ { "end": 53, @@ -23413,35 +23177,39 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_instant_snapshots_test_iam_permissions_sync.py" + "title": "compute_v1_generated_instances_stop_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", - "shortName": "InterconnectAttachmentGroupsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.delete", + "fullName": "google.cloud.compute_v1.InstancesClient.suspend", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Delete", + "fullName": "google.cloud.compute.v1.Instances.Suspend", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", - "shortName": "InterconnectAttachmentGroups" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "Delete" + "shortName": "Suspend" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInterconnectAttachmentGroupRequest" + "type": "google.cloud.compute_v1.types.SuspendInstanceRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_attachment_group", + "name": "zone", + "type": "str" + }, + { + "name": "instance", "type": "str" }, { @@ -23458,21 +23226,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "suspend" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_interconnect_attachment_groups_delete_sync.py", + "description": "Sample for Suspend", + "file": "compute_v1_generated_instances_suspend_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Delete_sync", + "regionTag": "compute_v1_generated_Instances_Suspend_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -23482,52 +23250,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachment_groups_delete_sync.py" + "title": "compute_v1_generated_instances_suspend_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", - "shortName": "InterconnectAttachmentGroupsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.InstancesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.GetIamPolicy", + "fullName": "google.cloud.compute.v1.Instances.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", - "shortName": "InterconnectAttachmentGroups" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "GetIamPolicy" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyInterconnectAttachmentGroupRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsInstanceRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, { "name": "resource", "type": "str" }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -23541,22 +23317,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_interconnect_attachment_groups_get_iam_policy_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_instances_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_Instances_TestIamPermissions_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -23566,52 +23342,64 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachment_groups_get_iam_policy_sync.py" + "title": "compute_v1_generated_instances_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", - "shortName": "InterconnectAttachmentGroupsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.get_operational_status", + "fullName": "google.cloud.compute_v1.InstancesClient.update_access_config", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.GetOperationalStatus", + "fullName": "google.cloud.compute.v1.Instances.UpdateAccessConfig", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", - "shortName": "InterconnectAttachmentGroups" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "GetOperationalStatus" + "shortName": "UpdateAccessConfig" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetOperationalStatusInterconnectAttachmentGroupRequest" + "type": "google.cloud.compute_v1.types.UpdateAccessConfigInstanceRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_attachment_group", + "name": "zone", "type": "str" }, + { + "name": "instance", + "type": "str" + }, + { + "name": "network_interface", + "type": "str" + }, + { + "name": "access_config_resource", + "type": "google.cloud.compute_v1.types.AccessConfig" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -23625,22 +23413,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InterconnectAttachmentGroupsGetOperationalStatusResponse", - "shortName": "get_operational_status" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_access_config" }, - "description": "Sample for GetOperationalStatus", - "file": "compute_v1_generated_interconnect_attachment_groups_get_operational_status_sync.py", + "description": "Sample for UpdateAccessConfig", + "file": "compute_v1_generated_instances_update_access_config_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_GetOperationalStatus_sync", + "regionTag": "compute_v1_generated_Instances_UpdateAccessConfig_sync", "segments": [ { - "end": 52, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 54, "start": 27, "type": "SHORT" }, @@ -23650,52 +23438,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachment_groups_get_operational_status_sync.py" + "title": "compute_v1_generated_instances_update_access_config_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", - "shortName": "InterconnectAttachmentGroupsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.get", + "fullName": "google.cloud.compute_v1.InstancesClient.update_display_device", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Get", + "fullName": "google.cloud.compute.v1.Instances.UpdateDisplayDevice", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", - "shortName": "InterconnectAttachmentGroups" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "Get" + "shortName": "UpdateDisplayDevice" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInterconnectAttachmentGroupRequest" + "type": "google.cloud.compute_v1.types.UpdateDisplayDeviceInstanceRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_attachment_group", + "name": "zone", "type": "str" }, + { + "name": "instance", + "type": "str" + }, + { + "name": "display_device_resource", + "type": "google.cloud.compute_v1.types.DisplayDevice" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -23709,22 +23505,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InterconnectAttachmentGroup", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_display_device" }, - "description": "Sample for Get", - "file": "compute_v1_generated_interconnect_attachment_groups_get_sync.py", + "description": "Sample for UpdateDisplayDevice", + "file": "compute_v1_generated_instances_update_display_device_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Get_sync", + "regionTag": "compute_v1_generated_Instances_UpdateDisplayDevice_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -23734,51 +23530,63 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachment_groups_get_sync.py" + "title": "compute_v1_generated_instances_update_display_device_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", - "shortName": "InterconnectAttachmentGroupsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.insert", + "fullName": "google.cloud.compute_v1.InstancesClient.update_network_interface", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Insert", + "fullName": "google.cloud.compute.v1.Instances.UpdateNetworkInterface", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", - "shortName": "InterconnectAttachmentGroups" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "Insert" + "shortName": "UpdateNetworkInterface" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInterconnectAttachmentGroupRequest" + "type": "google.cloud.compute_v1.types.UpdateNetworkInterfaceInstanceRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_attachment_group_resource", - "type": "google.cloud.compute_v1.types.InterconnectAttachmentGroup" + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "network_interface", + "type": "str" + }, + { + "name": "network_interface_resource", + "type": "google.cloud.compute_v1.types.NetworkInterface" }, { "name": "retry", @@ -23794,21 +23602,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "update_network_interface" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_interconnect_attachment_groups_insert_sync.py", + "description": "Sample for UpdateNetworkInterface", + "file": "compute_v1_generated_instances_update_network_interface_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Insert_sync", + "regionTag": "compute_v1_generated_Instances_UpdateNetworkInterface_sync", "segments": [ { - "end": 51, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 54, "start": 27, "type": "SHORT" }, @@ -23818,48 +23626,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachment_groups_insert_sync.py" + "title": "compute_v1_generated_instances_update_network_interface_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", - "shortName": "InterconnectAttachmentGroupsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.list", + "fullName": "google.cloud.compute_v1.InstancesClient.update_shielded_instance_config", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.List", + "fullName": "google.cloud.compute.v1.Instances.UpdateShieldedInstanceConfig", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", - "shortName": "InterconnectAttachmentGroups" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "List" + "shortName": "UpdateShieldedInstanceConfig" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInterconnectAttachmentGroupsRequest" + "type": "google.cloud.compute_v1.types.UpdateShieldedInstanceConfigInstanceRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "instance", + "type": "str" + }, + { + "name": "shielded_instance_config_resource", + "type": "google.cloud.compute_v1.types.ShieldedInstanceConfig" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -23873,22 +23693,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.interconnect_attachment_groups.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update_shielded_instance_config" }, - "description": "Sample for List", - "file": "compute_v1_generated_interconnect_attachment_groups_list_sync.py", + "description": "Sample for UpdateShieldedInstanceConfig", + "file": "compute_v1_generated_instances_update_shielded_instance_config_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_List_sync", + "regionTag": "compute_v1_generated_Instances_UpdateShieldedInstanceConfig_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -23898,55 +23718,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachment_groups_list_sync.py" + "title": "compute_v1_generated_instances_update_shielded_instance_config_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", - "shortName": "InterconnectAttachmentGroupsClient" + "fullName": "google.cloud.compute_v1.InstancesClient", + "shortName": "InstancesClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.patch", + "fullName": "google.cloud.compute_v1.InstancesClient.update", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Patch", + "fullName": "google.cloud.compute.v1.Instances.Update", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", - "shortName": "InterconnectAttachmentGroups" + "fullName": "google.cloud.compute.v1.Instances", + "shortName": "Instances" }, - "shortName": "Patch" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchInterconnectAttachmentGroupRequest" + "type": "google.cloud.compute_v1.types.UpdateInstanceRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_attachment_group", + "name": "zone", "type": "str" }, { - "name": "interconnect_attachment_group_resource", - "type": "google.cloud.compute_v1.types.InterconnectAttachmentGroup" + "name": "instance", + "type": "str" + }, + { + "name": "instance_resource", + "type": "google.cloud.compute_v1.types.Instance" }, { "name": "retry", @@ -23962,21 +23786,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "update" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_interconnect_attachment_groups_patch_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_instances_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Patch_sync", + "regionTag": "compute_v1_generated_Instances_Update_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -23986,56 +23810,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachment_groups_patch_sync.py" + "title": "compute_v1_generated_instances_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", - "shortName": "InterconnectAttachmentGroupsClient" + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", + "shortName": "InstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.SetIamPolicy", + "fullName": "google.cloud.compute.v1.InstantSnapshots.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", - "shortName": "InterconnectAttachmentGroups" + "fullName": "google.cloud.compute.v1.InstantSnapshots", + "shortName": "InstantSnapshots" }, - "shortName": "SetIamPolicy" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyInterconnectAttachmentGroupRequest" + "type": "google.cloud.compute_v1.types.AggregatedListInstantSnapshotsRequest" }, { "name": "project", "type": "str" }, - { - "name": "resource", - "type": "str" - }, - { - "name": "global_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -24049,14 +23865,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.cloud.compute_v1.services.instant_snapshots.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_interconnect_attachment_groups_set_iam_policy_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_instant_snapshots_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_InstantSnapshots_AggregatedList_sync", "segments": [ { "end": 52, @@ -24074,134 +23890,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachment_groups_set_iam_policy_sync.py" + "title": "compute_v1_generated_instant_snapshots_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", - "shortName": "InterconnectAttachmentGroupsClient" + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", + "shortName": "InstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.TestIamPermissions", + "fullName": "google.cloud.compute.v1.InstantSnapshots.Delete", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", - "shortName": "InterconnectAttachmentGroups" + "fullName": "google.cloud.compute.v1.InstantSnapshots", + "shortName": "InstantSnapshots" }, - "shortName": "TestIamPermissions" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsInterconnectAttachmentGroupRequest" + "type": "google.cloud.compute_v1.types.DeleteInstantSnapshotRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "zone", "type": "str" }, { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" - }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_interconnect_attachment_groups_test_iam_permissions_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_TestIamPermissions_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 49, - "start": 47, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_interconnect_attachment_groups_test_iam_permissions_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", - "shortName": "InterconnectAttachmentsClient" - }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.aggregated_list", - "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments.AggregatedList", - "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments", - "shortName": "InterconnectAttachments" - }, - "shortName": "AggregatedList" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListInterconnectAttachmentsRequest" - }, - { - "name": "project", + "name": "instant_snapshot", "type": "str" }, { @@ -24217,22 +23953,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.interconnect_attachments.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_interconnect_attachments_aggregated_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_instant_snapshots_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachments_AggregatedList_sync", + "regionTag": "compute_v1_generated_InstantSnapshots_Delete_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -24242,54 +23978,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachments_aggregated_list_sync.py" + "title": "compute_v1_generated_instant_snapshots_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", - "shortName": "InterconnectAttachmentsClient" + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", + "shortName": "InstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.delete", + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Delete", + "fullName": "google.cloud.compute.v1.InstantSnapshots.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments", - "shortName": "InterconnectAttachments" + "fullName": "google.cloud.compute.v1.InstantSnapshots", + "shortName": "InstantSnapshots" }, - "shortName": "Delete" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInterconnectAttachmentRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyInstantSnapshotRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "interconnect_attachment", + "name": "resource", "type": "str" }, { @@ -24305,14 +24041,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_interconnect_attachments_delete_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_instant_snapshots_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachments_Delete_sync", + "regionTag": "compute_v1_generated_InstantSnapshots_GetIamPolicy_sync", "segments": [ { "end": 53, @@ -24345,39 +24081,39 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachments_delete_sync.py" + "title": "compute_v1_generated_instant_snapshots_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", - "shortName": "InterconnectAttachmentsClient" + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", + "shortName": "InstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.get", + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.get", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Get", + "fullName": "google.cloud.compute.v1.InstantSnapshots.Get", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments", - "shortName": "InterconnectAttachments" + "fullName": "google.cloud.compute.v1.InstantSnapshots", + "shortName": "InstantSnapshots" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInterconnectAttachmentRequest" + "type": "google.cloud.compute_v1.types.GetInstantSnapshotRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "interconnect_attachment", + "name": "instant_snapshot", "type": "str" }, { @@ -24393,14 +24129,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InterconnectAttachment", + "resultType": "google.cloud.compute_v1.types.InstantSnapshot", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_interconnect_attachments_get_sync.py", + "file": "compute_v1_generated_instant_snapshots_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachments_Get_sync", + "regionTag": "compute_v1_generated_InstantSnapshots_Get_sync", "segments": [ { "end": 53, @@ -24433,40 +24169,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachments_get_sync.py" + "title": "compute_v1_generated_instant_snapshots_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", - "shortName": "InterconnectAttachmentsClient" + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", + "shortName": "InstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.insert", + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Insert", + "fullName": "google.cloud.compute.v1.InstantSnapshots.Insert", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments", - "shortName": "InterconnectAttachments" + "fullName": "google.cloud.compute.v1.InstantSnapshots", + "shortName": "InstantSnapshots" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInterconnectAttachmentRequest" + "type": "google.cloud.compute_v1.types.InsertInstantSnapshotRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "interconnect_attachment_resource", - "type": "google.cloud.compute_v1.types.InterconnectAttachment" + "name": "instant_snapshot_resource", + "type": "google.cloud.compute_v1.types.InstantSnapshot" }, { "name": "retry", @@ -24485,10 +24221,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_interconnect_attachments_insert_sync.py", + "file": "compute_v1_generated_instant_snapshots_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachments_Insert_sync", + "regionTag": "compute_v1_generated_InstantSnapshots_Insert_sync", "segments": [ { "end": 52, @@ -24521,35 +24257,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachments_insert_sync.py" + "title": "compute_v1_generated_instant_snapshots_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", - "shortName": "InterconnectAttachmentsClient" + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", + "shortName": "InstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.list", + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.list", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments.List", + "fullName": "google.cloud.compute.v1.InstantSnapshots.List", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments", - "shortName": "InterconnectAttachments" + "fullName": "google.cloud.compute.v1.InstantSnapshots", + "shortName": "InstantSnapshots" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInterconnectAttachmentsRequest" + "type": "google.cloud.compute_v1.types.ListInstantSnapshotsRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { @@ -24565,14 +24301,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.interconnect_attachments.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.instant_snapshots.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_interconnect_attachments_list_sync.py", + "file": "compute_v1_generated_instant_snapshots_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachments_List_sync", + "regionTag": "compute_v1_generated_InstantSnapshots_List_sync", "segments": [ { "end": 53, @@ -24605,44 +24341,44 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachments_list_sync.py" + "title": "compute_v1_generated_instant_snapshots_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", - "shortName": "InterconnectAttachmentsClient" + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", + "shortName": "InstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.patch", + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Patch", + "fullName": "google.cloud.compute.v1.InstantSnapshots.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments", - "shortName": "InterconnectAttachments" + "fullName": "google.cloud.compute.v1.InstantSnapshots", + "shortName": "InstantSnapshots" }, - "shortName": "Patch" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchInterconnectAttachmentRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyInstantSnapshotRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "interconnect_attachment", + "name": "resource", "type": "str" }, { - "name": "interconnect_attachment_resource", - "type": "google.cloud.compute_v1.types.InterconnectAttachment" + "name": "zone_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.ZoneSetPolicyRequest" }, { "name": "retry", @@ -24657,14 +24393,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_interconnect_attachments_patch_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_instant_snapshots_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachments_Patch_sync", + "regionTag": "compute_v1_generated_InstantSnapshots_SetIamPolicy_sync", "segments": [ { "end": 53, @@ -24697,35 +24433,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachments_patch_sync.py" + "title": "compute_v1_generated_instant_snapshots_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", - "shortName": "InterconnectAttachmentsClient" + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", + "shortName": "InstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.set_labels", + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments.SetLabels", + "fullName": "google.cloud.compute.v1.InstantSnapshots.SetLabels", "service": { - "fullName": "google.cloud.compute.v1.InterconnectAttachments", - "shortName": "InterconnectAttachments" + "fullName": "google.cloud.compute.v1.InstantSnapshots", + "shortName": "InstantSnapshots" }, "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsInterconnectAttachmentRequest" + "type": "google.cloud.compute_v1.types.SetLabelsInstantSnapshotRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { @@ -24733,8 +24469,8 @@ "type": "str" }, { - "name": "region_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" + "name": "zone_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.ZoneSetLabelsRequest" }, { "name": "retry", @@ -24753,10 +24489,10 @@ "shortName": "set_labels" }, "description": "Sample for SetLabels", - "file": "compute_v1_generated_interconnect_attachments_set_labels_sync.py", + "file": "compute_v1_generated_instant_snapshots_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectAttachments_SetLabels_sync", + "regionTag": "compute_v1_generated_InstantSnapshots_SetLabels_sync", "segments": [ { "end": 53, @@ -24789,40 +24525,44 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_attachments_set_labels_sync.py" + "title": "compute_v1_generated_instant_snapshots_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient", + "shortName": "InstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.create_members", + "fullName": "google.cloud.compute_v1.InstantSnapshotsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.CreateMembers", + "fullName": "google.cloud.compute.v1.InstantSnapshots.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InstantSnapshots", + "shortName": "InstantSnapshots" }, - "shortName": "CreateMembers" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CreateMembersInterconnectGroupRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsInstantSnapshotRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_group", + "name": "zone", "type": "str" }, { - "name": "interconnect_groups_create_members_request_resource", - "type": "google.cloud.compute_v1.types.InterconnectGroupsCreateMembersRequest" + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -24837,22 +24577,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "create_members" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for CreateMembers", - "file": "compute_v1_generated_interconnect_groups_create_members_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_instant_snapshots_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_CreateMembers_sync", + "regionTag": "compute_v1_generated_InstantSnapshots_TestIamPermissions_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -24862,50 +24602,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_create_members_sync.py" + "title": "compute_v1_generated_instant_snapshots_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", + "shortName": "InterconnectAttachmentGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.delete", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.Delete", + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Delete", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", + "shortName": "InterconnectAttachmentGroups" }, "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInterconnectGroupRequest" + "type": "google.cloud.compute_v1.types.DeleteInterconnectAttachmentGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_group", + "name": "interconnect_attachment_group", "type": "str" }, { @@ -24925,10 +24665,10 @@ "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_interconnect_groups_delete_sync.py", + "file": "compute_v1_generated_interconnect_attachment_groups_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_Delete_sync", + "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Delete_sync", "segments": [ { "end": 52, @@ -24961,28 +24701,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_delete_sync.py" + "title": "compute_v1_generated_interconnect_attachment_groups_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", + "shortName": "InterconnectAttachmentGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.GetIamPolicy", + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", + "shortName": "InterconnectAttachmentGroups" }, "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyInterconnectGroupRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyInterconnectAttachmentGroupRequest" }, { "name": "project", @@ -25009,10 +24749,10 @@ "shortName": "get_iam_policy" }, "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_interconnect_groups_get_iam_policy_sync.py", + "file": "compute_v1_generated_interconnect_attachment_groups_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_GetIamPolicy_sync", "segments": [ { "end": 52, @@ -25045,35 +24785,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_get_iam_policy_sync.py" + "title": "compute_v1_generated_interconnect_attachment_groups_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", + "shortName": "InterconnectAttachmentGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.get_operational_status", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.get_operational_status", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.GetOperationalStatus", + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.GetOperationalStatus", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", + "shortName": "InterconnectAttachmentGroups" }, "shortName": "GetOperationalStatus" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetOperationalStatusInterconnectGroupRequest" + "type": "google.cloud.compute_v1.types.GetOperationalStatusInterconnectAttachmentGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_group", + "name": "interconnect_attachment_group", "type": "str" }, { @@ -25089,14 +24829,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InterconnectGroupsGetOperationalStatusResponse", + "resultType": "google.cloud.compute_v1.types.InterconnectAttachmentGroupsGetOperationalStatusResponse", "shortName": "get_operational_status" }, "description": "Sample for GetOperationalStatus", - "file": "compute_v1_generated_interconnect_groups_get_operational_status_sync.py", + "file": "compute_v1_generated_interconnect_attachment_groups_get_operational_status_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_GetOperationalStatus_sync", + "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_GetOperationalStatus_sync", "segments": [ { "end": 52, @@ -25129,35 +24869,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_get_operational_status_sync.py" + "title": "compute_v1_generated_interconnect_attachment_groups_get_operational_status_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", + "shortName": "InterconnectAttachmentGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.get", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.get", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.Get", + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Get", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", + "shortName": "InterconnectAttachmentGroups" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInterconnectGroupRequest" + "type": "google.cloud.compute_v1.types.GetInterconnectAttachmentGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_group", + "name": "interconnect_attachment_group", "type": "str" }, { @@ -25173,14 +24913,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InterconnectGroup", + "resultType": "google.cloud.compute_v1.types.InterconnectAttachmentGroup", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_interconnect_groups_get_sync.py", + "file": "compute_v1_generated_interconnect_attachment_groups_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_Get_sync", + "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Get_sync", "segments": [ { "end": 52, @@ -25213,36 +24953,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_get_sync.py" + "title": "compute_v1_generated_interconnect_attachment_groups_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", + "shortName": "InterconnectAttachmentGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.insert", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.Insert", + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Insert", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", + "shortName": "InterconnectAttachmentGroups" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInterconnectGroupRequest" + "type": "google.cloud.compute_v1.types.InsertInterconnectAttachmentGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_group_resource", - "type": "google.cloud.compute_v1.types.InterconnectGroup" + "name": "interconnect_attachment_group_resource", + "type": "google.cloud.compute_v1.types.InterconnectAttachmentGroup" }, { "name": "retry", @@ -25261,10 +25001,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_interconnect_groups_insert_sync.py", + "file": "compute_v1_generated_interconnect_attachment_groups_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_Insert_sync", + "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Insert_sync", "segments": [ { "end": 51, @@ -25297,28 +25037,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_insert_sync.py" + "title": "compute_v1_generated_interconnect_attachment_groups_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", + "shortName": "InterconnectAttachmentGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.list", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.list", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.List", + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.List", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", + "shortName": "InterconnectAttachmentGroups" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInterconnectGroupsRequest" + "type": "google.cloud.compute_v1.types.ListInterconnectAttachmentGroupsRequest" }, { "name": "project", @@ -25337,14 +25077,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.interconnect_groups.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.interconnect_attachment_groups.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_interconnect_groups_list_sync.py", + "file": "compute_v1_generated_interconnect_attachment_groups_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_List_sync", + "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_List_sync", "segments": [ { "end": 52, @@ -25377,40 +25117,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_list_sync.py" + "title": "compute_v1_generated_interconnect_attachment_groups_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", + "shortName": "InterconnectAttachmentGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.patch", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.patch", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.Patch", + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Patch", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", + "shortName": "InterconnectAttachmentGroups" }, "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchInterconnectGroupRequest" + "type": "google.cloud.compute_v1.types.PatchInterconnectAttachmentGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_group", + "name": "interconnect_attachment_group", "type": "str" }, { - "name": "interconnect_group_resource", - "type": "google.cloud.compute_v1.types.InterconnectGroup" + "name": "interconnect_attachment_group_resource", + "type": "google.cloud.compute_v1.types.InterconnectAttachmentGroup" }, { "name": "retry", @@ -25429,10 +25169,10 @@ "shortName": "patch" }, "description": "Sample for Patch", - "file": "compute_v1_generated_interconnect_groups_patch_sync.py", + "file": "compute_v1_generated_interconnect_attachment_groups_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_Patch_sync", + "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Patch_sync", "segments": [ { "end": 52, @@ -25465,28 +25205,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_patch_sync.py" + "title": "compute_v1_generated_interconnect_attachment_groups_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", + "shortName": "InterconnectAttachmentGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.SetIamPolicy", + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", + "shortName": "InterconnectAttachmentGroups" }, "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyInterconnectGroupRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyInterconnectAttachmentGroupRequest" }, { "name": "project", @@ -25517,10 +25257,10 @@ "shortName": "set_iam_policy" }, "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_interconnect_groups_set_iam_policy_sync.py", + "file": "compute_v1_generated_interconnect_attachment_groups_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_SetIamPolicy_sync", "segments": [ { "end": 52, @@ -25553,28 +25293,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_set_iam_policy_sync.py" + "title": "compute_v1_generated_interconnect_attachment_groups_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", - "shortName": "InterconnectGroupsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient", + "shortName": "InterconnectAttachmentGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentGroupsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.InterconnectGroups.TestIamPermissions", + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.InterconnectGroups", - "shortName": "InterconnectGroups" + "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups", + "shortName": "InterconnectAttachmentGroups" }, "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsInterconnectGroupRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsInterconnectAttachmentGroupRequest" }, { "name": "project", @@ -25605,10 +25345,10 @@ "shortName": "test_iam_permissions" }, "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_interconnect_groups_test_iam_permissions_sync.py", + "file": "compute_v1_generated_interconnect_attachment_groups_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectGroups_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_TestIamPermissions_sync", "segments": [ { "end": 52, @@ -25641,37 +25381,33 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_groups_test_iam_permissions_sync.py" + "title": "compute_v1_generated_interconnect_attachment_groups_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectLocationsClient", - "shortName": "InterconnectLocationsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectLocationsClient.get", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.InterconnectLocations.Get", + "fullName": "google.cloud.compute.v1.InterconnectAttachments.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.InterconnectLocations", - "shortName": "InterconnectLocations" + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" }, - "shortName": "Get" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInterconnectLocationRequest" + "type": "google.cloud.compute_v1.types.AggregatedListInterconnectAttachmentsRequest" }, { "name": "project", "type": "str" }, - { - "name": "interconnect_location", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -25685,14 +25421,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InterconnectLocation", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.interconnect_attachments.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_interconnect_locations_get_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_interconnect_attachments_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectLocations_Get_sync", + "regionTag": "compute_v1_generated_InterconnectAttachments_AggregatedList_sync", "segments": [ { "end": 52, @@ -25710,48 +25446,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_locations_get_sync.py" + "title": "compute_v1_generated_interconnect_attachments_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectLocationsClient", - "shortName": "InterconnectLocationsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectLocationsClient.list", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.InterconnectLocations.List", + "fullName": "google.cloud.compute.v1.InterconnectAttachments.Delete", "service": { - "fullName": "google.cloud.compute.v1.InterconnectLocations", - "shortName": "InterconnectLocations" + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" }, - "shortName": "List" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInterconnectLocationsRequest" + "type": "google.cloud.compute_v1.types.DeleteInterconnectAttachmentRequest" }, { "name": "project", "type": "str" }, + { + "name": "region", + "type": "str" + }, + { + "name": "interconnect_attachment", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -25765,22 +25509,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.interconnect_locations.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for List", - "file": "compute_v1_generated_interconnect_locations_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_interconnect_attachments_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectLocations_List_sync", + "regionTag": "compute_v1_generated_InterconnectAttachments_Delete_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -25790,50 +25534,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_locations_list_sync.py" + "title": "compute_v1_generated_interconnect_attachments_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient", - "shortName": "InterconnectRemoteLocationsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient.get", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.get", "method": { - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.Get", + "fullName": "google.cloud.compute.v1.InterconnectAttachments.Get", "service": { - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations", - "shortName": "InterconnectRemoteLocations" + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInterconnectRemoteLocationRequest" + "type": "google.cloud.compute_v1.types.GetInterconnectAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_remote_location", + "name": "region", + "type": "str" + }, + { + "name": "interconnect_attachment", "type": "str" }, { @@ -25849,14 +25597,102 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InterconnectRemoteLocation", + "resultType": "google.cloud.compute_v1.types.InterconnectAttachment", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_interconnect_remote_locations_get_sync.py", + "file": "compute_v1_generated_interconnect_attachments_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectRemoteLocations_Get_sync", + "regionTag": "compute_v1_generated_InterconnectAttachments_Get_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_interconnect_attachments_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" + }, + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments.Insert", + "service": { + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertInterconnectAttachmentRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "interconnect_attachment_resource", + "type": "google.cloud.compute_v1.types.InterconnectAttachment" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_interconnect_attachments_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_InterconnectAttachments_Insert_sync", "segments": [ { "end": 52, @@ -25889,33 +25725,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_remote_locations_get_sync.py" + "title": "compute_v1_generated_interconnect_attachments_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient", - "shortName": "InterconnectRemoteLocationsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient.list", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.list", "method": { - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.List", + "fullName": "google.cloud.compute.v1.InterconnectAttachments.List", "service": { - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations", - "shortName": "InterconnectRemoteLocations" + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInterconnectRemoteLocationsRequest" + "type": "google.cloud.compute_v1.types.ListInterconnectAttachmentsRequest" }, { "name": "project", "type": "str" }, + { + "name": "region", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -25929,22 +25769,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.interconnect_remote_locations.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.interconnect_attachments.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_interconnect_remote_locations_list_sync.py", + "file": "compute_v1_generated_interconnect_attachments_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_InterconnectRemoteLocations_List_sync", + "regionTag": "compute_v1_generated_InterconnectAttachments_List_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -25954,52 +25794,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnect_remote_locations_list_sync.py" + "title": "compute_v1_generated_interconnect_attachments_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectsClient", - "shortName": "InterconnectsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectsClient.delete", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.patch", "method": { - "fullName": "google.cloud.compute.v1.Interconnects.Delete", + "fullName": "google.cloud.compute.v1.InterconnectAttachments.Patch", "service": { - "fullName": "google.cloud.compute.v1.Interconnects", - "shortName": "Interconnects" + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" }, - "shortName": "Delete" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInterconnectRequest" + "type": "google.cloud.compute_v1.types.PatchInterconnectAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect", + "name": "region", "type": "str" }, + { + "name": "interconnect_attachment", + "type": "str" + }, + { + "name": "interconnect_attachment_resource", + "type": "google.cloud.compute_v1.types.InterconnectAttachment" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -26014,21 +25862,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "patch" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_interconnects_delete_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_interconnect_attachments_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Interconnects_Delete_sync", + "regionTag": "compute_v1_generated_InterconnectAttachments_Patch_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -26038,52 +25886,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnects_delete_sync.py" + "title": "compute_v1_generated_interconnect_attachments_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectsClient", - "shortName": "InterconnectsClient" + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient", + "shortName": "InterconnectAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectsClient.get_diagnostics", + "fullName": "google.cloud.compute_v1.InterconnectAttachmentsClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.Interconnects.GetDiagnostics", + "fullName": "google.cloud.compute.v1.InterconnectAttachments.SetLabels", "service": { - "fullName": "google.cloud.compute.v1.Interconnects", - "shortName": "Interconnects" + "fullName": "google.cloud.compute.v1.InterconnectAttachments", + "shortName": "InterconnectAttachments" }, - "shortName": "GetDiagnostics" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetDiagnosticsInterconnectRequest" + "type": "google.cloud.compute_v1.types.SetLabelsInterconnectAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect", + "name": "region", + "type": "str" + }, + { + "name": "resource", "type": "str" }, + { + "name": "region_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -26097,22 +25953,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InterconnectsGetDiagnosticsResponse", - "shortName": "get_diagnostics" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" }, - "description": "Sample for GetDiagnostics", - "file": "compute_v1_generated_interconnects_get_diagnostics_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_interconnect_attachments_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Interconnects_GetDiagnostics_sync", + "regionTag": "compute_v1_generated_InterconnectAttachments_SetLabels_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -26122,52 +25978,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnects_get_diagnostics_sync.py" + "title": "compute_v1_generated_interconnect_attachments_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectsClient", - "shortName": "InterconnectsClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectsClient.get_macsec_config", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.create_members", "method": { - "fullName": "google.cloud.compute.v1.Interconnects.GetMacsecConfig", + "fullName": "google.cloud.compute.v1.InterconnectGroups.CreateMembers", "service": { - "fullName": "google.cloud.compute.v1.Interconnects", - "shortName": "Interconnects" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "GetMacsecConfig" + "shortName": "CreateMembers" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetMacsecConfigInterconnectRequest" + "type": "google.cloud.compute_v1.types.CreateMembersInterconnectGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect", + "name": "interconnect_group", "type": "str" }, + { + "name": "interconnect_groups_create_members_request_resource", + "type": "google.cloud.compute_v1.types.InterconnectGroupsCreateMembersRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -26181,14 +26041,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InterconnectsGetMacsecConfigResponse", - "shortName": "get_macsec_config" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "create_members" }, - "description": "Sample for GetMacsecConfig", - "file": "compute_v1_generated_interconnects_get_macsec_config_sync.py", + "description": "Sample for CreateMembers", + "file": "compute_v1_generated_interconnect_groups_create_members_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Interconnects_GetMacsecConfig_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_CreateMembers_sync", "segments": [ { "end": 52, @@ -26221,35 +26081,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnects_get_macsec_config_sync.py" + "title": "compute_v1_generated_interconnect_groups_create_members_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectsClient", - "shortName": "InterconnectsClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectsClient.get", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.Interconnects.Get", + "fullName": "google.cloud.compute.v1.InterconnectGroups.Delete", "service": { - "fullName": "google.cloud.compute.v1.Interconnects", - "shortName": "Interconnects" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "Get" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetInterconnectRequest" + "type": "google.cloud.compute_v1.types.DeleteInterconnectGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect", + "name": "interconnect_group", "type": "str" }, { @@ -26265,14 +26125,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Interconnect", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for Get", - "file": "compute_v1_generated_interconnects_get_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_interconnect_groups_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Interconnects_Get_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_Delete_sync", "segments": [ { "end": 52, @@ -26305,36 +26165,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnects_get_sync.py" + "title": "compute_v1_generated_interconnect_groups_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectsClient", - "shortName": "InterconnectsClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectsClient.insert", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Interconnects.Insert", + "fullName": "google.cloud.compute.v1.InterconnectGroups.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.Interconnects", - "shortName": "Interconnects" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "Insert" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertInterconnectRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyInterconnectGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect_resource", - "type": "google.cloud.compute_v1.types.Interconnect" + "name": "resource", + "type": "str" }, { "name": "retry", @@ -26349,22 +26209,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_interconnects_insert_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_interconnect_groups_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Interconnects_Insert_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_GetIamPolicy_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -26374,48 +26234,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnects_insert_sync.py" + "title": "compute_v1_generated_interconnect_groups_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectsClient", - "shortName": "InterconnectsClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectsClient.list", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.get_operational_status", "method": { - "fullName": "google.cloud.compute.v1.Interconnects.List", + "fullName": "google.cloud.compute.v1.InterconnectGroups.GetOperationalStatus", "service": { - "fullName": "google.cloud.compute.v1.Interconnects", - "shortName": "Interconnects" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "List" + "shortName": "GetOperationalStatus" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInterconnectsRequest" + "type": "google.cloud.compute_v1.types.GetOperationalStatusInterconnectGroupRequest" }, { "name": "project", "type": "str" }, + { + "name": "interconnect_group", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -26429,14 +26293,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.interconnects.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.InterconnectGroupsGetOperationalStatusResponse", + "shortName": "get_operational_status" }, - "description": "Sample for List", - "file": "compute_v1_generated_interconnects_list_sync.py", + "description": "Sample for GetOperationalStatus", + "file": "compute_v1_generated_interconnect_groups_get_operational_status_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Interconnects_List_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_GetOperationalStatus_sync", "segments": [ { "end": 52, @@ -26454,56 +26318,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnects_list_sync.py" + "title": "compute_v1_generated_interconnect_groups_get_operational_status_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectsClient", - "shortName": "InterconnectsClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectsClient.patch", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.get", "method": { - "fullName": "google.cloud.compute.v1.Interconnects.Patch", + "fullName": "google.cloud.compute.v1.InterconnectGroups.Get", "service": { - "fullName": "google.cloud.compute.v1.Interconnects", - "shortName": "Interconnects" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "Patch" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchInterconnectRequest" + "type": "google.cloud.compute_v1.types.GetInterconnectGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "interconnect", + "name": "interconnect_group", "type": "str" }, - { - "name": "interconnect_resource", - "type": "google.cloud.compute_v1.types.Interconnect" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -26517,14 +26377,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.types.InterconnectGroup", + "shortName": "get" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_interconnects_patch_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_interconnect_groups_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Interconnects_Patch_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_Get_sync", "segments": [ { "end": 52, @@ -26557,40 +26417,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnects_patch_sync.py" + "title": "compute_v1_generated_interconnect_groups_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.InterconnectsClient", - "shortName": "InterconnectsClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.InterconnectsClient.set_labels", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.Interconnects.SetLabels", + "fullName": "google.cloud.compute.v1.InterconnectGroups.Insert", "service": { - "fullName": "google.cloud.compute.v1.Interconnects", - "shortName": "Interconnects" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "SetLabels" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsInterconnectRequest" + "type": "google.cloud.compute_v1.types.InsertInterconnectGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", - "type": "str" - }, - { - "name": "global_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" + "name": "interconnect_group_resource", + "type": "google.cloud.compute_v1.types.InterconnectGroup" }, { "name": "retry", @@ -26606,21 +26462,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "shortName": "insert" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_interconnects_set_labels_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_interconnect_groups_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Interconnects_SetLabels_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_Insert_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -26630,52 +26486,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_interconnects_set_labels_sync.py" + "title": "compute_v1_generated_interconnect_groups_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.LicenseCodesClient", - "shortName": "LicenseCodesClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.LicenseCodesClient.get", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.list", "method": { - "fullName": "google.cloud.compute.v1.LicenseCodes.Get", + "fullName": "google.cloud.compute.v1.InterconnectGroups.List", "service": { - "fullName": "google.cloud.compute.v1.LicenseCodes", - "shortName": "LicenseCodes" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "Get" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetLicenseCodeRequest" + "type": "google.cloud.compute_v1.types.ListInterconnectGroupsRequest" }, { "name": "project", "type": "str" }, - { - "name": "license_code", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -26689,14 +26541,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.LicenseCode", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.interconnect_groups.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_license_codes_get_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_interconnect_groups_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_LicenseCodes_Get_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_List_sync", "segments": [ { "end": 52, @@ -26714,55 +26566,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_license_codes_get_sync.py" + "title": "compute_v1_generated_interconnect_groups_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.LicenseCodesClient", - "shortName": "LicenseCodesClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.LicenseCodesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.patch", "method": { - "fullName": "google.cloud.compute.v1.LicenseCodes.TestIamPermissions", + "fullName": "google.cloud.compute.v1.InterconnectGroups.Patch", "service": { - "fullName": "google.cloud.compute.v1.LicenseCodes", - "shortName": "LicenseCodes" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "TestIamPermissions" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsLicenseCodeRequest" + "type": "google.cloud.compute_v1.types.PatchInterconnectGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "interconnect_group", "type": "str" }, { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "interconnect_group_resource", + "type": "google.cloud.compute_v1.types.InterconnectGroup" }, { "name": "retry", @@ -26777,14 +26629,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_license_codes_test_iam_permissions_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_interconnect_groups_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_LicenseCodes_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_Patch_sync", "segments": [ { "end": 52, @@ -26817,37 +26669,41 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_license_codes_test_iam_permissions_sync.py" + "title": "compute_v1_generated_interconnect_groups_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.LicensesClient", - "shortName": "LicensesClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.LicensesClient.delete", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Licenses.Delete", + "fullName": "google.cloud.compute.v1.InterconnectGroups.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.Licenses", - "shortName": "Licenses" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "Delete" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteLicenseRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyInterconnectGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "license_", + "name": "resource", "type": "str" }, + { + "name": "global_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -26861,14 +26717,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_licenses_delete_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_interconnect_groups_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Licenses_Delete_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_SetIamPolicy_sync", "segments": [ { "end": 52, @@ -26901,28 +26757,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_licenses_delete_sync.py" + "title": "compute_v1_generated_interconnect_groups_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.LicensesClient", - "shortName": "LicensesClient" + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient", + "shortName": "InterconnectGroupsClient" }, - "fullName": "google.cloud.compute_v1.LicensesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.InterconnectGroupsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.Licenses.GetIamPolicy", + "fullName": "google.cloud.compute.v1.InterconnectGroups.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.Licenses", - "shortName": "Licenses" + "fullName": "google.cloud.compute.v1.InterconnectGroups", + "shortName": "InterconnectGroups" }, - "shortName": "GetIamPolicy" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyLicenseRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsInterconnectGroupRequest" }, { "name": "project", @@ -26932,6 +26788,10 @@ "name": "resource", "type": "str" }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -26945,14 +26805,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_licenses_get_iam_policy_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_interconnect_groups_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Licenses_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_InterconnectGroups_TestIamPermissions_sync", "segments": [ { "end": 52, @@ -26985,35 +26845,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_licenses_get_iam_policy_sync.py" + "title": "compute_v1_generated_interconnect_groups_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.LicensesClient", - "shortName": "LicensesClient" + "fullName": "google.cloud.compute_v1.InterconnectLocationsClient", + "shortName": "InterconnectLocationsClient" }, - "fullName": "google.cloud.compute_v1.LicensesClient.get", + "fullName": "google.cloud.compute_v1.InterconnectLocationsClient.get", "method": { - "fullName": "google.cloud.compute.v1.Licenses.Get", + "fullName": "google.cloud.compute.v1.InterconnectLocations.Get", "service": { - "fullName": "google.cloud.compute.v1.Licenses", - "shortName": "Licenses" + "fullName": "google.cloud.compute.v1.InterconnectLocations", + "shortName": "InterconnectLocations" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetLicenseRequest" + "type": "google.cloud.compute_v1.types.GetInterconnectLocationRequest" }, { "name": "project", "type": "str" }, { - "name": "license_", + "name": "interconnect_location", "type": "str" }, { @@ -27029,14 +26889,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.License", + "resultType": "google.cloud.compute_v1.types.InterconnectLocation", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_licenses_get_sync.py", + "file": "compute_v1_generated_interconnect_locations_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Licenses_Get_sync", + "regionTag": "compute_v1_generated_InterconnectLocations_Get_sync", "segments": [ { "end": 52, @@ -27069,37 +26929,33 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_licenses_get_sync.py" + "title": "compute_v1_generated_interconnect_locations_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.LicensesClient", - "shortName": "LicensesClient" + "fullName": "google.cloud.compute_v1.InterconnectLocationsClient", + "shortName": "InterconnectLocationsClient" }, - "fullName": "google.cloud.compute_v1.LicensesClient.insert", + "fullName": "google.cloud.compute_v1.InterconnectLocationsClient.list", "method": { - "fullName": "google.cloud.compute.v1.Licenses.Insert", + "fullName": "google.cloud.compute.v1.InterconnectLocations.List", "service": { - "fullName": "google.cloud.compute.v1.Licenses", - "shortName": "Licenses" + "fullName": "google.cloud.compute.v1.InterconnectLocations", + "shortName": "InterconnectLocations" }, - "shortName": "Insert" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertLicenseRequest" + "type": "google.cloud.compute_v1.types.ListInterconnectLocationsRequest" }, { "name": "project", "type": "str" }, - { - "name": "license_resource", - "type": "google.cloud.compute_v1.types.License" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -27113,22 +26969,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.services.interconnect_locations.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_licenses_insert_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_interconnect_locations_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Licenses_Insert_sync", + "regionTag": "compute_v1_generated_InterconnectLocations_List_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -27148,38 +27004,42 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 53, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_licenses_insert_sync.py" + "title": "compute_v1_generated_interconnect_locations_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.LicensesClient", - "shortName": "LicensesClient" + "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient", + "shortName": "InterconnectRemoteLocationsClient" }, - "fullName": "google.cloud.compute_v1.LicensesClient.list", + "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient.get", "method": { - "fullName": "google.cloud.compute.v1.Licenses.List", + "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.Get", "service": { - "fullName": "google.cloud.compute.v1.Licenses", - "shortName": "Licenses" + "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations", + "shortName": "InterconnectRemoteLocations" }, - "shortName": "List" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListLicensesRequest" + "type": "google.cloud.compute_v1.types.GetInterconnectRemoteLocationRequest" }, { "name": "project", "type": "str" }, + { + "name": "interconnect_remote_location", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -27193,14 +27053,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.licenses.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.InterconnectRemoteLocation", + "shortName": "get" }, - "description": "Sample for List", - "file": "compute_v1_generated_licenses_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_interconnect_remote_locations_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Licenses_List_sync", + "regionTag": "compute_v1_generated_InterconnectRemoteLocations_Get_sync", "segments": [ { "end": 52, @@ -27218,56 +27078,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_licenses_list_sync.py" + "title": "compute_v1_generated_interconnect_remote_locations_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.LicensesClient", - "shortName": "LicensesClient" + "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient", + "shortName": "InterconnectRemoteLocationsClient" }, - "fullName": "google.cloud.compute_v1.LicensesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.InterconnectRemoteLocationsClient.list", "method": { - "fullName": "google.cloud.compute.v1.Licenses.SetIamPolicy", + "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.List", "service": { - "fullName": "google.cloud.compute.v1.Licenses", - "shortName": "Licenses" + "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations", + "shortName": "InterconnectRemoteLocations" }, - "shortName": "SetIamPolicy" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyLicenseRequest" + "type": "google.cloud.compute_v1.types.ListInterconnectRemoteLocationsRequest" }, { "name": "project", "type": "str" }, - { - "name": "resource", - "type": "str" - }, - { - "name": "global_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -27281,14 +27133,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.cloud.compute_v1.services.interconnect_remote_locations.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_licenses_set_iam_policy_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_interconnect_remote_locations_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Licenses_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_InterconnectRemoteLocations_List_sync", "segments": [ { "end": 52, @@ -27306,56 +27158,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_licenses_set_iam_policy_sync.py" + "title": "compute_v1_generated_interconnect_remote_locations_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.LicensesClient", - "shortName": "LicensesClient" + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" }, - "fullName": "google.cloud.compute_v1.LicensesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.InterconnectsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.Licenses.TestIamPermissions", + "fullName": "google.cloud.compute.v1.Interconnects.Delete", "service": { - "fullName": "google.cloud.compute.v1.Licenses", - "shortName": "Licenses" + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" }, - "shortName": "TestIamPermissions" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsLicenseRequest" + "type": "google.cloud.compute_v1.types.DeleteInterconnectRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "interconnect", "type": "str" }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -27369,14 +27217,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_licenses_test_iam_permissions_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_interconnects_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Licenses_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_Interconnects_Delete_sync", "segments": [ { "end": 52, @@ -27409,123 +27257,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_licenses_test_iam_permissions_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.LicensesClient", - "shortName": "LicensesClient" - }, - "fullName": "google.cloud.compute_v1.LicensesClient.update", - "method": { - "fullName": "google.cloud.compute.v1.Licenses.Update", - "service": { - "fullName": "google.cloud.compute.v1.Licenses", - "shortName": "Licenses" - }, - "shortName": "Update" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.UpdateLicenseRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "license_", - "type": "str" - }, - { - "name": "license_resource", - "type": "google.cloud.compute_v1.types.License" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" - }, - "description": "Sample for Update", - "file": "compute_v1_generated_licenses_update_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Licenses_Update_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 49, - "start": 47, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_licenses_update_sync.py" + "title": "compute_v1_generated_interconnects_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineImagesClient", - "shortName": "MachineImagesClient" + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" }, - "fullName": "google.cloud.compute_v1.MachineImagesClient.delete", + "fullName": "google.cloud.compute_v1.InterconnectsClient.get_diagnostics", "method": { - "fullName": "google.cloud.compute.v1.MachineImages.Delete", + "fullName": "google.cloud.compute.v1.Interconnects.GetDiagnostics", "service": { - "fullName": "google.cloud.compute.v1.MachineImages", - "shortName": "MachineImages" + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" }, - "shortName": "Delete" + "shortName": "GetDiagnostics" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteMachineImageRequest" + "type": "google.cloud.compute_v1.types.GetDiagnosticsInterconnectRequest" }, { "name": "project", "type": "str" }, { - "name": "machine_image", + "name": "interconnect", "type": "str" }, { @@ -27541,14 +27301,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.InterconnectsGetDiagnosticsResponse", + "shortName": "get_diagnostics" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_machine_images_delete_sync.py", + "description": "Sample for GetDiagnostics", + "file": "compute_v1_generated_interconnects_get_diagnostics_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineImages_Delete_sync", + "regionTag": "compute_v1_generated_Interconnects_GetDiagnostics_sync", "segments": [ { "end": 52, @@ -27581,35 +27341,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_images_delete_sync.py" + "title": "compute_v1_generated_interconnects_get_diagnostics_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineImagesClient", - "shortName": "MachineImagesClient" + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" }, - "fullName": "google.cloud.compute_v1.MachineImagesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.InterconnectsClient.get_macsec_config", "method": { - "fullName": "google.cloud.compute.v1.MachineImages.GetIamPolicy", + "fullName": "google.cloud.compute.v1.Interconnects.GetMacsecConfig", "service": { - "fullName": "google.cloud.compute.v1.MachineImages", - "shortName": "MachineImages" + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" }, - "shortName": "GetIamPolicy" + "shortName": "GetMacsecConfig" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyMachineImageRequest" + "type": "google.cloud.compute_v1.types.GetMacsecConfigInterconnectRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "interconnect", "type": "str" }, { @@ -27625,14 +27385,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.cloud.compute_v1.types.InterconnectsGetMacsecConfigResponse", + "shortName": "get_macsec_config" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_machine_images_get_iam_policy_sync.py", + "description": "Sample for GetMacsecConfig", + "file": "compute_v1_generated_interconnects_get_macsec_config_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineImages_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_Interconnects_GetMacsecConfig_sync", "segments": [ { "end": 52, @@ -27665,35 +27425,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_images_get_iam_policy_sync.py" + "title": "compute_v1_generated_interconnects_get_macsec_config_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineImagesClient", - "shortName": "MachineImagesClient" + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" }, - "fullName": "google.cloud.compute_v1.MachineImagesClient.get", + "fullName": "google.cloud.compute_v1.InterconnectsClient.get", "method": { - "fullName": "google.cloud.compute.v1.MachineImages.Get", + "fullName": "google.cloud.compute.v1.Interconnects.Get", "service": { - "fullName": "google.cloud.compute.v1.MachineImages", - "shortName": "MachineImages" + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetMachineImageRequest" + "type": "google.cloud.compute_v1.types.GetInterconnectRequest" }, { "name": "project", "type": "str" }, { - "name": "machine_image", + "name": "interconnect", "type": "str" }, { @@ -27709,14 +27469,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.MachineImage", + "resultType": "google.cloud.compute_v1.types.Interconnect", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_machine_images_get_sync.py", + "file": "compute_v1_generated_interconnects_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineImages_Get_sync", + "regionTag": "compute_v1_generated_Interconnects_Get_sync", "segments": [ { "end": 52, @@ -27749,36 +27509,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_images_get_sync.py" + "title": "compute_v1_generated_interconnects_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineImagesClient", - "shortName": "MachineImagesClient" + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" }, - "fullName": "google.cloud.compute_v1.MachineImagesClient.insert", + "fullName": "google.cloud.compute_v1.InterconnectsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.MachineImages.Insert", + "fullName": "google.cloud.compute.v1.Interconnects.Insert", "service": { - "fullName": "google.cloud.compute.v1.MachineImages", - "shortName": "MachineImages" + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertMachineImageRequest" + "type": "google.cloud.compute_v1.types.InsertInterconnectRequest" }, { "name": "project", "type": "str" }, { - "name": "machine_image_resource", - "type": "google.cloud.compute_v1.types.MachineImage" + "name": "interconnect_resource", + "type": "google.cloud.compute_v1.types.Interconnect" }, { "name": "retry", @@ -27797,10 +27557,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_machine_images_insert_sync.py", + "file": "compute_v1_generated_interconnects_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineImages_Insert_sync", + "regionTag": "compute_v1_generated_Interconnects_Insert_sync", "segments": [ { "end": 51, @@ -27833,28 +27593,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_images_insert_sync.py" + "title": "compute_v1_generated_interconnects_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineImagesClient", - "shortName": "MachineImagesClient" + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" }, - "fullName": "google.cloud.compute_v1.MachineImagesClient.list", + "fullName": "google.cloud.compute_v1.InterconnectsClient.list", "method": { - "fullName": "google.cloud.compute.v1.MachineImages.List", + "fullName": "google.cloud.compute.v1.Interconnects.List", "service": { - "fullName": "google.cloud.compute.v1.MachineImages", - "shortName": "MachineImages" + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListMachineImagesRequest" + "type": "google.cloud.compute_v1.types.ListInterconnectsRequest" }, { "name": "project", @@ -27873,14 +27633,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.machine_images.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.interconnects.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_machine_images_list_sync.py", + "file": "compute_v1_generated_interconnects_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineImages_List_sync", + "regionTag": "compute_v1_generated_Interconnects_List_sync", "segments": [ { "end": 52, @@ -27913,40 +27673,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_images_list_sync.py" + "title": "compute_v1_generated_interconnects_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineImagesClient", - "shortName": "MachineImagesClient" + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" }, - "fullName": "google.cloud.compute_v1.MachineImagesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.InterconnectsClient.patch", "method": { - "fullName": "google.cloud.compute.v1.MachineImages.SetIamPolicy", + "fullName": "google.cloud.compute.v1.Interconnects.Patch", "service": { - "fullName": "google.cloud.compute.v1.MachineImages", - "shortName": "MachineImages" + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" }, - "shortName": "SetIamPolicy" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyMachineImageRequest" + "type": "google.cloud.compute_v1.types.PatchInterconnectRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "interconnect", "type": "str" }, { - "name": "global_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" + "name": "interconnect_resource", + "type": "google.cloud.compute_v1.types.Interconnect" }, { "name": "retry", @@ -27961,14 +27721,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_machine_images_set_iam_policy_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_interconnects_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineImages_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_Interconnects_Patch_sync", "segments": [ { "end": 52, @@ -28001,28 +27761,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_images_set_iam_policy_sync.py" + "title": "compute_v1_generated_interconnects_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineImagesClient", - "shortName": "MachineImagesClient" + "fullName": "google.cloud.compute_v1.InterconnectsClient", + "shortName": "InterconnectsClient" }, - "fullName": "google.cloud.compute_v1.MachineImagesClient.set_labels", + "fullName": "google.cloud.compute_v1.InterconnectsClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.MachineImages.SetLabels", + "fullName": "google.cloud.compute.v1.Interconnects.SetLabels", "service": { - "fullName": "google.cloud.compute.v1.MachineImages", - "shortName": "MachineImages" + "fullName": "google.cloud.compute.v1.Interconnects", + "shortName": "Interconnects" }, "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsMachineImageRequest" + "type": "google.cloud.compute_v1.types.SetLabelsInterconnectRequest" }, { "name": "project", @@ -28053,10 +27813,10 @@ "shortName": "set_labels" }, "description": "Sample for SetLabels", - "file": "compute_v1_generated_machine_images_set_labels_sync.py", + "file": "compute_v1_generated_interconnects_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineImages_SetLabels_sync", + "regionTag": "compute_v1_generated_Interconnects_SetLabels_sync", "segments": [ { "end": 52, @@ -28089,41 +27849,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_images_set_labels_sync.py" + "title": "compute_v1_generated_interconnects_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineImagesClient", - "shortName": "MachineImagesClient" + "fullName": "google.cloud.compute_v1.LicenseCodesClient", + "shortName": "LicenseCodesClient" }, - "fullName": "google.cloud.compute_v1.MachineImagesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.LicenseCodesClient.get", "method": { - "fullName": "google.cloud.compute.v1.MachineImages.TestIamPermissions", + "fullName": "google.cloud.compute.v1.LicenseCodes.Get", "service": { - "fullName": "google.cloud.compute.v1.MachineImages", - "shortName": "MachineImages" + "fullName": "google.cloud.compute.v1.LicenseCodes", + "shortName": "LicenseCodes" }, - "shortName": "TestIamPermissions" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsMachineImageRequest" + "type": "google.cloud.compute_v1.types.GetLicenseCodeRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "license_code", "type": "str" }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -28137,14 +27893,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.types.LicenseCode", + "shortName": "get" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_machine_images_test_iam_permissions_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_license_codes_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineImages_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_LicenseCodes_Get_sync", "segments": [ { "end": 52, @@ -28177,33 +27933,41 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_images_test_iam_permissions_sync.py" + "title": "compute_v1_generated_license_codes_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineTypesClient", - "shortName": "MachineTypesClient" + "fullName": "google.cloud.compute_v1.LicenseCodesClient", + "shortName": "LicenseCodesClient" }, - "fullName": "google.cloud.compute_v1.MachineTypesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.LicenseCodesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.MachineTypes.AggregatedList", + "fullName": "google.cloud.compute.v1.LicenseCodes.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.MachineTypes", - "shortName": "MachineTypes" + "fullName": "google.cloud.compute.v1.LicenseCodes", + "shortName": "LicenseCodes" }, - "shortName": "AggregatedList" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListMachineTypesRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsLicenseCodeRequest" }, { "name": "project", "type": "str" }, + { + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -28217,14 +27981,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.machine_types.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_machine_types_aggregated_list_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_license_codes_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineTypes_AggregatedList_sync", + "regionTag": "compute_v1_generated_LicenseCodes_TestIamPermissions_sync", "segments": [ { "end": 52, @@ -28242,54 +28006,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_types_aggregated_list_sync.py" + "title": "compute_v1_generated_license_codes_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineTypesClient", - "shortName": "MachineTypesClient" + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" }, - "fullName": "google.cloud.compute_v1.MachineTypesClient.get", + "fullName": "google.cloud.compute_v1.LicensesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.MachineTypes.Get", + "fullName": "google.cloud.compute.v1.Licenses.Delete", "service": { - "fullName": "google.cloud.compute.v1.MachineTypes", - "shortName": "MachineTypes" + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" }, - "shortName": "Get" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetMachineTypeRequest" + "type": "google.cloud.compute_v1.types.DeleteLicenseRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "machine_type", + "name": "license_", "type": "str" }, { @@ -28305,22 +28065,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.MachineType", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for Get", - "file": "compute_v1_generated_machine_types_get_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_licenses_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineTypes_Get_sync", + "regionTag": "compute_v1_generated_Licenses_Delete_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -28330,50 +28090,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_types_get_sync.py" + "title": "compute_v1_generated_licenses_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.MachineTypesClient", - "shortName": "MachineTypesClient" + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" }, - "fullName": "google.cloud.compute_v1.MachineTypesClient.list", + "fullName": "google.cloud.compute_v1.LicensesClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.MachineTypes.List", + "fullName": "google.cloud.compute.v1.Licenses.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.MachineTypes", - "shortName": "MachineTypes" + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" }, - "shortName": "List" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListMachineTypesRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyLicenseRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "resource", "type": "str" }, { @@ -28389,22 +28149,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.machine_types.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for List", - "file": "compute_v1_generated_machine_types_list_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_licenses_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_MachineTypes_List_sync", + "regionTag": "compute_v1_generated_Licenses_GetIamPolicy_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -28424,38 +28184,42 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 53, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_machine_types_list_sync.py" + "title": "compute_v1_generated_licenses_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", - "shortName": "NetworkAttachmentsClient" + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" }, - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.aggregated_list", + "fullName": "google.cloud.compute_v1.LicensesClient.get", "method": { - "fullName": "google.cloud.compute.v1.NetworkAttachments.AggregatedList", + "fullName": "google.cloud.compute.v1.Licenses.Get", "service": { - "fullName": "google.cloud.compute.v1.NetworkAttachments", - "shortName": "NetworkAttachments" + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" }, - "shortName": "AggregatedList" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListNetworkAttachmentsRequest" + "type": "google.cloud.compute_v1.types.GetLicenseRequest" }, { "name": "project", "type": "str" }, + { + "name": "license_", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -28469,14 +28233,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.network_attachments.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.types.License", + "shortName": "get" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_network_attachments_aggregated_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_licenses_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkAttachments_AggregatedList_sync", + "regionTag": "compute_v1_generated_Licenses_Get_sync", "segments": [ { "end": 52, @@ -28494,55 +28258,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_attachments_aggregated_list_sync.py" + "title": "compute_v1_generated_licenses_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", - "shortName": "NetworkAttachmentsClient" + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" }, - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.delete", + "fullName": "google.cloud.compute_v1.LicensesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.NetworkAttachments.Delete", + "fullName": "google.cloud.compute.v1.Licenses.Insert", "service": { - "fullName": "google.cloud.compute.v1.NetworkAttachments", - "shortName": "NetworkAttachments" + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" }, - "shortName": "Delete" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteNetworkAttachmentRequest" + "type": "google.cloud.compute_v1.types.InsertLicenseRequest" }, { "name": "project", "type": "str" }, { - "name": "region", - "type": "str" - }, - { - "name": "network_attachment", - "type": "str" + "name": "license_resource", + "type": "google.cloud.compute_v1.types.License" }, { "name": "retry", @@ -28558,21 +28318,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "insert" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_network_attachments_delete_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_licenses_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkAttachments_Delete_sync", + "regionTag": "compute_v1_generated_Licenses_Insert_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -28582,56 +28342,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_attachments_delete_sync.py" + "title": "compute_v1_generated_licenses_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", - "shortName": "NetworkAttachmentsClient" + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" }, - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.LicensesClient.list", "method": { - "fullName": "google.cloud.compute.v1.NetworkAttachments.GetIamPolicy", + "fullName": "google.cloud.compute.v1.Licenses.List", "service": { - "fullName": "google.cloud.compute.v1.NetworkAttachments", - "shortName": "NetworkAttachments" + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" }, - "shortName": "GetIamPolicy" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyNetworkAttachmentRequest" + "type": "google.cloud.compute_v1.types.ListLicensesRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, - { - "name": "resource", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -28645,22 +28397,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.cloud.compute_v1.services.licenses.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_network_attachments_get_iam_policy_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_licenses_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkAttachments_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_Licenses_List_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -28670,55 +28422,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_attachments_get_iam_policy_sync.py" + "title": "compute_v1_generated_licenses_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", - "shortName": "NetworkAttachmentsClient" + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" }, - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.get", + "fullName": "google.cloud.compute_v1.LicensesClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.NetworkAttachments.Get", + "fullName": "google.cloud.compute.v1.Licenses.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.NetworkAttachments", - "shortName": "NetworkAttachments" + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" }, - "shortName": "Get" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetNetworkAttachmentRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyLicenseRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "resource", "type": "str" }, { - "name": "network_attachment", - "type": "str" + "name": "global_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" }, { "name": "retry", @@ -28733,22 +28485,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NetworkAttachment", - "shortName": "get" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Get", - "file": "compute_v1_generated_network_attachments_get_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_licenses_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkAttachments_Get_sync", + "regionTag": "compute_v1_generated_Licenses_SetIamPolicy_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -28758,55 +28510,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_attachments_get_sync.py" + "title": "compute_v1_generated_licenses_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", - "shortName": "NetworkAttachmentsClient" + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" }, - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.insert", + "fullName": "google.cloud.compute_v1.LicensesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.NetworkAttachments.Insert", + "fullName": "google.cloud.compute.v1.Licenses.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.NetworkAttachments", - "shortName": "NetworkAttachments" + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" }, - "shortName": "Insert" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertNetworkAttachmentRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsLicenseRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "resource", "type": "str" }, { - "name": "network_attachment_resource", - "type": "google.cloud.compute_v1.types.NetworkAttachment" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -28821,14 +28573,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_network_attachments_insert_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_licenses_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkAttachments_Insert_sync", + "regionTag": "compute_v1_generated_Licenses_TestIamPermissions_sync", "segments": [ { "end": 52, @@ -28861,37 +28613,41 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_attachments_insert_sync.py" + "title": "compute_v1_generated_licenses_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", - "shortName": "NetworkAttachmentsClient" + "fullName": "google.cloud.compute_v1.LicensesClient", + "shortName": "LicensesClient" }, - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.list", + "fullName": "google.cloud.compute_v1.LicensesClient.update", "method": { - "fullName": "google.cloud.compute.v1.NetworkAttachments.List", + "fullName": "google.cloud.compute.v1.Licenses.Update", "service": { - "fullName": "google.cloud.compute.v1.NetworkAttachments", - "shortName": "NetworkAttachments" + "fullName": "google.cloud.compute.v1.Licenses", + "shortName": "Licenses" }, - "shortName": "List" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNetworkAttachmentsRequest" + "type": "google.cloud.compute_v1.types.UpdateLicenseRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "license_", "type": "str" }, + { + "name": "license_resource", + "type": "google.cloud.compute_v1.types.License" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -28905,22 +28661,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.network_attachments.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" }, - "description": "Sample for List", - "file": "compute_v1_generated_network_attachments_list_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_licenses_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkAttachments_List_sync", + "regionTag": "compute_v1_generated_Licenses_Update_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -28940,50 +28696,42 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 53, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_attachments_list_sync.py" + "title": "compute_v1_generated_licenses_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", - "shortName": "NetworkAttachmentsClient" + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" }, - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.patch", + "fullName": "google.cloud.compute_v1.MachineImagesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.NetworkAttachments.Patch", + "fullName": "google.cloud.compute.v1.MachineImages.Delete", "service": { - "fullName": "google.cloud.compute.v1.NetworkAttachments", - "shortName": "NetworkAttachments" + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" }, - "shortName": "Patch" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchNetworkAttachmentRequest" + "type": "google.cloud.compute_v1.types.DeleteMachineImageRequest" }, { "name": "project", "type": "str" }, { - "name": "region", - "type": "str" - }, - { - "name": "network_attachment", + "name": "machine_image", "type": "str" }, - { - "name": "network_attachment_resource", - "type": "google.cloud.compute_v1.types.NetworkAttachment" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -28998,21 +28746,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "delete" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_network_attachments_patch_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_machine_images_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkAttachments_Patch_sync", + "regionTag": "compute_v1_generated_MachineImages_Delete_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -29022,60 +28770,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_attachments_patch_sync.py" + "title": "compute_v1_generated_machine_images_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", - "shortName": "NetworkAttachmentsClient" + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" }, - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.MachineImagesClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.NetworkAttachments.SetIamPolicy", + "fullName": "google.cloud.compute.v1.MachineImages.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.NetworkAttachments", - "shortName": "NetworkAttachments" + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" }, - "shortName": "SetIamPolicy" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyNetworkAttachmentRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyMachineImageRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, { "name": "resource", "type": "str" }, - { - "name": "region_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -29090,21 +28830,21 @@ } ], "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "shortName": "get_iam_policy" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_network_attachments_set_iam_policy_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_machine_images_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkAttachments_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_MachineImages_GetIamPolicy_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -29114,60 +28854,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_attachments_set_iam_policy_sync.py" + "title": "compute_v1_generated_machine_images_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", - "shortName": "NetworkAttachmentsClient" + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" }, - "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.MachineImagesClient.get", "method": { - "fullName": "google.cloud.compute.v1.NetworkAttachments.TestIamPermissions", + "fullName": "google.cloud.compute.v1.MachineImages.Get", "service": { - "fullName": "google.cloud.compute.v1.NetworkAttachments", - "shortName": "NetworkAttachments" + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" }, - "shortName": "TestIamPermissions" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsNetworkAttachmentRequest" + "type": "google.cloud.compute_v1.types.GetMachineImageRequest" }, { "name": "project", "type": "str" }, { - "name": "region", - "type": "str" - }, - { - "name": "resource", + "name": "machine_image", "type": "str" }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -29181,22 +28913,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.types.MachineImage", + "shortName": "get" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_network_attachments_test_iam_permissions_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_machine_images_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkAttachments_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_MachineImages_Get_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -29206,48 +28938,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_attachments_test_iam_permissions_sync.py" + "title": "compute_v1_generated_machine_images_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", - "shortName": "NetworkEdgeSecurityServicesClient" + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" }, - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.MachineImagesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.AggregatedList", + "fullName": "google.cloud.compute.v1.MachineImages.Insert", "service": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", - "shortName": "NetworkEdgeSecurityServices" + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" }, - "shortName": "AggregatedList" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListNetworkEdgeSecurityServicesRequest" + "type": "google.cloud.compute_v1.types.InsertMachineImageRequest" }, { "name": "project", "type": "str" }, + { + "name": "machine_image_resource", + "type": "google.cloud.compute_v1.types.MachineImage" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -29261,22 +28997,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.network_edge_security_services.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_network_edge_security_services_aggregated_list_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_machine_images_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_AggregatedList_sync", + "regionTag": "compute_v1_generated_MachineImages_Insert_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -29296,46 +29032,38 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_edge_security_services_aggregated_list_sync.py" + "title": "compute_v1_generated_machine_images_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", - "shortName": "NetworkEdgeSecurityServicesClient" + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" }, - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.delete", + "fullName": "google.cloud.compute_v1.MachineImagesClient.list", "method": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Delete", + "fullName": "google.cloud.compute.v1.MachineImages.List", "service": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", - "shortName": "NetworkEdgeSecurityServices" + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" }, - "shortName": "Delete" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteNetworkEdgeSecurityServiceRequest" + "type": "google.cloud.compute_v1.types.ListMachineImagesRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, - { - "name": "network_edge_security_service", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -29349,22 +29077,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.machine_images.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_network_edge_security_services_delete_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_machine_images_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Delete_sync", + "regionTag": "compute_v1_generated_MachineImages_List_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -29374,55 +29102,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_edge_security_services_delete_sync.py" + "title": "compute_v1_generated_machine_images_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", - "shortName": "NetworkEdgeSecurityServicesClient" + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" }, - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.get", + "fullName": "google.cloud.compute_v1.MachineImagesClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Get", + "fullName": "google.cloud.compute.v1.MachineImages.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", - "shortName": "NetworkEdgeSecurityServices" + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" }, - "shortName": "Get" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetNetworkEdgeSecurityServiceRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyMachineImageRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "resource", "type": "str" }, { - "name": "network_edge_security_service", - "type": "str" + "name": "global_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" }, { "name": "retry", @@ -29437,22 +29165,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NetworkEdgeSecurityService", - "shortName": "get" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Get", - "file": "compute_v1_generated_network_edge_security_services_get_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_machine_images_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Get_sync", + "regionTag": "compute_v1_generated_MachineImages_SetIamPolicy_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -29462,55 +29190,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_edge_security_services_get_sync.py" + "title": "compute_v1_generated_machine_images_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", - "shortName": "NetworkEdgeSecurityServicesClient" + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" }, - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.insert", + "fullName": "google.cloud.compute_v1.MachineImagesClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Insert", + "fullName": "google.cloud.compute.v1.MachineImages.SetLabels", "service": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", - "shortName": "NetworkEdgeSecurityServices" + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" }, - "shortName": "Insert" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertNetworkEdgeSecurityServiceRequest" + "type": "google.cloud.compute_v1.types.SetLabelsMachineImageRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "resource", "type": "str" }, { - "name": "network_edge_security_service_resource", - "type": "google.cloud.compute_v1.types.NetworkEdgeSecurityService" + "name": "global_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetLabelsRequest" }, { "name": "retry", @@ -29526,13 +29254,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "set_labels" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_network_edge_security_services_insert_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_machine_images_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Insert_sync", + "regionTag": "compute_v1_generated_MachineImages_SetLabels_sync", "segments": [ { "end": 52, @@ -29565,44 +29293,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_edge_security_services_insert_sync.py" + "title": "compute_v1_generated_machine_images_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", - "shortName": "NetworkEdgeSecurityServicesClient" + "fullName": "google.cloud.compute_v1.MachineImagesClient", + "shortName": "MachineImagesClient" }, - "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.patch", + "fullName": "google.cloud.compute_v1.MachineImagesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Patch", + "fullName": "google.cloud.compute.v1.MachineImages.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", - "shortName": "NetworkEdgeSecurityServices" + "fullName": "google.cloud.compute.v1.MachineImages", + "shortName": "MachineImages" }, - "shortName": "Patch" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchNetworkEdgeSecurityServiceRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsMachineImageRequest" }, { "name": "project", "type": "str" }, { - "name": "region", - "type": "str" - }, - { - "name": "network_edge_security_service", + "name": "resource", "type": "str" }, { - "name": "network_edge_security_service_resource", - "type": "google.cloud.compute_v1.types.NetworkEdgeSecurityService" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -29617,22 +29341,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_network_edge_security_services_patch_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_machine_images_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Patch_sync", + "regionTag": "compute_v1_generated_MachineImages_TestIamPermissions_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -29642,43 +29366,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_edge_security_services_patch_sync.py" + "title": "compute_v1_generated_machine_images_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", - "shortName": "NetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.MachineTypesClient", + "shortName": "MachineTypesClient" }, - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.aggregated_list", + "fullName": "google.cloud.compute_v1.MachineTypesClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AggregatedList", + "fullName": "google.cloud.compute.v1.MachineTypes.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", - "shortName": "NetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.MachineTypes", + "shortName": "MachineTypes" }, "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListNetworkEndpointGroupsRequest" + "type": "google.cloud.compute_v1.types.AggregatedListMachineTypesRequest" }, { "name": "project", @@ -29697,14 +29421,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.network_endpoint_groups.pagers.AggregatedListPager", + "resultType": "google.cloud.compute_v1.services.machine_types.pagers.AggregatedListPager", "shortName": "aggregated_list" }, "description": "Sample for AggregatedList", - "file": "compute_v1_generated_network_endpoint_groups_aggregated_list_sync.py", + "file": "compute_v1_generated_machine_types_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEndpointGroups_AggregatedList_sync", + "regionTag": "compute_v1_generated_MachineTypes_AggregatedList_sync", "segments": [ { "end": 52, @@ -29737,28 +29461,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_endpoint_groups_aggregated_list_sync.py" + "title": "compute_v1_generated_machine_types_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", - "shortName": "NetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.MachineTypesClient", + "shortName": "MachineTypesClient" }, - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.attach_network_endpoints", + "fullName": "google.cloud.compute_v1.MachineTypesClient.get", "method": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AttachNetworkEndpoints", + "fullName": "google.cloud.compute.v1.MachineTypes.Get", "service": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", - "shortName": "NetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.MachineTypes", + "shortName": "MachineTypes" }, - "shortName": "AttachNetworkEndpoints" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AttachNetworkEndpointsNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.GetMachineTypeRequest" }, { "name": "project", @@ -29769,13 +29493,9 @@ "type": "str" }, { - "name": "network_endpoint_group", + "name": "machine_type", "type": "str" }, - { - "name": "network_endpoint_groups_attach_endpoints_request_resource", - "type": "google.cloud.compute_v1.types.NetworkEndpointGroupsAttachEndpointsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -29789,14 +29509,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "attach_network_endpoints" + "resultType": "google.cloud.compute_v1.types.MachineType", + "shortName": "get" }, - "description": "Sample for AttachNetworkEndpoints", - "file": "compute_v1_generated_network_endpoint_groups_attach_network_endpoints_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_machine_types_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEndpointGroups_AttachNetworkEndpoints_sync", + "regionTag": "compute_v1_generated_MachineTypes_Get_sync", "segments": [ { "end": 53, @@ -29829,28 +29549,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_endpoint_groups_attach_network_endpoints_sync.py" + "title": "compute_v1_generated_machine_types_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", - "shortName": "NetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.MachineTypesClient", + "shortName": "MachineTypesClient" }, - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.delete", + "fullName": "google.cloud.compute_v1.MachineTypesClient.list", "method": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Delete", + "fullName": "google.cloud.compute.v1.MachineTypes.List", "service": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", - "shortName": "NetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.MachineTypes", + "shortName": "MachineTypes" }, - "shortName": "Delete" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.ListMachineTypesRequest" }, { "name": "project", @@ -29860,10 +29580,6 @@ "name": "zone", "type": "str" }, - { - "name": "network_endpoint_group", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -29877,14 +29593,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.machine_types.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_network_endpoint_groups_delete_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_machine_types_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEndpointGroups_Delete_sync", + "regionTag": "compute_v1_generated_MachineTypes_List_sync", "segments": [ { "end": 53, @@ -29902,60 +29618,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_endpoint_groups_delete_sync.py" + "title": "compute_v1_generated_machine_types_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", - "shortName": "NetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.detach_network_endpoints", + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.DetachNetworkEndpoints", + "fullName": "google.cloud.compute.v1.NetworkAttachments.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", - "shortName": "NetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" }, - "shortName": "DetachNetworkEndpoints" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DetachNetworkEndpointsNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.AggregatedListNetworkAttachmentsRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "network_endpoint_group", - "type": "str" - }, - { - "name": "network_endpoint_groups_detach_endpoints_request_resource", - "type": "google.cloud.compute_v1.types.NetworkEndpointGroupsDetachEndpointsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -29969,22 +29673,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "detach_network_endpoints" + "resultType": "google.cloud.compute_v1.services.network_attachments.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for DetachNetworkEndpoints", - "file": "compute_v1_generated_network_endpoint_groups_detach_network_endpoints_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_network_attachments_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEndpointGroups_DetachNetworkEndpoints_sync", + "regionTag": "compute_v1_generated_NetworkAttachments_AggregatedList_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -29994,54 +29698,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_endpoint_groups_detach_network_endpoints_sync.py" + "title": "compute_v1_generated_network_attachments_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", - "shortName": "NetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.get", + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Get", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Delete", "service": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", - "shortName": "NetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" }, - "shortName": "Get" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.DeleteNetworkAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "region", "type": "str" }, { - "name": "network_endpoint_group", + "name": "network_attachment", "type": "str" }, { @@ -30057,14 +29761,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NetworkEndpointGroup", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for Get", - "file": "compute_v1_generated_network_endpoint_groups_get_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_network_attachments_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEndpointGroups_Get_sync", + "regionTag": "compute_v1_generated_NetworkAttachments_Delete_sync", "segments": [ { "end": 53, @@ -30097,40 +29801,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_endpoint_groups_get_sync.py" + "title": "compute_v1_generated_network_attachments_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", - "shortName": "NetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.insert", + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Insert", + "fullName": "google.cloud.compute.v1.NetworkAttachments.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", - "shortName": "NetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" }, - "shortName": "Insert" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyNetworkAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "region", "type": "str" }, { - "name": "network_endpoint_group_resource", - "type": "google.cloud.compute_v1.types.NetworkEndpointGroup" + "name": "resource", + "type": "str" }, { "name": "retry", @@ -30145,22 +29849,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_network_endpoint_groups_insert_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_network_attachments_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEndpointGroups_Insert_sync", + "regionTag": "compute_v1_generated_NetworkAttachments_GetIamPolicy_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -30170,60 +29874,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_endpoint_groups_insert_sync.py" + "title": "compute_v1_generated_network_attachments_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", - "shortName": "NetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.list_network_endpoints", + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.get", "method": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.ListNetworkEndpoints", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Get", "service": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", - "shortName": "NetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" }, - "shortName": "ListNetworkEndpoints" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNetworkEndpointsNetworkEndpointGroupsRequest" + "type": "google.cloud.compute_v1.types.GetNetworkAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "region", "type": "str" }, { - "name": "network_endpoint_group", + "name": "network_attachment", "type": "str" }, - { - "name": "network_endpoint_groups_list_endpoints_request_resource", - "type": "google.cloud.compute_v1.types.NetworkEndpointGroupsListEndpointsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -30237,22 +29937,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.network_endpoint_groups.pagers.ListNetworkEndpointsPager", - "shortName": "list_network_endpoints" + "resultType": "google.cloud.compute_v1.types.NetworkAttachment", + "shortName": "get" }, - "description": "Sample for ListNetworkEndpoints", - "file": "compute_v1_generated_network_endpoint_groups_list_network_endpoints_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_network_attachments_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEndpointGroups_ListNetworkEndpoints_sync", + "regionTag": "compute_v1_generated_NetworkAttachments_Get_sync", "segments": [ { - "end": 54, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 53, "start": 27, "type": "SHORT" }, @@ -30272,42 +29972,46 @@ "type": "REQUEST_EXECUTION" }, { - "end": 55, + "end": 54, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_endpoint_groups_list_network_endpoints_sync.py" + "title": "compute_v1_generated_network_attachments_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", - "shortName": "NetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.list", + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.List", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Insert", "service": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", - "shortName": "NetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" }, - "shortName": "List" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNetworkEndpointGroupsRequest" + "type": "google.cloud.compute_v1.types.InsertNetworkAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "region", "type": "str" }, + { + "name": "network_attachment_resource", + "type": "google.cloud.compute_v1.types.NetworkAttachment" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -30321,22 +30025,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.network_endpoint_groups.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for List", - "file": "compute_v1_generated_network_endpoint_groups_list_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_network_attachments_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEndpointGroups_List_sync", + "regionTag": "compute_v1_generated_NetworkAttachments_Insert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -30356,50 +30060,42 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 53, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_endpoint_groups_list_sync.py" + "title": "compute_v1_generated_network_attachments_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", - "shortName": "NetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.list", "method": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.TestIamPermissions", + "fullName": "google.cloud.compute.v1.NetworkAttachments.List", "service": { - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", - "shortName": "NetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" }, - "shortName": "TestIamPermissions" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.ListNetworkAttachmentsRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "resource", + "name": "region", "type": "str" }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -30413,14 +30109,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.services.network_attachments.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_network_endpoint_groups_test_iam_permissions_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_network_attachments_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkEndpointGroups_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_NetworkAttachments_List_sync", "segments": [ { "end": 53, @@ -30438,55 +30134,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_endpoint_groups_test_iam_permissions_sync.py" + "title": "compute_v1_generated_network_attachments_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.add_association", + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.patch", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddAssociation", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Patch", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" }, - "shortName": "AddAssociation" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddAssociationNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchNetworkAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "region", "type": "str" }, { - "name": "firewall_policy_association_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyAssociation" + "name": "network_attachment", + "type": "str" + }, + { + "name": "network_attachment_resource", + "type": "google.cloud.compute_v1.types.NetworkAttachment" }, { "name": "retry", @@ -30502,21 +30202,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_association" + "shortName": "patch" }, - "description": "Sample for AddAssociation", - "file": "compute_v1_generated_network_firewall_policies_add_association_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_network_attachments_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddAssociation_sync", + "regionTag": "compute_v1_generated_NetworkAttachments_Patch_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -30526,55 +30226,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_add_association_sync.py" + "title": "compute_v1_generated_network_attachments_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.add_packet_mirroring_rule", + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddPacketMirroringRule", + "fullName": "google.cloud.compute.v1.NetworkAttachments.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" }, - "shortName": "AddPacketMirroringRule" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddPacketMirroringRuleNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyNetworkAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "region", "type": "str" }, { - "name": "firewall_policy_rule_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyRule" + "name": "resource", + "type": "str" + }, + { + "name": "region_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" }, { "name": "retry", @@ -30589,22 +30293,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_packet_mirroring_rule" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for AddPacketMirroringRule", - "file": "compute_v1_generated_network_firewall_policies_add_packet_mirroring_rule_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_network_attachments_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddPacketMirroringRule_sync", + "regionTag": "compute_v1_generated_NetworkAttachments_SetIamPolicy_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -30614,55 +30318,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_add_packet_mirroring_rule_sync.py" + "title": "compute_v1_generated_network_attachments_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient", + "shortName": "NetworkAttachmentsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.add_rule", + "fullName": "google.cloud.compute_v1.NetworkAttachmentsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddRule", + "fullName": "google.cloud.compute.v1.NetworkAttachments.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkAttachments", + "shortName": "NetworkAttachments" }, - "shortName": "AddRule" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddRuleNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsNetworkAttachmentRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "region", "type": "str" }, { - "name": "firewall_policy_rule_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyRule" + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -30677,22 +30385,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_rule" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for AddRule", - "file": "compute_v1_generated_network_firewall_policies_add_rule_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_network_attachments_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddRule_sync", + "regionTag": "compute_v1_generated_NetworkAttachments_TestIamPermissions_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -30702,43 +30410,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_add_rule_sync.py" + "title": "compute_v1_generated_network_attachments_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AggregatedList", + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" }, "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListNetworkFirewallPoliciesRequest" + "type": "google.cloud.compute_v1.types.AggregatedListNetworkEdgeSecurityServicesRequest" }, { "name": "project", @@ -30757,14 +30465,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.network_firewall_policies.pagers.AggregatedListPager", + "resultType": "google.cloud.compute_v1.services.network_edge_security_services.pagers.AggregatedListPager", "shortName": "aggregated_list" }, "description": "Sample for AggregatedList", - "file": "compute_v1_generated_network_firewall_policies_aggregated_list_sync.py", + "file": "compute_v1_generated_network_edge_security_services_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AggregatedList_sync", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_AggregatedList_sync", "segments": [ { "end": 52, @@ -30797,35 +30505,39 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_aggregated_list_sync.py" + "title": "compute_v1_generated_network_edge_security_services_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.clone_rules", + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.CloneRules", + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Delete", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" }, - "shortName": "CloneRules" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CloneRulesNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.DeleteNetworkEdgeSecurityServiceRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "region", + "type": "str" + }, + { + "name": "network_edge_security_service", "type": "str" }, { @@ -30842,21 +30554,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "clone_rules" + "shortName": "delete" }, - "description": "Sample for CloneRules", - "file": "compute_v1_generated_network_firewall_policies_clone_rules_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_network_edge_security_services_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_CloneRules_sync", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Delete_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -30866,50 +30578,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_clone_rules_sync.py" + "title": "compute_v1_generated_network_edge_security_services_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.delete", + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.get", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Delete", + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Get", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" }, - "shortName": "Delete" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetNetworkEdgeSecurityServiceRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "region", + "type": "str" + }, + { + "name": "network_edge_security_service", "type": "str" }, { @@ -30925,22 +30641,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.NetworkEdgeSecurityService", + "shortName": "get" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_network_firewall_policies_delete_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_network_edge_security_services_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Delete_sync", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Get_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -30950,52 +30666,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_delete_sync.py" + "title": "compute_v1_generated_network_edge_security_services_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_association", + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetAssociation", + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Insert", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" }, - "shortName": "GetAssociation" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetAssociationNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.InsertNetworkEdgeSecurityServiceRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "region", "type": "str" }, + { + "name": "network_edge_security_service_resource", + "type": "google.cloud.compute_v1.types.NetworkEdgeSecurityService" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -31009,14 +30729,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicyAssociation", - "shortName": "get_association" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for GetAssociation", - "file": "compute_v1_generated_network_firewall_policies_get_association_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_network_edge_security_services_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetAssociation_sync", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Insert_sync", "segments": [ { "end": 52, @@ -31049,37 +30769,45 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_get_association_sync.py" + "title": "compute_v1_generated_network_edge_security_services_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient", + "shortName": "NetworkEdgeSecurityServicesClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.NetworkEdgeSecurityServicesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetIamPolicy", + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Patch", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices", + "shortName": "NetworkEdgeSecurityServices" }, - "shortName": "GetIamPolicy" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchNetworkEdgeSecurityServiceRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "region", + "type": "str" + }, + { + "name": "network_edge_security_service", "type": "str" }, + { + "name": "network_edge_security_service_resource", + "type": "google.cloud.compute_v1.types.NetworkEdgeSecurityService" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -31093,22 +30821,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_network_firewall_policies_get_iam_policy_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_network_edge_security_services_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Patch_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -31118,52 +30846,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_get_iam_policy_sync.py" + "title": "compute_v1_generated_network_edge_security_services_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_packet_mirroring_rule", + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetPacketMirroringRule", + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" }, - "shortName": "GetPacketMirroringRule" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetPacketMirroringRuleNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.AggregatedListNetworkEndpointGroupsRequest" }, { "name": "project", "type": "str" }, - { - "name": "firewall_policy", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -31177,14 +30901,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", - "shortName": "get_packet_mirroring_rule" + "resultType": "google.cloud.compute_v1.services.network_endpoint_groups.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for GetPacketMirroringRule", - "file": "compute_v1_generated_network_firewall_policies_get_packet_mirroring_rule_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_network_endpoint_groups_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetPacketMirroringRule_sync", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_AggregatedList_sync", "segments": [ { "end": 52, @@ -31202,52 +30926,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_get_packet_mirroring_rule_sync.py" + "title": "compute_v1_generated_network_endpoint_groups_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_rule", + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.attach_network_endpoints", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetRule", + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AttachNetworkEndpoints", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" }, - "shortName": "GetRule" + "shortName": "AttachNetworkEndpoints" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRuleNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.AttachNetworkEndpointsNetworkEndpointGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "zone", + "type": "str" + }, + { + "name": "network_endpoint_group", "type": "str" }, + { + "name": "network_endpoint_groups_attach_endpoints_request_resource", + "type": "google.cloud.compute_v1.types.NetworkEndpointGroupsAttachEndpointsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -31261,22 +30993,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", - "shortName": "get_rule" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "attach_network_endpoints" }, - "description": "Sample for GetRule", - "file": "compute_v1_generated_network_firewall_policies_get_rule_sync.py", + "description": "Sample for AttachNetworkEndpoints", + "file": "compute_v1_generated_network_endpoint_groups_attach_network_endpoints_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetRule_sync", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_AttachNetworkEndpoints_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -31286,50 +31018,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_get_rule_sync.py" + "title": "compute_v1_generated_network_endpoint_groups_attach_network_endpoints_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get", + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Get", + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Delete", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" }, - "shortName": "Get" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.DeleteNetworkEndpointGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "zone", + "type": "str" + }, + { + "name": "network_endpoint_group", "type": "str" }, { @@ -31345,22 +31081,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicy", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for Get", - "file": "compute_v1_generated_network_firewall_policies_get_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_network_endpoint_groups_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Get_sync", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_Delete_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -31370,51 +31106,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_get_sync.py" + "title": "compute_v1_generated_network_endpoint_groups_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.insert", + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.detach_network_endpoints", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Insert", + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.DetachNetworkEndpoints", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" }, - "shortName": "Insert" + "shortName": "DetachNetworkEndpoints" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.DetachNetworkEndpointsNetworkEndpointGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicy" + "name": "zone", + "type": "str" + }, + { + "name": "network_endpoint_group", + "type": "str" + }, + { + "name": "network_endpoint_groups_detach_endpoints_request_resource", + "type": "google.cloud.compute_v1.types.NetworkEndpointGroupsDetachEndpointsRequest" }, { "name": "retry", @@ -31430,21 +31174,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "detach_network_endpoints" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_network_firewall_policies_insert_sync.py", + "description": "Sample for DetachNetworkEndpoints", + "file": "compute_v1_generated_network_endpoint_groups_detach_network_endpoints_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Insert_sync", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_DetachNetworkEndpoints_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -31454,48 +31198,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_insert_sync.py" + "title": "compute_v1_generated_network_endpoint_groups_detach_network_endpoints_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.list", + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.get", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.List", + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Get", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" }, - "shortName": "List" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNetworkFirewallPoliciesRequest" + "type": "google.cloud.compute_v1.types.GetNetworkEndpointGroupRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "network_endpoint_group", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -31509,22 +31261,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.network_firewall_policies.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.NetworkEndpointGroup", + "shortName": "get" }, - "description": "Sample for List", - "file": "compute_v1_generated_network_firewall_policies_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_network_endpoint_groups_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_List_sync", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_Get_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -31534,55 +31286,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_list_sync.py" + "title": "compute_v1_generated_network_endpoint_groups_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.patch_packet_mirroring_rule", + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchPacketMirroringRule", + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Insert", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" }, - "shortName": "PatchPacketMirroringRule" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchPacketMirroringRuleNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.InsertNetworkEndpointGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "zone", "type": "str" }, { - "name": "firewall_policy_rule_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyRule" + "name": "network_endpoint_group_resource", + "type": "google.cloud.compute_v1.types.NetworkEndpointGroup" }, { "name": "retry", @@ -31598,13 +31350,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch_packet_mirroring_rule" + "shortName": "insert" }, - "description": "Sample for PatchPacketMirroringRule", - "file": "compute_v1_generated_network_firewall_policies_patch_packet_mirroring_rule_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_network_endpoint_groups_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_PatchPacketMirroringRule_sync", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_Insert_sync", "segments": [ { "end": 52, @@ -31637,40 +31389,44 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_patch_packet_mirroring_rule_sync.py" + "title": "compute_v1_generated_network_endpoint_groups_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.patch_rule", + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.list_network_endpoints", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchRule", + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.ListNetworkEndpoints", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" }, - "shortName": "PatchRule" + "shortName": "ListNetworkEndpoints" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRuleNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.ListNetworkEndpointsNetworkEndpointGroupsRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "zone", "type": "str" }, { - "name": "firewall_policy_rule_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyRule" + "name": "network_endpoint_group", + "type": "str" + }, + { + "name": "network_endpoint_groups_list_endpoints_request_resource", + "type": "google.cloud.compute_v1.types.NetworkEndpointGroupsListEndpointsRequest" }, { "name": "retry", @@ -31685,22 +31441,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch_rule" + "resultType": "google.cloud.compute_v1.services.network_endpoint_groups.pagers.ListNetworkEndpointsPager", + "shortName": "list_network_endpoints" }, - "description": "Sample for PatchRule", - "file": "compute_v1_generated_network_firewall_policies_patch_rule_sync.py", + "description": "Sample for ListNetworkEndpoints", + "file": "compute_v1_generated_network_endpoint_groups_list_network_endpoints_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_PatchRule_sync", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_ListNetworkEndpoints_sync", "segments": [ { - "end": 52, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 54, "start": 27, "type": "SHORT" }, @@ -31710,56 +31466,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 55, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_patch_rule_sync.py" + "title": "compute_v1_generated_network_endpoint_groups_list_network_endpoints_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.patch", + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.list", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Patch", + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.List", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" }, - "shortName": "Patch" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.ListNetworkEndpointGroupsRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "zone", "type": "str" }, - { - "name": "firewall_policy_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicy" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -31773,22 +31525,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.services.network_endpoint_groups.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_network_firewall_policies_patch_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_network_endpoint_groups_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Patch_sync", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_List_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -31808,42 +31560,50 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 54, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_patch_sync.py" + "title": "compute_v1_generated_network_endpoint_groups_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", - "shortName": "NetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient", + "shortName": "NetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.remove_association", + "fullName": "google.cloud.compute_v1.NetworkEndpointGroupsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveAssociation", + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", - "shortName": "NetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.NetworkEndpointGroups", + "shortName": "NetworkEndpointGroups" }, - "shortName": "RemoveAssociation" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveAssociationNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsNetworkEndpointGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "firewall_policy", + "name": "zone", + "type": "str" + }, + { + "name": "resource", "type": "str" }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -31857,22 +31617,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_association" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for RemoveAssociation", - "file": "compute_v1_generated_network_firewall_policies_remove_association_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_network_endpoint_groups_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveAssociation_sync", + "regionTag": "compute_v1_generated_NetworkEndpointGroups_TestIamPermissions_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -31882,22 +31642,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_remove_association_sync.py" + "title": "compute_v1_generated_network_endpoint_groups_test_iam_permissions_sync.py" }, { "canonical": true, @@ -31906,19 +31666,19 @@ "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.remove_packet_mirroring_rule", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.add_association", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemovePacketMirroringRule", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddAssociation", "service": { "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", "shortName": "NetworkFirewallPolicies" }, - "shortName": "RemovePacketMirroringRule" + "shortName": "AddAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemovePacketMirroringRuleNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.AddAssociationNetworkFirewallPolicyRequest" }, { "name": "project", @@ -31928,6 +31688,10 @@ "name": "firewall_policy", "type": "str" }, + { + "name": "firewall_policy_association_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyAssociation" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -31942,13 +31706,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_packet_mirroring_rule" + "shortName": "add_association" }, - "description": "Sample for RemovePacketMirroringRule", - "file": "compute_v1_generated_network_firewall_policies_remove_packet_mirroring_rule_sync.py", + "description": "Sample for AddAssociation", + "file": "compute_v1_generated_network_firewall_policies_add_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemovePacketMirroringRule_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddAssociation_sync", "segments": [ { "end": 52, @@ -31981,7 +31745,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_remove_packet_mirroring_rule_sync.py" + "title": "compute_v1_generated_network_firewall_policies_add_association_sync.py" }, { "canonical": true, @@ -31990,19 +31754,19 @@ "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.remove_rule", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.add_packet_mirroring_rule", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveRule", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddPacketMirroringRule", "service": { "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", "shortName": "NetworkFirewallPolicies" }, - "shortName": "RemoveRule" + "shortName": "AddPacketMirroringRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveRuleNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.AddPacketMirroringRuleNetworkFirewallPolicyRequest" }, { "name": "project", @@ -32012,6 +31776,10 @@ "name": "firewall_policy", "type": "str" }, + { + "name": "firewall_policy_rule_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -32026,13 +31794,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_rule" + "shortName": "add_packet_mirroring_rule" }, - "description": "Sample for RemoveRule", - "file": "compute_v1_generated_network_firewall_policies_remove_rule_sync.py", + "description": "Sample for AddPacketMirroringRule", + "file": "compute_v1_generated_network_firewall_policies_add_packet_mirroring_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveRule_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddPacketMirroringRule_sync", "segments": [ { "end": 52, @@ -32065,7 +31833,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_remove_rule_sync.py" + "title": "compute_v1_generated_network_firewall_policies_add_packet_mirroring_rule_sync.py" }, { "canonical": true, @@ -32074,31 +31842,31 @@ "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.add_rule", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.SetIamPolicy", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddRule", "service": { "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", "shortName": "NetworkFirewallPolicies" }, - "shortName": "SetIamPolicy" + "shortName": "AddRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.AddRuleNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "resource", + "name": "firewall_policy", "type": "str" }, { - "name": "global_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" + "name": "firewall_policy_rule_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyRule" }, { "name": "retry", @@ -32113,14 +31881,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_rule" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_network_firewall_policies_set_iam_policy_sync.py", + "description": "Sample for AddRule", + "file": "compute_v1_generated_network_firewall_policies_add_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddRule_sync", "segments": [ { "end": 52, @@ -32153,7 +31921,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_set_iam_policy_sync.py" + "title": "compute_v1_generated_network_firewall_policies_add_rule_sync.py" }, { "canonical": true, @@ -32162,32 +31930,24 @@ "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.TestIamPermissions", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AggregatedList", "service": { "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", "shortName": "NetworkFirewallPolicies" }, - "shortName": "TestIamPermissions" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.AggregatedListNetworkFirewallPoliciesRequest" }, { "name": "project", "type": "str" }, - { - "name": "resource", - "type": "str" - }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -32201,14 +31961,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.services.network_firewall_policies.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_network_firewall_policies_test_iam_permissions_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_network_firewall_policies_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AggregatedList_sync", "segments": [ { "end": 52, @@ -32226,50 +31986,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_firewall_policies_test_iam_permissions_sync.py" + "title": "compute_v1_generated_network_firewall_policies_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkProfilesClient", - "shortName": "NetworkProfilesClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworkProfilesClient.get", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.clone_rules", "method": { - "fullName": "google.cloud.compute.v1.NetworkProfiles.Get", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.CloneRules", "service": { - "fullName": "google.cloud.compute.v1.NetworkProfiles", - "shortName": "NetworkProfiles" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "Get" + "shortName": "CloneRules" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetNetworkProfileRequest" + "type": "google.cloud.compute_v1.types.CloneRulesNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network_profile", + "name": "firewall_policy", "type": "str" }, { @@ -32285,14 +32045,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NetworkProfile", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "clone_rules" }, - "description": "Sample for Get", - "file": "compute_v1_generated_network_profiles_get_sync.py", + "description": "Sample for CloneRules", + "file": "compute_v1_generated_network_firewall_policies_clone_rules_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkProfiles_Get_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_CloneRules_sync", "segments": [ { "end": 52, @@ -32325,33 +32085,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_profiles_get_sync.py" + "title": "compute_v1_generated_network_firewall_policies_clone_rules_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworkProfilesClient", - "shortName": "NetworkProfilesClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworkProfilesClient.list", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.NetworkProfiles.List", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Delete", "service": { - "fullName": "google.cloud.compute.v1.NetworkProfiles", - "shortName": "NetworkProfiles" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "List" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNetworkProfilesRequest" + "type": "google.cloud.compute_v1.types.DeleteNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, + { + "name": "firewall_policy", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -32365,14 +32129,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.network_profiles.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for List", - "file": "compute_v1_generated_network_profiles_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_network_firewall_policies_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NetworkProfiles_List_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Delete_sync", "segments": [ { "end": 52, @@ -32390,56 +32154,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_network_profiles_list_sync.py" + "title": "compute_v1_generated_network_firewall_policies_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.add_peering", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_association", "method": { - "fullName": "google.cloud.compute.v1.Networks.AddPeering", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetAssociation", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "AddPeering" + "shortName": "GetAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddPeeringNetworkRequest" + "type": "google.cloud.compute_v1.types.GetAssociationNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", + "name": "firewall_policy", "type": "str" }, - { - "name": "networks_add_peering_request_resource", - "type": "google.cloud.compute_v1.types.NetworksAddPeeringRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -32453,14 +32213,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_peering" + "resultType": "google.cloud.compute_v1.types.FirewallPolicyAssociation", + "shortName": "get_association" }, - "description": "Sample for AddPeering", - "file": "compute_v1_generated_networks_add_peering_sync.py", + "description": "Sample for GetAssociation", + "file": "compute_v1_generated_network_firewall_policies_get_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_AddPeering_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetAssociation_sync", "segments": [ { "end": 52, @@ -32493,35 +32253,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_add_peering_sync.py" + "title": "compute_v1_generated_network_firewall_policies_get_association_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.delete", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Networks.Delete", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "Delete" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteNetworkRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", + "name": "resource", "type": "str" }, { @@ -32537,14 +32297,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_networks_delete_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_network_firewall_policies_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_Delete_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetIamPolicy_sync", "segments": [ { "end": 52, @@ -32577,35 +32337,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_delete_sync.py" + "title": "compute_v1_generated_network_firewall_policies_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.get_effective_firewalls", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_packet_mirroring_rule", "method": { - "fullName": "google.cloud.compute.v1.Networks.GetEffectiveFirewalls", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetPacketMirroringRule", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "GetEffectiveFirewalls" + "shortName": "GetPacketMirroringRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetEffectiveFirewallsNetworkRequest" + "type": "google.cloud.compute_v1.types.GetPacketMirroringRuleNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", + "name": "firewall_policy", "type": "str" }, { @@ -32621,14 +32381,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NetworksGetEffectiveFirewallsResponse", - "shortName": "get_effective_firewalls" + "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", + "shortName": "get_packet_mirroring_rule" }, - "description": "Sample for GetEffectiveFirewalls", - "file": "compute_v1_generated_networks_get_effective_firewalls_sync.py", + "description": "Sample for GetPacketMirroringRule", + "file": "compute_v1_generated_network_firewall_policies_get_packet_mirroring_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_GetEffectiveFirewalls_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetPacketMirroringRule_sync", "segments": [ { "end": 52, @@ -32661,35 +32421,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_get_effective_firewalls_sync.py" + "title": "compute_v1_generated_network_firewall_policies_get_packet_mirroring_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.get", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get_rule", "method": { - "fullName": "google.cloud.compute.v1.Networks.Get", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetRule", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "Get" + "shortName": "GetRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetNetworkRequest" + "type": "google.cloud.compute_v1.types.GetRuleNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", + "name": "firewall_policy", "type": "str" }, { @@ -32705,14 +32465,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Network", - "shortName": "get" + "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", + "shortName": "get_rule" }, - "description": "Sample for Get", - "file": "compute_v1_generated_networks_get_sync.py", + "description": "Sample for GetRule", + "file": "compute_v1_generated_network_firewall_policies_get_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_Get_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetRule_sync", "segments": [ { "end": 52, @@ -32745,36 +32505,36 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_get_sync.py" + "title": "compute_v1_generated_network_firewall_policies_get_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.insert", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.get", "method": { - "fullName": "google.cloud.compute.v1.Networks.Insert", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Get", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "Insert" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertNetworkRequest" + "type": "google.cloud.compute_v1.types.GetNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network_resource", - "type": "google.cloud.compute_v1.types.Network" + "name": "firewall_policy", + "type": "str" }, { "name": "retry", @@ -32789,22 +32549,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.types.FirewallPolicy", + "shortName": "get" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_networks_insert_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_network_firewall_policies_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_Insert_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Get_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -32814,51 +32574,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_insert_sync.py" + "title": "compute_v1_generated_network_firewall_policies_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.list_peering_routes", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.Networks.ListPeeringRoutes", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Insert", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "ListPeeringRoutes" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListPeeringRoutesNetworksRequest" + "type": "google.cloud.compute_v1.types.InsertNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", - "type": "str" + "name": "firewall_policy_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicy" }, { "name": "retry", @@ -32873,22 +32633,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.networks.pagers.ListPeeringRoutesPager", - "shortName": "list_peering_routes" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for ListPeeringRoutes", - "file": "compute_v1_generated_networks_list_peering_routes_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_network_firewall_policies_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_ListPeeringRoutes_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Insert_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -32898,43 +32658,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_list_peering_routes_sync.py" + "title": "compute_v1_generated_network_firewall_policies_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.list", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.list", "method": { - "fullName": "google.cloud.compute.v1.Networks.List", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.List", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNetworksRequest" + "type": "google.cloud.compute_v1.types.ListNetworkFirewallPoliciesRequest" }, { "name": "project", @@ -32953,14 +32713,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.networks.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.network_firewall_policies.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_networks_list_sync.py", + "file": "compute_v1_generated_network_firewall_policies_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_List_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_List_sync", "segments": [ { "end": 52, @@ -32993,40 +32753,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_list_sync.py" + "title": "compute_v1_generated_network_firewall_policies_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.patch", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.patch_packet_mirroring_rule", "method": { - "fullName": "google.cloud.compute.v1.Networks.Patch", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchPacketMirroringRule", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "Patch" + "shortName": "PatchPacketMirroringRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchNetworkRequest" + "type": "google.cloud.compute_v1.types.PatchPacketMirroringRuleNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", + "name": "firewall_policy", "type": "str" }, { - "name": "network_resource", - "type": "google.cloud.compute_v1.types.Network" + "name": "firewall_policy_rule_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyRule" }, { "name": "retry", @@ -33042,13 +32802,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "patch_packet_mirroring_rule" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_networks_patch_sync.py", + "description": "Sample for PatchPacketMirroringRule", + "file": "compute_v1_generated_network_firewall_policies_patch_packet_mirroring_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_Patch_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_PatchPacketMirroringRule_sync", "segments": [ { "end": 52, @@ -33081,40 +32841,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_patch_sync.py" + "title": "compute_v1_generated_network_firewall_policies_patch_packet_mirroring_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.remove_peering", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.patch_rule", "method": { - "fullName": "google.cloud.compute.v1.Networks.RemovePeering", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchRule", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "RemovePeering" + "shortName": "PatchRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemovePeeringNetworkRequest" + "type": "google.cloud.compute_v1.types.PatchRuleNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", + "name": "firewall_policy", "type": "str" }, { - "name": "networks_remove_peering_request_resource", - "type": "google.cloud.compute_v1.types.NetworksRemovePeeringRequest" + "name": "firewall_policy_rule_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyRule" }, { "name": "retry", @@ -33130,13 +32890,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_peering" + "shortName": "patch_rule" }, - "description": "Sample for RemovePeering", - "file": "compute_v1_generated_networks_remove_peering_sync.py", + "description": "Sample for PatchRule", + "file": "compute_v1_generated_network_firewall_policies_patch_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_RemovePeering_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_PatchRule_sync", "segments": [ { "end": 52, @@ -33169,40 +32929,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_remove_peering_sync.py" + "title": "compute_v1_generated_network_firewall_policies_patch_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.request_remove_peering", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.Networks.RequestRemovePeering", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Patch", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "RequestRemovePeering" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RequestRemovePeeringNetworkRequest" + "type": "google.cloud.compute_v1.types.PatchNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", + "name": "firewall_policy", "type": "str" }, { - "name": "networks_request_remove_peering_request_resource", - "type": "google.cloud.compute_v1.types.NetworksRequestRemovePeeringRequest" + "name": "firewall_policy_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicy" }, { "name": "retry", @@ -33218,13 +32978,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "request_remove_peering" + "shortName": "patch" }, - "description": "Sample for RequestRemovePeering", - "file": "compute_v1_generated_networks_request_remove_peering_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_network_firewall_policies_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_RequestRemovePeering_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Patch_sync", "segments": [ { "end": 52, @@ -33257,35 +33017,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_request_remove_peering_sync.py" + "title": "compute_v1_generated_network_firewall_policies_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.switch_to_custom_mode", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.remove_association", "method": { - "fullName": "google.cloud.compute.v1.Networks.SwitchToCustomMode", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveAssociation", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "SwitchToCustomMode" + "shortName": "RemoveAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SwitchToCustomModeNetworkRequest" + "type": "google.cloud.compute_v1.types.RemoveAssociationNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", + "name": "firewall_policy", "type": "str" }, { @@ -33302,13 +33062,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "switch_to_custom_mode" + "shortName": "remove_association" }, - "description": "Sample for SwitchToCustomMode", - "file": "compute_v1_generated_networks_switch_to_custom_mode_sync.py", + "description": "Sample for RemoveAssociation", + "file": "compute_v1_generated_network_firewall_policies_remove_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_SwitchToCustomMode_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveAssociation_sync", "segments": [ { "end": 52, @@ -33341,41 +33101,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_switch_to_custom_mode_sync.py" + "title": "compute_v1_generated_network_firewall_policies_remove_association_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NetworksClient", - "shortName": "NetworksClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NetworksClient.update_peering", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.remove_packet_mirroring_rule", "method": { - "fullName": "google.cloud.compute.v1.Networks.UpdatePeering", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemovePacketMirroringRule", "service": { - "fullName": "google.cloud.compute.v1.Networks", - "shortName": "Networks" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "UpdatePeering" + "shortName": "RemovePacketMirroringRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdatePeeringNetworkRequest" + "type": "google.cloud.compute_v1.types.RemovePacketMirroringRuleNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "network", + "name": "firewall_policy", "type": "str" }, - { - "name": "networks_update_peering_request_resource", - "type": "google.cloud.compute_v1.types.NetworksUpdatePeeringRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -33390,13 +33146,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update_peering" + "shortName": "remove_packet_mirroring_rule" }, - "description": "Sample for UpdatePeering", - "file": "compute_v1_generated_networks_update_peering_sync.py", + "description": "Sample for RemovePacketMirroringRule", + "file": "compute_v1_generated_network_firewall_policies_remove_packet_mirroring_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Networks_UpdatePeering_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemovePacketMirroringRule_sync", "segments": [ { "end": 52, @@ -33429,45 +33185,37 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_networks_update_peering_sync.py" + "title": "compute_v1_generated_network_firewall_policies_remove_packet_mirroring_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.add_nodes", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.remove_rule", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.AddNodes", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveRule", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "AddNodes" + "shortName": "RemoveRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddNodesNodeGroupRequest" + "type": "google.cloud.compute_v1.types.RemoveRuleNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "node_group", + "name": "firewall_policy", "type": "str" }, - { - "name": "node_groups_add_nodes_request_resource", - "type": "google.cloud.compute_v1.types.NodeGroupsAddNodesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -33482,21 +33230,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_nodes" + "shortName": "remove_rule" }, - "description": "Sample for AddNodes", - "file": "compute_v1_generated_node_groups_add_nodes_sync.py", + "description": "Sample for RemoveRule", + "file": "compute_v1_generated_network_firewall_policies_remove_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_AddNodes_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveRule_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -33506,48 +33254,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_add_nodes_sync.py" + "title": "compute_v1_generated_network_firewall_policies_remove_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.aggregated_list", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.AggregatedList", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "AggregatedList" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListNodeGroupsRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, + { + "name": "resource", + "type": "str" + }, + { + "name": "global_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.GlobalSetPolicyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -33561,14 +33317,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.node_groups.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_node_groups_aggregated_list_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_network_firewall_policies_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_AggregatedList_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_SetIamPolicy_sync", "segments": [ { "end": 52, @@ -33586,59 +33342,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_aggregated_list_sync.py" + "title": "compute_v1_generated_network_firewall_policies_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient", + "shortName": "NetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.delete_nodes", + "fullName": "google.cloud.compute_v1.NetworkFirewallPoliciesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.DeleteNodes", + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies", + "shortName": "NetworkFirewallPolicies" }, - "shortName": "DeleteNodes" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteNodesNodeGroupRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsNetworkFirewallPolicyRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "node_group", + "name": "resource", "type": "str" }, { - "name": "node_groups_delete_nodes_request_resource", - "type": "google.cloud.compute_v1.types.NodeGroupsDeleteNodesRequest" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -33653,22 +33405,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete_nodes" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for DeleteNodes", - "file": "compute_v1_generated_node_groups_delete_nodes_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_network_firewall_policies_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_DeleteNodes_sync", + "regionTag": "compute_v1_generated_NetworkFirewallPolicies_TestIamPermissions_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -33678,54 +33430,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_delete_nodes_sync.py" + "title": "compute_v1_generated_network_firewall_policies_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkProfilesClient", + "shortName": "NetworkProfilesClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.delete", + "fullName": "google.cloud.compute_v1.NetworkProfilesClient.get", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.Delete", + "fullName": "google.cloud.compute.v1.NetworkProfiles.Get", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.NetworkProfiles", + "shortName": "NetworkProfiles" }, - "shortName": "Delete" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteNodeGroupRequest" + "type": "google.cloud.compute_v1.types.GetNetworkProfileRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "node_group", + "name": "network_profile", "type": "str" }, { @@ -33741,22 +33489,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.NetworkProfile", + "shortName": "get" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_node_groups_delete_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_network_profiles_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_Delete_sync", + "regionTag": "compute_v1_generated_NetworkProfiles_Get_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -33766,56 +33514,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_delete_sync.py" + "title": "compute_v1_generated_network_profiles_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworkProfilesClient", + "shortName": "NetworkProfilesClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.NetworkProfilesClient.list", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.GetIamPolicy", + "fullName": "google.cloud.compute.v1.NetworkProfiles.List", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.NetworkProfiles", + "shortName": "NetworkProfiles" }, - "shortName": "GetIamPolicy" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyNodeGroupRequest" + "type": "google.cloud.compute_v1.types.ListNetworkProfilesRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "resource", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -33829,22 +33569,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.cloud.compute_v1.services.network_profiles.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_node_groups_get_iam_policy_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_network_profiles_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_NetworkProfiles_List_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -33854,55 +33594,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_get_iam_policy_sync.py" + "title": "compute_v1_generated_network_profiles_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.get", + "fullName": "google.cloud.compute_v1.NetworksClient.add_peering", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.Get", + "fullName": "google.cloud.compute.v1.Networks.AddPeering", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "Get" + "shortName": "AddPeering" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetNodeGroupRequest" + "type": "google.cloud.compute_v1.types.AddPeeringNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "network", "type": "str" }, { - "name": "node_group", - "type": "str" + "name": "networks_add_peering_request_resource", + "type": "google.cloud.compute_v1.types.NetworksAddPeeringRequest" }, { "name": "retry", @@ -33917,22 +33657,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NodeGroup", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_peering" }, - "description": "Sample for Get", - "file": "compute_v1_generated_node_groups_get_sync.py", + "description": "Sample for AddPeering", + "file": "compute_v1_generated_networks_add_peering_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_Get_sync", + "regionTag": "compute_v1_generated_Networks_AddPeering_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -33942,60 +33682,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_get_sync.py" + "title": "compute_v1_generated_networks_add_peering_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.insert", + "fullName": "google.cloud.compute_v1.NetworksClient.delete", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.Insert", + "fullName": "google.cloud.compute.v1.Networks.Delete", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "Insert" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertNodeGroupRequest" + "type": "google.cloud.compute_v1.types.DeleteNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "network", "type": "str" }, - { - "name": "initial_node_count", - "type": "int" - }, - { - "name": "node_group_resource", - "type": "google.cloud.compute_v1.types.NodeGroup" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -34010,21 +33742,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "delete" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_node_groups_insert_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_networks_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_Insert_sync", + "regionTag": "compute_v1_generated_Networks_Delete_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -34034,54 +33766,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_insert_sync.py" + "title": "compute_v1_generated_networks_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.list_nodes", + "fullName": "google.cloud.compute_v1.NetworksClient.get_effective_firewalls", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.ListNodes", + "fullName": "google.cloud.compute.v1.Networks.GetEffectiveFirewalls", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "ListNodes" + "shortName": "GetEffectiveFirewalls" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNodesNodeGroupsRequest" + "type": "google.cloud.compute_v1.types.GetEffectiveFirewallsNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "node_group", + "name": "network", "type": "str" }, { @@ -34097,22 +33825,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.node_groups.pagers.ListNodesPager", - "shortName": "list_nodes" + "resultType": "google.cloud.compute_v1.types.NetworksGetEffectiveFirewallsResponse", + "shortName": "get_effective_firewalls" }, - "description": "Sample for ListNodes", - "file": "compute_v1_generated_node_groups_list_nodes_sync.py", + "description": "Sample for GetEffectiveFirewalls", + "file": "compute_v1_generated_networks_get_effective_firewalls_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_ListNodes_sync", + "regionTag": "compute_v1_generated_Networks_GetEffectiveFirewalls_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -34122,50 +33850,50 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_list_nodes_sync.py" + "title": "compute_v1_generated_networks_get_effective_firewalls_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.list", + "fullName": "google.cloud.compute_v1.NetworksClient.get", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.List", + "fullName": "google.cloud.compute.v1.Networks.Get", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "List" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNodeGroupsRequest" + "type": "google.cloud.compute_v1.types.GetNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", + "name": "network", "type": "str" }, { @@ -34181,22 +33909,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.node_groups.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.Network", + "shortName": "get" }, - "description": "Sample for List", - "file": "compute_v1_generated_node_groups_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_networks_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_List_sync", + "regionTag": "compute_v1_generated_Networks_Get_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -34216,49 +33944,41 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 53, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_list_sync.py" + "title": "compute_v1_generated_networks_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.patch", + "fullName": "google.cloud.compute_v1.NetworksClient.insert", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.Patch", + "fullName": "google.cloud.compute.v1.Networks.Insert", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "Patch" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchNodeGroupRequest" + "type": "google.cloud.compute_v1.types.InsertNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "node_group", - "type": "str" - }, - { - "name": "node_group_resource", - "type": "google.cloud.compute_v1.types.NodeGroup" + "name": "network_resource", + "type": "google.cloud.compute_v1.types.Network" }, { "name": "retry", @@ -34274,21 +33994,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "insert" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_node_groups_patch_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_networks_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_Patch_sync", + "regionTag": "compute_v1_generated_Networks_Insert_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -34298,60 +34018,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_patch_sync.py" + "title": "compute_v1_generated_networks_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.perform_maintenance", + "fullName": "google.cloud.compute_v1.NetworksClient.list_peering_routes", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.PerformMaintenance", + "fullName": "google.cloud.compute.v1.Networks.ListPeeringRoutes", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "PerformMaintenance" + "shortName": "ListPeeringRoutes" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PerformMaintenanceNodeGroupRequest" + "type": "google.cloud.compute_v1.types.ListPeeringRoutesNetworksRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "node_group", + "name": "network", "type": "str" }, - { - "name": "node_groups_perform_maintenance_request_resource", - "type": "google.cloud.compute_v1.types.NodeGroupsPerformMaintenanceRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -34365,14 +34077,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "perform_maintenance" + "resultType": "google.cloud.compute_v1.services.networks.pagers.ListPeeringRoutesPager", + "shortName": "list_peering_routes" }, - "description": "Sample for PerformMaintenance", - "file": "compute_v1_generated_node_groups_perform_maintenance_sync.py", + "description": "Sample for ListPeeringRoutes", + "file": "compute_v1_generated_networks_list_peering_routes_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_PerformMaintenance_sync", + "regionTag": "compute_v1_generated_Networks_ListPeeringRoutes_sync", "segments": [ { "end": 53, @@ -34390,60 +34102,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_perform_maintenance_sync.py" + "title": "compute_v1_generated_networks_list_peering_routes_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.NetworksClient.list", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.SetIamPolicy", + "fullName": "google.cloud.compute.v1.Networks.List", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "SetIamPolicy" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyNodeGroupRequest" + "type": "google.cloud.compute_v1.types.ListNetworksRequest" }, { "name": "project", "type": "str" }, - { - "name": "zone", - "type": "str" - }, - { - "name": "resource", - "type": "str" - }, - { - "name": "zone_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.ZoneSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -34457,22 +34157,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.cloud.compute_v1.services.networks.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_node_groups_set_iam_policy_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_networks_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_Networks_List_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -34482,59 +34182,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_set_iam_policy_sync.py" + "title": "compute_v1_generated_networks_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.set_node_template", + "fullName": "google.cloud.compute_v1.NetworksClient.patch", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.SetNodeTemplate", + "fullName": "google.cloud.compute.v1.Networks.Patch", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "SetNodeTemplate" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetNodeTemplateNodeGroupRequest" + "type": "google.cloud.compute_v1.types.PatchNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "node_group", + "name": "network", "type": "str" }, { - "name": "node_groups_set_node_template_request_resource", - "type": "google.cloud.compute_v1.types.NodeGroupsSetNodeTemplateRequest" + "name": "network_resource", + "type": "google.cloud.compute_v1.types.Network" }, { "name": "retry", @@ -34550,21 +34246,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_node_template" + "shortName": "patch" }, - "description": "Sample for SetNodeTemplate", - "file": "compute_v1_generated_node_groups_set_node_template_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_networks_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_SetNodeTemplate_sync", + "regionTag": "compute_v1_generated_Networks_Patch_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -34574,59 +34270,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_set_node_template_sync.py" + "title": "compute_v1_generated_networks_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.simulate_maintenance_event", + "fullName": "google.cloud.compute_v1.NetworksClient.remove_peering", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.SimulateMaintenanceEvent", + "fullName": "google.cloud.compute.v1.Networks.RemovePeering", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "SimulateMaintenanceEvent" + "shortName": "RemovePeering" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SimulateMaintenanceEventNodeGroupRequest" + "type": "google.cloud.compute_v1.types.RemovePeeringNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "node_group", + "name": "network", "type": "str" }, { - "name": "node_groups_simulate_maintenance_event_request_resource", - "type": "google.cloud.compute_v1.types.NodeGroupsSimulateMaintenanceEventRequest" + "name": "networks_remove_peering_request_resource", + "type": "google.cloud.compute_v1.types.NetworksRemovePeeringRequest" }, { "name": "retry", @@ -34642,21 +34334,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "simulate_maintenance_event" + "shortName": "remove_peering" }, - "description": "Sample for SimulateMaintenanceEvent", - "file": "compute_v1_generated_node_groups_simulate_maintenance_event_sync.py", + "description": "Sample for RemovePeering", + "file": "compute_v1_generated_networks_remove_peering_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_SimulateMaintenanceEvent_sync", + "regionTag": "compute_v1_generated_Networks_RemovePeering_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -34666,59 +34358,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_simulate_maintenance_event_sync.py" + "title": "compute_v1_generated_networks_remove_peering_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeGroupsClient", - "shortName": "NodeGroupsClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeGroupsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.NetworksClient.request_remove_peering", "method": { - "fullName": "google.cloud.compute.v1.NodeGroups.TestIamPermissions", + "fullName": "google.cloud.compute.v1.Networks.RequestRemovePeering", "service": { - "fullName": "google.cloud.compute.v1.NodeGroups", - "shortName": "NodeGroups" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "TestIamPermissions" + "shortName": "RequestRemovePeering" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsNodeGroupRequest" + "type": "google.cloud.compute_v1.types.RequestRemovePeeringNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "zone", - "type": "str" - }, - { - "name": "resource", + "name": "network", "type": "str" }, { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "networks_request_remove_peering_request_resource", + "type": "google.cloud.compute_v1.types.NetworksRequestRemovePeeringRequest" }, { "name": "retry", @@ -34733,22 +34421,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "request_remove_peering" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_node_groups_test_iam_permissions_sync.py", + "description": "Sample for RequestRemovePeering", + "file": "compute_v1_generated_networks_request_remove_peering_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeGroups_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_Networks_RequestRemovePeering_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -34758,48 +34446,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_groups_test_iam_permissions_sync.py" + "title": "compute_v1_generated_networks_request_remove_peering_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTemplatesClient", - "shortName": "NodeTemplatesClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeTemplatesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.NetworksClient.switch_to_custom_mode", "method": { - "fullName": "google.cloud.compute.v1.NodeTemplates.AggregatedList", + "fullName": "google.cloud.compute.v1.Networks.SwitchToCustomMode", "service": { - "fullName": "google.cloud.compute.v1.NodeTemplates", - "shortName": "NodeTemplates" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "AggregatedList" + "shortName": "SwitchToCustomMode" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListNodeTemplatesRequest" + "type": "google.cloud.compute_v1.types.SwitchToCustomModeNetworkRequest" }, { "name": "project", "type": "str" }, + { + "name": "network", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -34813,14 +34505,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.node_templates.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "switch_to_custom_mode" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_node_templates_aggregated_list_sync.py", + "description": "Sample for SwitchToCustomMode", + "file": "compute_v1_generated_networks_switch_to_custom_mode_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTemplates_AggregatedList_sync", + "regionTag": "compute_v1_generated_Networks_SwitchToCustomMode_sync", "segments": [ { "end": 52, @@ -34838,55 +34530,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_templates_aggregated_list_sync.py" + "title": "compute_v1_generated_networks_switch_to_custom_mode_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTemplatesClient", - "shortName": "NodeTemplatesClient" + "fullName": "google.cloud.compute_v1.NetworksClient", + "shortName": "NetworksClient" }, - "fullName": "google.cloud.compute_v1.NodeTemplatesClient.delete", + "fullName": "google.cloud.compute_v1.NetworksClient.update_peering", "method": { - "fullName": "google.cloud.compute.v1.NodeTemplates.Delete", + "fullName": "google.cloud.compute.v1.Networks.UpdatePeering", "service": { - "fullName": "google.cloud.compute.v1.NodeTemplates", - "shortName": "NodeTemplates" + "fullName": "google.cloud.compute.v1.Networks", + "shortName": "Networks" }, - "shortName": "Delete" + "shortName": "UpdatePeering" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteNodeTemplateRequest" + "type": "google.cloud.compute_v1.types.UpdatePeeringNetworkRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "network", "type": "str" }, { - "name": "node_template", - "type": "str" + "name": "networks_update_peering_request_resource", + "type": "google.cloud.compute_v1.types.NetworksUpdatePeeringRequest" }, { "name": "retry", @@ -34902,21 +34594,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "update_peering" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_node_templates_delete_sync.py", + "description": "Sample for UpdatePeering", + "file": "compute_v1_generated_networks_update_peering_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTemplates_Delete_sync", + "regionTag": "compute_v1_generated_Networks_UpdatePeering_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -34926,56 +34618,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_templates_delete_sync.py" + "title": "compute_v1_generated_networks_update_peering_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTemplatesClient", - "shortName": "NodeTemplatesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.NodeTemplatesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.add_nodes", "method": { - "fullName": "google.cloud.compute.v1.NodeTemplates.GetIamPolicy", + "fullName": "google.cloud.compute.v1.NodeGroups.AddNodes", "service": { - "fullName": "google.cloud.compute.v1.NodeTemplates", - "shortName": "NodeTemplates" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "GetIamPolicy" + "shortName": "AddNodes" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyNodeTemplateRequest" + "type": "google.cloud.compute_v1.types.AddNodesNodeGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "resource", + "name": "node_group", "type": "str" }, + { + "name": "node_groups_add_nodes_request_resource", + "type": "google.cloud.compute_v1.types.NodeGroupsAddNodesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -34989,14 +34685,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_nodes" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_node_templates_get_iam_policy_sync.py", + "description": "Sample for AddNodes", + "file": "compute_v1_generated_node_groups_add_nodes_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTemplates_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_NodeGroups_AddNodes_sync", "segments": [ { "end": 53, @@ -35029,41 +34725,33 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_templates_get_iam_policy_sync.py" + "title": "compute_v1_generated_node_groups_add_nodes_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTemplatesClient", - "shortName": "NodeTemplatesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.NodeTemplatesClient.get", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.NodeTemplates.Get", + "fullName": "google.cloud.compute.v1.NodeGroups.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.NodeTemplates", - "shortName": "NodeTemplates" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "Get" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetNodeTemplateRequest" + "type": "google.cloud.compute_v1.types.AggregatedListNodeGroupsRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, - { - "name": "node_template", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -35077,22 +34765,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NodeTemplate", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.node_groups.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_node_templates_get_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_node_groups_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTemplates_Get_sync", + "regionTag": "compute_v1_generated_NodeGroups_AggregatedList_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -35102,55 +34790,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_templates_get_sync.py" + "title": "compute_v1_generated_node_groups_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTemplatesClient", - "shortName": "NodeTemplatesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.NodeTemplatesClient.insert", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.delete_nodes", "method": { - "fullName": "google.cloud.compute.v1.NodeTemplates.Insert", + "fullName": "google.cloud.compute.v1.NodeGroups.DeleteNodes", "service": { - "fullName": "google.cloud.compute.v1.NodeTemplates", - "shortName": "NodeTemplates" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "Insert" + "shortName": "DeleteNodes" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertNodeTemplateRequest" + "type": "google.cloud.compute_v1.types.DeleteNodesNodeGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "node_template_resource", - "type": "google.cloud.compute_v1.types.NodeTemplate" + "name": "node_group", + "type": "str" + }, + { + "name": "node_groups_delete_nodes_request_resource", + "type": "google.cloud.compute_v1.types.NodeGroupsDeleteNodesRequest" }, { "name": "retry", @@ -35166,21 +34858,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "delete_nodes" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_node_templates_insert_sync.py", + "description": "Sample for DeleteNodes", + "file": "compute_v1_generated_node_groups_delete_nodes_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTemplates_Insert_sync", + "regionTag": "compute_v1_generated_NodeGroups_DeleteNodes_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -35190,50 +34882,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_templates_insert_sync.py" + "title": "compute_v1_generated_node_groups_delete_nodes_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTemplatesClient", - "shortName": "NodeTemplatesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.NodeTemplatesClient.list", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.NodeTemplates.List", + "fullName": "google.cloud.compute.v1.NodeGroups.Delete", "service": { - "fullName": "google.cloud.compute.v1.NodeTemplates", - "shortName": "NodeTemplates" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "List" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNodeTemplatesRequest" + "type": "google.cloud.compute_v1.types.DeleteNodeGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", + "type": "str" + }, + { + "name": "node_group", "type": "str" }, { @@ -35249,14 +34945,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.node_templates.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for List", - "file": "compute_v1_generated_node_templates_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_node_groups_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTemplates_List_sync", + "regionTag": "compute_v1_generated_NodeGroups_Delete_sync", "segments": [ { "end": 53, @@ -35274,60 +34970,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_templates_list_sync.py" + "title": "compute_v1_generated_node_groups_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTemplatesClient", - "shortName": "NodeTemplatesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.NodeTemplatesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.NodeTemplates.SetIamPolicy", + "fullName": "google.cloud.compute.v1.NodeGroups.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.NodeTemplates", - "shortName": "NodeTemplates" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "SetIamPolicy" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyNodeTemplateRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyNodeGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { "name": "resource", "type": "str" }, - { - "name": "region_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -35342,13 +35034,13 @@ } ], "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "shortName": "get_iam_policy" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_node_templates_set_iam_policy_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_node_groups_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTemplates_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_NodeGroups_GetIamPolicy_sync", "segments": [ { "end": 53, @@ -35381,45 +35073,41 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_templates_set_iam_policy_sync.py" + "title": "compute_v1_generated_node_groups_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTemplatesClient", - "shortName": "NodeTemplatesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.NodeTemplatesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.get", "method": { - "fullName": "google.cloud.compute.v1.NodeTemplates.TestIamPermissions", + "fullName": "google.cloud.compute.v1.NodeGroups.Get", "service": { - "fullName": "google.cloud.compute.v1.NodeTemplates", - "shortName": "NodeTemplates" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "TestIamPermissions" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsNodeTemplateRequest" + "type": "google.cloud.compute_v1.types.GetNodeGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "resource", + "name": "node_group", "type": "str" }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -35433,14 +35121,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.types.NodeGroup", + "shortName": "get" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_node_templates_test_iam_permissions_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_node_groups_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTemplates_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_NodeGroups_Get_sync", "segments": [ { "end": 53, @@ -35473,33 +35161,45 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_templates_test_iam_permissions_sync.py" + "title": "compute_v1_generated_node_groups_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTypesClient", - "shortName": "NodeTypesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.NodeTypesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.NodeTypes.AggregatedList", + "fullName": "google.cloud.compute.v1.NodeGroups.Insert", "service": { - "fullName": "google.cloud.compute.v1.NodeTypes", - "shortName": "NodeTypes" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "AggregatedList" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListNodeTypesRequest" + "type": "google.cloud.compute_v1.types.InsertNodeGroupRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "initial_node_count", + "type": "int" + }, + { + "name": "node_group_resource", + "type": "google.cloud.compute_v1.types.NodeGroup" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -35513,22 +35213,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.node_types.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_node_types_aggregated_list_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_node_groups_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTypes_AggregatedList_sync", + "regionTag": "compute_v1_generated_NodeGroups_Insert_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -35538,43 +35238,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_types_aggregated_list_sync.py" + "title": "compute_v1_generated_node_groups_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTypesClient", - "shortName": "NodeTypesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.NodeTypesClient.get", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.list_nodes", "method": { - "fullName": "google.cloud.compute.v1.NodeTypes.Get", + "fullName": "google.cloud.compute.v1.NodeGroups.ListNodes", "service": { - "fullName": "google.cloud.compute.v1.NodeTypes", - "shortName": "NodeTypes" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "Get" + "shortName": "ListNodes" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetNodeTypeRequest" + "type": "google.cloud.compute_v1.types.ListNodesNodeGroupsRequest" }, { "name": "project", @@ -35585,7 +35285,7 @@ "type": "str" }, { - "name": "node_type", + "name": "node_group", "type": "str" }, { @@ -35601,22 +35301,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NodeType", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.node_groups.pagers.ListNodesPager", + "shortName": "list_nodes" }, - "description": "Sample for Get", - "file": "compute_v1_generated_node_types_get_sync.py", + "description": "Sample for ListNodes", + "file": "compute_v1_generated_node_groups_list_nodes_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTypes_Get_sync", + "regionTag": "compute_v1_generated_NodeGroups_ListNodes_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -35636,33 +35336,33 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_types_get_sync.py" + "title": "compute_v1_generated_node_groups_list_nodes_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.NodeTypesClient", - "shortName": "NodeTypesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.NodeTypesClient.list", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.list", "method": { - "fullName": "google.cloud.compute.v1.NodeTypes.List", + "fullName": "google.cloud.compute.v1.NodeGroups.List", "service": { - "fullName": "google.cloud.compute.v1.NodeTypes", - "shortName": "NodeTypes" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListNodeTypesRequest" + "type": "google.cloud.compute_v1.types.ListNodeGroupsRequest" }, { "name": "project", @@ -35685,14 +35385,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.node_types.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.node_groups.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_node_types_list_sync.py", + "file": "compute_v1_generated_node_groups_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_NodeTypes_List_sync", + "regionTag": "compute_v1_generated_NodeGroups_List_sync", "segments": [ { "end": 53, @@ -35725,36 +35425,44 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_node_types_list_sync.py" + "title": "compute_v1_generated_node_groups_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.add_association", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.patch", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.AddAssociation", + "fullName": "google.cloud.compute.v1.NodeGroups.Patch", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "AddAssociation" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddAssociationOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchNodeGroupRequest" }, { - "name": "security_policy", + "name": "project", "type": "str" }, { - "name": "security_policy_association_resource", - "type": "google.cloud.compute_v1.types.SecurityPolicyAssociation" + "name": "zone", + "type": "str" + }, + { + "name": "node_group", + "type": "str" + }, + { + "name": "node_group_resource", + "type": "google.cloud.compute_v1.types.NodeGroup" }, { "name": "retry", @@ -35770,21 +35478,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_association" + "shortName": "patch" }, - "description": "Sample for AddAssociation", - "file": "compute_v1_generated_organization_security_policies_add_association_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_node_groups_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_AddAssociation_sync", + "regionTag": "compute_v1_generated_NodeGroups_Patch_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -35794,51 +35502,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_add_association_sync.py" + "title": "compute_v1_generated_node_groups_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.add_rule", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.perform_maintenance", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.AddRule", + "fullName": "google.cloud.compute.v1.NodeGroups.PerformMaintenance", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "AddRule" + "shortName": "PerformMaintenance" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddRuleOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.PerformMaintenanceNodeGroupRequest" }, { - "name": "security_policy", + "name": "project", "type": "str" }, { - "name": "security_policy_rule_resource", - "type": "google.cloud.compute_v1.types.SecurityPolicyRule" + "name": "zone", + "type": "str" + }, + { + "name": "node_group", + "type": "str" + }, + { + "name": "node_groups_perform_maintenance_request_resource", + "type": "google.cloud.compute_v1.types.NodeGroupsPerformMaintenanceRequest" }, { "name": "retry", @@ -35854,21 +35570,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_rule" + "shortName": "perform_maintenance" }, - "description": "Sample for AddRule", - "file": "compute_v1_generated_organization_security_policies_add_rule_sync.py", + "description": "Sample for PerformMaintenance", + "file": "compute_v1_generated_node_groups_perform_maintenance_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_AddRule_sync", + "regionTag": "compute_v1_generated_NodeGroups_PerformMaintenance_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -35878,48 +35594,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_add_rule_sync.py" + "title": "compute_v1_generated_node_groups_perform_maintenance_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.copy_rules", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.CopyRules", + "fullName": "google.cloud.compute.v1.NodeGroups.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "CopyRules" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CopyRulesOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyNodeGroupRequest" }, { - "name": "security_policy", + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "resource", "type": "str" }, + { + "name": "zone_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.ZoneSetPolicyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -35933,22 +35661,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "copy_rules" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for CopyRules", - "file": "compute_v1_generated_organization_security_policies_copy_rules_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_node_groups_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_CopyRules_sync", + "regionTag": "compute_v1_generated_NodeGroups_SetIamPolicy_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -35958,48 +35686,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_copy_rules_sync.py" + "title": "compute_v1_generated_node_groups_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.delete", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.set_node_template", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Delete", + "fullName": "google.cloud.compute.v1.NodeGroups.SetNodeTemplate", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "Delete" + "shortName": "SetNodeTemplate" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.SetNodeTemplateNodeGroupRequest" }, { - "name": "security_policy", + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "node_group", "type": "str" }, + { + "name": "node_groups_set_node_template_request_resource", + "type": "google.cloud.compute_v1.types.NodeGroupsSetNodeTemplateRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -36014,21 +35754,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "set_node_template" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_organization_security_policies_delete_sync.py", + "description": "Sample for SetNodeTemplate", + "file": "compute_v1_generated_node_groups_set_node_template_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Delete_sync", + "regionTag": "compute_v1_generated_NodeGroups_SetNodeTemplate_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -36038,48 +35778,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_delete_sync.py" + "title": "compute_v1_generated_node_groups_set_node_template_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.get_association", + "fullName": "google.cloud.compute_v1.NodeGroupsClient.simulate_maintenance_event", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.GetAssociation", + "fullName": "google.cloud.compute.v1.NodeGroups.SimulateMaintenanceEvent", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" }, - "shortName": "GetAssociation" + "shortName": "SimulateMaintenanceEvent" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetAssociationOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.SimulateMaintenanceEventNodeGroupRequest" }, { - "name": "security_policy", + "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "node_group", + "type": "str" + }, + { + "name": "node_groups_simulate_maintenance_event_request_resource", + "type": "google.cloud.compute_v1.types.NodeGroupsSimulateMaintenanceEventRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -36093,22 +35845,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SecurityPolicyAssociation", - "shortName": "get_association" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "simulate_maintenance_event" }, - "description": "Sample for GetAssociation", - "file": "compute_v1_generated_organization_security_policies_get_association_sync.py", + "description": "Sample for SimulateMaintenanceEvent", + "file": "compute_v1_generated_node_groups_simulate_maintenance_event_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_GetAssociation_sync", + "regionTag": "compute_v1_generated_NodeGroups_SimulateMaintenanceEvent_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -36118,22 +35870,1942 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_groups_simulate_maintenance_event_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeGroupsClient", + "shortName": "NodeGroupsClient" + }, + "fullName": "google.cloud.compute_v1.NodeGroupsClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.NodeGroups.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.NodeGroups", + "shortName": "NodeGroups" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsNodeGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_node_groups_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeGroups_TestIamPermissions_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_groups_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTemplatesClient", + "shortName": "NodeTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTemplatesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.NodeTemplates.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.NodeTemplates", + "shortName": "NodeTemplates" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListNodeTemplatesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.services.node_templates.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_node_templates_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTemplates_AggregatedList_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_templates_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTemplatesClient", + "shortName": "NodeTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTemplatesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.NodeTemplates.Delete", + "service": { + "fullName": "google.cloud.compute.v1.NodeTemplates", + "shortName": "NodeTemplates" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteNodeTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "node_template", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_node_templates_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTemplates_Delete_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_templates_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTemplatesClient", + "shortName": "NodeTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTemplatesClient.get_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.NodeTemplates.GetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.NodeTemplates", + "shortName": "NodeTemplates" + }, + "shortName": "GetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetIamPolicyNodeTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" + }, + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_node_templates_get_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTemplates_GetIamPolicy_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_templates_get_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTemplatesClient", + "shortName": "NodeTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTemplatesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.NodeTemplates.Get", + "service": { + "fullName": "google.cloud.compute.v1.NodeTemplates", + "shortName": "NodeTemplates" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetNodeTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "node_template", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.NodeTemplate", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_node_templates_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTemplates_Get_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_templates_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTemplatesClient", + "shortName": "NodeTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTemplatesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.NodeTemplates.Insert", + "service": { + "fullName": "google.cloud.compute.v1.NodeTemplates", + "shortName": "NodeTemplates" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertNodeTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "node_template_resource", + "type": "google.cloud.compute_v1.types.NodeTemplate" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_node_templates_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTemplates_Insert_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_templates_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTemplatesClient", + "shortName": "NodeTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTemplatesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.NodeTemplates.List", + "service": { + "fullName": "google.cloud.compute.v1.NodeTemplates", + "shortName": "NodeTemplates" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListNodeTemplatesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.services.node_templates.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_node_templates_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTemplates_List_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_templates_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTemplatesClient", + "shortName": "NodeTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTemplatesClient.set_iam_policy", + "method": { + "fullName": "google.cloud.compute.v1.NodeTemplates.SetIamPolicy", + "service": { + "fullName": "google.cloud.compute.v1.NodeTemplates", + "shortName": "NodeTemplates" + }, + "shortName": "SetIamPolicy" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetIamPolicyNodeTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "region_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" + }, + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_node_templates_set_iam_policy_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTemplates_SetIamPolicy_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_templates_set_iam_policy_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTemplatesClient", + "shortName": "NodeTemplatesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTemplatesClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.NodeTemplates.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.NodeTemplates", + "shortName": "NodeTemplates" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsNodeTemplateRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" + }, + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_node_templates_test_iam_permissions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTemplates_TestIamPermissions_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_templates_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTypesClient", + "shortName": "NodeTypesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTypesClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.NodeTypes.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.NodeTypes", + "shortName": "NodeTypes" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListNodeTypesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.services.node_types.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_node_types_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTypes_AggregatedList_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_types_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTypesClient", + "shortName": "NodeTypesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTypesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.NodeTypes.Get", + "service": { + "fullName": "google.cloud.compute.v1.NodeTypes", + "shortName": "NodeTypes" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetNodeTypeRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "node_type", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.NodeType", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_node_types_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTypes_Get_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_types_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.NodeTypesClient", + "shortName": "NodeTypesClient" + }, + "fullName": "google.cloud.compute_v1.NodeTypesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.NodeTypes.List", + "service": { + "fullName": "google.cloud.compute.v1.NodeTypes", + "shortName": "NodeTypes" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListNodeTypesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "zone", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.services.node_types.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_node_types_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_NodeTypes_List_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_node_types_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.add_association", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.AddAssociation", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "AddAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddAssociationOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "security_policy_association_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicyAssociation" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_association" + }, + "description": "Sample for AddAssociation", + "file": "compute_v1_generated_organization_security_policies_add_association_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_AddAssociation_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_add_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.add_rule", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.AddRule", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "AddRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AddRuleOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "security_policy_rule_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicyRule" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_rule" + }, + "description": "Sample for AddRule", + "file": "compute_v1_generated_organization_security_policies_add_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_AddRule_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_add_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.copy_rules", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.CopyRules", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "CopyRules" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.CopyRulesOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "copy_rules" + }, + "description": "Sample for CopyRules", + "file": "compute_v1_generated_organization_security_policies_copy_rules_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_CopyRules_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_copy_rules_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Delete", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_organization_security_policies_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Delete_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.get_association", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.GetAssociation", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "GetAssociation" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetAssociationOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.SecurityPolicyAssociation", + "shortName": "get_association" + }, + "description": "Sample for GetAssociation", + "file": "compute_v1_generated_organization_security_policies_get_association_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_GetAssociation_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_get_association_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.get_rule", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.GetRule", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "GetRule" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetRuleOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.SecurityPolicyRule", + "shortName": "get_rule" + }, + "description": "Sample for GetRule", + "file": "compute_v1_generated_organization_security_policies_get_rule_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_GetRule_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_get_rule_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.get", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Get", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.SecurityPolicy", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_organization_security_policies_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Get_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_get_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.insert", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Insert", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "Insert" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.InsertOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_organization_security_policies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Insert_sync", + "segments": [ + { + "end": 50, + "start": 27, + "type": "FULL" + }, + { + "end": 50, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 44, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 45, + "type": "REQUEST_EXECUTION" + }, + { + "end": 51, + "start": 48, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.list_associations", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.ListAssociations", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "ListAssociations" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListAssociationsOrganizationSecurityPolicyRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.OrganizationSecurityPoliciesListAssociationsResponse", + "shortName": "list_associations" + }, + "description": "Sample for ListAssociations", + "file": "compute_v1_generated_organization_security_policies_list_associations_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_ListAssociations_sync", + "segments": [ + { + "end": 50, + "start": 27, + "type": "FULL" + }, + { + "end": 50, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 44, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 45, + "type": "REQUEST_EXECUTION" + }, + { + "end": 51, + "start": 48, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_list_associations_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.list_preconfigured_expression_sets", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.ListPreconfiguredExpressionSets", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "ListPreconfiguredExpressionSets" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.SecurityPoliciesListPreconfiguredExpressionSetsResponse", + "shortName": "list_preconfigured_expression_sets" + }, + "description": "Sample for ListPreconfiguredExpressionSets", + "file": "compute_v1_generated_organization_security_policies_list_preconfigured_expression_sets_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_ListPreconfiguredExpressionSets_sync", + "segments": [ + { + "end": 50, + "start": 27, + "type": "FULL" + }, + { + "end": 50, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 44, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 45, + "type": "REQUEST_EXECUTION" + }, + { + "end": 51, + "start": 48, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_organization_security_policies_list_preconfigured_expression_sets_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", + "shortName": "OrganizationSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.List", + "service": { + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", + "shortName": "OrganizationSecurityPolicies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListOrganizationSecurityPoliciesRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.services.organization_security_policies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_organization_security_policies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_List_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 44, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { "end": 52, - "start": 49, + "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_get_association_sync.py" + "title": "compute_v1_generated_organization_security_policies_list_sync.py" }, { "canonical": true, @@ -36142,19 +37814,19 @@ "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", "shortName": "OrganizationSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.get_rule", + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.move", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.GetRule", + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Move", "service": { "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", "shortName": "OrganizationSecurityPolicies" }, - "shortName": "GetRule" + "shortName": "Move" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRuleOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.MoveOrganizationSecurityPolicyRequest" }, { "name": "security_policy", @@ -36173,14 +37845,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SecurityPolicyRule", - "shortName": "get_rule" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "move" }, - "description": "Sample for GetRule", - "file": "compute_v1_generated_organization_security_policies_get_rule_sync.py", + "description": "Sample for Move", + "file": "compute_v1_generated_organization_security_policies_move_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_GetRule_sync", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Move_sync", "segments": [ { "end": 51, @@ -36213,7 +37885,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_get_rule_sync.py" + "title": "compute_v1_generated_organization_security_policies_move_sync.py" }, { "canonical": true, @@ -36222,24 +37894,28 @@ "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", "shortName": "OrganizationSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.get", + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.patch_rule", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Get", + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.PatchRule", "service": { "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", "shortName": "OrganizationSecurityPolicies" }, - "shortName": "Get" + "shortName": "PatchRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchRuleOrganizationSecurityPolicyRequest" }, { "name": "security_policy", "type": "str" }, + { + "name": "security_policy_rule_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicyRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -36253,14 +37929,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SecurityPolicy", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_rule" }, - "description": "Sample for Get", - "file": "compute_v1_generated_organization_security_policies_get_sync.py", + "description": "Sample for PatchRule", + "file": "compute_v1_generated_organization_security_policies_patch_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Get_sync", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_PatchRule_sync", "segments": [ { "end": 51, @@ -36293,7 +37969,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_get_sync.py" + "title": "compute_v1_generated_organization_security_policies_patch_rule_sync.py" }, { "canonical": true, @@ -36302,19 +37978,23 @@ "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", "shortName": "OrganizationSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.insert", + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Insert", + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Patch", "service": { "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", "shortName": "OrganizationSecurityPolicies" }, - "shortName": "Insert" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" }, { "name": "security_policy_resource", @@ -36334,21 +38014,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "patch" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_organization_security_policies_insert_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_organization_security_policies_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Insert_sync", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Patch_sync", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 50, + "end": 51, "start": 27, "type": "SHORT" }, @@ -36358,22 +38038,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 44, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 47, - "start": 45, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 51, - "start": 48, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_insert_sync.py" + "title": "compute_v1_generated_organization_security_policies_patch_sync.py" }, { "canonical": true, @@ -36382,19 +38062,23 @@ "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", "shortName": "OrganizationSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.list_associations", + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.remove_association", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.ListAssociations", + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.RemoveAssociation", "service": { "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", "shortName": "OrganizationSecurityPolicies" }, - "shortName": "ListAssociations" + "shortName": "RemoveAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListAssociationsOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.RemoveAssociationOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" }, { "name": "retry", @@ -36409,22 +38093,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.OrganizationSecurityPoliciesListAssociationsResponse", - "shortName": "list_associations" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_association" }, - "description": "Sample for ListAssociations", - "file": "compute_v1_generated_organization_security_policies_list_associations_sync.py", + "description": "Sample for RemoveAssociation", + "file": "compute_v1_generated_organization_security_policies_remove_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_ListAssociations_sync", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_RemoveAssociation_sync", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 50, + "end": 51, "start": 27, "type": "SHORT" }, @@ -36434,22 +38118,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 44, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 47, - "start": 45, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 51, - "start": 48, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_list_associations_sync.py" + "title": "compute_v1_generated_organization_security_policies_remove_association_sync.py" }, { "canonical": true, @@ -36458,19 +38142,23 @@ "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", "shortName": "OrganizationSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.list_preconfigured_expression_sets", + "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.remove_rule", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.ListPreconfiguredExpressionSets", + "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.RemoveRule", "service": { "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", "shortName": "OrganizationSecurityPolicies" }, - "shortName": "ListPreconfiguredExpressionSets" + "shortName": "RemoveRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest" + "type": "google.cloud.compute_v1.types.RemoveRuleOrganizationSecurityPolicyRequest" + }, + { + "name": "security_policy", + "type": "str" }, { "name": "retry", @@ -36485,22 +38173,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SecurityPoliciesListPreconfiguredExpressionSetsResponse", - "shortName": "list_preconfigured_expression_sets" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_rule" }, - "description": "Sample for ListPreconfiguredExpressionSets", - "file": "compute_v1_generated_organization_security_policies_list_preconfigured_expression_sets_sync.py", + "description": "Sample for RemoveRule", + "file": "compute_v1_generated_organization_security_policies_remove_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_ListPreconfiguredExpressionSets_sync", + "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_RemoveRule_sync", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 50, + "end": 51, "start": 27, "type": "SHORT" }, @@ -36510,43 +38198,47 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 44, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 47, - "start": 45, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 51, - "start": 48, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_list_preconfigured_expression_sets_sync.py" + "title": "compute_v1_generated_organization_security_policies_remove_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.list", + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.List", + "fullName": "google.cloud.compute.v1.PacketMirrorings.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" }, - "shortName": "List" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListOrganizationSecurityPoliciesRequest" + "type": "google.cloud.compute_v1.types.AggregatedListPacketMirroringsRequest" + }, + { + "name": "project", + "type": "str" }, { "name": "retry", @@ -36561,22 +38253,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.organization_security_policies.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.services.packet_mirrorings.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for List", - "file": "compute_v1_generated_organization_security_policies_list_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_packet_mirrorings_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_List_sync", + "regionTag": "compute_v1_generated_PacketMirrorings_AggregatedList_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -36586,46 +38278,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 44, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 47, - "start": 45, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 48, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_list_sync.py" + "title": "compute_v1_generated_packet_mirrorings_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.move", + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Move", + "fullName": "google.cloud.compute.v1.PacketMirrorings.Delete", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" }, - "shortName": "Move" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.MoveOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.DeletePacketMirroringRequest" }, { - "name": "security_policy", + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "packet_mirroring", "type": "str" }, { @@ -36642,21 +38342,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "move" + "shortName": "delete" }, - "description": "Sample for Move", - "file": "compute_v1_generated_organization_security_policies_move_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_packet_mirrorings_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Move_sync", + "regionTag": "compute_v1_generated_PacketMirrorings_Delete_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -36666,51 +38366,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_move_sync.py" + "title": "compute_v1_generated_packet_mirrorings_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.patch_rule", + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.get", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.PatchRule", + "fullName": "google.cloud.compute.v1.PacketMirrorings.Get", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" }, - "shortName": "PatchRule" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRuleOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.GetPacketMirroringRequest" }, { - "name": "security_policy", + "name": "project", "type": "str" }, { - "name": "security_policy_rule_resource", - "type": "google.cloud.compute_v1.types.SecurityPolicyRule" + "name": "region", + "type": "str" + }, + { + "name": "packet_mirroring", + "type": "str" }, { "name": "retry", @@ -36725,22 +38429,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch_rule" + "resultType": "google.cloud.compute_v1.types.PacketMirroring", + "shortName": "get" }, - "description": "Sample for PatchRule", - "file": "compute_v1_generated_organization_security_policies_patch_rule_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_packet_mirrorings_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_PatchRule_sync", + "regionTag": "compute_v1_generated_PacketMirrorings_Get_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -36750,51 +38454,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_patch_rule_sync.py" + "title": "compute_v1_generated_packet_mirrorings_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.patch", + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Patch", + "fullName": "google.cloud.compute.v1.PacketMirrorings.Insert", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" }, - "shortName": "Patch" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.InsertPacketMirroringRequest" }, { - "name": "security_policy", + "name": "project", "type": "str" }, { - "name": "security_policy_resource", - "type": "google.cloud.compute_v1.types.SecurityPolicy" + "name": "region", + "type": "str" + }, + { + "name": "packet_mirroring_resource", + "type": "google.cloud.compute_v1.types.PacketMirroring" }, { "name": "retry", @@ -36810,21 +38518,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "insert" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_organization_security_policies_patch_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_packet_mirrorings_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Patch_sync", + "regionTag": "compute_v1_generated_PacketMirrorings_Insert_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -36834,48 +38542,144 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_patch_sync.py" + "title": "compute_v1_generated_packet_mirrorings_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.remove_association", + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.list", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.RemoveAssociation", + "fullName": "google.cloud.compute.v1.PacketMirrorings.List", + "service": { + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListPacketMirroringsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.services.packet_mirrorings.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_packet_mirrorings_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_PacketMirrorings_List_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_packet_mirrorings_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" + }, + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.patch", + "method": { + "fullName": "google.cloud.compute.v1.PacketMirrorings.Patch", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" }, - "shortName": "RemoveAssociation" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveAssociationOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchPacketMirroringRequest" }, { - "name": "security_policy", + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "packet_mirroring", "type": "str" }, + { + "name": "packet_mirroring_resource", + "type": "google.cloud.compute_v1.types.PacketMirroring" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -36890,21 +38694,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_association" + "shortName": "patch" }, - "description": "Sample for RemoveAssociation", - "file": "compute_v1_generated_organization_security_policies_remove_association_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_packet_mirrorings_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_RemoveAssociation_sync", + "regionTag": "compute_v1_generated_PacketMirrorings_Patch_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -36914,48 +38718,60 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_remove_association_sync.py" + "title": "compute_v1_generated_packet_mirrorings_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient", - "shortName": "OrganizationSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.PacketMirroringsClient", + "shortName": "PacketMirroringsClient" }, - "fullName": "google.cloud.compute_v1.OrganizationSecurityPoliciesClient.remove_rule", + "fullName": "google.cloud.compute_v1.PacketMirroringsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.RemoveRule", + "fullName": "google.cloud.compute.v1.PacketMirrorings.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies", - "shortName": "OrganizationSecurityPolicies" + "fullName": "google.cloud.compute.v1.PacketMirrorings", + "shortName": "PacketMirrorings" }, - "shortName": "RemoveRule" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveRuleOrganizationSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsPacketMirroringRequest" }, { - "name": "security_policy", + "name": "project", "type": "str" }, + { + "name": "region", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -36969,22 +38785,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_rule" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for RemoveRule", - "file": "compute_v1_generated_organization_security_policies_remove_rule_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_packet_mirrorings_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_RemoveRule_sync", + "regionTag": "compute_v1_generated_PacketMirrorings_TestIamPermissions_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -36994,48 +38810,52 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_organization_security_policies_remove_rule_sync.py" + "title": "compute_v1_generated_packet_mirrorings_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PacketMirroringsClient", - "shortName": "PacketMirroringsClient" + "fullName": "google.cloud.compute_v1.PreviewFeaturesClient", + "shortName": "PreviewFeaturesClient" }, - "fullName": "google.cloud.compute_v1.PacketMirroringsClient.aggregated_list", + "fullName": "google.cloud.compute_v1.PreviewFeaturesClient.get", "method": { - "fullName": "google.cloud.compute.v1.PacketMirrorings.AggregatedList", + "fullName": "google.cloud.compute.v1.PreviewFeatures.Get", "service": { - "fullName": "google.cloud.compute.v1.PacketMirrorings", - "shortName": "PacketMirrorings" + "fullName": "google.cloud.compute.v1.PreviewFeatures", + "shortName": "PreviewFeatures" }, - "shortName": "AggregatedList" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListPacketMirroringsRequest" + "type": "google.cloud.compute_v1.types.GetPreviewFeatureRequest" }, { "name": "project", "type": "str" }, + { + "name": "preview_feature", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -37049,14 +38869,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.packet_mirrorings.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.types.PreviewFeature", + "shortName": "get" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_packet_mirrorings_aggregated_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_preview_features_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PacketMirrorings_AggregatedList_sync", + "regionTag": "compute_v1_generated_PreviewFeatures_Get_sync", "segments": [ { "end": 52, @@ -37074,56 +38894,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_packet_mirrorings_aggregated_list_sync.py" + "title": "compute_v1_generated_preview_features_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PacketMirroringsClient", - "shortName": "PacketMirroringsClient" + "fullName": "google.cloud.compute_v1.PreviewFeaturesClient", + "shortName": "PreviewFeaturesClient" }, - "fullName": "google.cloud.compute_v1.PacketMirroringsClient.delete", + "fullName": "google.cloud.compute_v1.PreviewFeaturesClient.list", "method": { - "fullName": "google.cloud.compute.v1.PacketMirrorings.Delete", + "fullName": "google.cloud.compute.v1.PreviewFeatures.List", "service": { - "fullName": "google.cloud.compute.v1.PacketMirrorings", - "shortName": "PacketMirrorings" + "fullName": "google.cloud.compute.v1.PreviewFeatures", + "shortName": "PreviewFeatures" }, - "shortName": "Delete" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeletePacketMirroringRequest" + "type": "google.cloud.compute_v1.types.ListPreviewFeaturesRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, - { - "name": "packet_mirroring", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -37137,22 +38949,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.preview_features.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_packet_mirrorings_delete_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_preview_features_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PacketMirrorings_Delete_sync", + "regionTag": "compute_v1_generated_PreviewFeatures_List_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -37162,55 +38974,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_packet_mirrorings_delete_sync.py" + "title": "compute_v1_generated_preview_features_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PacketMirroringsClient", - "shortName": "PacketMirroringsClient" + "fullName": "google.cloud.compute_v1.PreviewFeaturesClient", + "shortName": "PreviewFeaturesClient" }, - "fullName": "google.cloud.compute_v1.PacketMirroringsClient.get", + "fullName": "google.cloud.compute_v1.PreviewFeaturesClient.update", "method": { - "fullName": "google.cloud.compute.v1.PacketMirrorings.Get", + "fullName": "google.cloud.compute.v1.PreviewFeatures.Update", "service": { - "fullName": "google.cloud.compute.v1.PacketMirrorings", - "shortName": "PacketMirrorings" + "fullName": "google.cloud.compute.v1.PreviewFeatures", + "shortName": "PreviewFeatures" }, - "shortName": "Get" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetPacketMirroringRequest" + "type": "google.cloud.compute_v1.types.UpdatePreviewFeatureRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "preview_feature", "type": "str" }, { - "name": "packet_mirroring", - "type": "str" + "name": "preview_feature_resource", + "type": "google.cloud.compute_v1.types.PreviewFeature" }, { "name": "retry", @@ -37225,22 +39037,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.PacketMirroring", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" }, - "description": "Sample for Get", - "file": "compute_v1_generated_packet_mirrorings_get_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_preview_features_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PacketMirrorings_Get_sync", + "regionTag": "compute_v1_generated_PreviewFeatures_Update_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -37250,56 +39062,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_packet_mirrorings_get_sync.py" + "title": "compute_v1_generated_preview_features_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PacketMirroringsClient", - "shortName": "PacketMirroringsClient" + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.PacketMirroringsClient.insert", + "fullName": "google.cloud.compute_v1.ProjectsClient.disable_xpn_host", "method": { - "fullName": "google.cloud.compute.v1.PacketMirrorings.Insert", + "fullName": "google.cloud.compute.v1.Projects.DisableXpnHost", "service": { - "fullName": "google.cloud.compute.v1.PacketMirrorings", - "shortName": "PacketMirrorings" + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" }, - "shortName": "Insert" + "shortName": "DisableXpnHost" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertPacketMirroringRequest" + "type": "google.cloud.compute_v1.types.DisableXpnHostProjectRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, - { - "name": "packet_mirroring_resource", - "type": "google.cloud.compute_v1.types.PacketMirroring" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -37314,21 +39118,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "disable_xpn_host" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_packet_mirrorings_insert_sync.py", + "description": "Sample for DisableXpnHost", + "file": "compute_v1_generated_projects_disable_xpn_host_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PacketMirrorings_Insert_sync", + "regionTag": "compute_v1_generated_Projects_DisableXpnHost_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -37338,51 +39142,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_packet_mirrorings_insert_sync.py" + "title": "compute_v1_generated_projects_disable_xpn_host_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PacketMirroringsClient", - "shortName": "PacketMirroringsClient" + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.PacketMirroringsClient.list", + "fullName": "google.cloud.compute_v1.ProjectsClient.disable_xpn_resource", "method": { - "fullName": "google.cloud.compute.v1.PacketMirrorings.List", + "fullName": "google.cloud.compute.v1.Projects.DisableXpnResource", "service": { - "fullName": "google.cloud.compute.v1.PacketMirrorings", - "shortName": "PacketMirrorings" + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" }, - "shortName": "List" + "shortName": "DisableXpnResource" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListPacketMirroringsRequest" + "type": "google.cloud.compute_v1.types.DisableXpnResourceProjectRequest" }, { "name": "project", "type": "str" }, { - "name": "region", - "type": "str" + "name": "projects_disable_xpn_resource_request_resource", + "type": "google.cloud.compute_v1.types.ProjectsDisableXpnResourceRequest" }, { "name": "retry", @@ -37397,22 +39201,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.packet_mirrorings.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "disable_xpn_resource" }, - "description": "Sample for List", - "file": "compute_v1_generated_packet_mirrorings_list_sync.py", + "description": "Sample for DisableXpnResource", + "file": "compute_v1_generated_projects_disable_xpn_resource_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PacketMirrorings_List_sync", + "regionTag": "compute_v1_generated_Projects_DisableXpnResource_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -37422,60 +39226,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_packet_mirrorings_list_sync.py" + "title": "compute_v1_generated_projects_disable_xpn_resource_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PacketMirroringsClient", - "shortName": "PacketMirroringsClient" + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.PacketMirroringsClient.patch", + "fullName": "google.cloud.compute_v1.ProjectsClient.enable_xpn_host", "method": { - "fullName": "google.cloud.compute.v1.PacketMirrorings.Patch", + "fullName": "google.cloud.compute.v1.Projects.EnableXpnHost", "service": { - "fullName": "google.cloud.compute.v1.PacketMirrorings", - "shortName": "PacketMirrorings" + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" }, - "shortName": "Patch" + "shortName": "EnableXpnHost" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchPacketMirroringRequest" + "type": "google.cloud.compute_v1.types.EnableXpnHostProjectRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, - { - "name": "packet_mirroring", - "type": "str" - }, - { - "name": "packet_mirroring_resource", - "type": "google.cloud.compute_v1.types.PacketMirroring" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -37490,21 +39282,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "enable_xpn_host" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_packet_mirrorings_patch_sync.py", + "description": "Sample for EnableXpnHost", + "file": "compute_v1_generated_projects_enable_xpn_host_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PacketMirrorings_Patch_sync", + "regionTag": "compute_v1_generated_Projects_EnableXpnHost_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -37514,59 +39306,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_packet_mirrorings_patch_sync.py" + "title": "compute_v1_generated_projects_enable_xpn_host_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PacketMirroringsClient", - "shortName": "PacketMirroringsClient" + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.PacketMirroringsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.ProjectsClient.enable_xpn_resource", "method": { - "fullName": "google.cloud.compute.v1.PacketMirrorings.TestIamPermissions", + "fullName": "google.cloud.compute.v1.Projects.EnableXpnResource", "service": { - "fullName": "google.cloud.compute.v1.PacketMirrorings", - "shortName": "PacketMirrorings" + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" }, - "shortName": "TestIamPermissions" + "shortName": "EnableXpnResource" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsPacketMirroringRequest" + "type": "google.cloud.compute_v1.types.EnableXpnResourceProjectRequest" }, { "name": "project", "type": "str" }, { - "name": "region", - "type": "str" - }, - { - "name": "resource", - "type": "str" - }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "projects_enable_xpn_resource_request_resource", + "type": "google.cloud.compute_v1.types.ProjectsEnableXpnResourceRequest" }, { "name": "retry", @@ -37581,22 +39365,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "enable_xpn_resource" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_packet_mirrorings_test_iam_permissions_sync.py", + "description": "Sample for EnableXpnResource", + "file": "compute_v1_generated_projects_enable_xpn_resource_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PacketMirrorings_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_Projects_EnableXpnResource_sync", "segments": [ { - "end": 53, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 51, "start": 27, "type": "SHORT" }, @@ -37606,52 +39390,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_packet_mirrorings_test_iam_permissions_sync.py" + "title": "compute_v1_generated_projects_enable_xpn_resource_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PreviewFeaturesClient", - "shortName": "PreviewFeaturesClient" + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.PreviewFeaturesClient.get", + "fullName": "google.cloud.compute_v1.ProjectsClient.get_xpn_host", "method": { - "fullName": "google.cloud.compute.v1.PreviewFeatures.Get", + "fullName": "google.cloud.compute.v1.Projects.GetXpnHost", "service": { - "fullName": "google.cloud.compute.v1.PreviewFeatures", - "shortName": "PreviewFeatures" + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" }, - "shortName": "Get" + "shortName": "GetXpnHost" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetPreviewFeatureRequest" + "type": "google.cloud.compute_v1.types.GetXpnHostProjectRequest" }, { "name": "project", "type": "str" }, - { - "name": "preview_feature", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -37665,22 +39445,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.PreviewFeature", - "shortName": "get" + "resultType": "google.cloud.compute_v1.types.Project", + "shortName": "get_xpn_host" }, - "description": "Sample for Get", - "file": "compute_v1_generated_preview_features_get_sync.py", + "description": "Sample for GetXpnHost", + "file": "compute_v1_generated_projects_get_xpn_host_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PreviewFeatures_Get_sync", + "regionTag": "compute_v1_generated_Projects_GetXpnHost_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -37690,43 +39470,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_preview_features_get_sync.py" + "title": "compute_v1_generated_projects_get_xpn_host_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PreviewFeaturesClient", - "shortName": "PreviewFeaturesClient" + "fullName": "google.cloud.compute_v1.ProjectsClient", + "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.PreviewFeaturesClient.list", + "fullName": "google.cloud.compute_v1.ProjectsClient.get_xpn_resources", "method": { - "fullName": "google.cloud.compute.v1.PreviewFeatures.List", + "fullName": "google.cloud.compute.v1.Projects.GetXpnResources", "service": { - "fullName": "google.cloud.compute.v1.PreviewFeatures", - "shortName": "PreviewFeatures" + "fullName": "google.cloud.compute.v1.Projects", + "shortName": "Projects" }, - "shortName": "List" + "shortName": "GetXpnResources" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListPreviewFeaturesRequest" + "type": "google.cloud.compute_v1.types.GetXpnResourcesProjectsRequest" }, { "name": "project", @@ -37745,14 +39525,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.preview_features.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.services.projects.pagers.GetXpnResourcesPager", + "shortName": "get_xpn_resources" }, - "description": "Sample for List", - "file": "compute_v1_generated_preview_features_list_sync.py", + "description": "Sample for GetXpnResources", + "file": "compute_v1_generated_projects_get_xpn_resources_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PreviewFeatures_List_sync", + "regionTag": "compute_v1_generated_Projects_GetXpnResources_sync", "segments": [ { "end": 52, @@ -37785,95 +39565,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_preview_features_list_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.PreviewFeaturesClient", - "shortName": "PreviewFeaturesClient" - }, - "fullName": "google.cloud.compute_v1.PreviewFeaturesClient.update", - "method": { - "fullName": "google.cloud.compute.v1.PreviewFeatures.Update", - "service": { - "fullName": "google.cloud.compute.v1.PreviewFeatures", - "shortName": "PreviewFeatures" - }, - "shortName": "Update" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.UpdatePreviewFeatureRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "preview_feature", - "type": "str" - }, - { - "name": "preview_feature_resource", - "type": "google.cloud.compute_v1.types.PreviewFeature" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" - }, - "description": "Sample for Update", - "file": "compute_v1_generated_preview_features_update_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PreviewFeatures_Update_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 49, - "start": 47, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_preview_features_update_sync.py" + "title": "compute_v1_generated_projects_get_xpn_resources_sync.py" }, { "canonical": true, @@ -37882,19 +39574,19 @@ "fullName": "google.cloud.compute_v1.ProjectsClient", "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.disable_xpn_host", + "fullName": "google.cloud.compute_v1.ProjectsClient.get", "method": { - "fullName": "google.cloud.compute.v1.Projects.DisableXpnHost", + "fullName": "google.cloud.compute.v1.Projects.Get", "service": { "fullName": "google.cloud.compute.v1.Projects", "shortName": "Projects" }, - "shortName": "DisableXpnHost" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DisableXpnHostProjectRequest" + "type": "google.cloud.compute_v1.types.GetProjectRequest" }, { "name": "project", @@ -37913,14 +39605,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "disable_xpn_host" + "resultType": "google.cloud.compute_v1.types.Project", + "shortName": "get" }, - "description": "Sample for DisableXpnHost", - "file": "compute_v1_generated_projects_disable_xpn_host_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_projects_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_DisableXpnHost_sync", + "regionTag": "compute_v1_generated_Projects_Get_sync", "segments": [ { "end": 51, @@ -37953,7 +39645,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_disable_xpn_host_sync.py" + "title": "compute_v1_generated_projects_get_sync.py" }, { "canonical": true, @@ -37962,27 +39654,27 @@ "fullName": "google.cloud.compute_v1.ProjectsClient", "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.disable_xpn_resource", + "fullName": "google.cloud.compute_v1.ProjectsClient.list_xpn_hosts", "method": { - "fullName": "google.cloud.compute.v1.Projects.DisableXpnResource", + "fullName": "google.cloud.compute.v1.Projects.ListXpnHosts", "service": { "fullName": "google.cloud.compute.v1.Projects", "shortName": "Projects" }, - "shortName": "DisableXpnResource" + "shortName": "ListXpnHosts" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DisableXpnResourceProjectRequest" + "type": "google.cloud.compute_v1.types.ListXpnHostsProjectsRequest" }, { "name": "project", "type": "str" }, { - "name": "projects_disable_xpn_resource_request_resource", - "type": "google.cloud.compute_v1.types.ProjectsDisableXpnResourceRequest" + "name": "projects_list_xpn_hosts_request_resource", + "type": "google.cloud.compute_v1.types.ProjectsListXpnHostsRequest" }, { "name": "retry", @@ -37997,22 +39689,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "disable_xpn_resource" + "resultType": "google.cloud.compute_v1.services.projects.pagers.ListXpnHostsPager", + "shortName": "list_xpn_hosts" }, - "description": "Sample for DisableXpnResource", - "file": "compute_v1_generated_projects_disable_xpn_resource_sync.py", + "description": "Sample for ListXpnHosts", + "file": "compute_v1_generated_projects_list_xpn_hosts_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_DisableXpnResource_sync", + "regionTag": "compute_v1_generated_Projects_ListXpnHosts_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -38032,12 +39724,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 53, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_disable_xpn_resource_sync.py" + "title": "compute_v1_generated_projects_list_xpn_hosts_sync.py" }, { "canonical": true, @@ -38046,24 +39738,28 @@ "fullName": "google.cloud.compute_v1.ProjectsClient", "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.enable_xpn_host", + "fullName": "google.cloud.compute_v1.ProjectsClient.move_disk", "method": { - "fullName": "google.cloud.compute.v1.Projects.EnableXpnHost", + "fullName": "google.cloud.compute.v1.Projects.MoveDisk", "service": { "fullName": "google.cloud.compute.v1.Projects", "shortName": "Projects" }, - "shortName": "EnableXpnHost" + "shortName": "MoveDisk" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.EnableXpnHostProjectRequest" + "type": "google.cloud.compute_v1.types.MoveDiskProjectRequest" }, { "name": "project", "type": "str" }, + { + "name": "disk_move_request_resource", + "type": "google.cloud.compute_v1.types.DiskMoveRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -38078,13 +39774,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "enable_xpn_host" + "shortName": "move_disk" }, - "description": "Sample for EnableXpnHost", - "file": "compute_v1_generated_projects_enable_xpn_host_sync.py", + "description": "Sample for MoveDisk", + "file": "compute_v1_generated_projects_move_disk_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_EnableXpnHost_sync", + "regionTag": "compute_v1_generated_Projects_MoveDisk_sync", "segments": [ { "end": 51, @@ -38117,7 +39813,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_enable_xpn_host_sync.py" + "title": "compute_v1_generated_projects_move_disk_sync.py" }, { "canonical": true, @@ -38126,27 +39822,27 @@ "fullName": "google.cloud.compute_v1.ProjectsClient", "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.enable_xpn_resource", + "fullName": "google.cloud.compute_v1.ProjectsClient.move_instance", "method": { - "fullName": "google.cloud.compute.v1.Projects.EnableXpnResource", + "fullName": "google.cloud.compute.v1.Projects.MoveInstance", "service": { "fullName": "google.cloud.compute.v1.Projects", "shortName": "Projects" }, - "shortName": "EnableXpnResource" + "shortName": "MoveInstance" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.EnableXpnResourceProjectRequest" + "type": "google.cloud.compute_v1.types.MoveInstanceProjectRequest" }, { "name": "project", "type": "str" }, { - "name": "projects_enable_xpn_resource_request_resource", - "type": "google.cloud.compute_v1.types.ProjectsEnableXpnResourceRequest" + "name": "instance_move_request_resource", + "type": "google.cloud.compute_v1.types.InstanceMoveRequest" }, { "name": "retry", @@ -38162,13 +39858,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "enable_xpn_resource" + "shortName": "move_instance" }, - "description": "Sample for EnableXpnResource", - "file": "compute_v1_generated_projects_enable_xpn_resource_sync.py", + "description": "Sample for MoveInstance", + "file": "compute_v1_generated_projects_move_instance_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_EnableXpnResource_sync", + "regionTag": "compute_v1_generated_Projects_MoveInstance_sync", "segments": [ { "end": 51, @@ -38201,7 +39897,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_enable_xpn_resource_sync.py" + "title": "compute_v1_generated_projects_move_instance_sync.py" }, { "canonical": true, @@ -38210,24 +39906,28 @@ "fullName": "google.cloud.compute_v1.ProjectsClient", "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.get_xpn_host", + "fullName": "google.cloud.compute_v1.ProjectsClient.set_cloud_armor_tier", "method": { - "fullName": "google.cloud.compute.v1.Projects.GetXpnHost", + "fullName": "google.cloud.compute.v1.Projects.SetCloudArmorTier", "service": { "fullName": "google.cloud.compute.v1.Projects", "shortName": "Projects" }, - "shortName": "GetXpnHost" + "shortName": "SetCloudArmorTier" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetXpnHostProjectRequest" + "type": "google.cloud.compute_v1.types.SetCloudArmorTierProjectRequest" }, { "name": "project", "type": "str" }, + { + "name": "projects_set_cloud_armor_tier_request_resource", + "type": "google.cloud.compute_v1.types.ProjectsSetCloudArmorTierRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -38241,14 +39941,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Project", - "shortName": "get_xpn_host" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_cloud_armor_tier" }, - "description": "Sample for GetXpnHost", - "file": "compute_v1_generated_projects_get_xpn_host_sync.py", + "description": "Sample for SetCloudArmorTier", + "file": "compute_v1_generated_projects_set_cloud_armor_tier_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_GetXpnHost_sync", + "regionTag": "compute_v1_generated_Projects_SetCloudArmorTier_sync", "segments": [ { "end": 51, @@ -38281,7 +39981,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_get_xpn_host_sync.py" + "title": "compute_v1_generated_projects_set_cloud_armor_tier_sync.py" }, { "canonical": true, @@ -38290,24 +39990,28 @@ "fullName": "google.cloud.compute_v1.ProjectsClient", "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.get_xpn_resources", + "fullName": "google.cloud.compute_v1.ProjectsClient.set_common_instance_metadata", "method": { - "fullName": "google.cloud.compute.v1.Projects.GetXpnResources", + "fullName": "google.cloud.compute.v1.Projects.SetCommonInstanceMetadata", "service": { "fullName": "google.cloud.compute.v1.Projects", "shortName": "Projects" }, - "shortName": "GetXpnResources" + "shortName": "SetCommonInstanceMetadata" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetXpnResourcesProjectsRequest" + "type": "google.cloud.compute_v1.types.SetCommonInstanceMetadataProjectRequest" }, { "name": "project", "type": "str" }, + { + "name": "metadata_resource", + "type": "google.cloud.compute_v1.types.Metadata" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -38321,22 +40025,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.projects.pagers.GetXpnResourcesPager", - "shortName": "get_xpn_resources" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_common_instance_metadata" }, - "description": "Sample for GetXpnResources", - "file": "compute_v1_generated_projects_get_xpn_resources_sync.py", + "description": "Sample for SetCommonInstanceMetadata", + "file": "compute_v1_generated_projects_set_common_instance_metadata_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_GetXpnResources_sync", + "regionTag": "compute_v1_generated_Projects_SetCommonInstanceMetadata_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -38356,12 +40060,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_get_xpn_resources_sync.py" + "title": "compute_v1_generated_projects_set_common_instance_metadata_sync.py" }, { "canonical": true, @@ -38370,24 +40074,28 @@ "fullName": "google.cloud.compute_v1.ProjectsClient", "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.get", + "fullName": "google.cloud.compute_v1.ProjectsClient.set_default_network_tier", "method": { - "fullName": "google.cloud.compute.v1.Projects.Get", + "fullName": "google.cloud.compute.v1.Projects.SetDefaultNetworkTier", "service": { "fullName": "google.cloud.compute.v1.Projects", "shortName": "Projects" }, - "shortName": "Get" + "shortName": "SetDefaultNetworkTier" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetProjectRequest" + "type": "google.cloud.compute_v1.types.SetDefaultNetworkTierProjectRequest" }, { "name": "project", "type": "str" }, + { + "name": "projects_set_default_network_tier_request_resource", + "type": "google.cloud.compute_v1.types.ProjectsSetDefaultNetworkTierRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -38401,14 +40109,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Project", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_default_network_tier" }, - "description": "Sample for Get", - "file": "compute_v1_generated_projects_get_sync.py", + "description": "Sample for SetDefaultNetworkTier", + "file": "compute_v1_generated_projects_set_default_network_tier_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_Get_sync", + "regionTag": "compute_v1_generated_Projects_SetDefaultNetworkTier_sync", "segments": [ { "end": 51, @@ -38441,7 +40149,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_get_sync.py" + "title": "compute_v1_generated_projects_set_default_network_tier_sync.py" }, { "canonical": true, @@ -38450,27 +40158,27 @@ "fullName": "google.cloud.compute_v1.ProjectsClient", "shortName": "ProjectsClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.list_xpn_hosts", + "fullName": "google.cloud.compute_v1.ProjectsClient.set_usage_export_bucket", "method": { - "fullName": "google.cloud.compute.v1.Projects.ListXpnHosts", + "fullName": "google.cloud.compute.v1.Projects.SetUsageExportBucket", "service": { "fullName": "google.cloud.compute.v1.Projects", "shortName": "Projects" }, - "shortName": "ListXpnHosts" + "shortName": "SetUsageExportBucket" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListXpnHostsProjectsRequest" + "type": "google.cloud.compute_v1.types.SetUsageExportBucketProjectRequest" }, { "name": "project", "type": "str" }, { - "name": "projects_list_xpn_hosts_request_resource", - "type": "google.cloud.compute_v1.types.ProjectsListXpnHostsRequest" + "name": "usage_export_location_resource", + "type": "google.cloud.compute_v1.types.UsageExportLocation" }, { "name": "retry", @@ -38485,22 +40193,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.projects.pagers.ListXpnHostsPager", - "shortName": "list_xpn_hosts" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_usage_export_bucket" }, - "description": "Sample for ListXpnHosts", - "file": "compute_v1_generated_projects_list_xpn_hosts_sync.py", + "description": "Sample for SetUsageExportBucket", + "file": "compute_v1_generated_projects_set_usage_export_bucket_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_ListXpnHosts_sync", + "regionTag": "compute_v1_generated_Projects_SetUsageExportBucket_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -38520,41 +40228,41 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_list_xpn_hosts_sync.py" + "title": "compute_v1_generated_projects_set_usage_export_bucket_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ProjectsClient", - "shortName": "ProjectsClient" + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.move_disk", + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.announce", "method": { - "fullName": "google.cloud.compute.v1.Projects.MoveDisk", + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Announce", "service": { - "fullName": "google.cloud.compute.v1.Projects", - "shortName": "Projects" + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" }, - "shortName": "MoveDisk" + "shortName": "Announce" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.MoveDiskProjectRequest" + "type": "google.cloud.compute_v1.types.AnnouncePublicAdvertisedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "disk_move_request_resource", - "type": "google.cloud.compute_v1.types.DiskMoveRequest" + "name": "public_advertised_prefix", + "type": "str" }, { "name": "retry", @@ -38570,21 +40278,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "move_disk" + "shortName": "announce" }, - "description": "Sample for MoveDisk", - "file": "compute_v1_generated_projects_move_disk_sync.py", + "description": "Sample for Announce", + "file": "compute_v1_generated_public_advertised_prefixes_announce_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_MoveDisk_sync", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Announce_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -38594,51 +40302,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_move_disk_sync.py" + "title": "compute_v1_generated_public_advertised_prefixes_announce_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ProjectsClient", - "shortName": "ProjectsClient" + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.move_instance", + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.Projects.MoveInstance", + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Delete", "service": { - "fullName": "google.cloud.compute.v1.Projects", - "shortName": "Projects" + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" }, - "shortName": "MoveInstance" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.MoveInstanceProjectRequest" + "type": "google.cloud.compute_v1.types.DeletePublicAdvertisedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "instance_move_request_resource", - "type": "google.cloud.compute_v1.types.InstanceMoveRequest" + "name": "public_advertised_prefix", + "type": "str" }, { "name": "retry", @@ -38654,21 +40362,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "move_instance" + "shortName": "delete" }, - "description": "Sample for MoveInstance", - "file": "compute_v1_generated_projects_move_instance_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_public_advertised_prefixes_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_MoveInstance_sync", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Delete_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -38678,51 +40386,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_move_instance_sync.py" + "title": "compute_v1_generated_public_advertised_prefixes_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ProjectsClient", - "shortName": "ProjectsClient" + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.set_cloud_armor_tier", + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.get", "method": { - "fullName": "google.cloud.compute.v1.Projects.SetCloudArmorTier", + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Get", "service": { - "fullName": "google.cloud.compute.v1.Projects", - "shortName": "Projects" + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" }, - "shortName": "SetCloudArmorTier" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetCloudArmorTierProjectRequest" + "type": "google.cloud.compute_v1.types.GetPublicAdvertisedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "projects_set_cloud_armor_tier_request_resource", - "type": "google.cloud.compute_v1.types.ProjectsSetCloudArmorTierRequest" + "name": "public_advertised_prefix", + "type": "str" }, { "name": "retry", @@ -38737,22 +40445,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_cloud_armor_tier" + "resultType": "google.cloud.compute_v1.types.PublicAdvertisedPrefix", + "shortName": "get" }, - "description": "Sample for SetCloudArmorTier", - "file": "compute_v1_generated_projects_set_cloud_armor_tier_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_public_advertised_prefixes_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_SetCloudArmorTier_sync", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Get_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -38762,51 +40470,51 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_set_cloud_armor_tier_sync.py" + "title": "compute_v1_generated_public_advertised_prefixes_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ProjectsClient", - "shortName": "ProjectsClient" + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.set_common_instance_metadata", + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.Projects.SetCommonInstanceMetadata", + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Insert", "service": { - "fullName": "google.cloud.compute.v1.Projects", - "shortName": "Projects" + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" }, - "shortName": "SetCommonInstanceMetadata" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetCommonInstanceMetadataProjectRequest" + "type": "google.cloud.compute_v1.types.InsertPublicAdvertisedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "metadata_resource", - "type": "google.cloud.compute_v1.types.Metadata" + "name": "public_advertised_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicAdvertisedPrefix" }, { "name": "retry", @@ -38822,13 +40530,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_common_instance_metadata" + "shortName": "insert" }, - "description": "Sample for SetCommonInstanceMetadata", - "file": "compute_v1_generated_projects_set_common_instance_metadata_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_public_advertised_prefixes_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_SetCommonInstanceMetadata_sync", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Insert_sync", "segments": [ { "end": 51, @@ -38861,37 +40569,33 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_set_common_instance_metadata_sync.py" + "title": "compute_v1_generated_public_advertised_prefixes_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ProjectsClient", - "shortName": "ProjectsClient" + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.set_default_network_tier", + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.list", "method": { - "fullName": "google.cloud.compute.v1.Projects.SetDefaultNetworkTier", + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.List", "service": { - "fullName": "google.cloud.compute.v1.Projects", - "shortName": "Projects" + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" }, - "shortName": "SetDefaultNetworkTier" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetDefaultNetworkTierProjectRequest" + "type": "google.cloud.compute_v1.types.ListPublicAdvertisedPrefixesRequest" }, { "name": "project", "type": "str" }, - { - "name": "projects_set_default_network_tier_request_resource", - "type": "google.cloud.compute_v1.types.ProjectsSetDefaultNetworkTierRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -38905,22 +40609,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_default_network_tier" + "resultType": "google.cloud.compute_v1.services.public_advertised_prefixes.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for SetDefaultNetworkTier", - "file": "compute_v1_generated_projects_set_default_network_tier_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_public_advertised_prefixes_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_SetDefaultNetworkTier_sync", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_List_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -38940,41 +40644,45 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 53, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_set_default_network_tier_sync.py" + "title": "compute_v1_generated_public_advertised_prefixes_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ProjectsClient", - "shortName": "ProjectsClient" + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", + "shortName": "PublicAdvertisedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.ProjectsClient.set_usage_export_bucket", + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.Projects.SetUsageExportBucket", + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Patch", "service": { - "fullName": "google.cloud.compute.v1.Projects", - "shortName": "Projects" + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", + "shortName": "PublicAdvertisedPrefixes" }, - "shortName": "SetUsageExportBucket" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetUsageExportBucketProjectRequest" + "type": "google.cloud.compute_v1.types.PatchPublicAdvertisedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "usage_export_location_resource", - "type": "google.cloud.compute_v1.types.UsageExportLocation" + "name": "public_advertised_prefix", + "type": "str" + }, + { + "name": "public_advertised_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicAdvertisedPrefix" }, { "name": "retry", @@ -38990,21 +40698,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_usage_export_bucket" + "shortName": "patch" }, - "description": "Sample for SetUsageExportBucket", - "file": "compute_v1_generated_projects_set_usage_export_bucket_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_public_advertised_prefixes_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Projects_SetUsageExportBucket_sync", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Patch_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -39014,22 +40722,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_projects_set_usage_export_bucket_sync.py" + "title": "compute_v1_generated_public_advertised_prefixes_patch_sync.py" }, { "canonical": true, @@ -39038,19 +40746,19 @@ "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", "shortName": "PublicAdvertisedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.announce", + "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.withdraw", "method": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Announce", + "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Withdraw", "service": { "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", "shortName": "PublicAdvertisedPrefixes" }, - "shortName": "Announce" + "shortName": "Withdraw" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AnnouncePublicAdvertisedPrefixeRequest" + "type": "google.cloud.compute_v1.types.WithdrawPublicAdvertisedPrefixeRequest" }, { "name": "project", @@ -39074,13 +40782,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "announce" + "shortName": "withdraw" }, - "description": "Sample for Announce", - "file": "compute_v1_generated_public_advertised_prefixes_announce_sync.py", + "description": "Sample for Withdraw", + "file": "compute_v1_generated_public_advertised_prefixes_withdraw_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Announce_sync", + "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Withdraw_sync", "segments": [ { "end": 52, @@ -39113,37 +40821,33 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_advertised_prefixes_announce_sync.py" + "title": "compute_v1_generated_public_advertised_prefixes_withdraw_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", - "shortName": "PublicAdvertisedPrefixesClient" + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.delete", + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Delete", + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", - "shortName": "PublicAdvertisedPrefixes" + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" }, - "shortName": "Delete" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeletePublicAdvertisedPrefixeRequest" + "type": "google.cloud.compute_v1.types.AggregatedListPublicDelegatedPrefixesRequest" }, { "name": "project", "type": "str" }, - { - "name": "public_advertised_prefix", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -39157,14 +40861,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.public_delegated_prefixes.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_public_advertised_prefixes_delete_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_public_delegated_prefixes_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Delete_sync", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_AggregatedList_sync", "segments": [ { "end": 52, @@ -39182,50 +40886,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 50, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_advertised_prefixes_delete_sync.py" + "title": "compute_v1_generated_public_delegated_prefixes_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", - "shortName": "PublicAdvertisedPrefixesClient" + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.get", + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.announce", "method": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Get", + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Announce", "service": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", - "shortName": "PublicAdvertisedPrefixes" + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" }, - "shortName": "Get" + "shortName": "Announce" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetPublicAdvertisedPrefixeRequest" + "type": "google.cloud.compute_v1.types.AnnouncePublicDelegatedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "public_advertised_prefix", + "name": "region", + "type": "str" + }, + { + "name": "public_delegated_prefix", "type": "str" }, { @@ -39241,22 +40949,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.PublicAdvertisedPrefix", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "announce" }, - "description": "Sample for Get", - "file": "compute_v1_generated_public_advertised_prefixes_get_sync.py", + "description": "Sample for Announce", + "file": "compute_v1_generated_public_delegated_prefixes_announce_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Get_sync", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Announce_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -39266,51 +40974,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_advertised_prefixes_get_sync.py" + "title": "compute_v1_generated_public_delegated_prefixes_announce_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", - "shortName": "PublicAdvertisedPrefixesClient" + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.insert", + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Insert", + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Delete", "service": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", - "shortName": "PublicAdvertisedPrefixes" + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" }, - "shortName": "Insert" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertPublicAdvertisedPrefixeRequest" + "type": "google.cloud.compute_v1.types.DeletePublicDelegatedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "public_advertised_prefix_resource", - "type": "google.cloud.compute_v1.types.PublicAdvertisedPrefix" + "name": "region", + "type": "str" + }, + { + "name": "public_delegated_prefix", + "type": "str" }, { "name": "retry", @@ -39326,21 +41038,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "delete" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_public_advertised_prefixes_insert_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_public_delegated_prefixes_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Insert_sync", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Delete_sync", "segments": [ { - "end": 51, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 53, "start": 27, "type": "SHORT" }, @@ -39350,48 +41062,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_advertised_prefixes_insert_sync.py" + "title": "compute_v1_generated_public_delegated_prefixes_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", - "shortName": "PublicAdvertisedPrefixesClient" + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.list", + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.get", "method": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.List", + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Get", "service": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", - "shortName": "PublicAdvertisedPrefixes" + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" }, - "shortName": "List" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListPublicAdvertisedPrefixesRequest" + "type": "google.cloud.compute_v1.types.GetPublicDelegatedPrefixeRequest" }, { "name": "project", "type": "str" }, + { + "name": "region", + "type": "str" + }, + { + "name": "public_delegated_prefix", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -39405,22 +41125,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.public_advertised_prefixes.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.PublicDelegatedPrefix", + "shortName": "get" }, - "description": "Sample for List", - "file": "compute_v1_generated_public_advertised_prefixes_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_public_delegated_prefixes_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_List_sync", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Get_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -39430,55 +41150,55 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_advertised_prefixes_list_sync.py" + "title": "compute_v1_generated_public_delegated_prefixes_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", - "shortName": "PublicAdvertisedPrefixesClient" + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.patch", + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Patch", + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Insert", "service": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", - "shortName": "PublicAdvertisedPrefixes" + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" }, - "shortName": "Patch" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchPublicAdvertisedPrefixeRequest" + "type": "google.cloud.compute_v1.types.InsertPublicDelegatedPrefixeRequest" }, { "name": "project", "type": "str" }, { - "name": "public_advertised_prefix", + "name": "region", "type": "str" }, { - "name": "public_advertised_prefix_resource", - "type": "google.cloud.compute_v1.types.PublicAdvertisedPrefix" + "name": "public_delegated_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" }, { "name": "retry", @@ -39494,13 +41214,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "insert" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_public_advertised_prefixes_patch_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_public_delegated_prefixes_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Patch_sync", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Insert_sync", "segments": [ { "end": 52, @@ -39533,35 +41253,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_advertised_prefixes_patch_sync.py" + "title": "compute_v1_generated_public_delegated_prefixes_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient", - "shortName": "PublicAdvertisedPrefixesClient" + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", + "shortName": "PublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.PublicAdvertisedPrefixesClient.withdraw", + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.list", "method": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Withdraw", + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.List", "service": { - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes", - "shortName": "PublicAdvertisedPrefixes" + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", + "shortName": "PublicDelegatedPrefixes" }, - "shortName": "Withdraw" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.WithdrawPublicAdvertisedPrefixeRequest" + "type": "google.cloud.compute_v1.types.ListPublicDelegatedPrefixesRequest" }, { "name": "project", "type": "str" }, { - "name": "public_advertised_prefix", + "name": "region", "type": "str" }, { @@ -39577,22 +41297,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "withdraw" + "resultType": "google.cloud.compute_v1.services.public_delegated_prefixes.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Withdraw", - "file": "compute_v1_generated_public_advertised_prefixes_withdraw_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_public_delegated_prefixes_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Withdraw_sync", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_List_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -39612,12 +41332,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 54, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_advertised_prefixes_withdraw_sync.py" + "title": "compute_v1_generated_public_delegated_prefixes_list_sync.py" }, { "canonical": true, @@ -39626,24 +41346,36 @@ "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", "shortName": "PublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.aggregated_list", + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.AggregatedList", + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Patch", "service": { "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", "shortName": "PublicDelegatedPrefixes" }, - "shortName": "AggregatedList" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListPublicDelegatedPrefixesRequest" + "type": "google.cloud.compute_v1.types.PatchPublicDelegatedPrefixeRequest" }, { "name": "project", "type": "str" }, + { + "name": "region", + "type": "str" + }, + { + "name": "public_delegated_prefix", + "type": "str" + }, + { + "name": "public_delegated_prefix_resource", + "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -39657,22 +41389,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.public_delegated_prefixes.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_public_delegated_prefixes_aggregated_list_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_public_delegated_prefixes_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_AggregatedList_sync", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Patch_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -39682,22 +41414,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_delegated_prefixes_aggregated_list_sync.py" + "title": "compute_v1_generated_public_delegated_prefixes_patch_sync.py" }, { "canonical": true, @@ -39706,19 +41438,19 @@ "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", "shortName": "PublicDelegatedPrefixesClient" }, - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.announce", + "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.withdraw", "method": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Announce", + "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Withdraw", "service": { "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", "shortName": "PublicDelegatedPrefixes" }, - "shortName": "Announce" + "shortName": "Withdraw" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AnnouncePublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.WithdrawPublicDelegatedPrefixeRequest" }, { "name": "project", @@ -39746,13 +41478,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "announce" + "shortName": "withdraw" }, - "description": "Sample for Announce", - "file": "compute_v1_generated_public_delegated_prefixes_announce_sync.py", + "description": "Sample for Withdraw", + "file": "compute_v1_generated_public_delegated_prefixes_withdraw_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Announce_sync", + "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Withdraw_sync", "segments": [ { "end": 53, @@ -39785,28 +41517,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_delegated_prefixes_announce_sync.py" + "title": "compute_v1_generated_public_delegated_prefixes_withdraw_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", - "shortName": "PublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" }, - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.delete", + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.delete", "method": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Delete", + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Delete", "service": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", - "shortName": "PublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" }, "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeletePublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionAutoscalerRequest" }, { "name": "project", @@ -39817,7 +41549,7 @@ "type": "str" }, { - "name": "public_delegated_prefix", + "name": "autoscaler", "type": "str" }, { @@ -39837,10 +41569,10 @@ "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_public_delegated_prefixes_delete_sync.py", + "file": "compute_v1_generated_region_autoscalers_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Delete_sync", + "regionTag": "compute_v1_generated_RegionAutoscalers_Delete_sync", "segments": [ { "end": 53, @@ -39873,28 +41605,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_delegated_prefixes_delete_sync.py" + "title": "compute_v1_generated_region_autoscalers_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", - "shortName": "PublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" }, - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.get", + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.get", "method": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Get", + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Get", "service": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", - "shortName": "PublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetPublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.GetRegionAutoscalerRequest" }, { "name": "project", @@ -39905,7 +41637,7 @@ "type": "str" }, { - "name": "public_delegated_prefix", + "name": "autoscaler", "type": "str" }, { @@ -39921,14 +41653,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.PublicDelegatedPrefix", + "resultType": "google.cloud.compute_v1.types.Autoscaler", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_public_delegated_prefixes_get_sync.py", + "file": "compute_v1_generated_region_autoscalers_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Get_sync", + "regionTag": "compute_v1_generated_RegionAutoscalers_Get_sync", "segments": [ { "end": 53, @@ -39961,28 +41693,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_delegated_prefixes_get_sync.py" + "title": "compute_v1_generated_region_autoscalers_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", - "shortName": "PublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" }, - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.insert", + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.insert", "method": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Insert", + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Insert", "service": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", - "shortName": "PublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertPublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.InsertRegionAutoscalerRequest" }, { "name": "project", @@ -39993,8 +41725,8 @@ "type": "str" }, { - "name": "public_delegated_prefix_resource", - "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" + "name": "autoscaler_resource", + "type": "google.cloud.compute_v1.types.Autoscaler" }, { "name": "retry", @@ -40013,10 +41745,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_public_delegated_prefixes_insert_sync.py", + "file": "compute_v1_generated_region_autoscalers_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Insert_sync", + "regionTag": "compute_v1_generated_RegionAutoscalers_Insert_sync", "segments": [ { "end": 52, @@ -40049,28 +41781,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_delegated_prefixes_insert_sync.py" + "title": "compute_v1_generated_region_autoscalers_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", - "shortName": "PublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" }, - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.list", + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.list", "method": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.List", + "fullName": "google.cloud.compute.v1.RegionAutoscalers.List", "service": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", - "shortName": "PublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListPublicDelegatedPrefixesRequest" + "type": "google.cloud.compute_v1.types.ListRegionAutoscalersRequest" }, { "name": "project", @@ -40093,14 +41825,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.public_delegated_prefixes.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.region_autoscalers.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_public_delegated_prefixes_list_sync.py", + "file": "compute_v1_generated_region_autoscalers_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_List_sync", + "regionTag": "compute_v1_generated_RegionAutoscalers_List_sync", "segments": [ { "end": 53, @@ -40133,28 +41865,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_delegated_prefixes_list_sync.py" + "title": "compute_v1_generated_region_autoscalers_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", - "shortName": "PublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" }, - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.patch", + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.patch", "method": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Patch", + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Patch", "service": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", - "shortName": "PublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" }, "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchPublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.PatchRegionAutoscalerRequest" }, { "name": "project", @@ -40165,12 +41897,8 @@ "type": "str" }, { - "name": "public_delegated_prefix", - "type": "str" - }, - { - "name": "public_delegated_prefix_resource", - "type": "google.cloud.compute_v1.types.PublicDelegatedPrefix" + "name": "autoscaler_resource", + "type": "google.cloud.compute_v1.types.Autoscaler" }, { "name": "retry", @@ -40189,18 +41917,18 @@ "shortName": "patch" }, "description": "Sample for Patch", - "file": "compute_v1_generated_public_delegated_prefixes_patch_sync.py", + "file": "compute_v1_generated_region_autoscalers_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Patch_sync", + "regionTag": "compute_v1_generated_RegionAutoscalers_Patch_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -40210,43 +41938,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_delegated_prefixes_patch_sync.py" + "title": "compute_v1_generated_region_autoscalers_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient", - "shortName": "PublicDelegatedPrefixesClient" + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", + "shortName": "RegionAutoscalersClient" }, - "fullName": "google.cloud.compute_v1.PublicDelegatedPrefixesClient.withdraw", + "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.update", "method": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Withdraw", + "fullName": "google.cloud.compute.v1.RegionAutoscalers.Update", "service": { - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes", - "shortName": "PublicDelegatedPrefixes" + "fullName": "google.cloud.compute.v1.RegionAutoscalers", + "shortName": "RegionAutoscalers" }, - "shortName": "Withdraw" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.WithdrawPublicDelegatedPrefixeRequest" + "type": "google.cloud.compute_v1.types.UpdateRegionAutoscalerRequest" }, { "name": "project", @@ -40257,8 +41985,8 @@ "type": "str" }, { - "name": "public_delegated_prefix", - "type": "str" + "name": "autoscaler_resource", + "type": "google.cloud.compute_v1.types.Autoscaler" }, { "name": "retry", @@ -40274,21 +42002,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "withdraw" + "shortName": "update" }, - "description": "Sample for Withdraw", - "file": "compute_v1_generated_public_delegated_prefixes_withdraw_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_region_autoscalers_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Withdraw_sync", + "regionTag": "compute_v1_generated_RegionAutoscalers_Update_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -40298,43 +42026,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_public_delegated_prefixes_withdraw_sync.py" + "title": "compute_v1_generated_region_autoscalers_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", - "shortName": "RegionAutoscalersClient" + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.delete", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Delete", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers", - "shortName": "RegionAutoscalers" + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" }, "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionAutoscalerRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionBackendServiceRequest" }, { "name": "project", @@ -40345,7 +42073,7 @@ "type": "str" }, { - "name": "autoscaler", + "name": "backend_service", "type": "str" }, { @@ -40365,10 +42093,10 @@ "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_region_autoscalers_delete_sync.py", + "file": "compute_v1_generated_region_backend_services_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionAutoscalers_Delete_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_Delete_sync", "segments": [ { "end": 53, @@ -40401,28 +42129,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_autoscalers_delete_sync.py" + "title": "compute_v1_generated_region_backend_services_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", - "shortName": "RegionAutoscalersClient" + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.get", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.get_health", "method": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Get", + "fullName": "google.cloud.compute.v1.RegionBackendServices.GetHealth", "service": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers", - "shortName": "RegionAutoscalers" + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" }, - "shortName": "Get" + "shortName": "GetHealth" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionAutoscalerRequest" + "type": "google.cloud.compute_v1.types.GetHealthRegionBackendServiceRequest" }, { "name": "project", @@ -40433,9 +42161,13 @@ "type": "str" }, { - "name": "autoscaler", + "name": "backend_service", "type": "str" }, + { + "name": "resource_group_reference_resource", + "type": "google.cloud.compute_v1.types.ResourceGroupReference" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -40449,14 +42181,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Autoscaler", - "shortName": "get" + "resultType": "google.cloud.compute_v1.types.BackendServiceGroupHealth", + "shortName": "get_health" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_autoscalers_get_sync.py", + "description": "Sample for GetHealth", + "file": "compute_v1_generated_region_backend_services_get_health_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionAutoscalers_Get_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_GetHealth_sync", "segments": [ { "end": 53, @@ -40489,28 +42221,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_autoscalers_get_sync.py" + "title": "compute_v1_generated_region_backend_services_get_health_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", - "shortName": "RegionAutoscalersClient" + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.insert", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Insert", + "fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers", - "shortName": "RegionAutoscalers" + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" }, - "shortName": "Insert" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionAutoscalerRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyRegionBackendServiceRequest" }, { "name": "project", @@ -40521,91 +42253,7 @@ "type": "str" }, { - "name": "autoscaler_resource", - "type": "google.cloud.compute_v1.types.Autoscaler" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" - }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_autoscalers_insert_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionAutoscalers_Insert_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 49, - "start": 47, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_region_autoscalers_insert_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", - "shortName": "RegionAutoscalersClient" - }, - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.list", - "method": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers.List", - "service": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers", - "shortName": "RegionAutoscalers" - }, - "shortName": "List" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionAutoscalersRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "region", + "name": "resource", "type": "str" }, { @@ -40621,14 +42269,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_autoscalers.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_autoscalers_list_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_region_backend_services_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionAutoscalers_List_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_GetIamPolicy_sync", "segments": [ { "end": 53, @@ -40646,43 +42294,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_autoscalers_list_sync.py" + "title": "compute_v1_generated_region_backend_services_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", - "shortName": "RegionAutoscalersClient" + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.patch", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Patch", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers", - "shortName": "RegionAutoscalers" + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" }, - "shortName": "Patch" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionAutoscalerRequest" + "type": "google.cloud.compute_v1.types.GetRegionBackendServiceRequest" }, { "name": "project", @@ -40693,8 +42341,8 @@ "type": "str" }, { - "name": "autoscaler_resource", - "type": "google.cloud.compute_v1.types.Autoscaler" + "name": "backend_service", + "type": "str" }, { "name": "retry", @@ -40709,22 +42357,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.types.BackendService", + "shortName": "get" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_region_autoscalers_patch_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_backend_services_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionAutoscalers_Patch_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_Get_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -40734,43 +42382,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_autoscalers_patch_sync.py" + "title": "compute_v1_generated_region_backend_services_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient", - "shortName": "RegionAutoscalersClient" + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", + "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionAutoscalersClient.update", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Update", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionAutoscalers", - "shortName": "RegionAutoscalers" + "fullName": "google.cloud.compute.v1.RegionBackendServices", + "shortName": "RegionBackendServices" }, - "shortName": "Update" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateRegionAutoscalerRequest" + "type": "google.cloud.compute_v1.types.InsertRegionBackendServiceRequest" }, { "name": "project", @@ -40781,8 +42429,8 @@ "type": "str" }, { - "name": "autoscaler_resource", - "type": "google.cloud.compute_v1.types.Autoscaler" + "name": "backend_service_resource", + "type": "google.cloud.compute_v1.types.BackendService" }, { "name": "retry", @@ -40798,13 +42446,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" + "shortName": "insert" }, - "description": "Sample for Update", - "file": "compute_v1_generated_region_autoscalers_update_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_backend_services_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionAutoscalers_Update_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_Insert_sync", "segments": [ { "end": 52, @@ -40837,7 +42485,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_autoscalers_update_sync.py" + "title": "compute_v1_generated_region_backend_services_insert_sync.py" }, { "canonical": true, @@ -40846,19 +42494,19 @@ "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.delete", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.list_usable", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.Delete", + "fullName": "google.cloud.compute.v1.RegionBackendServices.ListUsable", "service": { "fullName": "google.cloud.compute.v1.RegionBackendServices", "shortName": "RegionBackendServices" }, - "shortName": "Delete" + "shortName": "ListUsable" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.ListUsableRegionBackendServicesRequest" }, { "name": "project", @@ -40868,10 +42516,6 @@ "name": "region", "type": "str" }, - { - "name": "backend_service", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -40885,14 +42529,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.region_backend_services.pagers.ListUsablePager", + "shortName": "list_usable" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_backend_services_delete_sync.py", + "description": "Sample for ListUsable", + "file": "compute_v1_generated_region_backend_services_list_usable_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_Delete_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_ListUsable_sync", "segments": [ { "end": 53, @@ -40910,22 +42554,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_delete_sync.py" + "title": "compute_v1_generated_region_backend_services_list_usable_sync.py" }, { "canonical": true, @@ -40934,19 +42578,19 @@ "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.get_health", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.GetHealth", + "fullName": "google.cloud.compute.v1.RegionBackendServices.List", "service": { "fullName": "google.cloud.compute.v1.RegionBackendServices", "shortName": "RegionBackendServices" }, - "shortName": "GetHealth" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetHealthRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.ListRegionBackendServicesRequest" }, { "name": "project", @@ -40956,14 +42600,6 @@ "name": "region", "type": "str" }, - { - "name": "backend_service", - "type": "str" - }, - { - "name": "resource_group_reference_resource", - "type": "google.cloud.compute_v1.types.ResourceGroupReference" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -40977,14 +42613,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.BackendServiceGroupHealth", - "shortName": "get_health" + "resultType": "google.cloud.compute_v1.services.region_backend_services.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for GetHealth", - "file": "compute_v1_generated_region_backend_services_get_health_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_backend_services_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_GetHealth_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_List_sync", "segments": [ { "end": 53, @@ -41002,22 +42638,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_get_health_sync.py" + "title": "compute_v1_generated_region_backend_services_list_sync.py" }, { "canonical": true, @@ -41026,19 +42662,19 @@ "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Patch", "service": { "fullName": "google.cloud.compute.v1.RegionBackendServices", "shortName": "RegionBackendServices" }, - "shortName": "GetIamPolicy" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.PatchRegionBackendServiceRequest" }, { "name": "project", @@ -41049,9 +42685,13 @@ "type": "str" }, { - "name": "resource", + "name": "backend_service", "type": "str" }, + { + "name": "backend_service_resource", + "type": "google.cloud.compute_v1.types.BackendService" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -41065,14 +42705,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_region_backend_services_get_iam_policy_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_region_backend_services_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_Patch_sync", "segments": [ { "end": 53, @@ -41105,7 +42745,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_get_iam_policy_sync.py" + "title": "compute_v1_generated_region_backend_services_patch_sync.py" }, { "canonical": true, @@ -41114,19 +42754,19 @@ "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.get", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.Get", + "fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.RegionBackendServices", "shortName": "RegionBackendServices" }, - "shortName": "Get" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyRegionBackendServiceRequest" }, { "name": "project", @@ -41137,9 +42777,13 @@ "type": "str" }, { - "name": "backend_service", + "name": "resource", "type": "str" }, + { + "name": "region_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -41153,14 +42797,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.BackendService", - "shortName": "get" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_backend_services_get_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_region_backend_services_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_Get_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_SetIamPolicy_sync", "segments": [ { "end": 53, @@ -41193,7 +42837,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_get_sync.py" + "title": "compute_v1_generated_region_backend_services_set_iam_policy_sync.py" }, { "canonical": true, @@ -41202,19 +42846,19 @@ "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.insert", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.set_security_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.Insert", + "fullName": "google.cloud.compute.v1.RegionBackendServices.SetSecurityPolicy", "service": { "fullName": "google.cloud.compute.v1.RegionBackendServices", "shortName": "RegionBackendServices" }, - "shortName": "Insert" + "shortName": "SetSecurityPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.SetSecurityPolicyRegionBackendServiceRequest" }, { "name": "project", @@ -41225,8 +42869,12 @@ "type": "str" }, { - "name": "backend_service_resource", - "type": "google.cloud.compute_v1.types.BackendService" + "name": "backend_service", + "type": "str" + }, + { + "name": "security_policy_reference_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicyReference" }, { "name": "retry", @@ -41242,21 +42890,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "set_security_policy" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_backend_services_insert_sync.py", + "description": "Sample for SetSecurityPolicy", + "file": "compute_v1_generated_region_backend_services_set_security_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_Insert_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_SetSecurityPolicy_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -41266,22 +42914,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_insert_sync.py" + "title": "compute_v1_generated_region_backend_services_set_security_policy_sync.py" }, { "canonical": true, @@ -41290,19 +42938,19 @@ "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.list_usable", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.ListUsable", + "fullName": "google.cloud.compute.v1.RegionBackendServices.TestIamPermissions", "service": { "fullName": "google.cloud.compute.v1.RegionBackendServices", "shortName": "RegionBackendServices" }, - "shortName": "ListUsable" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListUsableRegionBackendServicesRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionBackendServiceRequest" }, { "name": "project", @@ -41312,6 +42960,14 @@ "name": "region", "type": "str" }, + { + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -41325,14 +42981,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_backend_services.pagers.ListUsablePager", - "shortName": "list_usable" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for ListUsable", - "file": "compute_v1_generated_region_backend_services_list_usable_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_region_backend_services_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_ListUsable_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_TestIamPermissions_sync", "segments": [ { "end": 53, @@ -41350,22 +43006,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_list_usable_sync.py" + "title": "compute_v1_generated_region_backend_services_test_iam_permissions_sync.py" }, { "canonical": true, @@ -41374,19 +43030,19 @@ "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", "shortName": "RegionBackendServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.list", + "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.update", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.List", + "fullName": "google.cloud.compute.v1.RegionBackendServices.Update", "service": { "fullName": "google.cloud.compute.v1.RegionBackendServices", "shortName": "RegionBackendServices" }, - "shortName": "List" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionBackendServicesRequest" + "type": "google.cloud.compute_v1.types.UpdateRegionBackendServiceRequest" }, { "name": "project", @@ -41396,6 +43052,14 @@ "name": "region", "type": "str" }, + { + "name": "backend_service", + "type": "str" + }, + { + "name": "backend_service_resource", + "type": "google.cloud.compute_v1.types.BackendService" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -41409,14 +43073,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_backend_services.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_backend_services_list_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_region_backend_services_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_List_sync", + "regionTag": "compute_v1_generated_RegionBackendServices_Update_sync", "segments": [ { "end": 53, @@ -41434,60 +43098,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_list_sync.py" + "title": "compute_v1_generated_region_backend_services_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", - "shortName": "RegionBackendServicesClient" + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.patch", + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.aggregated_list", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.Patch", + "fullName": "google.cloud.compute.v1.RegionCommitments.AggregatedList", "service": { - "fullName": "google.cloud.compute.v1.RegionBackendServices", - "shortName": "RegionBackendServices" + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" }, - "shortName": "Patch" + "shortName": "AggregatedList" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.AggregatedListRegionCommitmentsRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, - { - "name": "backend_service", - "type": "str" - }, - { - "name": "backend_service_resource", - "type": "google.cloud.compute_v1.types.BackendService" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -41501,22 +43153,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.services.region_commitments.pagers.AggregatedListPager", + "shortName": "aggregated_list" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_region_backend_services_patch_sync.py", + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_region_commitments_aggregated_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_Patch_sync", + "regionTag": "compute_v1_generated_RegionCommitments_AggregatedList_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -41526,43 +43178,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_patch_sync.py" + "title": "compute_v1_generated_region_commitments_aggregated_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", - "shortName": "RegionBackendServicesClient" + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionCommitments.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionBackendServices", - "shortName": "RegionBackendServices" + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" }, - "shortName": "SetIamPolicy" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.GetRegionCommitmentRequest" }, { "name": "project", @@ -41573,13 +43225,9 @@ "type": "str" }, { - "name": "resource", + "name": "commitment", "type": "str" }, - { - "name": "region_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -41593,14 +43241,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.cloud.compute_v1.types.Commitment", + "shortName": "get" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_region_backend_services_set_iam_policy_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_commitments_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_RegionCommitments_Get_sync", "segments": [ { "end": 53, @@ -41633,28 +43281,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_set_iam_policy_sync.py" + "title": "compute_v1_generated_region_commitments_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", - "shortName": "RegionBackendServicesClient" + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.set_security_policy", + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetSecurityPolicy", + "fullName": "google.cloud.compute.v1.RegionCommitments.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionBackendServices", - "shortName": "RegionBackendServices" + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" }, - "shortName": "SetSecurityPolicy" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetSecurityPolicyRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.InsertRegionCommitmentRequest" }, { "name": "project", @@ -41665,12 +43313,8 @@ "type": "str" }, { - "name": "backend_service", - "type": "str" - }, - { - "name": "security_policy_reference_resource", - "type": "google.cloud.compute_v1.types.SecurityPolicyReference" + "name": "commitment_resource", + "type": "google.cloud.compute_v1.types.Commitment" }, { "name": "retry", @@ -41686,21 +43330,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_security_policy" + "shortName": "insert" }, - "description": "Sample for SetSecurityPolicy", - "file": "compute_v1_generated_region_backend_services_set_security_policy_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_commitments_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_SetSecurityPolicy_sync", + "regionTag": "compute_v1_generated_RegionCommitments_Insert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -41710,43 +43354,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_set_security_policy_sync.py" + "title": "compute_v1_generated_region_commitments_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", - "shortName": "RegionBackendServicesClient" + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionCommitments.List", "service": { - "fullName": "google.cloud.compute.v1.RegionBackendServices", - "shortName": "RegionBackendServices" + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" }, - "shortName": "TestIamPermissions" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.ListRegionCommitmentsRequest" }, { "name": "project", @@ -41756,14 +43400,6 @@ "name": "region", "type": "str" }, - { - "name": "resource", - "type": "str" - }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -41777,14 +43413,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.services.region_commitments.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_region_backend_services_test_iam_permissions_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_commitments_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_RegionCommitments_List_sync", "segments": [ { "end": 53, @@ -41802,43 +43438,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_test_iam_permissions_sync.py" + "title": "compute_v1_generated_region_commitments_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient", - "shortName": "RegionBackendServicesClient" + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", + "shortName": "RegionCommitmentsClient" }, - "fullName": "google.cloud.compute_v1.RegionBackendServicesClient.update", + "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.update", "method": { - "fullName": "google.cloud.compute.v1.RegionBackendServices.Update", + "fullName": "google.cloud.compute.v1.RegionCommitments.Update", "service": { - "fullName": "google.cloud.compute.v1.RegionBackendServices", - "shortName": "RegionBackendServices" + "fullName": "google.cloud.compute.v1.RegionCommitments", + "shortName": "RegionCommitments" }, "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateRegionBackendServiceRequest" + "type": "google.cloud.compute_v1.types.UpdateRegionCommitmentRequest" }, { "name": "project", @@ -41849,12 +43485,12 @@ "type": "str" }, { - "name": "backend_service", + "name": "commitment", "type": "str" }, { - "name": "backend_service_resource", - "type": "google.cloud.compute_v1.types.BackendService" + "name": "commitment_resource", + "type": "google.cloud.compute_v1.types.Commitment" }, { "name": "retry", @@ -41873,10 +43509,10 @@ "shortName": "update" }, "description": "Sample for Update", - "file": "compute_v1_generated_region_backend_services_update_sync.py", + "file": "compute_v1_generated_region_commitments_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionBackendServices_Update_sync", + "regionTag": "compute_v1_generated_RegionCommitments_Update_sync", "segments": [ { "end": 53, @@ -41909,33 +43545,41 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_backend_services_update_sync.py" + "title": "compute_v1_generated_region_commitments_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", - "shortName": "RegionCommitmentsClient" + "fullName": "google.cloud.compute_v1.RegionDiskTypesClient", + "shortName": "RegionDiskTypesClient" }, - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.aggregated_list", + "fullName": "google.cloud.compute_v1.RegionDiskTypesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionCommitments.AggregatedList", + "fullName": "google.cloud.compute.v1.RegionDiskTypes.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionCommitments", - "shortName": "RegionCommitments" + "fullName": "google.cloud.compute.v1.RegionDiskTypes", + "shortName": "RegionDiskTypes" }, - "shortName": "AggregatedList" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListRegionCommitmentsRequest" + "type": "google.cloud.compute_v1.types.GetRegionDiskTypeRequest" }, { "name": "project", "type": "str" }, + { + "name": "region", + "type": "str" + }, + { + "name": "disk_type", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -41949,22 +43593,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_commitments.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.cloud.compute_v1.types.DiskType", + "shortName": "get" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_region_commitments_aggregated_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_disk_types_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionCommitments_AggregatedList_sync", + "regionTag": "compute_v1_generated_RegionDiskTypes_Get_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -41974,43 +43618,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_commitments_aggregated_list_sync.py" + "title": "compute_v1_generated_region_disk_types_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", - "shortName": "RegionCommitmentsClient" + "fullName": "google.cloud.compute_v1.RegionDiskTypesClient", + "shortName": "RegionDiskTypesClient" }, - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.get", + "fullName": "google.cloud.compute_v1.RegionDiskTypesClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionCommitments.Get", + "fullName": "google.cloud.compute.v1.RegionDiskTypes.List", "service": { - "fullName": "google.cloud.compute.v1.RegionCommitments", - "shortName": "RegionCommitments" + "fullName": "google.cloud.compute.v1.RegionDiskTypes", + "shortName": "RegionDiskTypes" }, - "shortName": "Get" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionCommitmentRequest" + "type": "google.cloud.compute_v1.types.ListRegionDiskTypesRequest" }, { "name": "project", @@ -42020,10 +43664,6 @@ "name": "region", "type": "str" }, - { - "name": "commitment", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -42037,14 +43677,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Commitment", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.region_disk_types.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_commitments_get_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_disk_types_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionCommitments_Get_sync", + "regionTag": "compute_v1_generated_RegionDiskTypes_List_sync", "segments": [ { "end": 53, @@ -42062,43 +43702,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_commitments_get_sync.py" + "title": "compute_v1_generated_region_disk_types_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", - "shortName": "RegionCommitmentsClient" + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.insert", + "fullName": "google.cloud.compute_v1.RegionDisksClient.add_resource_policies", "method": { - "fullName": "google.cloud.compute.v1.RegionCommitments.Insert", + "fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies", "service": { - "fullName": "google.cloud.compute.v1.RegionCommitments", - "shortName": "RegionCommitments" + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" }, - "shortName": "Insert" + "shortName": "AddResourcePolicies" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionCommitmentRequest" + "type": "google.cloud.compute_v1.types.AddResourcePoliciesRegionDiskRequest" }, { "name": "project", @@ -42109,8 +43749,12 @@ "type": "str" }, { - "name": "commitment_resource", - "type": "google.cloud.compute_v1.types.Commitment" + "name": "disk", + "type": "str" + }, + { + "name": "region_disks_add_resource_policies_request_resource", + "type": "google.cloud.compute_v1.types.RegionDisksAddResourcePoliciesRequest" }, { "name": "retry", @@ -42126,21 +43770,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "add_resource_policies" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_commitments_insert_sync.py", + "description": "Sample for AddResourcePolicies", + "file": "compute_v1_generated_region_disks_add_resource_policies_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionCommitments_Insert_sync", + "regionTag": "compute_v1_generated_RegionDisks_AddResourcePolicies_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -42150,43 +43794,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_commitments_insert_sync.py" + "title": "compute_v1_generated_region_disks_add_resource_policies_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", - "shortName": "RegionCommitmentsClient" + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.list", + "fullName": "google.cloud.compute_v1.RegionDisksClient.bulk_insert", "method": { - "fullName": "google.cloud.compute.v1.RegionCommitments.List", + "fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert", "service": { - "fullName": "google.cloud.compute.v1.RegionCommitments", - "shortName": "RegionCommitments" + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" }, - "shortName": "List" + "shortName": "BulkInsert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionCommitmentsRequest" + "type": "google.cloud.compute_v1.types.BulkInsertRegionDiskRequest" }, { "name": "project", @@ -42196,6 +43840,10 @@ "name": "region", "type": "str" }, + { + "name": "bulk_insert_disk_resource_resource", + "type": "google.cloud.compute_v1.types.BulkInsertDiskResource" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -42209,22 +43857,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_commitments.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "bulk_insert" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_commitments_list_sync.py", + "description": "Sample for BulkInsert", + "file": "compute_v1_generated_region_disks_bulk_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionCommitments_List_sync", + "regionTag": "compute_v1_generated_RegionDisks_BulkInsert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -42244,33 +43892,33 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 53, "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_commitments_list_sync.py" + "title": "compute_v1_generated_region_disks_bulk_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient", - "shortName": "RegionCommitmentsClient" + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionCommitmentsClient.update", + "fullName": "google.cloud.compute_v1.RegionDisksClient.create_snapshot", "method": { - "fullName": "google.cloud.compute.v1.RegionCommitments.Update", + "fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot", "service": { - "fullName": "google.cloud.compute.v1.RegionCommitments", - "shortName": "RegionCommitments" + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" }, - "shortName": "Update" + "shortName": "CreateSnapshot" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateRegionCommitmentRequest" + "type": "google.cloud.compute_v1.types.CreateSnapshotRegionDiskRequest" }, { "name": "project", @@ -42281,12 +43929,12 @@ "type": "str" }, { - "name": "commitment", + "name": "disk", "type": "str" }, { - "name": "commitment_resource", - "type": "google.cloud.compute_v1.types.Commitment" + "name": "snapshot_resource", + "type": "google.cloud.compute_v1.types.Snapshot" }, { "name": "retry", @@ -42302,13 +43950,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" + "shortName": "create_snapshot" }, - "description": "Sample for Update", - "file": "compute_v1_generated_region_commitments_update_sync.py", + "description": "Sample for CreateSnapshot", + "file": "compute_v1_generated_region_disks_create_snapshot_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionCommitments_Update_sync", + "regionTag": "compute_v1_generated_RegionDisks_CreateSnapshot_sync", "segments": [ { "end": 53, @@ -42341,28 +43989,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_commitments_update_sync.py" + "title": "compute_v1_generated_region_disks_create_snapshot_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionDiskTypesClient", - "shortName": "RegionDiskTypesClient" + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDiskTypesClient.get", + "fullName": "google.cloud.compute_v1.RegionDisksClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionDiskTypes.Get", + "fullName": "google.cloud.compute.v1.RegionDisks.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionDiskTypes", - "shortName": "RegionDiskTypes" + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" }, - "shortName": "Get" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionDiskTypeRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionDiskRequest" }, { "name": "project", @@ -42373,7 +44021,7 @@ "type": "str" }, { - "name": "disk_type", + "name": "disk", "type": "str" }, { @@ -42389,14 +44037,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.DiskType", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_disk_types_get_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_disks_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDiskTypes_Get_sync", + "regionTag": "compute_v1_generated_RegionDisks_Delete_sync", "segments": [ { "end": 53, @@ -42429,28 +44077,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disk_types_get_sync.py" + "title": "compute_v1_generated_region_disks_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionDiskTypesClient", - "shortName": "RegionDiskTypesClient" + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDiskTypesClient.list", + "fullName": "google.cloud.compute_v1.RegionDisksClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionDiskTypes.List", + "fullName": "google.cloud.compute.v1.RegionDisks.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.RegionDiskTypes", - "shortName": "RegionDiskTypes" + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" }, - "shortName": "List" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionDiskTypesRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyRegionDiskRequest" }, { "name": "project", @@ -42460,6 +44108,10 @@ "name": "region", "type": "str" }, + { + "name": "resource", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -42473,14 +44125,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_disk_types.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_disk_types_list_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_region_disks_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDiskTypes_List_sync", + "regionTag": "compute_v1_generated_RegionDisks_GetIamPolicy_sync", "segments": [ { "end": 53, @@ -42498,22 +44150,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disk_types_list_sync.py" + "title": "compute_v1_generated_region_disks_get_iam_policy_sync.py" }, { "canonical": true, @@ -42522,19 +44174,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.add_resource_policies", + "fullName": "google.cloud.compute_v1.RegionDisksClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies", + "fullName": "google.cloud.compute.v1.RegionDisks.Get", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "AddResourcePolicies" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddResourcePoliciesRegionDiskRequest" + "type": "google.cloud.compute_v1.types.GetRegionDiskRequest" }, { "name": "project", @@ -42548,10 +44200,6 @@ "name": "disk", "type": "str" }, - { - "name": "region_disks_add_resource_policies_request_resource", - "type": "google.cloud.compute_v1.types.RegionDisksAddResourcePoliciesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -42565,14 +44213,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_resource_policies" + "resultType": "google.cloud.compute_v1.types.Disk", + "shortName": "get" }, - "description": "Sample for AddResourcePolicies", - "file": "compute_v1_generated_region_disks_add_resource_policies_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_disks_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_AddResourcePolicies_sync", + "regionTag": "compute_v1_generated_RegionDisks_Get_sync", "segments": [ { "end": 53, @@ -42605,7 +44253,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_add_resource_policies_sync.py" + "title": "compute_v1_generated_region_disks_get_sync.py" }, { "canonical": true, @@ -42614,19 +44262,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.bulk_insert", + "fullName": "google.cloud.compute_v1.RegionDisksClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert", + "fullName": "google.cloud.compute.v1.RegionDisks.Insert", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "BulkInsert" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.BulkInsertRegionDiskRequest" + "type": "google.cloud.compute_v1.types.InsertRegionDiskRequest" }, { "name": "project", @@ -42637,8 +44285,8 @@ "type": "str" }, { - "name": "bulk_insert_disk_resource_resource", - "type": "google.cloud.compute_v1.types.BulkInsertDiskResource" + "name": "disk_resource", + "type": "google.cloud.compute_v1.types.Disk" }, { "name": "retry", @@ -42654,13 +44302,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "bulk_insert" + "shortName": "insert" }, - "description": "Sample for BulkInsert", - "file": "compute_v1_generated_region_disks_bulk_insert_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_disks_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_BulkInsert_sync", + "regionTag": "compute_v1_generated_RegionDisks_Insert_sync", "segments": [ { "end": 52, @@ -42693,7 +44341,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_bulk_insert_sync.py" + "title": "compute_v1_generated_region_disks_insert_sync.py" }, { "canonical": true, @@ -42702,19 +44350,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.create_snapshot", + "fullName": "google.cloud.compute_v1.RegionDisksClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot", + "fullName": "google.cloud.compute.v1.RegionDisks.List", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "CreateSnapshot" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CreateSnapshotRegionDiskRequest" + "type": "google.cloud.compute_v1.types.ListRegionDisksRequest" }, { "name": "project", @@ -42724,14 +44372,6 @@ "name": "region", "type": "str" }, - { - "name": "disk", - "type": "str" - }, - { - "name": "snapshot_resource", - "type": "google.cloud.compute_v1.types.Snapshot" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -42745,14 +44385,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "create_snapshot" + "resultType": "google.cloud.compute_v1.services.region_disks.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for CreateSnapshot", - "file": "compute_v1_generated_region_disks_create_snapshot_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_disks_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_CreateSnapshot_sync", + "regionTag": "compute_v1_generated_RegionDisks_List_sync", "segments": [ { "end": 53, @@ -42770,22 +44410,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_create_snapshot_sync.py" + "title": "compute_v1_generated_region_disks_list_sync.py" }, { "canonical": true, @@ -42794,19 +44434,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.delete", + "fullName": "google.cloud.compute_v1.RegionDisksClient.remove_resource_policies", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.Delete", + "fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "Delete" + "shortName": "RemoveResourcePolicies" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionDiskRequest" + "type": "google.cloud.compute_v1.types.RemoveResourcePoliciesRegionDiskRequest" }, { "name": "project", @@ -42821,92 +44461,8 @@ "type": "str" }, { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" - }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_disks_delete_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_Delete_sync", - "segments": [ - { - "end": 53, - "start": 27, - "type": "FULL" - }, - { - "end": 53, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 47, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 50, - "start": 48, - "type": "REQUEST_EXECUTION" - }, - { - "end": 54, - "start": 51, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_region_disks_delete_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.RegionDisksClient", - "shortName": "RegionDisksClient" - }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.get_iam_policy", - "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.GetIamPolicy", - "service": { - "fullName": "google.cloud.compute.v1.RegionDisks", - "shortName": "RegionDisks" - }, - "shortName": "GetIamPolicy" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyRegionDiskRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "region", - "type": "str" - }, - { - "name": "resource", - "type": "str" + "name": "region_disks_remove_resource_policies_request_resource", + "type": "google.cloud.compute_v1.types.RegionDisksRemoveResourcePoliciesRequest" }, { "name": "retry", @@ -42921,14 +44477,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_resource_policies" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_region_disks_get_iam_policy_sync.py", + "description": "Sample for RemoveResourcePolicies", + "file": "compute_v1_generated_region_disks_remove_resource_policies_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_RegionDisks_RemoveResourcePolicies_sync", "segments": [ { "end": 53, @@ -42961,7 +44517,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_get_iam_policy_sync.py" + "title": "compute_v1_generated_region_disks_remove_resource_policies_sync.py" }, { "canonical": true, @@ -42970,19 +44526,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.get", + "fullName": "google.cloud.compute_v1.RegionDisksClient.resize", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.Get", + "fullName": "google.cloud.compute.v1.RegionDisks.Resize", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "Get" + "shortName": "Resize" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionDiskRequest" + "type": "google.cloud.compute_v1.types.ResizeRegionDiskRequest" }, { "name": "project", @@ -42996,6 +44552,10 @@ "name": "disk", "type": "str" }, + { + "name": "region_disks_resize_request_resource", + "type": "google.cloud.compute_v1.types.RegionDisksResizeRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -43009,14 +44569,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Disk", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "resize" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_disks_get_sync.py", + "description": "Sample for Resize", + "file": "compute_v1_generated_region_disks_resize_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_Get_sync", + "regionTag": "compute_v1_generated_RegionDisks_Resize_sync", "segments": [ { "end": 53, @@ -43049,7 +44609,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_get_sync.py" + "title": "compute_v1_generated_region_disks_resize_sync.py" }, { "canonical": true, @@ -43058,19 +44618,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.insert", + "fullName": "google.cloud.compute_v1.RegionDisksClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.Insert", + "fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "Insert" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionDiskRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyRegionDiskRequest" }, { "name": "project", @@ -43081,8 +44641,12 @@ "type": "str" }, { - "name": "disk_resource", - "type": "google.cloud.compute_v1.types.Disk" + "name": "resource", + "type": "str" + }, + { + "name": "region_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" }, { "name": "retry", @@ -43097,22 +44661,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_disks_insert_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_region_disks_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_Insert_sync", + "regionTag": "compute_v1_generated_RegionDisks_SetIamPolicy_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -43122,22 +44686,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_insert_sync.py" + "title": "compute_v1_generated_region_disks_set_iam_policy_sync.py" }, { "canonical": true, @@ -43146,19 +44710,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.list", + "fullName": "google.cloud.compute_v1.RegionDisksClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.List", + "fullName": "google.cloud.compute.v1.RegionDisks.SetLabels", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "List" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionDisksRequest" + "type": "google.cloud.compute_v1.types.SetLabelsRegionDiskRequest" }, { "name": "project", @@ -43168,6 +44732,14 @@ "name": "region", "type": "str" }, + { + "name": "resource", + "type": "str" + }, + { + "name": "region_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -43181,14 +44753,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_disks.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_disks_list_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_region_disks_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_List_sync", + "regionTag": "compute_v1_generated_RegionDisks_SetLabels_sync", "segments": [ { "end": 53, @@ -43206,22 +44778,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_list_sync.py" + "title": "compute_v1_generated_region_disks_set_labels_sync.py" }, { "canonical": true, @@ -43230,19 +44802,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.remove_resource_policies", + "fullName": "google.cloud.compute_v1.RegionDisksClient.start_async_replication", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies", + "fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "RemoveResourcePolicies" + "shortName": "StartAsyncReplication" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveResourcePoliciesRegionDiskRequest" + "type": "google.cloud.compute_v1.types.StartAsyncReplicationRegionDiskRequest" }, { "name": "project", @@ -43257,8 +44829,8 @@ "type": "str" }, { - "name": "region_disks_remove_resource_policies_request_resource", - "type": "google.cloud.compute_v1.types.RegionDisksRemoveResourcePoliciesRequest" + "name": "region_disks_start_async_replication_request_resource", + "type": "google.cloud.compute_v1.types.RegionDisksStartAsyncReplicationRequest" }, { "name": "retry", @@ -43274,13 +44846,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_resource_policies" + "shortName": "start_async_replication" }, - "description": "Sample for RemoveResourcePolicies", - "file": "compute_v1_generated_region_disks_remove_resource_policies_sync.py", + "description": "Sample for StartAsyncReplication", + "file": "compute_v1_generated_region_disks_start_async_replication_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_RemoveResourcePolicies_sync", + "regionTag": "compute_v1_generated_RegionDisks_StartAsyncReplication_sync", "segments": [ { "end": 53, @@ -43313,7 +44885,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_remove_resource_policies_sync.py" + "title": "compute_v1_generated_region_disks_start_async_replication_sync.py" }, { "canonical": true, @@ -43322,19 +44894,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.resize", + "fullName": "google.cloud.compute_v1.RegionDisksClient.stop_async_replication", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.Resize", + "fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "Resize" + "shortName": "StopAsyncReplication" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ResizeRegionDiskRequest" + "type": "google.cloud.compute_v1.types.StopAsyncReplicationRegionDiskRequest" }, { "name": "project", @@ -43348,10 +44920,6 @@ "name": "disk", "type": "str" }, - { - "name": "region_disks_resize_request_resource", - "type": "google.cloud.compute_v1.types.RegionDisksResizeRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -43366,13 +44934,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "resize" + "shortName": "stop_async_replication" }, - "description": "Sample for Resize", - "file": "compute_v1_generated_region_disks_resize_sync.py", + "description": "Sample for StopAsyncReplication", + "file": "compute_v1_generated_region_disks_stop_async_replication_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_Resize_sync", + "regionTag": "compute_v1_generated_RegionDisks_StopAsyncReplication_sync", "segments": [ { "end": 53, @@ -43405,7 +44973,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_resize_sync.py" + "title": "compute_v1_generated_region_disks_stop_async_replication_sync.py" }, { "canonical": true, @@ -43414,19 +44982,107 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.RegionDisksClient.stop_group_async_replication", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "SetIamPolicy" + "shortName": "StopGroupAsyncReplication" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyRegionDiskRequest" + "type": "google.cloud.compute_v1.types.StopGroupAsyncReplicationRegionDiskRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "disks_stop_group_async_replication_resource_resource", + "type": "google.cloud.compute_v1.types.DisksStopGroupAsyncReplicationResource" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "stop_group_async_replication" + }, + "description": "Sample for StopGroupAsyncReplication", + "file": "compute_v1_generated_region_disks_stop_group_async_replication_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionDisks_StopGroupAsyncReplication_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_disks_stop_group_async_replication_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionDisksClient", + "shortName": "RegionDisksClient" + }, + "fullName": "google.cloud.compute_v1.RegionDisksClient.test_iam_permissions", + "method": { + "fullName": "google.cloud.compute.v1.RegionDisks.TestIamPermissions", + "service": { + "fullName": "google.cloud.compute.v1.RegionDisks", + "shortName": "RegionDisks" + }, + "shortName": "TestIamPermissions" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionDiskRequest" }, { "name": "project", @@ -43441,8 +45097,8 @@ "type": "str" }, { - "name": "region_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -43457,14 +45113,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_region_disks_set_iam_policy_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_region_disks_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_RegionDisks_TestIamPermissions_sync", "segments": [ { "end": 53, @@ -43497,7 +45153,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_set_iam_policy_sync.py" + "title": "compute_v1_generated_region_disks_test_iam_permissions_sync.py" }, { "canonical": true, @@ -43506,19 +45162,19 @@ "fullName": "google.cloud.compute_v1.RegionDisksClient", "shortName": "RegionDisksClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.set_labels", + "fullName": "google.cloud.compute_v1.RegionDisksClient.update", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.SetLabels", + "fullName": "google.cloud.compute.v1.RegionDisks.Update", "service": { "fullName": "google.cloud.compute.v1.RegionDisks", "shortName": "RegionDisks" }, - "shortName": "SetLabels" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsRegionDiskRequest" + "type": "google.cloud.compute_v1.types.UpdateRegionDiskRequest" }, { "name": "project", @@ -43529,12 +45185,12 @@ "type": "str" }, { - "name": "resource", + "name": "disk", "type": "str" }, { - "name": "region_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" + "name": "disk_resource", + "type": "google.cloud.compute_v1.types.Disk" }, { "name": "retry", @@ -43550,13 +45206,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "shortName": "update" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_region_disks_set_labels_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_region_disks_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_SetLabels_sync", + "regionTag": "compute_v1_generated_RegionDisks_Update_sync", "segments": [ { "end": 53, @@ -43589,28 +45245,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_set_labels_sync.py" + "title": "compute_v1_generated_region_disks_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionDisksClient", - "shortName": "RegionDisksClient" + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.start_async_replication", + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionDisks", - "shortName": "RegionDisks" + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" }, - "shortName": "StartAsyncReplication" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StartAsyncReplicationRegionDiskRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionHealthCheckServiceRequest" }, { "name": "project", @@ -43621,13 +45277,9 @@ "type": "str" }, { - "name": "disk", + "name": "health_check_service", "type": "str" }, - { - "name": "region_disks_start_async_replication_request_resource", - "type": "google.cloud.compute_v1.types.RegionDisksStartAsyncReplicationRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -43642,13 +45294,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "start_async_replication" + "shortName": "delete" }, - "description": "Sample for StartAsyncReplication", - "file": "compute_v1_generated_region_disks_start_async_replication_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_health_check_services_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_StartAsyncReplication_sync", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Delete_sync", "segments": [ { "end": 53, @@ -43681,28 +45333,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_start_async_replication_sync.py" + "title": "compute_v1_generated_region_health_check_services_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionDisksClient", - "shortName": "RegionDisksClient" + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.stop_async_replication", + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionDisks", - "shortName": "RegionDisks" + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" }, - "shortName": "StopAsyncReplication" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StopAsyncReplicationRegionDiskRequest" + "type": "google.cloud.compute_v1.types.GetRegionHealthCheckServiceRequest" }, { "name": "project", @@ -43713,7 +45365,7 @@ "type": "str" }, { - "name": "disk", + "name": "health_check_service", "type": "str" }, { @@ -43729,14 +45381,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "stop_async_replication" + "resultType": "google.cloud.compute_v1.types.HealthCheckService", + "shortName": "get" }, - "description": "Sample for StopAsyncReplication", - "file": "compute_v1_generated_region_disks_stop_async_replication_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_health_check_services_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_StopAsyncReplication_sync", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Get_sync", "segments": [ { "end": 53, @@ -43769,28 +45421,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_stop_async_replication_sync.py" + "title": "compute_v1_generated_region_health_check_services_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionDisksClient", - "shortName": "RegionDisksClient" + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.stop_group_async_replication", + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionDisks", - "shortName": "RegionDisks" + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" }, - "shortName": "StopGroupAsyncReplication" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StopGroupAsyncReplicationRegionDiskRequest" + "type": "google.cloud.compute_v1.types.InsertRegionHealthCheckServiceRequest" }, { "name": "project", @@ -43801,8 +45453,8 @@ "type": "str" }, { - "name": "disks_stop_group_async_replication_resource_resource", - "type": "google.cloud.compute_v1.types.DisksStopGroupAsyncReplicationResource" + "name": "health_check_service_resource", + "type": "google.cloud.compute_v1.types.HealthCheckService" }, { "name": "retry", @@ -43818,13 +45470,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "stop_group_async_replication" + "shortName": "insert" }, - "description": "Sample for StopGroupAsyncReplication", - "file": "compute_v1_generated_region_disks_stop_group_async_replication_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_health_check_services_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_StopGroupAsyncReplication_sync", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Insert_sync", "segments": [ { "end": 52, @@ -43857,28 +45509,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_stop_group_async_replication_sync.py" + "title": "compute_v1_generated_region_health_check_services_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionDisksClient", - "shortName": "RegionDisksClient" + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", "service": { - "fullName": "google.cloud.compute.v1.RegionDisks", - "shortName": "RegionDisks" + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" }, - "shortName": "TestIamPermissions" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionDiskRequest" + "type": "google.cloud.compute_v1.types.ListRegionHealthCheckServicesRequest" }, { "name": "project", @@ -43888,14 +45540,6 @@ "name": "region", "type": "str" }, - { - "name": "resource", - "type": "str" - }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -43909,14 +45553,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.services.region_health_check_services.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_region_disks_test_iam_permissions_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_health_check_services_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_List_sync", "segments": [ { "end": 53, @@ -43934,43 +45578,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_test_iam_permissions_sync.py" + "title": "compute_v1_generated_region_health_check_services_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionDisksClient", - "shortName": "RegionDisksClient" + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", + "shortName": "RegionHealthCheckServicesClient" }, - "fullName": "google.cloud.compute_v1.RegionDisksClient.update", + "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.RegionDisks.Update", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Patch", "service": { - "fullName": "google.cloud.compute.v1.RegionDisks", - "shortName": "RegionDisks" + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", + "shortName": "RegionHealthCheckServices" }, - "shortName": "Update" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateRegionDiskRequest" + "type": "google.cloud.compute_v1.types.PatchRegionHealthCheckServiceRequest" }, { "name": "project", @@ -43981,12 +45625,12 @@ "type": "str" }, { - "name": "disk", + "name": "health_check_service", "type": "str" }, { - "name": "disk_resource", - "type": "google.cloud.compute_v1.types.Disk" + "name": "health_check_service_resource", + "type": "google.cloud.compute_v1.types.HealthCheckService" }, { "name": "retry", @@ -44002,13 +45646,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" + "shortName": "patch" }, - "description": "Sample for Update", - "file": "compute_v1_generated_region_disks_update_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_region_health_check_services_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionDisks_Update_sync", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Patch_sync", "segments": [ { "end": 53, @@ -44041,28 +45685,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_disks_update_sync.py" + "title": "compute_v1_generated_region_health_check_services_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", - "shortName": "RegionHealthCheckServicesClient" + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.delete", + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", - "shortName": "RegionHealthCheckServices" + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" }, "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionHealthCheckServiceRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionHealthCheckRequest" }, { "name": "project", @@ -44073,7 +45717,7 @@ "type": "str" }, { - "name": "health_check_service", + "name": "health_check", "type": "str" }, { @@ -44093,10 +45737,10 @@ "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_region_health_check_services_delete_sync.py", + "file": "compute_v1_generated_region_health_checks_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Delete_sync", + "regionTag": "compute_v1_generated_RegionHealthChecks_Delete_sync", "segments": [ { "end": 53, @@ -44129,28 +45773,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_check_services_delete_sync.py" + "title": "compute_v1_generated_region_health_checks_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", - "shortName": "RegionHealthCheckServicesClient" + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.get", + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", - "shortName": "RegionHealthCheckServices" + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionHealthCheckServiceRequest" + "type": "google.cloud.compute_v1.types.GetRegionHealthCheckRequest" }, { "name": "project", @@ -44161,7 +45805,7 @@ "type": "str" }, { - "name": "health_check_service", + "name": "health_check", "type": "str" }, { @@ -44177,14 +45821,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.HealthCheckService", + "resultType": "google.cloud.compute_v1.types.HealthCheck", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_region_health_check_services_get_sync.py", + "file": "compute_v1_generated_region_health_checks_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Get_sync", + "regionTag": "compute_v1_generated_RegionHealthChecks_Get_sync", "segments": [ { "end": 53, @@ -44217,28 +45861,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_check_services_get_sync.py" + "title": "compute_v1_generated_region_health_checks_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", - "shortName": "RegionHealthCheckServicesClient" + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.insert", + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", - "shortName": "RegionHealthCheckServices" + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionHealthCheckServiceRequest" + "type": "google.cloud.compute_v1.types.InsertRegionHealthCheckRequest" }, { "name": "project", @@ -44249,8 +45893,8 @@ "type": "str" }, { - "name": "health_check_service_resource", - "type": "google.cloud.compute_v1.types.HealthCheckService" + "name": "health_check_resource", + "type": "google.cloud.compute_v1.types.HealthCheck" }, { "name": "retry", @@ -44269,10 +45913,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_region_health_check_services_insert_sync.py", + "file": "compute_v1_generated_region_health_checks_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Insert_sync", + "regionTag": "compute_v1_generated_RegionHealthChecks_Insert_sync", "segments": [ { "end": 52, @@ -44305,28 +45949,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_check_services_insert_sync.py" + "title": "compute_v1_generated_region_health_checks_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", - "shortName": "RegionHealthCheckServicesClient" + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.list", + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", - "shortName": "RegionHealthCheckServices" + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionHealthCheckServicesRequest" + "type": "google.cloud.compute_v1.types.ListRegionHealthChecksRequest" }, { "name": "project", @@ -44349,14 +45993,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_health_check_services.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.region_health_checks.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_region_health_check_services_list_sync.py", + "file": "compute_v1_generated_region_health_checks_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthCheckServices_List_sync", + "regionTag": "compute_v1_generated_RegionHealthChecks_List_sync", "segments": [ { "end": 53, @@ -44389,28 +46033,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_check_services_list_sync.py" + "title": "compute_v1_generated_region_health_checks_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient", - "shortName": "RegionHealthCheckServicesClient" + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", + "shortName": "RegionHealthChecksClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthCheckServicesClient.patch", + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.patch", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Patch", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices", - "shortName": "RegionHealthCheckServices" + "fullName": "google.cloud.compute.v1.RegionHealthChecks", + "shortName": "RegionHealthChecks" }, "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionHealthCheckServiceRequest" + "type": "google.cloud.compute_v1.types.PatchRegionHealthCheckRequest" }, { "name": "project", @@ -44421,12 +46065,12 @@ "type": "str" }, { - "name": "health_check_service", + "name": "health_check", "type": "str" }, { - "name": "health_check_service_resource", - "type": "google.cloud.compute_v1.types.HealthCheckService" + "name": "health_check_resource", + "type": "google.cloud.compute_v1.types.HealthCheck" }, { "name": "retry", @@ -44445,10 +46089,10 @@ "shortName": "patch" }, "description": "Sample for Patch", - "file": "compute_v1_generated_region_health_check_services_patch_sync.py", + "file": "compute_v1_generated_region_health_checks_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Patch_sync", + "regionTag": "compute_v1_generated_RegionHealthChecks_Patch_sync", "segments": [ { "end": 53, @@ -44481,7 +46125,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_check_services_patch_sync.py" + "title": "compute_v1_generated_region_health_checks_patch_sync.py" }, { "canonical": true, @@ -44490,19 +46134,19 @@ "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", "shortName": "RegionHealthChecksClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.delete", + "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.update", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", "service": { "fullName": "google.cloud.compute.v1.RegionHealthChecks", "shortName": "RegionHealthChecks" }, - "shortName": "Delete" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionHealthCheckRequest" + "type": "google.cloud.compute_v1.types.UpdateRegionHealthCheckRequest" }, { "name": "project", @@ -44516,6 +46160,10 @@ "name": "health_check", "type": "str" }, + { + "name": "health_check_resource", + "type": "google.cloud.compute_v1.types.HealthCheck" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -44530,13 +46178,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "update" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_health_checks_delete_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_region_health_checks_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthChecks_Delete_sync", + "regionTag": "compute_v1_generated_RegionHealthChecks_Update_sync", "segments": [ { "end": 53, @@ -44569,28 +46217,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_checks_delete_sync.py" + "title": "compute_v1_generated_region_health_checks_update_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", - "shortName": "RegionHealthChecksClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.get", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.abandon_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.AbandonInstances", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks", - "shortName": "RegionHealthChecks" + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" }, - "shortName": "Get" + "shortName": "AbandonInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionHealthCheckRequest" + "type": "google.cloud.compute_v1.types.AbandonInstancesRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -44601,9 +46249,13 @@ "type": "str" }, { - "name": "health_check", + "name": "instance_group_manager", "type": "str" }, + { + "name": "region_instance_group_managers_abandon_instances_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersAbandonInstancesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -44617,14 +46269,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.HealthCheck", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "abandon_instances" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_health_checks_get_sync.py", + "description": "Sample for AbandonInstances", + "file": "compute_v1_generated_region_instance_group_managers_abandon_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthChecks_Get_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_sync", "segments": [ { "end": 53, @@ -44657,28 +46309,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_checks_get_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_abandon_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", - "shortName": "RegionHealthChecksClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.insert", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.apply_updates_to_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ApplyUpdatesToInstances", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks", - "shortName": "RegionHealthChecks" + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" }, - "shortName": "Insert" + "shortName": "ApplyUpdatesToInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionHealthCheckRequest" + "type": "google.cloud.compute_v1.types.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -44689,8 +46341,12 @@ "type": "str" }, { - "name": "health_check_resource", - "type": "google.cloud.compute_v1.types.HealthCheck" + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "region_instance_group_managers_apply_updates_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersApplyUpdatesRequest" }, { "name": "retry", @@ -44706,21 +46362,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "apply_updates_to_instances" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_health_checks_insert_sync.py", + "description": "Sample for ApplyUpdatesToInstances", + "file": "compute_v1_generated_region_instance_group_managers_apply_updates_to_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthChecks_Insert_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -44730,43 +46386,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_checks_insert_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_apply_updates_to_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", - "shortName": "RegionHealthChecksClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.list", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.create_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.CreateInstances", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks", - "shortName": "RegionHealthChecks" + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" }, - "shortName": "List" + "shortName": "CreateInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionHealthChecksRequest" + "type": "google.cloud.compute_v1.types.CreateInstancesRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -44776,6 +46432,14 @@ "name": "region", "type": "str" }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "region_instance_group_managers_create_instances_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersCreateInstancesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -44789,14 +46453,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_health_checks.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "create_instances" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_health_checks_list_sync.py", + "description": "Sample for CreateInstances", + "file": "compute_v1_generated_region_instance_group_managers_create_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthChecks_List_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_CreateInstances_sync", "segments": [ { "end": 53, @@ -44814,43 +46478,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_checks_list_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_create_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", - "shortName": "RegionHealthChecksClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.patch", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.delete_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeleteInstances", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks", - "shortName": "RegionHealthChecks" + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" }, - "shortName": "Patch" + "shortName": "DeleteInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionHealthCheckRequest" + "type": "google.cloud.compute_v1.types.DeleteInstancesRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -44861,12 +46525,12 @@ "type": "str" }, { - "name": "health_check", + "name": "instance_group_manager", "type": "str" }, { - "name": "health_check_resource", - "type": "google.cloud.compute_v1.types.HealthCheck" + "name": "region_instance_group_managers_delete_instances_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersDeleteInstancesRequest" }, { "name": "retry", @@ -44882,13 +46546,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "delete_instances" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_region_health_checks_patch_sync.py", + "description": "Sample for DeleteInstances", + "file": "compute_v1_generated_region_instance_group_managers_delete_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthChecks_Patch_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_DeleteInstances_sync", "segments": [ { "end": 53, @@ -44921,28 +46585,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_checks_patch_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_delete_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient", - "shortName": "RegionHealthChecksClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionHealthChecksClient.update", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.delete_per_instance_configs", "method": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeletePerInstanceConfigs", "service": { - "fullName": "google.cloud.compute.v1.RegionHealthChecks", - "shortName": "RegionHealthChecks" + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" }, - "shortName": "Update" + "shortName": "DeletePerInstanceConfigs" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateRegionHealthCheckRequest" + "type": "google.cloud.compute_v1.types.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -44953,12 +46617,12 @@ "type": "str" }, { - "name": "health_check", + "name": "instance_group_manager", "type": "str" }, { - "name": "health_check_resource", - "type": "google.cloud.compute_v1.types.HealthCheck" + "name": "region_instance_group_manager_delete_instance_config_req_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagerDeleteInstanceConfigReq" }, { "name": "retry", @@ -44974,13 +46638,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" + "shortName": "delete_per_instance_configs" }, - "description": "Sample for Update", - "file": "compute_v1_generated_region_health_checks_update_sync.py", + "description": "Sample for DeletePerInstanceConfigs", + "file": "compute_v1_generated_region_instance_group_managers_delete_per_instance_configs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionHealthChecks_Update_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_sync", "segments": [ { "end": 53, @@ -45013,7 +46677,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_health_checks_update_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_delete_per_instance_configs_sync.py" }, { "canonical": true, @@ -45022,19 +46686,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.abandon_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.AbandonInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Delete", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "AbandonInstances" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AbandonInstancesRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -45048,10 +46712,6 @@ "name": "instance_group_manager", "type": "str" }, - { - "name": "region_instance_group_managers_abandon_instances_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersAbandonInstancesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -45066,13 +46726,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "abandon_instances" + "shortName": "delete" }, - "description": "Sample for AbandonInstances", - "file": "compute_v1_generated_region_instance_group_managers_abandon_instances_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_instance_group_managers_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Delete_sync", "segments": [ { "end": 53, @@ -45105,7 +46765,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_abandon_instances_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_delete_sync.py" }, { "canonical": true, @@ -45114,19 +46774,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.apply_updates_to_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ApplyUpdatesToInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Get", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "ApplyUpdatesToInstances" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.GetRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -45140,10 +46800,6 @@ "name": "instance_group_manager", "type": "str" }, - { - "name": "region_instance_group_managers_apply_updates_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersApplyUpdatesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -45157,14 +46813,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "apply_updates_to_instances" + "resultType": "google.cloud.compute_v1.types.InstanceGroupManager", + "shortName": "get" }, - "description": "Sample for ApplyUpdatesToInstances", - "file": "compute_v1_generated_region_instance_group_managers_apply_updates_to_instances_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_instance_group_managers_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Get_sync", "segments": [ { "end": 53, @@ -45197,7 +46853,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_apply_updates_to_instances_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_get_sync.py" }, { "canonical": true, @@ -45206,19 +46862,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.create_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.CreateInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Insert", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "CreateInstances" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CreateInstancesRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.InsertRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -45229,12 +46885,96 @@ "type": "str" }, { - "name": "instance_group_manager", + "name": "instance_group_manager_resource", + "type": "google.cloud.compute_v1.types.InstanceGroupManager" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_instance_group_managers_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Insert_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_instance_group_managers_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", + "shortName": "RegionInstanceGroupManagersClient" + }, + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list_errors", + "method": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListErrors", + "service": { + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", + "shortName": "RegionInstanceGroupManagers" + }, + "shortName": "ListErrors" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListErrorsRegionInstanceGroupManagersRequest" + }, + { + "name": "project", "type": "str" }, { - "name": "region_instance_group_managers_create_instances_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersCreateInstancesRequest" + "name": "region", + "type": "str" + }, + { + "name": "instance_group_manager", + "type": "str" }, { "name": "retry", @@ -45249,22 +46989,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "create_instances" + "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListErrorsPager", + "shortName": "list_errors" }, - "description": "Sample for CreateInstances", - "file": "compute_v1_generated_region_instance_group_managers_create_instances_sync.py", + "description": "Sample for ListErrors", + "file": "compute_v1_generated_region_instance_group_managers_list_errors_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_CreateInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListErrors_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -45284,12 +47024,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_create_instances_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_list_errors_sync.py" }, { "canonical": true, @@ -45298,19 +47038,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.delete_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list_managed_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeleteInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListManagedInstances", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "DeleteInstances" + "shortName": "ListManagedInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteInstancesRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.ListManagedInstancesRegionInstanceGroupManagersRequest" }, { "name": "project", @@ -45324,10 +47064,6 @@ "name": "instance_group_manager", "type": "str" }, - { - "name": "region_instance_group_managers_delete_instances_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersDeleteInstancesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -45341,22 +47077,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete_instances" + "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListManagedInstancesPager", + "shortName": "list_managed_instances" }, - "description": "Sample for DeleteInstances", - "file": "compute_v1_generated_region_instance_group_managers_delete_instances_sync.py", + "description": "Sample for ListManagedInstances", + "file": "compute_v1_generated_region_instance_group_managers_list_managed_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_DeleteInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -45376,12 +47112,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_delete_instances_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_list_managed_instances_sync.py" }, { "canonical": true, @@ -45390,19 +47126,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.delete_per_instance_configs", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list_per_instance_configs", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeletePerInstanceConfigs", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListPerInstanceConfigs", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "DeletePerInstanceConfigs" + "shortName": "ListPerInstanceConfigs" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.ListPerInstanceConfigsRegionInstanceGroupManagersRequest" }, { "name": "project", @@ -45416,10 +47152,6 @@ "name": "instance_group_manager", "type": "str" }, - { - "name": "region_instance_group_manager_delete_instance_config_req_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagerDeleteInstanceConfigReq" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -45433,22 +47165,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete_per_instance_configs" + "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListPerInstanceConfigsPager", + "shortName": "list_per_instance_configs" }, - "description": "Sample for DeletePerInstanceConfigs", - "file": "compute_v1_generated_region_instance_group_managers_delete_per_instance_configs_sync.py", + "description": "Sample for ListPerInstanceConfigs", + "file": "compute_v1_generated_region_instance_group_managers_list_per_instance_configs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -45468,12 +47200,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_delete_per_instance_configs_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_list_per_instance_configs_sync.py" }, { "canonical": true, @@ -45482,19 +47214,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.delete", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Delete", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.List", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "Delete" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.ListRegionInstanceGroupManagersRequest" }, { "name": "project", @@ -45504,10 +47236,6 @@ "name": "region", "type": "str" }, - { - "name": "instance_group_manager", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -45521,14 +47249,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_instance_group_managers_delete_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_instance_group_managers_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Delete_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_List_sync", "segments": [ { "end": 53, @@ -45546,22 +47274,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_delete_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_list_sync.py" }, { "canonical": true, @@ -45570,19 +47298,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.get", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.patch_per_instance_configs", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Get", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.PatchPerInstanceConfigs", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "Get" + "shortName": "PatchPerInstanceConfigs" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -45596,6 +47324,10 @@ "name": "instance_group_manager", "type": "str" }, + { + "name": "region_instance_group_manager_patch_instance_config_req_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagerPatchInstanceConfigReq" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -45609,14 +47341,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstanceGroupManager", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_per_instance_configs" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_instance_group_managers_get_sync.py", + "description": "Sample for PatchPerInstanceConfigs", + "file": "compute_v1_generated_region_instance_group_managers_patch_per_instance_configs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Get_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_sync", "segments": [ { "end": 53, @@ -45649,7 +47381,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_get_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_patch_per_instance_configs_sync.py" }, { "canonical": true, @@ -45658,19 +47390,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.insert", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.patch", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Insert", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Patch", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "Insert" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.PatchRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -45680,6 +47412,10 @@ "name": "region", "type": "str" }, + { + "name": "instance_group_manager", + "type": "str" + }, { "name": "instance_group_manager_resource", "type": "google.cloud.compute_v1.types.InstanceGroupManager" @@ -45698,21 +47434,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "patch" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_instance_group_managers_insert_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_region_instance_group_managers_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Insert_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Patch_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -45722,22 +47458,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_insert_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_patch_sync.py" }, { "canonical": true, @@ -45746,19 +47482,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list_errors", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.recreate_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListErrors", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.RecreateInstances", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "ListErrors" + "shortName": "RecreateInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListErrorsRegionInstanceGroupManagersRequest" + "type": "google.cloud.compute_v1.types.RecreateInstancesRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -45772,6 +47508,10 @@ "name": "instance_group_manager", "type": "str" }, + { + "name": "region_instance_group_managers_recreate_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersRecreateRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -45785,22 +47525,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListErrorsPager", - "shortName": "list_errors" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "recreate_instances" }, - "description": "Sample for ListErrors", - "file": "compute_v1_generated_region_instance_group_managers_list_errors_sync.py", + "description": "Sample for RecreateInstances", + "file": "compute_v1_generated_region_instance_group_managers_recreate_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListErrors_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_RecreateInstances_sync", "segments": [ { - "end": 54, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 53, "start": 27, "type": "SHORT" }, @@ -45820,12 +47560,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 55, + "end": 54, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_list_errors_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_recreate_instances_sync.py" }, { "canonical": true, @@ -45834,19 +47574,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list_managed_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.resize", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListManagedInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Resize", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "ListManagedInstances" + "shortName": "Resize" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListManagedInstancesRegionInstanceGroupManagersRequest" + "type": "google.cloud.compute_v1.types.ResizeRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -45860,6 +47600,10 @@ "name": "instance_group_manager", "type": "str" }, + { + "name": "size", + "type": "int" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -45873,14 +47617,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListManagedInstancesPager", - "shortName": "list_managed_instances" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "resize" }, - "description": "Sample for ListManagedInstances", - "file": "compute_v1_generated_region_instance_group_managers_list_managed_instances_sync.py", + "description": "Sample for Resize", + "file": "compute_v1_generated_region_instance_group_managers_resize_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Resize_sync", "segments": [ { "end": 54, @@ -45898,22 +47642,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { "end": 55, - "start": 51, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_list_managed_instances_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_resize_sync.py" }, { "canonical": true, @@ -45922,19 +47666,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list_per_instance_configs", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.resume_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListPerInstanceConfigs", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ResumeInstances", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "ListPerInstanceConfigs" + "shortName": "ResumeInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListPerInstanceConfigsRegionInstanceGroupManagersRequest" + "type": "google.cloud.compute_v1.types.ResumeInstancesRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -45948,6 +47692,10 @@ "name": "instance_group_manager", "type": "str" }, + { + "name": "region_instance_group_managers_resume_instances_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersResumeInstancesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -45961,22 +47709,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListPerInstanceConfigsPager", - "shortName": "list_per_instance_configs" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "resume_instances" }, - "description": "Sample for ListPerInstanceConfigs", - "file": "compute_v1_generated_region_instance_group_managers_list_per_instance_configs_sync.py", + "description": "Sample for ResumeInstances", + "file": "compute_v1_generated_region_instance_group_managers_resume_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_sync", "segments": [ { - "end": 54, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 53, "start": 27, "type": "SHORT" }, @@ -45996,12 +47744,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 55, + "end": 54, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_list_per_instance_configs_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_resume_instances_sync.py" }, { "canonical": true, @@ -46010,19 +47758,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.list", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.set_instance_template", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.List", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetInstanceTemplate", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "List" + "shortName": "SetInstanceTemplate" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionInstanceGroupManagersRequest" + "type": "google.cloud.compute_v1.types.SetInstanceTemplateRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -46032,6 +47780,14 @@ "name": "region", "type": "str" }, + { + "name": "instance_group_manager", + "type": "str" + }, + { + "name": "region_instance_group_managers_set_template_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersSetTemplateRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -46045,14 +47801,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_instance_group_managers.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_instance_template" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_instance_group_managers_list_sync.py", + "description": "Sample for SetInstanceTemplate", + "file": "compute_v1_generated_region_instance_group_managers_set_instance_template_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_List_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SetInstanceTemplate_sync", "segments": [ { "end": 53, @@ -46070,22 +47826,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_list_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_set_instance_template_sync.py" }, { "canonical": true, @@ -46094,19 +47850,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.patch_per_instance_configs", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.set_target_pools", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.PatchPerInstanceConfigs", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetTargetPools", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "PatchPerInstanceConfigs" + "shortName": "SetTargetPools" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.SetTargetPoolsRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -46121,8 +47877,8 @@ "type": "str" }, { - "name": "region_instance_group_manager_patch_instance_config_req_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagerPatchInstanceConfigReq" + "name": "region_instance_group_managers_set_target_pools_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersSetTargetPoolsRequest" }, { "name": "retry", @@ -46138,13 +47894,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch_per_instance_configs" + "shortName": "set_target_pools" }, - "description": "Sample for PatchPerInstanceConfigs", - "file": "compute_v1_generated_region_instance_group_managers_patch_per_instance_configs_sync.py", + "description": "Sample for SetTargetPools", + "file": "compute_v1_generated_region_instance_group_managers_set_target_pools_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SetTargetPools_sync", "segments": [ { "end": 53, @@ -46177,7 +47933,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_patch_per_instance_configs_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_set_target_pools_sync.py" }, { "canonical": true, @@ -46186,19 +47942,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.patch", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.start_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Patch", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.StartInstances", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "Patch" + "shortName": "StartInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.StartInstancesRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -46213,8 +47969,8 @@ "type": "str" }, { - "name": "instance_group_manager_resource", - "type": "google.cloud.compute_v1.types.InstanceGroupManager" + "name": "region_instance_group_managers_start_instances_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersStartInstancesRequest" }, { "name": "retry", @@ -46230,13 +47986,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "start_instances" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_region_instance_group_managers_patch_sync.py", + "description": "Sample for StartInstances", + "file": "compute_v1_generated_region_instance_group_managers_start_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Patch_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_StartInstances_sync", "segments": [ { "end": 53, @@ -46269,7 +48025,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_patch_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_start_instances_sync.py" }, { "canonical": true, @@ -46278,19 +48034,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.recreate_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.stop_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.RecreateInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.StopInstances", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "RecreateInstances" + "shortName": "StopInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RecreateInstancesRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.StopInstancesRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -46305,8 +48061,8 @@ "type": "str" }, { - "name": "region_instance_group_managers_recreate_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersRecreateRequest" + "name": "region_instance_group_managers_stop_instances_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersStopInstancesRequest" }, { "name": "retry", @@ -46322,13 +48078,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "recreate_instances" + "shortName": "stop_instances" }, - "description": "Sample for RecreateInstances", - "file": "compute_v1_generated_region_instance_group_managers_recreate_instances_sync.py", + "description": "Sample for StopInstances", + "file": "compute_v1_generated_region_instance_group_managers_stop_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_RecreateInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_StopInstances_sync", "segments": [ { "end": 53, @@ -46361,7 +48117,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_recreate_instances_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_stop_instances_sync.py" }, { "canonical": true, @@ -46370,19 +48126,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.resize", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.suspend_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Resize", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SuspendInstances", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "Resize" + "shortName": "SuspendInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ResizeRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.SuspendInstancesRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -46397,8 +48153,8 @@ "type": "str" }, { - "name": "size", - "type": "int" + "name": "region_instance_group_managers_suspend_instances_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersSuspendInstancesRequest" }, { "name": "retry", @@ -46414,21 +48170,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "resize" + "shortName": "suspend_instances" }, - "description": "Sample for Resize", - "file": "compute_v1_generated_region_instance_group_managers_resize_sync.py", + "description": "Sample for SuspendInstances", + "file": "compute_v1_generated_region_instance_group_managers_suspend_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Resize_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_sync", "segments": [ { - "end": 54, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 53, "start": 27, "type": "SHORT" }, @@ -46438,22 +48194,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_resize_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_suspend_instances_sync.py" }, { "canonical": true, @@ -46462,19 +48218,19 @@ "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", "shortName": "RegionInstanceGroupManagersClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.resume_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.update_per_instance_configs", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ResumeInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.UpdatePerInstanceConfigs", "service": { "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", "shortName": "RegionInstanceGroupManagers" }, - "shortName": "ResumeInstances" + "shortName": "UpdatePerInstanceConfigs" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ResumeInstancesRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest" }, { "name": "project", @@ -46489,8 +48245,8 @@ "type": "str" }, { - "name": "region_instance_group_managers_resume_instances_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersResumeInstancesRequest" + "name": "region_instance_group_manager_update_instance_config_req_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagerUpdateInstanceConfigReq" }, { "name": "retry", @@ -46506,13 +48262,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "resume_instances" + "shortName": "update_per_instance_configs" }, - "description": "Sample for ResumeInstances", - "file": "compute_v1_generated_region_instance_group_managers_resume_instances_sync.py", + "description": "Sample for UpdatePerInstanceConfigs", + "file": "compute_v1_generated_region_instance_group_managers_update_per_instance_configs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_sync", "segments": [ { "end": 53, @@ -46545,28 +48301,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_resume_instances_sync.py" + "title": "compute_v1_generated_region_instance_group_managers_update_per_instance_configs_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", - "shortName": "RegionInstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", + "shortName": "RegionInstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.set_instance_template", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetInstanceTemplate", + "fullName": "google.cloud.compute.v1.RegionInstanceGroups.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", - "shortName": "RegionInstanceGroupManagers" + "fullName": "google.cloud.compute.v1.RegionInstanceGroups", + "shortName": "RegionInstanceGroups" }, - "shortName": "SetInstanceTemplate" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetInstanceTemplateRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.GetRegionInstanceGroupRequest" }, { "name": "project", @@ -46577,13 +48333,9 @@ "type": "str" }, { - "name": "instance_group_manager", + "name": "instance_group", "type": "str" }, - { - "name": "region_instance_group_managers_set_template_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersSetTemplateRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -46597,14 +48349,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_instance_template" + "resultType": "google.cloud.compute_v1.types.InstanceGroup", + "shortName": "get" }, - "description": "Sample for SetInstanceTemplate", - "file": "compute_v1_generated_region_instance_group_managers_set_instance_template_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_instance_groups_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SetInstanceTemplate_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroups_Get_sync", "segments": [ { "end": 53, @@ -46637,28 +48389,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_set_instance_template_sync.py" + "title": "compute_v1_generated_region_instance_groups_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", - "shortName": "RegionInstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", + "shortName": "RegionInstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.set_target_pools", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.list_instances", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetTargetPools", + "fullName": "google.cloud.compute.v1.RegionInstanceGroups.ListInstances", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", - "shortName": "RegionInstanceGroupManagers" + "fullName": "google.cloud.compute.v1.RegionInstanceGroups", + "shortName": "RegionInstanceGroups" }, - "shortName": "SetTargetPools" + "shortName": "ListInstances" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetTargetPoolsRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.ListInstancesRegionInstanceGroupsRequest" }, { "name": "project", @@ -46669,12 +48421,12 @@ "type": "str" }, { - "name": "instance_group_manager", + "name": "instance_group", "type": "str" }, { - "name": "region_instance_group_managers_set_target_pools_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersSetTargetPoolsRequest" + "name": "region_instance_groups_list_instances_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupsListInstancesRequest" }, { "name": "retry", @@ -46689,22 +48441,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_target_pools" + "resultType": "google.cloud.compute_v1.services.region_instance_groups.pagers.ListInstancesPager", + "shortName": "list_instances" }, - "description": "Sample for SetTargetPools", - "file": "compute_v1_generated_region_instance_group_managers_set_target_pools_sync.py", + "description": "Sample for ListInstances", + "file": "compute_v1_generated_region_instance_groups_list_instances_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SetTargetPools_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroups_ListInstances_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -46724,33 +48476,33 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_set_target_pools_sync.py" + "title": "compute_v1_generated_region_instance_groups_list_instances_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", - "shortName": "RegionInstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", + "shortName": "RegionInstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.start_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.StartInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroups.List", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", - "shortName": "RegionInstanceGroupManagers" + "fullName": "google.cloud.compute.v1.RegionInstanceGroups", + "shortName": "RegionInstanceGroups" }, - "shortName": "StartInstances" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StartInstancesRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.ListRegionInstanceGroupsRequest" }, { "name": "project", @@ -46760,14 +48512,6 @@ "name": "region", "type": "str" }, - { - "name": "instance_group_manager", - "type": "str" - }, - { - "name": "region_instance_group_managers_start_instances_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersStartInstancesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -46781,14 +48525,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "start_instances" + "resultType": "google.cloud.compute_v1.services.region_instance_groups.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for StartInstances", - "file": "compute_v1_generated_region_instance_group_managers_start_instances_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_instance_groups_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_StartInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroups_List_sync", "segments": [ { "end": 53, @@ -46806,43 +48550,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_start_instances_sync.py" + "title": "compute_v1_generated_region_instance_groups_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", - "shortName": "RegionInstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", + "shortName": "RegionInstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.stop_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.set_named_ports", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.StopInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroups.SetNamedPorts", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", - "shortName": "RegionInstanceGroupManagers" + "fullName": "google.cloud.compute.v1.RegionInstanceGroups", + "shortName": "RegionInstanceGroups" }, - "shortName": "StopInstances" + "shortName": "SetNamedPorts" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.StopInstancesRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.SetNamedPortsRegionInstanceGroupRequest" }, { "name": "project", @@ -46853,12 +48597,12 @@ "type": "str" }, { - "name": "instance_group_manager", + "name": "instance_group", "type": "str" }, { - "name": "region_instance_group_managers_stop_instances_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersStopInstancesRequest" + "name": "region_instance_groups_set_named_ports_request_resource", + "type": "google.cloud.compute_v1.types.RegionInstanceGroupsSetNamedPortsRequest" }, { "name": "retry", @@ -46874,13 +48618,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "stop_instances" + "shortName": "set_named_ports" }, - "description": "Sample for StopInstances", - "file": "compute_v1_generated_region_instance_group_managers_stop_instances_sync.py", + "description": "Sample for SetNamedPorts", + "file": "compute_v1_generated_region_instance_groups_set_named_ports_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_StopInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroups_SetNamedPorts_sync", "segments": [ { "end": 53, @@ -46913,28 +48657,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_stop_instances_sync.py" + "title": "compute_v1_generated_region_instance_groups_set_named_ports_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", - "shortName": "RegionInstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", + "shortName": "RegionInstanceGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.suspend_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SuspendInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceGroups.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", - "shortName": "RegionInstanceGroupManagers" + "fullName": "google.cloud.compute.v1.RegionInstanceGroups", + "shortName": "RegionInstanceGroups" }, - "shortName": "SuspendInstances" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SuspendInstancesRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionInstanceGroupRequest" }, { "name": "project", @@ -46945,12 +48689,12 @@ "type": "str" }, { - "name": "instance_group_manager", + "name": "resource", "type": "str" }, { - "name": "region_instance_group_managers_suspend_instances_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagersSuspendInstancesRequest" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -46965,14 +48709,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "suspend_instances" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for SuspendInstances", - "file": "compute_v1_generated_region_instance_group_managers_suspend_instances_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_region_instance_groups_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceGroups_TestIamPermissions_sync", "segments": [ { "end": 53, @@ -47005,28 +48749,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_suspend_instances_sync.py" + "title": "compute_v1_generated_region_instance_groups_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient", - "shortName": "RegionInstanceGroupManagersClient" + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", + "shortName": "RegionInstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupManagersClient.update_per_instance_configs", + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.UpdatePerInstanceConfigs", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers", - "shortName": "RegionInstanceGroupManagers" + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", + "shortName": "RegionInstanceTemplates" }, - "shortName": "UpdatePerInstanceConfigs" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionInstanceTemplateRequest" }, { "name": "project", @@ -47037,13 +48781,9 @@ "type": "str" }, { - "name": "instance_group_manager", + "name": "instance_template", "type": "str" }, - { - "name": "region_instance_group_manager_update_instance_config_req_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupManagerUpdateInstanceConfigReq" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -47058,13 +48798,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update_per_instance_configs" + "shortName": "delete" }, - "description": "Sample for UpdatePerInstanceConfigs", - "file": "compute_v1_generated_region_instance_group_managers_update_per_instance_configs_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_instance_templates_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_sync", + "regionTag": "compute_v1_generated_RegionInstanceTemplates_Delete_sync", "segments": [ { "end": 53, @@ -47097,28 +48837,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_group_managers_update_per_instance_configs_sync.py" + "title": "compute_v1_generated_region_instance_templates_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", - "shortName": "RegionInstanceGroupsClient" + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", + "shortName": "RegionInstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.get", + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.Get", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups", - "shortName": "RegionInstanceGroups" + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", + "shortName": "RegionInstanceTemplates" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.GetRegionInstanceTemplateRequest" }, { "name": "project", @@ -47129,7 +48869,7 @@ "type": "str" }, { - "name": "instance_group", + "name": "instance_template", "type": "str" }, { @@ -47145,14 +48885,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstanceGroup", + "resultType": "google.cloud.compute_v1.types.InstanceTemplate", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_region_instance_groups_get_sync.py", + "file": "compute_v1_generated_region_instance_templates_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroups_Get_sync", + "regionTag": "compute_v1_generated_RegionInstanceTemplates_Get_sync", "segments": [ { "end": 53, @@ -47185,28 +48925,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_groups_get_sync.py" + "title": "compute_v1_generated_region_instance_templates_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", - "shortName": "RegionInstanceGroupsClient" + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", + "shortName": "RegionInstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.list_instances", + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.ListInstances", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups", - "shortName": "RegionInstanceGroups" + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", + "shortName": "RegionInstanceTemplates" }, - "shortName": "ListInstances" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListInstancesRegionInstanceGroupsRequest" + "type": "google.cloud.compute_v1.types.InsertRegionInstanceTemplateRequest" }, { "name": "project", @@ -47217,12 +48957,8 @@ "type": "str" }, { - "name": "instance_group", - "type": "str" - }, - { - "name": "region_instance_groups_list_instances_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupsListInstancesRequest" + "name": "instance_template_resource", + "type": "google.cloud.compute_v1.types.InstanceTemplate" }, { "name": "retry", @@ -47237,22 +48973,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_instance_groups.pagers.ListInstancesPager", - "shortName": "list_instances" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for ListInstances", - "file": "compute_v1_generated_region_instance_groups_list_instances_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_instance_templates_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroups_ListInstances_sync", + "regionTag": "compute_v1_generated_RegionInstanceTemplates_Insert_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -47262,43 +48998,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_groups_list_instances_sync.py" + "title": "compute_v1_generated_region_instance_templates_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", - "shortName": "RegionInstanceGroupsClient" + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", + "shortName": "RegionInstanceTemplatesClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.list", + "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.List", + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.List", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups", - "shortName": "RegionInstanceGroups" + "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", + "shortName": "RegionInstanceTemplates" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionInstanceGroupsRequest" + "type": "google.cloud.compute_v1.types.ListRegionInstanceTemplatesRequest" }, { "name": "project", @@ -47321,14 +49057,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_instance_groups.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.region_instance_templates.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_region_instance_groups_list_sync.py", + "file": "compute_v1_generated_region_instance_templates_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroups_List_sync", + "regionTag": "compute_v1_generated_RegionInstanceTemplates_List_sync", "segments": [ { "end": 53, @@ -47361,28 +49097,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_groups_list_sync.py" + "title": "compute_v1_generated_region_instance_templates_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", - "shortName": "RegionInstanceGroupsClient" + "fullName": "google.cloud.compute_v1.RegionInstancesClient", + "shortName": "RegionInstancesClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.set_named_ports", + "fullName": "google.cloud.compute_v1.RegionInstancesClient.bulk_insert", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.SetNamedPorts", + "fullName": "google.cloud.compute.v1.RegionInstances.BulkInsert", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups", - "shortName": "RegionInstanceGroups" + "fullName": "google.cloud.compute.v1.RegionInstances", + "shortName": "RegionInstances" }, - "shortName": "SetNamedPorts" + "shortName": "BulkInsert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetNamedPortsRegionInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.BulkInsertRegionInstanceRequest" }, { "name": "project", @@ -47393,12 +49129,8 @@ "type": "str" }, { - "name": "instance_group", - "type": "str" - }, - { - "name": "region_instance_groups_set_named_ports_request_resource", - "type": "google.cloud.compute_v1.types.RegionInstanceGroupsSetNamedPortsRequest" + "name": "bulk_insert_instance_resource_resource", + "type": "google.cloud.compute_v1.types.BulkInsertInstanceResource" }, { "name": "retry", @@ -47414,21 +49146,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_named_ports" + "shortName": "bulk_insert" }, - "description": "Sample for SetNamedPorts", - "file": "compute_v1_generated_region_instance_groups_set_named_ports_sync.py", + "description": "Sample for BulkInsert", + "file": "compute_v1_generated_region_instances_bulk_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroups_SetNamedPorts_sync", + "regionTag": "compute_v1_generated_RegionInstances_BulkInsert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -47438,43 +49170,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_groups_set_named_ports_sync.py" + "title": "compute_v1_generated_region_instances_bulk_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient", - "shortName": "RegionInstanceGroupsClient" + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", + "shortName": "RegionInstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceGroupsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceGroups", - "shortName": "RegionInstanceGroups" + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", + "shortName": "RegionInstantSnapshots" }, - "shortName": "TestIamPermissions" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionInstanceGroupRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionInstantSnapshotRequest" }, { "name": "project", @@ -47485,13 +49217,9 @@ "type": "str" }, { - "name": "resource", + "name": "instant_snapshot", "type": "str" }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -47505,14 +49233,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_region_instance_groups_test_iam_permissions_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_instant_snapshots_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceGroups_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_RegionInstantSnapshots_Delete_sync", "segments": [ { "end": 53, @@ -47545,28 +49273,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_groups_test_iam_permissions_sync.py" + "title": "compute_v1_generated_region_instant_snapshots_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", - "shortName": "RegionInstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", + "shortName": "RegionInstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.delete", + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Delete", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", - "shortName": "RegionInstanceTemplates" + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", + "shortName": "RegionInstantSnapshots" }, - "shortName": "Delete" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionInstanceTemplateRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyRegionInstantSnapshotRequest" }, { "name": "project", @@ -47577,7 +49305,7 @@ "type": "str" }, { - "name": "instance_template", + "name": "resource", "type": "str" }, { @@ -47593,14 +49321,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_instance_templates_delete_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_region_instant_snapshots_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceTemplates_Delete_sync", + "regionTag": "compute_v1_generated_RegionInstantSnapshots_GetIamPolicy_sync", "segments": [ { "end": 53, @@ -47633,28 +49361,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_templates_delete_sync.py" + "title": "compute_v1_generated_region_instant_snapshots_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", - "shortName": "RegionInstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", + "shortName": "RegionInstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.get", + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Get", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", - "shortName": "RegionInstanceTemplates" + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", + "shortName": "RegionInstantSnapshots" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionInstanceTemplateRequest" + "type": "google.cloud.compute_v1.types.GetRegionInstantSnapshotRequest" }, { "name": "project", @@ -47665,7 +49393,7 @@ "type": "str" }, { - "name": "instance_template", + "name": "instant_snapshot", "type": "str" }, { @@ -47681,14 +49409,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstanceTemplate", + "resultType": "google.cloud.compute_v1.types.InstantSnapshot", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_region_instance_templates_get_sync.py", + "file": "compute_v1_generated_region_instant_snapshots_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceTemplates_Get_sync", + "regionTag": "compute_v1_generated_RegionInstantSnapshots_Get_sync", "segments": [ { "end": 53, @@ -47721,28 +49449,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_templates_get_sync.py" + "title": "compute_v1_generated_region_instant_snapshots_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", - "shortName": "RegionInstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", + "shortName": "RegionInstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.insert", + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Insert", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", - "shortName": "RegionInstanceTemplates" + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", + "shortName": "RegionInstantSnapshots" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionInstanceTemplateRequest" + "type": "google.cloud.compute_v1.types.InsertRegionInstantSnapshotRequest" }, { "name": "project", @@ -47753,8 +49481,8 @@ "type": "str" }, { - "name": "instance_template_resource", - "type": "google.cloud.compute_v1.types.InstanceTemplate" + "name": "instant_snapshot_resource", + "type": "google.cloud.compute_v1.types.InstantSnapshot" }, { "name": "retry", @@ -47773,10 +49501,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_region_instance_templates_insert_sync.py", + "file": "compute_v1_generated_region_instant_snapshots_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceTemplates_Insert_sync", + "regionTag": "compute_v1_generated_RegionInstantSnapshots_Insert_sync", "segments": [ { "end": 52, @@ -47809,28 +49537,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_templates_insert_sync.py" + "title": "compute_v1_generated_region_instant_snapshots_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient", - "shortName": "RegionInstanceTemplatesClient" + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", + "shortName": "RegionInstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstanceTemplatesClient.list", + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.List", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.List", "service": { - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates", - "shortName": "RegionInstanceTemplates" + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", + "shortName": "RegionInstantSnapshots" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionInstanceTemplatesRequest" + "type": "google.cloud.compute_v1.types.ListRegionInstantSnapshotsRequest" }, { "name": "project", @@ -47853,14 +49581,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_instance_templates.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.region_instant_snapshots.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_region_instance_templates_list_sync.py", + "file": "compute_v1_generated_region_instant_snapshots_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstanceTemplates_List_sync", + "regionTag": "compute_v1_generated_RegionInstantSnapshots_List_sync", "segments": [ { "end": 53, @@ -47893,95 +49621,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instance_templates_list_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.RegionInstancesClient", - "shortName": "RegionInstancesClient" - }, - "fullName": "google.cloud.compute_v1.RegionInstancesClient.bulk_insert", - "method": { - "fullName": "google.cloud.compute.v1.RegionInstances.BulkInsert", - "service": { - "fullName": "google.cloud.compute.v1.RegionInstances", - "shortName": "RegionInstances" - }, - "shortName": "BulkInsert" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.BulkInsertRegionInstanceRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "region", - "type": "str" - }, - { - "name": "bulk_insert_instance_resource_resource", - "type": "google.cloud.compute_v1.types.BulkInsertInstanceResource" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "bulk_insert" - }, - "description": "Sample for BulkInsert", - "file": "compute_v1_generated_region_instances_bulk_insert_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstances_BulkInsert_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 49, - "start": 47, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_region_instances_bulk_insert_sync.py" + "title": "compute_v1_generated_region_instant_snapshots_list_sync.py" }, { "canonical": true, @@ -47990,19 +49630,19 @@ "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", "shortName": "RegionInstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.delete", + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Delete", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", "shortName": "RegionInstantSnapshots" }, - "shortName": "Delete" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyRegionInstantSnapshotRequest" }, { "name": "project", @@ -48013,9 +49653,13 @@ "type": "str" }, { - "name": "instant_snapshot", + "name": "resource", "type": "str" }, + { + "name": "region_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -48029,14 +49673,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_instant_snapshots_delete_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_region_instant_snapshots_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstantSnapshots_Delete_sync", + "regionTag": "compute_v1_generated_RegionInstantSnapshots_SetIamPolicy_sync", "segments": [ { "end": 53, @@ -48069,7 +49713,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instant_snapshots_delete_sync.py" + "title": "compute_v1_generated_region_instant_snapshots_set_iam_policy_sync.py" }, { "canonical": true, @@ -48078,19 +49722,19 @@ "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", "shortName": "RegionInstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetLabels", "service": { "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", "shortName": "RegionInstantSnapshots" }, - "shortName": "GetIamPolicy" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyRegionInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.SetLabelsRegionInstantSnapshotRequest" }, { "name": "project", @@ -48104,6 +49748,10 @@ "name": "resource", "type": "str" }, + { + "name": "region_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -48117,14 +49765,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_region_instant_snapshots_get_iam_policy_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_region_instant_snapshots_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstantSnapshots_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_RegionInstantSnapshots_SetLabels_sync", "segments": [ { "end": 53, @@ -48157,7 +49805,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instant_snapshots_get_iam_policy_sync.py" + "title": "compute_v1_generated_region_instant_snapshots_set_labels_sync.py" }, { "canonical": true, @@ -48166,19 +49814,19 @@ "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", "shortName": "RegionInstantSnapshotsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.get", + "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Get", + "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.TestIamPermissions", "service": { "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", "shortName": "RegionInstantSnapshots" }, - "shortName": "Get" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionInstantSnapshotRequest" }, { "name": "project", @@ -48189,9 +49837,13 @@ "type": "str" }, { - "name": "instant_snapshot", + "name": "resource", "type": "str" }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -48205,14 +49857,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.InstantSnapshot", - "shortName": "get" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_instant_snapshots_get_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_region_instant_snapshots_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstantSnapshots_Get_sync", + "regionTag": "compute_v1_generated_RegionInstantSnapshots_TestIamPermissions_sync", "segments": [ { "end": 53, @@ -48245,28 +49897,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instant_snapshots_get_sync.py" + "title": "compute_v1_generated_region_instant_snapshots_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", - "shortName": "RegionInstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", + "shortName": "RegionNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.insert", + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.attach_network_endpoints", "method": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Insert", + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.AttachNetworkEndpoints", "service": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", - "shortName": "RegionInstantSnapshots" + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", + "shortName": "RegionNetworkEndpointGroups" }, - "shortName": "Insert" + "shortName": "AttachNetworkEndpoints" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.AttachNetworkEndpointsRegionNetworkEndpointGroupRequest" }, { "name": "project", @@ -48277,8 +49929,12 @@ "type": "str" }, { - "name": "instant_snapshot_resource", - "type": "google.cloud.compute_v1.types.InstantSnapshot" + "name": "network_endpoint_group", + "type": "str" + }, + { + "name": "region_network_endpoint_groups_attach_endpoints_request_resource", + "type": "google.cloud.compute_v1.types.RegionNetworkEndpointGroupsAttachEndpointsRequest" }, { "name": "retry", @@ -48294,21 +49950,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "attach_network_endpoints" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_instant_snapshots_insert_sync.py", + "description": "Sample for AttachNetworkEndpoints", + "file": "compute_v1_generated_region_network_endpoint_groups_attach_network_endpoints_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstantSnapshots_Insert_sync", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_AttachNetworkEndpoints_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -48318,43 +49974,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instant_snapshots_insert_sync.py" + "title": "compute_v1_generated_region_network_endpoint_groups_attach_network_endpoints_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", - "shortName": "RegionInstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", + "shortName": "RegionNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.list", + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.List", + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", - "shortName": "RegionInstantSnapshots" + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", + "shortName": "RegionNetworkEndpointGroups" }, - "shortName": "List" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionInstantSnapshotsRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionNetworkEndpointGroupRequest" }, { "name": "project", @@ -48364,6 +50020,10 @@ "name": "region", "type": "str" }, + { + "name": "network_endpoint_group", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -48377,14 +50037,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_instant_snapshots.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_instant_snapshots_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_network_endpoint_groups_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstantSnapshots_List_sync", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Delete_sync", "segments": [ { "end": 53, @@ -48402,43 +50062,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instant_snapshots_list_sync.py" + "title": "compute_v1_generated_region_network_endpoint_groups_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", - "shortName": "RegionInstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", + "shortName": "RegionNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.detach_network_endpoints", "method": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.DetachNetworkEndpoints", "service": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", - "shortName": "RegionInstantSnapshots" + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", + "shortName": "RegionNetworkEndpointGroups" }, - "shortName": "SetIamPolicy" + "shortName": "DetachNetworkEndpoints" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyRegionInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.DetachNetworkEndpointsRegionNetworkEndpointGroupRequest" }, { "name": "project", @@ -48449,12 +50109,12 @@ "type": "str" }, { - "name": "resource", + "name": "network_endpoint_group", "type": "str" }, { - "name": "region_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" + "name": "region_network_endpoint_groups_detach_endpoints_request_resource", + "type": "google.cloud.compute_v1.types.RegionNetworkEndpointGroupsDetachEndpointsRequest" }, { "name": "retry", @@ -48469,14 +50129,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "detach_network_endpoints" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_region_instant_snapshots_set_iam_policy_sync.py", + "description": "Sample for DetachNetworkEndpoints", + "file": "compute_v1_generated_region_network_endpoint_groups_detach_network_endpoints_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstantSnapshots_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_DetachNetworkEndpoints_sync", "segments": [ { "end": 53, @@ -48509,28 +50169,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instant_snapshots_set_iam_policy_sync.py" + "title": "compute_v1_generated_region_network_endpoint_groups_detach_network_endpoints_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", - "shortName": "RegionInstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", + "shortName": "RegionNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.set_labels", + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetLabels", + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", - "shortName": "RegionInstantSnapshots" + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", + "shortName": "RegionNetworkEndpointGroups" }, - "shortName": "SetLabels" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsRegionInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.GetRegionNetworkEndpointGroupRequest" }, { "name": "project", @@ -48541,13 +50201,9 @@ "type": "str" }, { - "name": "resource", + "name": "network_endpoint_group", "type": "str" }, - { - "name": "region_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -48561,14 +50217,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "resultType": "google.cloud.compute_v1.types.NetworkEndpointGroup", + "shortName": "get" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_region_instant_snapshots_set_labels_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_network_endpoint_groups_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstantSnapshots_SetLabels_sync", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Get_sync", "segments": [ { "end": 53, @@ -48601,28 +50257,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instant_snapshots_set_labels_sync.py" + "title": "compute_v1_generated_region_network_endpoint_groups_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient", - "shortName": "RegionInstantSnapshotsClient" + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", + "shortName": "RegionNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionInstantSnapshotsClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots", - "shortName": "RegionInstantSnapshots" + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", + "shortName": "RegionNetworkEndpointGroups" }, - "shortName": "TestIamPermissions" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionInstantSnapshotRequest" + "type": "google.cloud.compute_v1.types.InsertRegionNetworkEndpointGroupRequest" }, { "name": "project", @@ -48633,12 +50289,8 @@ "type": "str" }, { - "name": "resource", - "type": "str" - }, - { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "network_endpoint_group_resource", + "type": "google.cloud.compute_v1.types.NetworkEndpointGroup" }, { "name": "retry", @@ -48653,22 +50305,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_region_instant_snapshots_test_iam_permissions_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_network_endpoint_groups_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionInstantSnapshots_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Insert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -48678,22 +50330,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_instant_snapshots_test_iam_permissions_sync.py" + "title": "compute_v1_generated_region_network_endpoint_groups_insert_sync.py" }, { "canonical": true, @@ -48702,19 +50354,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", "shortName": "RegionNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.attach_network_endpoints", + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.list_network_endpoints", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.AttachNetworkEndpoints", + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.ListNetworkEndpoints", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", "shortName": "RegionNetworkEndpointGroups" }, - "shortName": "AttachNetworkEndpoints" + "shortName": "ListNetworkEndpoints" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AttachNetworkEndpointsRegionNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.ListNetworkEndpointsRegionNetworkEndpointGroupsRequest" }, { "name": "project", @@ -48728,10 +50380,6 @@ "name": "network_endpoint_group", "type": "str" }, - { - "name": "region_network_endpoint_groups_attach_endpoints_request_resource", - "type": "google.cloud.compute_v1.types.RegionNetworkEndpointGroupsAttachEndpointsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -48745,22 +50393,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "attach_network_endpoints" + "resultType": "google.cloud.compute_v1.services.region_network_endpoint_groups.pagers.ListNetworkEndpointsPager", + "shortName": "list_network_endpoints" }, - "description": "Sample for AttachNetworkEndpoints", - "file": "compute_v1_generated_region_network_endpoint_groups_attach_network_endpoints_sync.py", + "description": "Sample for ListNetworkEndpoints", + "file": "compute_v1_generated_region_network_endpoint_groups_list_network_endpoints_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_AttachNetworkEndpoints_sync", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_ListNetworkEndpoints_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -48780,12 +50428,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_endpoint_groups_attach_network_endpoints_sync.py" + "title": "compute_v1_generated_region_network_endpoint_groups_list_network_endpoints_sync.py" }, { "canonical": true, @@ -48794,19 +50442,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", "shortName": "RegionNetworkEndpointGroupsClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.delete", + "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Delete", + "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.List", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", "shortName": "RegionNetworkEndpointGroups" }, - "shortName": "Delete" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.ListRegionNetworkEndpointGroupsRequest" }, { "name": "project", @@ -48816,10 +50464,6 @@ "name": "region", "type": "str" }, - { - "name": "network_endpoint_group", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -48833,14 +50477,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.services.region_network_endpoint_groups.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_network_endpoint_groups_delete_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_network_endpoint_groups_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Delete_sync", + "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_List_sync", "segments": [ { "end": 53, @@ -48858,43 +50502,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_endpoint_groups_delete_sync.py" + "title": "compute_v1_generated_region_network_endpoint_groups_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", - "shortName": "RegionNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.detach_network_endpoints", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.add_association", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.DetachNetworkEndpoints", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddAssociation", "service": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", - "shortName": "RegionNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "DetachNetworkEndpoints" + "shortName": "AddAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DetachNetworkEndpointsRegionNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.AddAssociationRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -48905,12 +50549,12 @@ "type": "str" }, { - "name": "network_endpoint_group", + "name": "firewall_policy", "type": "str" }, { - "name": "region_network_endpoint_groups_detach_endpoints_request_resource", - "type": "google.cloud.compute_v1.types.RegionNetworkEndpointGroupsDetachEndpointsRequest" + "name": "firewall_policy_association_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyAssociation" }, { "name": "retry", @@ -48926,13 +50570,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "detach_network_endpoints" + "shortName": "add_association" }, - "description": "Sample for DetachNetworkEndpoints", - "file": "compute_v1_generated_region_network_endpoint_groups_detach_network_endpoints_sync.py", + "description": "Sample for AddAssociation", + "file": "compute_v1_generated_region_network_firewall_policies_add_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_DetachNetworkEndpoints_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_AddAssociation_sync", "segments": [ { "end": 53, @@ -48965,28 +50609,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_endpoint_groups_detach_network_endpoints_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_add_association_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", - "shortName": "RegionNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.get", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.add_rule", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Get", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddRule", "service": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", - "shortName": "RegionNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "Get" + "shortName": "AddRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.AddRuleRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -48997,9 +50641,13 @@ "type": "str" }, { - "name": "network_endpoint_group", + "name": "firewall_policy", "type": "str" }, + { + "name": "firewall_policy_rule_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -49013,14 +50661,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NetworkEndpointGroup", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_rule" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_network_endpoint_groups_get_sync.py", + "description": "Sample for AddRule", + "file": "compute_v1_generated_region_network_firewall_policies_add_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Get_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_AddRule_sync", "segments": [ { "end": 53, @@ -49053,28 +50701,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_endpoint_groups_get_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_add_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", - "shortName": "RegionNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.insert", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.clone_rules", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Insert", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.CloneRules", "service": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", - "shortName": "RegionNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "Insert" + "shortName": "CloneRules" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionNetworkEndpointGroupRequest" + "type": "google.cloud.compute_v1.types.CloneRulesRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -49085,8 +50733,8 @@ "type": "str" }, { - "name": "network_endpoint_group_resource", - "type": "google.cloud.compute_v1.types.NetworkEndpointGroup" + "name": "firewall_policy", + "type": "str" }, { "name": "retry", @@ -49102,109 +50750,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "clone_rules" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_network_endpoint_groups_insert_sync.py", + "description": "Sample for CloneRules", + "file": "compute_v1_generated_region_network_firewall_policies_clone_rules_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Insert_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_CloneRules_sync", "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 49, - "start": 47, - "type": "REQUEST_EXECUTION" - }, { "end": 53, - "start": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_region_network_endpoint_groups_insert_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", - "shortName": "RegionNetworkEndpointGroupsClient" - }, - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.list_network_endpoints", - "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.ListNetworkEndpoints", - "service": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", - "shortName": "RegionNetworkEndpointGroups" - }, - "shortName": "ListNetworkEndpoints" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.ListNetworkEndpointsRegionNetworkEndpointGroupsRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "region", - "type": "str" - }, - { - "name": "network_endpoint_group", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.cloud.compute_v1.services.region_network_endpoint_groups.pagers.ListNetworkEndpointsPager", - "shortName": "list_network_endpoints" - }, - "description": "Sample for ListNetworkEndpoints", - "file": "compute_v1_generated_region_network_endpoint_groups_list_network_endpoints_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_ListNetworkEndpoints_sync", - "segments": [ - { - "end": 54, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 53, "start": 27, "type": "SHORT" }, @@ -49224,33 +50784,33 @@ "type": "REQUEST_EXECUTION" }, { - "end": 55, + "end": 54, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_endpoint_groups_list_network_endpoints_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_clone_rules_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient", - "shortName": "RegionNetworkEndpointGroupsClient" + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", + "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkEndpointGroupsClient.list", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.List", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups", - "shortName": "RegionNetworkEndpointGroups" + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", + "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "List" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionNetworkEndpointGroupsRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -49260,6 +50820,10 @@ "name": "region", "type": "str" }, + { + "name": "firewall_policy", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -49273,14 +50837,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_network_endpoint_groups.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_network_endpoint_groups_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_network_firewall_policies_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_List_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Delete_sync", "segments": [ { "end": 53, @@ -49298,22 +50862,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_endpoint_groups_list_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_delete_sync.py" }, { "canonical": true, @@ -49322,19 +50886,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.add_association", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_association", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddAssociation", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetAssociation", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "AddAssociation" + "shortName": "GetAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddAssociationRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetAssociationRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -49348,10 +50912,6 @@ "name": "firewall_policy", "type": "str" }, - { - "name": "firewall_policy_association_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyAssociation" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -49365,14 +50925,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_association" + "resultType": "google.cloud.compute_v1.types.FirewallPolicyAssociation", + "shortName": "get_association" }, - "description": "Sample for AddAssociation", - "file": "compute_v1_generated_region_network_firewall_policies_add_association_sync.py", + "description": "Sample for GetAssociation", + "file": "compute_v1_generated_region_network_firewall_policies_get_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_AddAssociation_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetAssociation_sync", "segments": [ { "end": 53, @@ -49405,7 +50965,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_add_association_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_get_association_sync.py" }, { "canonical": true, @@ -49414,19 +50974,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.add_rule", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_effective_firewalls", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddRule", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetEffectiveFirewalls", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "AddRule" + "shortName": "GetEffectiveFirewalls" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddRuleRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -49437,13 +50997,9 @@ "type": "str" }, { - "name": "firewall_policy", + "name": "network", "type": "str" }, - { - "name": "firewall_policy_rule_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyRule" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -49457,14 +51013,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_rule" + "resultType": "google.cloud.compute_v1.types.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse", + "shortName": "get_effective_firewalls" }, - "description": "Sample for AddRule", - "file": "compute_v1_generated_region_network_firewall_policies_add_rule_sync.py", + "description": "Sample for GetEffectiveFirewalls", + "file": "compute_v1_generated_region_network_firewall_policies_get_effective_firewalls_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_AddRule_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetEffectiveFirewalls_sync", "segments": [ { "end": 53, @@ -49497,7 +51053,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_add_rule_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_get_effective_firewalls_sync.py" }, { "canonical": true, @@ -49506,19 +51062,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.clone_rules", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.CloneRules", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "CloneRules" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.CloneRulesRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -49529,7 +51085,7 @@ "type": "str" }, { - "name": "firewall_policy", + "name": "resource", "type": "str" }, { @@ -49545,14 +51101,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "clone_rules" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for CloneRules", - "file": "compute_v1_generated_region_network_firewall_policies_clone_rules_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_region_network_firewall_policies_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_CloneRules_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetIamPolicy_sync", "segments": [ { "end": 53, @@ -49585,7 +51141,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_clone_rules_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_get_iam_policy_sync.py" }, { "canonical": true, @@ -49594,19 +51150,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.delete", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_rule", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Delete", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetRule", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "Delete" + "shortName": "GetRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetRuleRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -49633,14 +51189,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", + "shortName": "get_rule" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_network_firewall_policies_delete_sync.py", + "description": "Sample for GetRule", + "file": "compute_v1_generated_region_network_firewall_policies_get_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Delete_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetRule_sync", "segments": [ { "end": 53, @@ -49673,7 +51229,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_delete_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_get_rule_sync.py" }, { "canonical": true, @@ -49682,19 +51238,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_association", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetAssociation", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Get", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "GetAssociation" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetAssociationRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -49721,14 +51277,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicyAssociation", - "shortName": "get_association" + "resultType": "google.cloud.compute_v1.types.FirewallPolicy", + "shortName": "get" }, - "description": "Sample for GetAssociation", - "file": "compute_v1_generated_region_network_firewall_policies_get_association_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_network_firewall_policies_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetAssociation_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Get_sync", "segments": [ { "end": 53, @@ -49761,7 +51317,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_get_association_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_get_sync.py" }, { "canonical": true, @@ -49770,19 +51326,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_effective_firewalls", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetEffectiveFirewalls", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Insert", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "GetEffectiveFirewalls" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.InsertRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -49793,8 +51349,8 @@ "type": "str" }, { - "name": "network", - "type": "str" + "name": "firewall_policy_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicy" }, { "name": "retry", @@ -49809,22 +51365,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse", - "shortName": "get_effective_firewalls" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for GetEffectiveFirewalls", - "file": "compute_v1_generated_region_network_firewall_policies_get_effective_firewalls_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_network_firewall_policies_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetEffectiveFirewalls_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Insert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -49834,22 +51390,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_get_effective_firewalls_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_insert_sync.py" }, { "canonical": true, @@ -49858,19 +51414,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_iam_policy", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.List", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "GetIamPolicy" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetIamPolicyRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.ListRegionNetworkFirewallPoliciesRequest" }, { "name": "project", @@ -49880,10 +51436,6 @@ "name": "region", "type": "str" }, - { - "name": "resource", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -49897,14 +51449,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "get_iam_policy" + "resultType": "google.cloud.compute_v1.services.region_network_firewall_policies.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for GetIamPolicy", - "file": "compute_v1_generated_region_network_firewall_policies_get_iam_policy_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_network_firewall_policies_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetIamPolicy_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_List_sync", "segments": [ { "end": 53, @@ -49922,22 +51474,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_get_iam_policy_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_list_sync.py" }, { "canonical": true, @@ -49946,19 +51498,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get_rule", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.patch_rule", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetRule", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.PatchRule", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "GetRule" + "shortName": "PatchRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRuleRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchRuleRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -49972,6 +51524,10 @@ "name": "firewall_policy", "type": "str" }, + { + "name": "firewall_policy_rule_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicyRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -49985,14 +51541,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicyRule", - "shortName": "get_rule" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_rule" }, - "description": "Sample for GetRule", - "file": "compute_v1_generated_region_network_firewall_policies_get_rule_sync.py", + "description": "Sample for PatchRule", + "file": "compute_v1_generated_region_network_firewall_policies_patch_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetRule_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_PatchRule_sync", "segments": [ { "end": 53, @@ -50025,7 +51581,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_get_rule_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_patch_rule_sync.py" }, { "canonical": true, @@ -50034,19 +51590,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.get", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Get", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Patch", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "Get" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -50060,6 +51616,10 @@ "name": "firewall_policy", "type": "str" }, + { + "name": "firewall_policy_resource", + "type": "google.cloud.compute_v1.types.FirewallPolicy" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -50073,14 +51633,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.FirewallPolicy", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_network_firewall_policies_get_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_region_network_firewall_policies_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Get_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Patch_sync", "segments": [ { "end": 53, @@ -50113,7 +51673,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_get_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_patch_sync.py" }, { "canonical": true, @@ -50122,19 +51682,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.insert", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.remove_association", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Insert", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveAssociation", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "Insert" + "shortName": "RemoveAssociation" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.RemoveAssociationRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -50145,91 +51705,7 @@ "type": "str" }, { - "name": "firewall_policy_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicy" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" - }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_network_firewall_policies_insert_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Insert_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 49, - "start": 47, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_region_network_firewall_policies_insert_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", - "shortName": "RegionNetworkFirewallPoliciesClient" - }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.list", - "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.List", - "service": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", - "shortName": "RegionNetworkFirewallPolicies" - }, - "shortName": "List" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionNetworkFirewallPoliciesRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "region", + "name": "firewall_policy", "type": "str" }, { @@ -50245,14 +51721,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_network_firewall_policies.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "remove_association" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_network_firewall_policies_list_sync.py", + "description": "Sample for RemoveAssociation", + "file": "compute_v1_generated_region_network_firewall_policies_remove_association_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_List_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_RemoveAssociation_sync", "segments": [ { "end": 53, @@ -50270,22 +51746,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_list_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_remove_association_sync.py" }, { "canonical": true, @@ -50294,19 +51770,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.patch_rule", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.remove_rule", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.PatchRule", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveRule", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "PatchRule" + "shortName": "RemoveRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRuleRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.RemoveRuleRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -50320,10 +51796,6 @@ "name": "firewall_policy", "type": "str" }, - { - "name": "firewall_policy_rule_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicyRule" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -50338,13 +51810,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch_rule" + "shortName": "remove_rule" }, - "description": "Sample for PatchRule", - "file": "compute_v1_generated_region_network_firewall_policies_patch_rule_sync.py", + "description": "Sample for RemoveRule", + "file": "compute_v1_generated_region_network_firewall_policies_remove_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_PatchRule_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_RemoveRule_sync", "segments": [ { "end": 53, @@ -50377,7 +51849,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_patch_rule_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_remove_rule_sync.py" }, { "canonical": true, @@ -50386,19 +51858,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.patch", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Patch", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.SetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "Patch" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -50409,12 +51881,12 @@ "type": "str" }, { - "name": "firewall_policy", + "name": "resource", "type": "str" }, { - "name": "firewall_policy_resource", - "type": "google.cloud.compute_v1.types.FirewallPolicy" + "name": "region_set_policy_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" }, { "name": "retry", @@ -50429,14 +51901,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_region_network_firewall_policies_patch_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_region_network_firewall_policies_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Patch_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_SetIamPolicy_sync", "segments": [ { "end": 53, @@ -50469,7 +51941,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_patch_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_set_iam_policy_sync.py" }, { "canonical": true, @@ -50478,19 +51950,19 @@ "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", "shortName": "RegionNetworkFirewallPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.remove_association", + "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveAssociation", + "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.TestIamPermissions", "service": { "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", "shortName": "RegionNetworkFirewallPolicies" }, - "shortName": "RemoveAssociation" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveAssociationRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionNetworkFirewallPolicyRequest" }, { "name": "project", @@ -50501,9 +51973,13 @@ "type": "str" }, { - "name": "firewall_policy", + "name": "resource", "type": "str" }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -50517,14 +51993,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_association" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for RemoveAssociation", - "file": "compute_v1_generated_region_network_firewall_policies_remove_association_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_region_network_firewall_policies_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_RemoveAssociation_sync", + "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_TestIamPermissions_sync", "segments": [ { "end": 53, @@ -50557,28 +52033,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_remove_association_sync.py" + "title": "compute_v1_generated_region_network_firewall_policies_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", - "shortName": "RegionNetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", + "shortName": "RegionNotificationEndpointsClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.remove_rule", + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveRule", + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", - "shortName": "RegionNetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", + "shortName": "RegionNotificationEndpoints" }, - "shortName": "RemoveRule" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveRuleRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionNotificationEndpointRequest" }, { "name": "project", @@ -50589,7 +52065,7 @@ "type": "str" }, { - "name": "firewall_policy", + "name": "notification_endpoint", "type": "str" }, { @@ -50606,13 +52082,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_rule" + "shortName": "delete" }, - "description": "Sample for RemoveRule", - "file": "compute_v1_generated_region_network_firewall_policies_remove_rule_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_notification_endpoints_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_RemoveRule_sync", + "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Delete_sync", "segments": [ { "end": 53, @@ -50645,28 +52121,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_remove_rule_sync.py" + "title": "compute_v1_generated_region_notification_endpoints_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", - "shortName": "RegionNetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", + "shortName": "RegionNotificationEndpointsClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.set_iam_policy", + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", - "shortName": "RegionNetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", + "shortName": "RegionNotificationEndpoints" }, - "shortName": "SetIamPolicy" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetIamPolicyRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.GetRegionNotificationEndpointRequest" }, { "name": "project", @@ -50677,13 +52153,9 @@ "type": "str" }, { - "name": "resource", + "name": "notification_endpoint", "type": "str" }, - { - "name": "region_set_policy_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetPolicyRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -50697,14 +52169,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Policy", - "shortName": "set_iam_policy" + "resultType": "google.cloud.compute_v1.types.NotificationEndpoint", + "shortName": "get" }, - "description": "Sample for SetIamPolicy", - "file": "compute_v1_generated_region_network_firewall_policies_set_iam_policy_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_notification_endpoints_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_SetIamPolicy_sync", + "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Get_sync", "segments": [ { "end": 53, @@ -50737,28 +52209,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_set_iam_policy_sync.py" + "title": "compute_v1_generated_region_notification_endpoints_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient", - "shortName": "RegionNetworkFirewallPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", + "shortName": "RegionNotificationEndpointsClient" }, - "fullName": "google.cloud.compute_v1.RegionNetworkFirewallPoliciesClient.test_iam_permissions", + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies", - "shortName": "RegionNetworkFirewallPolicies" + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", + "shortName": "RegionNotificationEndpoints" }, - "shortName": "TestIamPermissions" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.TestIamPermissionsRegionNetworkFirewallPolicyRequest" + "type": "google.cloud.compute_v1.types.InsertRegionNotificationEndpointRequest" }, { "name": "project", @@ -50769,12 +52241,92 @@ "type": "str" }, { - "name": "resource", + "name": "notification_endpoint_resource", + "type": "google.cloud.compute_v1.types.NotificationEndpoint" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_notification_endpoints_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Insert_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_notification_endpoints_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", + "shortName": "RegionNotificationEndpointsClient" + }, + "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", + "shortName": "RegionNotificationEndpoints" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionNotificationEndpointsRequest" + }, + { + "name": "project", "type": "str" }, { - "name": "test_permissions_request_resource", - "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + "name": "region", + "type": "str" }, { "name": "retry", @@ -50789,14 +52341,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", - "shortName": "test_iam_permissions" + "resultType": "google.cloud.compute_v1.services.region_notification_endpoints.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for TestIamPermissions", - "file": "compute_v1_generated_region_network_firewall_policies_test_iam_permissions_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_notification_endpoints_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_TestIamPermissions_sync", + "regionTag": "compute_v1_generated_RegionNotificationEndpoints_List_sync", "segments": [ { "end": 53, @@ -50814,43 +52366,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_network_firewall_policies_test_iam_permissions_sync.py" + "title": "compute_v1_generated_region_notification_endpoints_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", - "shortName": "RegionNotificationEndpointsClient" + "fullName": "google.cloud.compute_v1.RegionOperationsClient", + "shortName": "RegionOperationsClient" }, - "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.delete", + "fullName": "google.cloud.compute_v1.RegionOperationsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Delete", + "fullName": "google.cloud.compute.v1.RegionOperations.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", - "shortName": "RegionNotificationEndpoints" + "fullName": "google.cloud.compute.v1.RegionOperations", + "shortName": "RegionOperations" }, "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionNotificationEndpointRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionOperationRequest" }, { "name": "project", @@ -50861,7 +52413,7 @@ "type": "str" }, { - "name": "notification_endpoint", + "name": "operation", "type": "str" }, { @@ -50877,14 +52429,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", + "resultType": "google.cloud.compute_v1.types.DeleteRegionOperationResponse", "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_region_notification_endpoints_delete_sync.py", + "file": "compute_v1_generated_region_operations_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Delete_sync", + "regionTag": "compute_v1_generated_RegionOperations_Delete_sync", "segments": [ { "end": 53, @@ -50917,28 +52469,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_notification_endpoints_delete_sync.py" + "title": "compute_v1_generated_region_operations_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", - "shortName": "RegionNotificationEndpointsClient" + "fullName": "google.cloud.compute_v1.RegionOperationsClient", + "shortName": "RegionOperationsClient" }, - "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.get", + "fullName": "google.cloud.compute_v1.RegionOperationsClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Get", + "fullName": "google.cloud.compute.v1.RegionOperations.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", - "shortName": "RegionNotificationEndpoints" + "fullName": "google.cloud.compute.v1.RegionOperations", + "shortName": "RegionOperations" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionNotificationEndpointRequest" + "type": "google.cloud.compute_v1.types.GetRegionOperationRequest" }, { "name": "project", @@ -50949,7 +52501,7 @@ "type": "str" }, { - "name": "notification_endpoint", + "name": "operation", "type": "str" }, { @@ -50965,14 +52517,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.NotificationEndpoint", + "resultType": "google.cloud.compute_v1.types.Operation", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_region_notification_endpoints_get_sync.py", + "file": "compute_v1_generated_region_operations_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Get_sync", + "regionTag": "compute_v1_generated_RegionOperations_Get_sync", "segments": [ { "end": 53, @@ -51005,116 +52557,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_notification_endpoints_get_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", - "shortName": "RegionNotificationEndpointsClient" - }, - "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.insert", - "method": { - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Insert", - "service": { - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", - "shortName": "RegionNotificationEndpoints" - }, - "shortName": "Insert" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionNotificationEndpointRequest" - }, - { - "name": "project", - "type": "str" - }, - { - "name": "region", - "type": "str" - }, - { - "name": "notification_endpoint_resource", - "type": "google.cloud.compute_v1.types.NotificationEndpoint" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, Union[str, bytes]]]" - } - ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" - }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_notification_endpoints_insert_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Insert_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 49, - "start": 47, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "compute_v1_generated_region_notification_endpoints_insert_sync.py" + "title": "compute_v1_generated_region_operations_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient", - "shortName": "RegionNotificationEndpointsClient" + "fullName": "google.cloud.compute_v1.RegionOperationsClient", + "shortName": "RegionOperationsClient" }, - "fullName": "google.cloud.compute_v1.RegionNotificationEndpointsClient.list", + "fullName": "google.cloud.compute_v1.RegionOperationsClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.List", + "fullName": "google.cloud.compute.v1.RegionOperations.List", "service": { - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints", - "shortName": "RegionNotificationEndpoints" + "fullName": "google.cloud.compute.v1.RegionOperations", + "shortName": "RegionOperations" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionNotificationEndpointsRequest" + "type": "google.cloud.compute_v1.types.ListRegionOperationsRequest" }, { "name": "project", @@ -51137,14 +52601,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_notification_endpoints.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.region_operations.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_region_notification_endpoints_list_sync.py", + "file": "compute_v1_generated_region_operations_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_List_sync", + "regionTag": "compute_v1_generated_RegionOperations_List_sync", "segments": [ { "end": 53, @@ -51177,7 +52641,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_notification_endpoints_list_sync.py" + "title": "compute_v1_generated_region_operations_list_sync.py" }, { "canonical": true, @@ -51186,19 +52650,19 @@ "fullName": "google.cloud.compute_v1.RegionOperationsClient", "shortName": "RegionOperationsClient" }, - "fullName": "google.cloud.compute_v1.RegionOperationsClient.delete", + "fullName": "google.cloud.compute_v1.RegionOperationsClient.wait", "method": { - "fullName": "google.cloud.compute.v1.RegionOperations.Delete", + "fullName": "google.cloud.compute.v1.RegionOperations.Wait", "service": { "fullName": "google.cloud.compute.v1.RegionOperations", "shortName": "RegionOperations" }, - "shortName": "Delete" + "shortName": "Wait" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionOperationRequest" + "type": "google.cloud.compute_v1.types.WaitRegionOperationRequest" }, { "name": "project", @@ -51225,14 +52689,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.DeleteRegionOperationResponse", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.Operation", + "shortName": "wait" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_operations_delete_sync.py", + "description": "Sample for Wait", + "file": "compute_v1_generated_region_operations_wait_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionOperations_Delete_sync", + "regionTag": "compute_v1_generated_RegionOperations_Wait_sync", "segments": [ { "end": 53, @@ -51265,28 +52729,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_operations_delete_sync.py" + "title": "compute_v1_generated_region_operations_wait_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionOperationsClient", - "shortName": "RegionOperationsClient" + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", + "shortName": "RegionSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionOperationsClient.get", + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.add_rule", "method": { - "fullName": "google.cloud.compute.v1.RegionOperations.Get", + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.AddRule", "service": { - "fullName": "google.cloud.compute.v1.RegionOperations", - "shortName": "RegionOperations" + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", + "shortName": "RegionSecurityPolicies" }, - "shortName": "Get" + "shortName": "AddRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionOperationRequest" + "type": "google.cloud.compute_v1.types.AddRuleRegionSecurityPolicyRequest" }, { "name": "project", @@ -51297,9 +52761,13 @@ "type": "str" }, { - "name": "operation", + "name": "security_policy", "type": "str" }, + { + "name": "security_policy_rule_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicyRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -51313,14 +52781,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Operation", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "add_rule" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_operations_get_sync.py", + "description": "Sample for AddRule", + "file": "compute_v1_generated_region_security_policies_add_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionOperations_Get_sync", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_AddRule_sync", "segments": [ { "end": 53, @@ -51353,28 +52821,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_operations_get_sync.py" + "title": "compute_v1_generated_region_security_policies_add_rule_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionOperationsClient", - "shortName": "RegionOperationsClient" + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", + "shortName": "RegionSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionOperationsClient.list", + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionOperations.List", + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionOperations", - "shortName": "RegionOperations" + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", + "shortName": "RegionSecurityPolicies" }, - "shortName": "List" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionOperationsRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionSecurityPolicyRequest" }, { "name": "project", @@ -51384,6 +52852,10 @@ "name": "region", "type": "str" }, + { + "name": "security_policy", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -51397,14 +52869,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_operations.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_operations_list_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_security_policies_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionOperations_List_sync", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_Delete_sync", "segments": [ { "end": 53, @@ -51422,43 +52894,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_operations_list_sync.py" + "title": "compute_v1_generated_region_security_policies_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionOperationsClient", - "shortName": "RegionOperationsClient" + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", + "shortName": "RegionSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionOperationsClient.wait", + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.get_rule", "method": { - "fullName": "google.cloud.compute.v1.RegionOperations.Wait", + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.GetRule", "service": { - "fullName": "google.cloud.compute.v1.RegionOperations", - "shortName": "RegionOperations" + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", + "shortName": "RegionSecurityPolicies" }, - "shortName": "Wait" + "shortName": "GetRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.WaitRegionOperationRequest" + "type": "google.cloud.compute_v1.types.GetRuleRegionSecurityPolicyRequest" }, { "name": "project", @@ -51469,7 +52941,7 @@ "type": "str" }, { - "name": "operation", + "name": "security_policy", "type": "str" }, { @@ -51485,14 +52957,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Operation", - "shortName": "wait" + "resultType": "google.cloud.compute_v1.types.SecurityPolicyRule", + "shortName": "get_rule" }, - "description": "Sample for Wait", - "file": "compute_v1_generated_region_operations_wait_sync.py", + "description": "Sample for GetRule", + "file": "compute_v1_generated_region_security_policies_get_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionOperations_Wait_sync", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_GetRule_sync", "segments": [ { "end": 53, @@ -51525,7 +52997,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_operations_wait_sync.py" + "title": "compute_v1_generated_region_security_policies_get_rule_sync.py" }, { "canonical": true, @@ -51534,19 +53006,19 @@ "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", "shortName": "RegionSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.add_rule", + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.AddRule", + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Get", "service": { "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", "shortName": "RegionSecurityPolicies" }, - "shortName": "AddRule" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AddRuleRegionSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.GetRegionSecurityPolicyRequest" }, { "name": "project", @@ -51560,10 +53032,6 @@ "name": "security_policy", "type": "str" }, - { - "name": "security_policy_rule_resource", - "type": "google.cloud.compute_v1.types.SecurityPolicyRule" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -51577,14 +53045,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "add_rule" + "resultType": "google.cloud.compute_v1.types.SecurityPolicy", + "shortName": "get" }, - "description": "Sample for AddRule", - "file": "compute_v1_generated_region_security_policies_add_rule_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_security_policies_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_AddRule_sync", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_Get_sync", "segments": [ { "end": 53, @@ -51617,7 +53085,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_add_rule_sync.py" + "title": "compute_v1_generated_region_security_policies_get_sync.py" }, { "canonical": true, @@ -51626,19 +53094,19 @@ "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", "shortName": "RegionSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.delete", + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Delete", + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Insert", "service": { "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", "shortName": "RegionSecurityPolicies" }, - "shortName": "Delete" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.InsertRegionSecurityPolicyRequest" }, { "name": "project", @@ -51649,8 +53117,8 @@ "type": "str" }, { - "name": "security_policy", - "type": "str" + "name": "security_policy_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicy" }, { "name": "retry", @@ -51666,13 +53134,97 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "insert" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_security_policies_delete_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_security_policies_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_Delete_sync", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_Insert_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_security_policies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", + "shortName": "RegionSecurityPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", + "shortName": "RegionSecurityPolicies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionSecurityPoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.services.region_security_policies.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_region_security_policies_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_List_sync", "segments": [ { "end": 53, @@ -51690,22 +53242,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_delete_sync.py" + "title": "compute_v1_generated_region_security_policies_list_sync.py" }, { "canonical": true, @@ -51714,19 +53266,19 @@ "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", "shortName": "RegionSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.get_rule", + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.patch_rule", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.GetRule", + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.PatchRule", "service": { "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", "shortName": "RegionSecurityPolicies" }, - "shortName": "GetRule" + "shortName": "PatchRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRuleRegionSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchRuleRegionSecurityPolicyRequest" }, { "name": "project", @@ -51740,6 +53292,10 @@ "name": "security_policy", "type": "str" }, + { + "name": "security_policy_rule_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicyRule" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -51753,14 +53309,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SecurityPolicyRule", - "shortName": "get_rule" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch_rule" }, - "description": "Sample for GetRule", - "file": "compute_v1_generated_region_security_policies_get_rule_sync.py", + "description": "Sample for PatchRule", + "file": "compute_v1_generated_region_security_policies_patch_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_GetRule_sync", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_PatchRule_sync", "segments": [ { "end": 53, @@ -51793,7 +53349,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_get_rule_sync.py" + "title": "compute_v1_generated_region_security_policies_patch_rule_sync.py" }, { "canonical": true, @@ -51802,19 +53358,19 @@ "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", "shortName": "RegionSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.get", + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Get", + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Patch", "service": { "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", "shortName": "RegionSecurityPolicies" }, - "shortName": "Get" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchRegionSecurityPolicyRequest" }, { "name": "project", @@ -51828,6 +53384,10 @@ "name": "security_policy", "type": "str" }, + { + "name": "security_policy_resource", + "type": "google.cloud.compute_v1.types.SecurityPolicy" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -51841,14 +53401,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SecurityPolicy", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "patch" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_security_policies_get_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_region_security_policies_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_Get_sync", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_Patch_sync", "segments": [ { "end": 53, @@ -51881,7 +53441,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_get_sync.py" + "title": "compute_v1_generated_region_security_policies_patch_sync.py" }, { "canonical": true, @@ -51890,19 +53450,19 @@ "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", "shortName": "RegionSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.insert", + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.remove_rule", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Insert", + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.RemoveRule", "service": { "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", "shortName": "RegionSecurityPolicies" }, - "shortName": "Insert" + "shortName": "RemoveRule" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.RemoveRuleRegionSecurityPolicyRequest" }, { "name": "project", @@ -51913,8 +53473,8 @@ "type": "str" }, { - "name": "security_policy_resource", - "type": "google.cloud.compute_v1.types.SecurityPolicy" + "name": "security_policy", + "type": "str" }, { "name": "retry", @@ -51930,21 +53490,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "remove_rule" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_security_policies_insert_sync.py", + "description": "Sample for RemoveRule", + "file": "compute_v1_generated_region_security_policies_remove_rule_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_Insert_sync", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_RemoveRule_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -51954,22 +53514,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_insert_sync.py" + "title": "compute_v1_generated_region_security_policies_remove_rule_sync.py" }, { "canonical": true, @@ -51978,19 +53538,19 @@ "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", "shortName": "RegionSecurityPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.list", + "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.set_labels", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.List", + "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.SetLabels", "service": { "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", "shortName": "RegionSecurityPolicies" }, - "shortName": "List" + "shortName": "SetLabels" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionSecurityPoliciesRequest" + "type": "google.cloud.compute_v1.types.SetLabelsRegionSecurityPolicyRequest" }, { "name": "project", @@ -52000,6 +53560,14 @@ "name": "region", "type": "str" }, + { + "name": "resource", + "type": "str" + }, + { + "name": "region_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -52013,14 +53581,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_security_policies.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_security_policies_list_sync.py", + "description": "Sample for SetLabels", + "file": "compute_v1_generated_region_security_policies_set_labels_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_List_sync", + "regionTag": "compute_v1_generated_RegionSecurityPolicies_SetLabels_sync", "segments": [ { "end": 53, @@ -52038,43 +53606,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_list_sync.py" + "title": "compute_v1_generated_region_security_policies_set_labels_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", - "shortName": "RegionSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", + "shortName": "RegionSslCertificatesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.patch_rule", + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.PatchRule", + "fullName": "google.cloud.compute.v1.RegionSslCertificates.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", - "shortName": "RegionSecurityPolicies" + "fullName": "google.cloud.compute.v1.RegionSslCertificates", + "shortName": "RegionSslCertificates" }, - "shortName": "PatchRule" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRuleRegionSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionSslCertificateRequest" }, { "name": "project", @@ -52085,13 +53653,9 @@ "type": "str" }, { - "name": "security_policy", + "name": "ssl_certificate", "type": "str" }, - { - "name": "security_policy_rule_resource", - "type": "google.cloud.compute_v1.types.SecurityPolicyRule" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -52106,13 +53670,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch_rule" + "shortName": "delete" }, - "description": "Sample for PatchRule", - "file": "compute_v1_generated_region_security_policies_patch_rule_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_ssl_certificates_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_PatchRule_sync", + "regionTag": "compute_v1_generated_RegionSslCertificates_Delete_sync", "segments": [ { "end": 53, @@ -52145,28 +53709,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_patch_rule_sync.py" + "title": "compute_v1_generated_region_ssl_certificates_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", - "shortName": "RegionSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", + "shortName": "RegionSslCertificatesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.patch", + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Patch", + "fullName": "google.cloud.compute.v1.RegionSslCertificates.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", - "shortName": "RegionSecurityPolicies" + "fullName": "google.cloud.compute.v1.RegionSslCertificates", + "shortName": "RegionSslCertificates" }, - "shortName": "Patch" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.GetRegionSslCertificateRequest" }, { "name": "project", @@ -52177,13 +53741,9 @@ "type": "str" }, { - "name": "security_policy", + "name": "ssl_certificate", "type": "str" }, - { - "name": "security_policy_resource", - "type": "google.cloud.compute_v1.types.SecurityPolicy" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -52197,14 +53757,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.types.SslCertificate", + "shortName": "get" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_region_security_policies_patch_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_ssl_certificates_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_Patch_sync", + "regionTag": "compute_v1_generated_RegionSslCertificates_Get_sync", "segments": [ { "end": 53, @@ -52237,28 +53797,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_patch_sync.py" + "title": "compute_v1_generated_region_ssl_certificates_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", - "shortName": "RegionSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", + "shortName": "RegionSslCertificatesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.remove_rule", + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.RemoveRule", + "fullName": "google.cloud.compute.v1.RegionSslCertificates.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", - "shortName": "RegionSecurityPolicies" + "fullName": "google.cloud.compute.v1.RegionSslCertificates", + "shortName": "RegionSslCertificates" }, - "shortName": "RemoveRule" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.RemoveRuleRegionSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.InsertRegionSslCertificateRequest" }, { "name": "project", @@ -52269,8 +53829,8 @@ "type": "str" }, { - "name": "security_policy", - "type": "str" + "name": "ssl_certificate_resource", + "type": "google.cloud.compute_v1.types.SslCertificate" }, { "name": "retry", @@ -52286,21 +53846,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "remove_rule" + "shortName": "insert" }, - "description": "Sample for RemoveRule", - "file": "compute_v1_generated_region_security_policies_remove_rule_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_ssl_certificates_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_RemoveRule_sync", + "regionTag": "compute_v1_generated_RegionSslCertificates_Insert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -52310,43 +53870,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_remove_rule_sync.py" + "title": "compute_v1_generated_region_ssl_certificates_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient", - "shortName": "RegionSecurityPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", + "shortName": "RegionSslCertificatesClient" }, - "fullName": "google.cloud.compute_v1.RegionSecurityPoliciesClient.set_labels", + "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.SetLabels", + "fullName": "google.cloud.compute.v1.RegionSslCertificates.List", "service": { - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies", - "shortName": "RegionSecurityPolicies" + "fullName": "google.cloud.compute.v1.RegionSslCertificates", + "shortName": "RegionSslCertificates" }, - "shortName": "SetLabels" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsRegionSecurityPolicyRequest" + "type": "google.cloud.compute_v1.types.ListRegionSslCertificatesRequest" }, { "name": "project", @@ -52356,14 +53916,6 @@ "name": "region", "type": "str" }, - { - "name": "resource", - "type": "str" - }, - { - "name": "region_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -52377,14 +53929,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "resultType": "google.cloud.compute_v1.services.region_ssl_certificates.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_region_security_policies_set_labels_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_ssl_certificates_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSecurityPolicies_SetLabels_sync", + "regionTag": "compute_v1_generated_RegionSslCertificates_List_sync", "segments": [ { "end": 53, @@ -52402,43 +53954,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_security_policies_set_labels_sync.py" + "title": "compute_v1_generated_region_ssl_certificates_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", - "shortName": "RegionSslCertificatesClient" + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.delete", + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionSslCertificates.Delete", + "fullName": "google.cloud.compute.v1.RegionSslPolicies.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionSslCertificates", - "shortName": "RegionSslCertificates" + "fullName": "google.cloud.compute.v1.RegionSslPolicies", + "shortName": "RegionSslPolicies" }, "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionSslCertificateRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionSslPolicyRequest" }, { "name": "project", @@ -52449,7 +54001,7 @@ "type": "str" }, { - "name": "ssl_certificate", + "name": "ssl_policy", "type": "str" }, { @@ -52469,10 +54021,10 @@ "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_region_ssl_certificates_delete_sync.py", + "file": "compute_v1_generated_region_ssl_policies_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslCertificates_Delete_sync", + "regionTag": "compute_v1_generated_RegionSslPolicies_Delete_sync", "segments": [ { "end": 53, @@ -52505,28 +54057,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_certificates_delete_sync.py" + "title": "compute_v1_generated_region_ssl_policies_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", - "shortName": "RegionSslCertificatesClient" + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.get", + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionSslCertificates.Get", + "fullName": "google.cloud.compute.v1.RegionSslPolicies.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionSslCertificates", - "shortName": "RegionSslCertificates" + "fullName": "google.cloud.compute.v1.RegionSslPolicies", + "shortName": "RegionSslPolicies" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionSslCertificateRequest" + "type": "google.cloud.compute_v1.types.GetRegionSslPolicyRequest" }, { "name": "project", @@ -52537,7 +54089,7 @@ "type": "str" }, { - "name": "ssl_certificate", + "name": "ssl_policy", "type": "str" }, { @@ -52553,14 +54105,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SslCertificate", + "resultType": "google.cloud.compute_v1.types.SslPolicy", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_region_ssl_certificates_get_sync.py", + "file": "compute_v1_generated_region_ssl_policies_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslCertificates_Get_sync", + "regionTag": "compute_v1_generated_RegionSslPolicies_Get_sync", "segments": [ { "end": 53, @@ -52593,28 +54145,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_certificates_get_sync.py" + "title": "compute_v1_generated_region_ssl_policies_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", - "shortName": "RegionSslCertificatesClient" + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.insert", + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionSslCertificates.Insert", + "fullName": "google.cloud.compute.v1.RegionSslPolicies.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionSslCertificates", - "shortName": "RegionSslCertificates" + "fullName": "google.cloud.compute.v1.RegionSslPolicies", + "shortName": "RegionSslPolicies" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionSslCertificateRequest" + "type": "google.cloud.compute_v1.types.InsertRegionSslPolicyRequest" }, { "name": "project", @@ -52625,8 +54177,8 @@ "type": "str" }, { - "name": "ssl_certificate_resource", - "type": "google.cloud.compute_v1.types.SslCertificate" + "name": "ssl_policy_resource", + "type": "google.cloud.compute_v1.types.SslPolicy" }, { "name": "retry", @@ -52645,10 +54197,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_region_ssl_certificates_insert_sync.py", + "file": "compute_v1_generated_region_ssl_policies_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslCertificates_Insert_sync", + "regionTag": "compute_v1_generated_RegionSslPolicies_Insert_sync", "segments": [ { "end": 52, @@ -52681,28 +54233,112 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_certificates_insert_sync.py" + "title": "compute_v1_generated_region_ssl_policies_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient", - "shortName": "RegionSslCertificatesClient" + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslCertificatesClient.list", + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.list_available_features", "method": { - "fullName": "google.cloud.compute.v1.RegionSslCertificates.List", + "fullName": "google.cloud.compute.v1.RegionSslPolicies.ListAvailableFeatures", "service": { - "fullName": "google.cloud.compute.v1.RegionSslCertificates", - "shortName": "RegionSslCertificates" + "fullName": "google.cloud.compute.v1.RegionSslPolicies", + "shortName": "RegionSslPolicies" + }, + "shortName": "ListAvailableFeatures" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListAvailableFeaturesRegionSslPoliciesRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.SslPoliciesListAvailableFeaturesResponse", + "shortName": "list_available_features" + }, + "description": "Sample for ListAvailableFeatures", + "file": "compute_v1_generated_region_ssl_policies_list_available_features_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionSslPolicies_ListAvailableFeatures_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_ssl_policies_list_available_features_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", + "shortName": "RegionSslPoliciesClient" + }, + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionSslPolicies", + "shortName": "RegionSslPolicies" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionSslCertificatesRequest" + "type": "google.cloud.compute_v1.types.ListRegionSslPoliciesRequest" }, { "name": "project", @@ -52725,14 +54361,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_ssl_certificates.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.region_ssl_policies.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_region_ssl_certificates_list_sync.py", + "file": "compute_v1_generated_region_ssl_policies_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslCertificates_List_sync", + "regionTag": "compute_v1_generated_RegionSslPolicies_List_sync", "segments": [ { "end": 53, @@ -52765,7 +54401,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_certificates_list_sync.py" + "title": "compute_v1_generated_region_ssl_policies_list_sync.py" }, { "canonical": true, @@ -52774,19 +54410,19 @@ "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", "shortName": "RegionSslPoliciesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.delete", + "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Delete", + "fullName": "google.cloud.compute.v1.RegionSslPolicies.Patch", "service": { "fullName": "google.cloud.compute.v1.RegionSslPolicies", "shortName": "RegionSslPolicies" }, - "shortName": "Delete" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionSslPolicyRequest" + "type": "google.cloud.compute_v1.types.PatchRegionSslPolicyRequest" }, { "name": "project", @@ -52800,6 +54436,10 @@ "name": "ssl_policy", "type": "str" }, + { + "name": "ssl_policy_resource", + "type": "google.cloud.compute_v1.types.SslPolicy" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -52814,13 +54454,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "patch" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_ssl_policies_delete_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_region_ssl_policies_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslPolicies_Delete_sync", + "regionTag": "compute_v1_generated_RegionSslPolicies_Patch_sync", "segments": [ { "end": 53, @@ -52853,28 +54493,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_policies_delete_sync.py" + "title": "compute_v1_generated_region_ssl_policies_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", - "shortName": "RegionSslPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.get", + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Get", + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies", - "shortName": "RegionSslPolicies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" }, - "shortName": "Get" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionSslPolicyRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionTargetHttpProxyRequest" }, { "name": "project", @@ -52885,7 +54525,7 @@ "type": "str" }, { - "name": "ssl_policy", + "name": "target_http_proxy", "type": "str" }, { @@ -52901,14 +54541,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SslPolicy", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_ssl_policies_get_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_target_http_proxies_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslPolicies_Get_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Delete_sync", "segments": [ { "end": 53, @@ -52941,28 +54581,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_policies_get_sync.py" + "title": "compute_v1_generated_region_target_http_proxies_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", - "shortName": "RegionSslPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.insert", + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Insert", + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies", - "shortName": "RegionSslPolicies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" }, - "shortName": "Insert" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionSslPolicyRequest" + "type": "google.cloud.compute_v1.types.GetRegionTargetHttpProxyRequest" }, { "name": "project", @@ -52973,8 +54613,8 @@ "type": "str" }, { - "name": "ssl_policy_resource", - "type": "google.cloud.compute_v1.types.SslPolicy" + "name": "target_http_proxy", + "type": "str" }, { "name": "retry", @@ -52989,22 +54629,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.types.TargetHttpProxy", + "shortName": "get" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_ssl_policies_insert_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_target_http_proxies_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslPolicies_Insert_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Get_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -53014,43 +54654,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_policies_insert_sync.py" + "title": "compute_v1_generated_region_target_http_proxies_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", - "shortName": "RegionSslPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.list_available_features", + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies.ListAvailableFeatures", + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies", - "shortName": "RegionSslPolicies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" }, - "shortName": "ListAvailableFeatures" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListAvailableFeaturesRegionSslPoliciesRequest" + "type": "google.cloud.compute_v1.types.InsertRegionTargetHttpProxyRequest" }, { "name": "project", @@ -53060,6 +54700,10 @@ "name": "region", "type": "str" }, + { + "name": "target_http_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpProxy" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -53073,14 +54717,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.SslPoliciesListAvailableFeaturesResponse", - "shortName": "list_available_features" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for ListAvailableFeatures", - "file": "compute_v1_generated_region_ssl_policies_list_available_features_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_target_http_proxies_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslPolicies_ListAvailableFeatures_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Insert_sync", "segments": [ { "end": 52, @@ -53113,28 +54757,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_policies_list_available_features_sync.py" + "title": "compute_v1_generated_region_target_http_proxies_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", - "shortName": "RegionSslPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.list", + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies.List", + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.List", "service": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies", - "shortName": "RegionSslPolicies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionSslPoliciesRequest" + "type": "google.cloud.compute_v1.types.ListRegionTargetHttpProxiesRequest" }, { "name": "project", @@ -53157,14 +54801,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_ssl_policies.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.region_target_http_proxies.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_region_ssl_policies_list_sync.py", + "file": "compute_v1_generated_region_target_http_proxies_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslPolicies_List_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpProxies_List_sync", "segments": [ { "end": 53, @@ -53197,28 +54841,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_policies_list_sync.py" + "title": "compute_v1_generated_region_target_http_proxies_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient", - "shortName": "RegionSslPoliciesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", + "shortName": "RegionTargetHttpProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionSslPoliciesClient.patch", + "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.set_url_map", "method": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Patch", + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.SetUrlMap", "service": { - "fullName": "google.cloud.compute.v1.RegionSslPolicies", - "shortName": "RegionSslPolicies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", + "shortName": "RegionTargetHttpProxies" }, - "shortName": "Patch" + "shortName": "SetUrlMap" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionSslPolicyRequest" + "type": "google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpProxyRequest" }, { "name": "project", @@ -53229,12 +54873,12 @@ "type": "str" }, { - "name": "ssl_policy", + "name": "target_http_proxy", "type": "str" }, { - "name": "ssl_policy_resource", - "type": "google.cloud.compute_v1.types.SslPolicy" + "name": "url_map_reference_resource", + "type": "google.cloud.compute_v1.types.UrlMapReference" }, { "name": "retry", @@ -53250,13 +54894,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "shortName": "set_url_map" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_region_ssl_policies_patch_sync.py", + "description": "Sample for SetUrlMap", + "file": "compute_v1_generated_region_target_http_proxies_set_url_map_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionSslPolicies_Patch_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpProxies_SetUrlMap_sync", "segments": [ { "end": 53, @@ -53289,28 +54933,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_ssl_policies_patch_sync.py" + "title": "compute_v1_generated_region_target_http_proxies_set_url_map_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", - "shortName": "RegionTargetHttpProxiesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.delete", + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Delete", + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", - "shortName": "RegionTargetHttpProxies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" }, "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionTargetHttpProxyRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionTargetHttpsProxyRequest" }, { "name": "project", @@ -53321,7 +54965,7 @@ "type": "str" }, { - "name": "target_http_proxy", + "name": "target_https_proxy", "type": "str" }, { @@ -53341,10 +54985,10 @@ "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_region_target_http_proxies_delete_sync.py", + "file": "compute_v1_generated_region_target_https_proxies_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Delete_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Delete_sync", "segments": [ { "end": 53, @@ -53377,28 +55021,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_http_proxies_delete_sync.py" + "title": "compute_v1_generated_region_target_https_proxies_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", - "shortName": "RegionTargetHttpProxiesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.get", + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Get", + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", - "shortName": "RegionTargetHttpProxies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionTargetHttpProxyRequest" + "type": "google.cloud.compute_v1.types.GetRegionTargetHttpsProxyRequest" }, { "name": "project", @@ -53409,7 +55053,7 @@ "type": "str" }, { - "name": "target_http_proxy", + "name": "target_https_proxy", "type": "str" }, { @@ -53425,14 +55069,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TargetHttpProxy", + "resultType": "google.cloud.compute_v1.types.TargetHttpsProxy", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_region_target_http_proxies_get_sync.py", + "file": "compute_v1_generated_region_target_https_proxies_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Get_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Get_sync", "segments": [ { "end": 53, @@ -53465,28 +55109,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_http_proxies_get_sync.py" + "title": "compute_v1_generated_region_target_https_proxies_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", - "shortName": "RegionTargetHttpProxiesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.insert", + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Insert", + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", - "shortName": "RegionTargetHttpProxies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionTargetHttpProxyRequest" + "type": "google.cloud.compute_v1.types.InsertRegionTargetHttpsProxyRequest" }, { "name": "project", @@ -53497,8 +55141,8 @@ "type": "str" }, { - "name": "target_http_proxy_resource", - "type": "google.cloud.compute_v1.types.TargetHttpProxy" + "name": "target_https_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpsProxy" }, { "name": "retry", @@ -53517,10 +55161,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_region_target_http_proxies_insert_sync.py", + "file": "compute_v1_generated_region_target_https_proxies_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Insert_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Insert_sync", "segments": [ { "end": 52, @@ -53553,28 +55197,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_http_proxies_insert_sync.py" + "title": "compute_v1_generated_region_target_https_proxies_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", - "shortName": "RegionTargetHttpProxiesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.list", + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.List", + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.List", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", - "shortName": "RegionTargetHttpProxies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionTargetHttpProxiesRequest" + "type": "google.cloud.compute_v1.types.ListRegionTargetHttpsProxiesRequest" }, { "name": "project", @@ -53597,14 +55241,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_target_http_proxies.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.region_target_https_proxies.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_region_target_http_proxies_list_sync.py", + "file": "compute_v1_generated_region_target_https_proxies_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_List_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_List_sync", "segments": [ { "end": 53, @@ -53637,28 +55281,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_http_proxies_list_sync.py" + "title": "compute_v1_generated_region_target_https_proxies_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient", - "shortName": "RegionTargetHttpProxiesClient" + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", + "shortName": "RegionTargetHttpsProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpProxiesClient.set_url_map", + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.patch", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.SetUrlMap", + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Patch", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies", - "shortName": "RegionTargetHttpProxies" + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", + "shortName": "RegionTargetHttpsProxies" }, - "shortName": "SetUrlMap" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpProxyRequest" + "type": "google.cloud.compute_v1.types.PatchRegionTargetHttpsProxyRequest" }, { "name": "project", @@ -53669,12 +55313,12 @@ "type": "str" }, { - "name": "target_http_proxy", + "name": "target_https_proxy", "type": "str" }, { - "name": "url_map_reference_resource", - "type": "google.cloud.compute_v1.types.UrlMapReference" + "name": "target_https_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetHttpsProxy" }, { "name": "retry", @@ -53690,13 +55334,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_url_map" + "shortName": "patch" }, - "description": "Sample for SetUrlMap", - "file": "compute_v1_generated_region_target_http_proxies_set_url_map_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_region_target_https_proxies_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_SetUrlMap_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Patch_sync", "segments": [ { "end": 53, @@ -53729,7 +55373,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_http_proxies_set_url_map_sync.py" + "title": "compute_v1_generated_region_target_https_proxies_patch_sync.py" }, { "canonical": true, @@ -53738,19 +55382,19 @@ "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", "shortName": "RegionTargetHttpsProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.delete", + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.set_ssl_certificates", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Delete", + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetSslCertificates", "service": { "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", "shortName": "RegionTargetHttpsProxies" }, - "shortName": "Delete" + "shortName": "SetSslCertificates" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionTargetHttpsProxyRequest" + "type": "google.cloud.compute_v1.types.SetSslCertificatesRegionTargetHttpsProxyRequest" }, { "name": "project", @@ -53764,6 +55408,10 @@ "name": "target_https_proxy", "type": "str" }, + { + "name": "region_target_https_proxies_set_ssl_certificates_request_resource", + "type": "google.cloud.compute_v1.types.RegionTargetHttpsProxiesSetSslCertificatesRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -53778,13 +55426,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "set_ssl_certificates" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_target_https_proxies_delete_sync.py", + "description": "Sample for SetSslCertificates", + "file": "compute_v1_generated_region_target_https_proxies_set_ssl_certificates_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Delete_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_SetSslCertificates_sync", "segments": [ { "end": 53, @@ -53817,7 +55465,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_https_proxies_delete_sync.py" + "title": "compute_v1_generated_region_target_https_proxies_set_ssl_certificates_sync.py" }, { "canonical": true, @@ -53826,19 +55474,19 @@ "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", "shortName": "RegionTargetHttpsProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.get", + "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.set_url_map", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Get", + "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetUrlMap", "service": { "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", "shortName": "RegionTargetHttpsProxies" }, - "shortName": "Get" + "shortName": "SetUrlMap" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionTargetHttpsProxyRequest" + "type": "google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpsProxyRequest" }, { "name": "project", @@ -53852,6 +55500,10 @@ "name": "target_https_proxy", "type": "str" }, + { + "name": "url_map_reference_resource", + "type": "google.cloud.compute_v1.types.UrlMapReference" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -53865,14 +55517,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TargetHttpsProxy", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_url_map" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_target_https_proxies_get_sync.py", + "description": "Sample for SetUrlMap", + "file": "compute_v1_generated_region_target_https_proxies_set_url_map_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Get_sync", + "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_SetUrlMap_sync", "segments": [ { "end": 53, @@ -53905,28 +55557,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_https_proxies_get_sync.py" + "title": "compute_v1_generated_region_target_https_proxies_set_url_map_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", - "shortName": "RegionTargetHttpsProxiesClient" + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", + "shortName": "RegionTargetTcpProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.insert", + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Insert", + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", - "shortName": "RegionTargetHttpsProxies" + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", + "shortName": "RegionTargetTcpProxies" }, - "shortName": "Insert" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionTargetHttpsProxyRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionTargetTcpProxyRequest" }, { "name": "project", @@ -53937,8 +55589,8 @@ "type": "str" }, { - "name": "target_https_proxy_resource", - "type": "google.cloud.compute_v1.types.TargetHttpsProxy" + "name": "target_tcp_proxy", + "type": "str" }, { "name": "retry", @@ -53954,21 +55606,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "delete" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_target_https_proxies_insert_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_target_tcp_proxies_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Insert_sync", + "regionTag": "compute_v1_generated_RegionTargetTcpProxies_Delete_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -53978,43 +55630,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_https_proxies_insert_sync.py" + "title": "compute_v1_generated_region_target_tcp_proxies_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", - "shortName": "RegionTargetHttpsProxiesClient" + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", + "shortName": "RegionTargetTcpProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.list", + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.List", + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", - "shortName": "RegionTargetHttpsProxies" + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", + "shortName": "RegionTargetTcpProxies" }, - "shortName": "List" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionTargetHttpsProxiesRequest" + "type": "google.cloud.compute_v1.types.GetRegionTargetTcpProxyRequest" }, { "name": "project", @@ -54024,6 +55676,10 @@ "name": "region", "type": "str" }, + { + "name": "target_tcp_proxy", + "type": "str" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -54037,14 +55693,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_target_https_proxies.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.TargetTcpProxy", + "shortName": "get" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_target_https_proxies_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_target_tcp_proxies_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_List_sync", + "regionTag": "compute_v1_generated_RegionTargetTcpProxies_Get_sync", "segments": [ { "end": 53, @@ -54062,43 +55718,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_https_proxies_list_sync.py" + "title": "compute_v1_generated_region_target_tcp_proxies_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", - "shortName": "RegionTargetHttpsProxiesClient" + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", + "shortName": "RegionTargetTcpProxiesClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.patch", + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Patch", + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", - "shortName": "RegionTargetHttpsProxies" + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", + "shortName": "RegionTargetTcpProxies" }, - "shortName": "Patch" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionTargetHttpsProxyRequest" + "type": "google.cloud.compute_v1.types.InsertRegionTargetTcpProxyRequest" }, { "name": "project", @@ -54109,12 +55765,92 @@ "type": "str" }, { - "name": "target_https_proxy", + "name": "target_tcp_proxy_resource", + "type": "google.cloud.compute_v1.types.TargetTcpProxy" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" + }, + "description": "Sample for Insert", + "file": "compute_v1_generated_region_target_tcp_proxies_insert_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_RegionTargetTcpProxies_Insert_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_region_target_tcp_proxies_insert_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", + "shortName": "RegionTargetTcpProxiesClient" + }, + "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.list", + "method": { + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.List", + "service": { + "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", + "shortName": "RegionTargetTcpProxies" + }, + "shortName": "List" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.ListRegionTargetTcpProxiesRequest" + }, + { + "name": "project", "type": "str" }, { - "name": "target_https_proxy_resource", - "type": "google.cloud.compute_v1.types.TargetHttpsProxy" + "name": "region", + "type": "str" }, { "name": "retry", @@ -54129,14 +55865,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.services.region_target_tcp_proxies.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_region_target_https_proxies_patch_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_target_tcp_proxies_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Patch_sync", + "regionTag": "compute_v1_generated_RegionTargetTcpProxies_List_sync", "segments": [ { "end": 53, @@ -54154,43 +55890,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_https_proxies_patch_sync.py" + "title": "compute_v1_generated_region_target_tcp_proxies_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", - "shortName": "RegionTargetHttpsProxiesClient" + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.set_ssl_certificates", + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.delete", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetSslCertificates", + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Delete", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", - "shortName": "RegionTargetHttpsProxies" + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" }, - "shortName": "SetSslCertificates" + "shortName": "Delete" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetSslCertificatesRegionTargetHttpsProxyRequest" + "type": "google.cloud.compute_v1.types.DeleteRegionUrlMapRequest" }, { "name": "project", @@ -54201,13 +55937,9 @@ "type": "str" }, { - "name": "target_https_proxy", + "name": "url_map", "type": "str" }, - { - "name": "region_target_https_proxies_set_ssl_certificates_request_resource", - "type": "google.cloud.compute_v1.types.RegionTargetHttpsProxiesSetSslCertificatesRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -54222,13 +55954,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_ssl_certificates" + "shortName": "delete" }, - "description": "Sample for SetSslCertificates", - "file": "compute_v1_generated_region_target_https_proxies_set_ssl_certificates_sync.py", + "description": "Sample for Delete", + "file": "compute_v1_generated_region_url_maps_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_SetSslCertificates_sync", + "regionTag": "compute_v1_generated_RegionUrlMaps_Delete_sync", "segments": [ { "end": 53, @@ -54261,28 +55993,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_https_proxies_set_ssl_certificates_sync.py" + "title": "compute_v1_generated_region_url_maps_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient", - "shortName": "RegionTargetHttpsProxiesClient" + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetHttpsProxiesClient.set_url_map", + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetUrlMap", + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies", - "shortName": "RegionTargetHttpsProxies" + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" }, - "shortName": "SetUrlMap" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetUrlMapRegionTargetHttpsProxyRequest" + "type": "google.cloud.compute_v1.types.GetRegionUrlMapRequest" }, { "name": "project", @@ -54293,13 +56025,9 @@ "type": "str" }, { - "name": "target_https_proxy", + "name": "url_map", "type": "str" }, - { - "name": "url_map_reference_resource", - "type": "google.cloud.compute_v1.types.UrlMapReference" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -54313,14 +56041,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_url_map" + "resultType": "google.cloud.compute_v1.types.UrlMap", + "shortName": "get" }, - "description": "Sample for SetUrlMap", - "file": "compute_v1_generated_region_target_https_proxies_set_url_map_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_region_url_maps_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_SetUrlMap_sync", + "regionTag": "compute_v1_generated_RegionUrlMaps_Get_sync", "segments": [ { "end": 53, @@ -54353,28 +56081,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_https_proxies_set_url_map_sync.py" + "title": "compute_v1_generated_region_url_maps_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", - "shortName": "RegionTargetTcpProxiesClient" + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.delete", + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Delete", + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Insert", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", - "shortName": "RegionTargetTcpProxies" + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" }, - "shortName": "Delete" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionTargetTcpProxyRequest" + "type": "google.cloud.compute_v1.types.InsertRegionUrlMapRequest" }, { "name": "project", @@ -54385,8 +56113,8 @@ "type": "str" }, { - "name": "target_tcp_proxy", - "type": "str" + "name": "url_map_resource", + "type": "google.cloud.compute_v1.types.UrlMap" }, { "name": "retry", @@ -54402,21 +56130,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "shortName": "insert" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_target_tcp_proxies_delete_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_region_url_maps_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetTcpProxies_Delete_sync", + "regionTag": "compute_v1_generated_RegionUrlMaps_Insert_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -54426,43 +56154,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_tcp_proxies_delete_sync.py" + "title": "compute_v1_generated_region_url_maps_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", - "shortName": "RegionTargetTcpProxiesClient" + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.get", + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Get", + "fullName": "google.cloud.compute.v1.RegionUrlMaps.List", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", - "shortName": "RegionTargetTcpProxies" + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" }, - "shortName": "Get" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionTargetTcpProxyRequest" + "type": "google.cloud.compute_v1.types.ListRegionUrlMapsRequest" }, { "name": "project", @@ -54472,10 +56200,6 @@ "name": "region", "type": "str" }, - { - "name": "target_tcp_proxy", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -54489,14 +56213,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.TargetTcpProxy", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.region_url_maps.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_target_tcp_proxies_get_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_url_maps_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetTcpProxies_Get_sync", + "regionTag": "compute_v1_generated_RegionUrlMaps_List_sync", "segments": [ { "end": 53, @@ -54514,43 +56238,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_tcp_proxies_get_sync.py" + "title": "compute_v1_generated_region_url_maps_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", - "shortName": "RegionTargetTcpProxiesClient" + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.insert", + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.patch", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Insert", + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Patch", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", - "shortName": "RegionTargetTcpProxies" + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" }, - "shortName": "Insert" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionTargetTcpProxyRequest" + "type": "google.cloud.compute_v1.types.PatchRegionUrlMapRequest" }, { "name": "project", @@ -54561,8 +56285,12 @@ "type": "str" }, { - "name": "target_tcp_proxy_resource", - "type": "google.cloud.compute_v1.types.TargetTcpProxy" + "name": "url_map", + "type": "str" + }, + { + "name": "url_map_resource", + "type": "google.cloud.compute_v1.types.UrlMap" }, { "name": "retry", @@ -54578,21 +56306,21 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "shortName": "patch" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_target_tcp_proxies_insert_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_region_url_maps_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetTcpProxies_Insert_sync", + "regionTag": "compute_v1_generated_RegionUrlMaps_Patch_sync", "segments": [ { - "end": 52, + "end": 53, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 53, "start": 27, "type": "SHORT" }, @@ -54602,43 +56330,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 54, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_tcp_proxies_insert_sync.py" + "title": "compute_v1_generated_region_url_maps_patch_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient", - "shortName": "RegionTargetTcpProxiesClient" + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", + "shortName": "RegionUrlMapsClient" }, - "fullName": "google.cloud.compute_v1.RegionTargetTcpProxiesClient.list", + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.update", "method": { - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.List", + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Update", "service": { - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies", - "shortName": "RegionTargetTcpProxies" + "fullName": "google.cloud.compute.v1.RegionUrlMaps", + "shortName": "RegionUrlMaps" }, - "shortName": "List" + "shortName": "Update" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionTargetTcpProxiesRequest" + "type": "google.cloud.compute_v1.types.UpdateRegionUrlMapRequest" }, { "name": "project", @@ -54648,6 +56376,14 @@ "name": "region", "type": "str" }, + { + "name": "url_map", + "type": "str" + }, + { + "name": "url_map_resource", + "type": "google.cloud.compute_v1.types.UrlMap" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -54661,14 +56397,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_target_tcp_proxies.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "update" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_target_tcp_proxies_list_sync.py", + "description": "Sample for Update", + "file": "compute_v1_generated_region_url_maps_update_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionTargetTcpProxies_List_sync", + "regionTag": "compute_v1_generated_RegionUrlMaps_Update_sync", "segments": [ { "end": 53, @@ -54686,22 +56422,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 50, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_target_tcp_proxies_list_sync.py" + "title": "compute_v1_generated_region_url_maps_update_sync.py" }, { "canonical": true, @@ -54710,19 +56446,19 @@ "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", "shortName": "RegionUrlMapsClient" }, - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.delete", + "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.validate", "method": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Delete", + "fullName": "google.cloud.compute.v1.RegionUrlMaps.Validate", "service": { "fullName": "google.cloud.compute.v1.RegionUrlMaps", "shortName": "RegionUrlMaps" }, - "shortName": "Delete" + "shortName": "Validate" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteRegionUrlMapRequest" + "type": "google.cloud.compute_v1.types.ValidateRegionUrlMapRequest" }, { "name": "project", @@ -54736,6 +56472,10 @@ "name": "url_map", "type": "str" }, + { + "name": "region_url_maps_validate_request_resource", + "type": "google.cloud.compute_v1.types.RegionUrlMapsValidateRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -54749,14 +56489,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "delete" + "resultType": "google.cloud.compute_v1.types.UrlMapsValidateResponse", + "shortName": "validate" }, - "description": "Sample for Delete", - "file": "compute_v1_generated_region_url_maps_delete_sync.py", + "description": "Sample for Validate", + "file": "compute_v1_generated_region_url_maps_validate_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionUrlMaps_Delete_sync", + "regionTag": "compute_v1_generated_RegionUrlMaps_Validate_sync", "segments": [ { "end": 53, @@ -54789,28 +56529,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_url_maps_delete_sync.py" + "title": "compute_v1_generated_region_url_maps_validate_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", - "shortName": "RegionUrlMapsClient" + "fullName": "google.cloud.compute_v1.RegionZonesClient", + "shortName": "RegionZonesClient" }, - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.get", + "fullName": "google.cloud.compute_v1.RegionZonesClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Get", + "fullName": "google.cloud.compute.v1.RegionZones.List", "service": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps", - "shortName": "RegionUrlMaps" + "fullName": "google.cloud.compute.v1.RegionZones", + "shortName": "RegionZones" }, - "shortName": "Get" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionUrlMapRequest" + "type": "google.cloud.compute_v1.types.ListRegionZonesRequest" }, { "name": "project", @@ -54820,10 +56560,6 @@ "name": "region", "type": "str" }, - { - "name": "url_map", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -54837,14 +56573,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.UrlMap", - "shortName": "get" + "resultType": "google.cloud.compute_v1.services.region_zones.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Get", - "file": "compute_v1_generated_region_url_maps_get_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_region_zones_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionUrlMaps_Get_sync", + "regionTag": "compute_v1_generated_RegionZones_List_sync", "segments": [ { "end": 53, @@ -54862,43 +56598,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 54, - "start": 51, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_url_maps_get_sync.py" + "title": "compute_v1_generated_region_zones_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", - "shortName": "RegionUrlMapsClient" + "fullName": "google.cloud.compute_v1.RegionsClient", + "shortName": "RegionsClient" }, - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.insert", + "fullName": "google.cloud.compute_v1.RegionsClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Insert", + "fullName": "google.cloud.compute.v1.Regions.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps", - "shortName": "RegionUrlMaps" + "fullName": "google.cloud.compute.v1.Regions", + "shortName": "Regions" }, - "shortName": "Insert" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertRegionUrlMapRequest" + "type": "google.cloud.compute_v1.types.GetRegionRequest" }, { "name": "project", @@ -54908,10 +56644,6 @@ "name": "region", "type": "str" }, - { - "name": "url_map_resource", - "type": "google.cloud.compute_v1.types.UrlMap" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -54925,14 +56657,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "insert" + "resultType": "google.cloud.compute_v1.types.Region", + "shortName": "get" }, - "description": "Sample for Insert", - "file": "compute_v1_generated_region_url_maps_insert_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_regions_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionUrlMaps_Insert_sync", + "regionTag": "compute_v1_generated_Regions_Get_sync", "segments": [ { "end": 52, @@ -54965,37 +56697,33 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_url_maps_insert_sync.py" + "title": "compute_v1_generated_regions_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", - "shortName": "RegionUrlMapsClient" + "fullName": "google.cloud.compute_v1.RegionsClient", + "shortName": "RegionsClient" }, - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.list", + "fullName": "google.cloud.compute_v1.RegionsClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps.List", + "fullName": "google.cloud.compute.v1.Regions.List", "service": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps", - "shortName": "RegionUrlMaps" + "fullName": "google.cloud.compute.v1.Regions", + "shortName": "Regions" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionUrlMapsRequest" + "type": "google.cloud.compute_v1.types.ListRegionsRequest" }, { "name": "project", "type": "str" }, - { - "name": "region", - "type": "str" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -55009,22 +56737,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_url_maps.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.regions.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_region_url_maps_list_sync.py", + "file": "compute_v1_generated_regions_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionUrlMaps_List_sync", + "regionTag": "compute_v1_generated_Regions_List_sync", "segments": [ { - "end": 53, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 52, "start": 27, "type": "SHORT" }, @@ -55034,59 +56762,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 50, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_url_maps_list_sync.py" + "title": "compute_v1_generated_regions_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", - "shortName": "RegionUrlMapsClient" + "fullName": "google.cloud.compute_v1.ReservationBlocksClient", + "shortName": "ReservationBlocksClient" }, - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.patch", + "fullName": "google.cloud.compute_v1.ReservationBlocksClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Patch", + "fullName": "google.cloud.compute.v1.ReservationBlocks.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps", - "shortName": "RegionUrlMaps" + "fullName": "google.cloud.compute.v1.ReservationBlocks", + "shortName": "ReservationBlocks" }, - "shortName": "Patch" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PatchRegionUrlMapRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyReservationBlockRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "url_map", + "name": "parent_resource", "type": "str" }, { - "name": "url_map_resource", - "type": "google.cloud.compute_v1.types.UrlMap" + "name": "resource", + "type": "str" }, { "name": "retry", @@ -55101,22 +56829,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "patch" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for Patch", - "file": "compute_v1_generated_region_url_maps_patch_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_reservation_blocks_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionUrlMaps_Patch_sync", + "regionTag": "compute_v1_generated_ReservationBlocks_GetIamPolicy_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -55126,59 +56854,59 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_url_maps_patch_sync.py" + "title": "compute_v1_generated_reservation_blocks_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", - "shortName": "RegionUrlMapsClient" + "fullName": "google.cloud.compute_v1.ReservationBlocksClient", + "shortName": "ReservationBlocksClient" }, - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.update", + "fullName": "google.cloud.compute_v1.ReservationBlocksClient.get", "method": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Update", + "fullName": "google.cloud.compute.v1.ReservationBlocks.Get", "service": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps", - "shortName": "RegionUrlMaps" + "fullName": "google.cloud.compute.v1.ReservationBlocks", + "shortName": "ReservationBlocks" }, - "shortName": "Update" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.UpdateRegionUrlMapRequest" + "type": "google.cloud.compute_v1.types.GetReservationBlockRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "url_map", + "name": "reservation", "type": "str" }, { - "name": "url_map_resource", - "type": "google.cloud.compute_v1.types.UrlMap" + "name": "reservation_block", + "type": "str" }, { "name": "retry", @@ -55193,22 +56921,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "update" + "resultType": "google.cloud.compute_v1.types.ReservationBlocksGetResponse", + "shortName": "get" }, - "description": "Sample for Update", - "file": "compute_v1_generated_region_url_maps_update_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_reservation_blocks_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionUrlMaps_Update_sync", + "regionTag": "compute_v1_generated_ReservationBlocks_Get_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -55218,60 +56946,56 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_url_maps_update_sync.py" + "title": "compute_v1_generated_reservation_blocks_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient", - "shortName": "RegionUrlMapsClient" + "fullName": "google.cloud.compute_v1.ReservationBlocksClient", + "shortName": "ReservationBlocksClient" }, - "fullName": "google.cloud.compute_v1.RegionUrlMapsClient.validate", + "fullName": "google.cloud.compute_v1.ReservationBlocksClient.list", "method": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Validate", + "fullName": "google.cloud.compute.v1.ReservationBlocks.List", "service": { - "fullName": "google.cloud.compute.v1.RegionUrlMaps", - "shortName": "RegionUrlMaps" + "fullName": "google.cloud.compute.v1.ReservationBlocks", + "shortName": "ReservationBlocks" }, - "shortName": "Validate" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ValidateRegionUrlMapRequest" + "type": "google.cloud.compute_v1.types.ListReservationBlocksRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", "type": "str" }, { - "name": "url_map", + "name": "reservation", "type": "str" }, - { - "name": "region_url_maps_validate_request_resource", - "type": "google.cloud.compute_v1.types.RegionUrlMapsValidateRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -55285,22 +57009,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.UrlMapsValidateResponse", - "shortName": "validate" + "resultType": "google.cloud.compute_v1.services.reservation_blocks.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for Validate", - "file": "compute_v1_generated_region_url_maps_validate_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_reservation_blocks_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionUrlMaps_Validate_sync", + "regionTag": "compute_v1_generated_ReservationBlocks_List_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -55320,42 +57044,54 @@ "type": "REQUEST_EXECUTION" }, { - "end": 54, + "end": 55, "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_url_maps_validate_sync.py" + "title": "compute_v1_generated_reservation_blocks_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionZonesClient", - "shortName": "RegionZonesClient" + "fullName": "google.cloud.compute_v1.ReservationBlocksClient", + "shortName": "ReservationBlocksClient" }, - "fullName": "google.cloud.compute_v1.RegionZonesClient.list", + "fullName": "google.cloud.compute_v1.ReservationBlocksClient.perform_maintenance", "method": { - "fullName": "google.cloud.compute.v1.RegionZones.List", + "fullName": "google.cloud.compute.v1.ReservationBlocks.PerformMaintenance", "service": { - "fullName": "google.cloud.compute.v1.RegionZones", - "shortName": "RegionZones" + "fullName": "google.cloud.compute.v1.ReservationBlocks", + "shortName": "ReservationBlocks" }, - "shortName": "List" + "shortName": "PerformMaintenance" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionZonesRequest" + "type": "google.cloud.compute_v1.types.PerformMaintenanceReservationBlockRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", + "type": "str" + }, + { + "name": "reservation", + "type": "str" + }, + { + "name": "reservation_block", "type": "str" }, + { + "name": "reservations_blocks_perform_maintenance_request_resource", + "type": "google.cloud.compute_v1.types.ReservationsBlocksPerformMaintenanceRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -55369,22 +57105,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.region_zones.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "perform_maintenance" }, - "description": "Sample for List", - "file": "compute_v1_generated_region_zones_list_sync.py", + "description": "Sample for PerformMaintenance", + "file": "compute_v1_generated_reservation_blocks_perform_maintenance_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_RegionZones_List_sync", + "regionTag": "compute_v1_generated_ReservationBlocks_PerformMaintenance_sync", "segments": [ { - "end": 53, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 54, "start": 27, "type": "SHORT" }, @@ -55394,52 +57130,64 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 50, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_region_zones_list_sync.py" + "title": "compute_v1_generated_reservation_blocks_perform_maintenance_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionsClient", - "shortName": "RegionsClient" + "fullName": "google.cloud.compute_v1.ReservationBlocksClient", + "shortName": "ReservationBlocksClient" }, - "fullName": "google.cloud.compute_v1.RegionsClient.get", + "fullName": "google.cloud.compute_v1.ReservationBlocksClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.Regions.Get", + "fullName": "google.cloud.compute.v1.ReservationBlocks.SetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.Regions", - "shortName": "Regions" + "fullName": "google.cloud.compute.v1.ReservationBlocks", + "shortName": "ReservationBlocks" }, - "shortName": "Get" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetRegionRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyReservationBlockRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "zone", + "type": "str" + }, + { + "name": "parent_resource", "type": "str" }, + { + "name": "resource", + "type": "str" + }, + { + "name": "zone_set_nested_policy_request_resource", + "type": "google.cloud.compute_v1.types.ZoneSetNestedPolicyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -55453,22 +57201,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.Region", - "shortName": "get" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for Get", - "file": "compute_v1_generated_regions_get_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_reservation_blocks_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Regions_Get_sync", + "regionTag": "compute_v1_generated_ReservationBlocks_SetIamPolicy_sync", "segments": [ { - "end": 52, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 54, "start": 27, "type": "SHORT" }, @@ -55478,48 +57226,64 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_regions_get_sync.py" + "title": "compute_v1_generated_reservation_blocks_set_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.RegionsClient", - "shortName": "RegionsClient" + "fullName": "google.cloud.compute_v1.ReservationBlocksClient", + "shortName": "ReservationBlocksClient" }, - "fullName": "google.cloud.compute_v1.RegionsClient.list", + "fullName": "google.cloud.compute_v1.ReservationBlocksClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.Regions.List", + "fullName": "google.cloud.compute.v1.ReservationBlocks.TestIamPermissions", "service": { - "fullName": "google.cloud.compute.v1.Regions", - "shortName": "Regions" + "fullName": "google.cloud.compute.v1.ReservationBlocks", + "shortName": "ReservationBlocks" }, - "shortName": "List" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListRegionsRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsReservationBlockRequest" }, { "name": "project", "type": "str" }, + { + "name": "zone", + "type": "str" + }, + { + "name": "parent_resource", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -55533,22 +57297,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.regions.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for List", - "file": "compute_v1_generated_regions_list_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_reservation_blocks_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_Regions_List_sync", + "regionTag": "compute_v1_generated_ReservationBlocks_TestIamPermissions_sync", "segments": [ { - "end": 52, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 54, "start": 27, "type": "SHORT" }, @@ -55558,43 +57322,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 49, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_regions_list_sync.py" + "title": "compute_v1_generated_reservation_blocks_test_iam_permissions_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ReservationBlocksClient", - "shortName": "ReservationBlocksClient" + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient", + "shortName": "ReservationSubBlocksClient" }, - "fullName": "google.cloud.compute_v1.ReservationBlocksClient.get", + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.get_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.ReservationBlocks.Get", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks.GetIamPolicy", "service": { - "fullName": "google.cloud.compute.v1.ReservationBlocks", - "shortName": "ReservationBlocks" + "fullName": "google.cloud.compute.v1.ReservationSubBlocks", + "shortName": "ReservationSubBlocks" }, - "shortName": "Get" + "shortName": "GetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetReservationBlockRequest" + "type": "google.cloud.compute_v1.types.GetIamPolicyReservationSubBlockRequest" }, { "name": "project", @@ -55605,11 +57369,11 @@ "type": "str" }, { - "name": "reservation", + "name": "parent_resource", "type": "str" }, { - "name": "reservation_block", + "name": "resource", "type": "str" }, { @@ -55625,14 +57389,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.ReservationBlocksGetResponse", - "shortName": "get" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "get_iam_policy" }, - "description": "Sample for Get", - "file": "compute_v1_generated_reservation_blocks_get_sync.py", + "description": "Sample for GetIamPolicy", + "file": "compute_v1_generated_reservation_sub_blocks_get_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ReservationBlocks_Get_sync", + "regionTag": "compute_v1_generated_ReservationSubBlocks_GetIamPolicy_sync", "segments": [ { "end": 54, @@ -55665,28 +57429,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_reservation_blocks_get_sync.py" + "title": "compute_v1_generated_reservation_sub_blocks_get_iam_policy_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ReservationBlocksClient", - "shortName": "ReservationBlocksClient" + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient", + "shortName": "ReservationSubBlocksClient" }, - "fullName": "google.cloud.compute_v1.ReservationBlocksClient.list", + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.get", "method": { - "fullName": "google.cloud.compute.v1.ReservationBlocks.List", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks.Get", "service": { - "fullName": "google.cloud.compute.v1.ReservationBlocks", - "shortName": "ReservationBlocks" + "fullName": "google.cloud.compute.v1.ReservationSubBlocks", + "shortName": "ReservationSubBlocks" }, - "shortName": "List" + "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListReservationBlocksRequest" + "type": "google.cloud.compute_v1.types.GetReservationSubBlockRequest" }, { "name": "project", @@ -55697,7 +57461,11 @@ "type": "str" }, { - "name": "reservation", + "name": "parent_name", + "type": "str" + }, + { + "name": "reservation_sub_block", "type": "str" }, { @@ -55713,14 +57481,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.reservation_blocks.pagers.ListPager", - "shortName": "list" + "resultType": "google.cloud.compute_v1.types.ReservationSubBlocksGetResponse", + "shortName": "get" }, - "description": "Sample for List", - "file": "compute_v1_generated_reservation_blocks_list_sync.py", + "description": "Sample for Get", + "file": "compute_v1_generated_reservation_sub_blocks_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ReservationBlocks_List_sync", + "regionTag": "compute_v1_generated_ReservationSubBlocks_Get_sync", "segments": [ { "end": 54, @@ -55738,43 +57506,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { "end": 55, - "start": 51, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_reservation_blocks_list_sync.py" + "title": "compute_v1_generated_reservation_sub_blocks_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.ReservationBlocksClient", - "shortName": "ReservationBlocksClient" + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient", + "shortName": "ReservationSubBlocksClient" }, - "fullName": "google.cloud.compute_v1.ReservationBlocksClient.perform_maintenance", + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.list", "method": { - "fullName": "google.cloud.compute.v1.ReservationBlocks.PerformMaintenance", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks.List", "service": { - "fullName": "google.cloud.compute.v1.ReservationBlocks", - "shortName": "ReservationBlocks" + "fullName": "google.cloud.compute.v1.ReservationSubBlocks", + "shortName": "ReservationSubBlocks" }, - "shortName": "PerformMaintenance" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PerformMaintenanceReservationBlockRequest" + "type": "google.cloud.compute_v1.types.ListReservationSubBlocksRequest" }, { "name": "project", @@ -55785,17 +57553,9 @@ "type": "str" }, { - "name": "reservation", - "type": "str" - }, - { - "name": "reservation_block", + "name": "parent_name", "type": "str" }, - { - "name": "reservations_blocks_perform_maintenance_request_resource", - "type": "google.cloud.compute_v1.types.ReservationsBlocksPerformMaintenanceRequest" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -55809,14 +57569,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "perform_maintenance" + "resultType": "google.cloud.compute_v1.services.reservation_sub_blocks.pagers.ListPager", + "shortName": "list" }, - "description": "Sample for PerformMaintenance", - "file": "compute_v1_generated_reservation_blocks_perform_maintenance_sync.py", + "description": "Sample for List", + "file": "compute_v1_generated_reservation_sub_blocks_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ReservationBlocks_PerformMaintenance_sync", + "regionTag": "compute_v1_generated_ReservationSubBlocks_List_sync", "segments": [ { "end": 54, @@ -55834,22 +57594,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 47, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { "end": 55, - "start": 52, + "start": 51, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_reservation_blocks_perform_maintenance_sync.py" + "title": "compute_v1_generated_reservation_sub_blocks_list_sync.py" }, { "canonical": true, @@ -55858,19 +57618,19 @@ "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient", "shortName": "ReservationSubBlocksClient" }, - "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.get", + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.perform_maintenance", "method": { - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.Get", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks.PerformMaintenance", "service": { "fullName": "google.cloud.compute.v1.ReservationSubBlocks", "shortName": "ReservationSubBlocks" }, - "shortName": "Get" + "shortName": "PerformMaintenance" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetReservationSubBlockRequest" + "type": "google.cloud.compute_v1.types.PerformMaintenanceReservationSubBlockRequest" }, { "name": "project", @@ -55901,14 +57661,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.ReservationSubBlocksGetResponse", - "shortName": "get" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "perform_maintenance" }, - "description": "Sample for Get", - "file": "compute_v1_generated_reservation_sub_blocks_get_sync.py", + "description": "Sample for PerformMaintenance", + "file": "compute_v1_generated_reservation_sub_blocks_perform_maintenance_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ReservationSubBlocks_Get_sync", + "regionTag": "compute_v1_generated_ReservationSubBlocks_PerformMaintenance_sync", "segments": [ { "end": 54, @@ -55941,7 +57701,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_reservation_sub_blocks_get_sync.py" + "title": "compute_v1_generated_reservation_sub_blocks_perform_maintenance_sync.py" }, { "canonical": true, @@ -55950,19 +57710,19 @@ "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient", "shortName": "ReservationSubBlocksClient" }, - "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.list", + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.report_faulty", "method": { - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.List", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks.ReportFaulty", "service": { "fullName": "google.cloud.compute.v1.ReservationSubBlocks", "shortName": "ReservationSubBlocks" }, - "shortName": "List" + "shortName": "ReportFaulty" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListReservationSubBlocksRequest" + "type": "google.cloud.compute_v1.types.ReportFaultyReservationSubBlockRequest" }, { "name": "project", @@ -55976,6 +57736,14 @@ "name": "parent_name", "type": "str" }, + { + "name": "reservation_sub_block", + "type": "str" + }, + { + "name": "reservation_sub_blocks_report_faulty_request_resource", + "type": "google.cloud.compute_v1.types.ReservationSubBlocksReportFaultyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -55989,14 +57757,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.reservation_sub_blocks.pagers.ListPager", - "shortName": "list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "report_faulty" }, - "description": "Sample for List", - "file": "compute_v1_generated_reservation_sub_blocks_list_sync.py", + "description": "Sample for ReportFaulty", + "file": "compute_v1_generated_reservation_sub_blocks_report_faulty_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ReservationSubBlocks_List_sync", + "regionTag": "compute_v1_generated_ReservationSubBlocks_ReportFaulty_sync", "segments": [ { "end": 54, @@ -56014,22 +57782,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 47, + "end": 48, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 48, + "end": 51, + "start": 49, "type": "REQUEST_EXECUTION" }, { "end": 55, - "start": 51, + "start": 52, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_reservation_sub_blocks_list_sync.py" + "title": "compute_v1_generated_reservation_sub_blocks_report_faulty_sync.py" }, { "canonical": true, @@ -56038,19 +57806,19 @@ "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient", "shortName": "ReservationSubBlocksClient" }, - "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.perform_maintenance", + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.set_iam_policy", "method": { - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.PerformMaintenance", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks.SetIamPolicy", "service": { "fullName": "google.cloud.compute.v1.ReservationSubBlocks", "shortName": "ReservationSubBlocks" }, - "shortName": "PerformMaintenance" + "shortName": "SetIamPolicy" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.PerformMaintenanceReservationSubBlockRequest" + "type": "google.cloud.compute_v1.types.SetIamPolicyReservationSubBlockRequest" }, { "name": "project", @@ -56061,13 +57829,17 @@ "type": "str" }, { - "name": "parent_name", + "name": "parent_resource", "type": "str" }, { - "name": "reservation_sub_block", + "name": "resource", "type": "str" }, + { + "name": "zone_set_nested_policy_request_resource", + "type": "google.cloud.compute_v1.types.ZoneSetNestedPolicyRequest" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -56081,14 +57853,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "perform_maintenance" + "resultType": "google.cloud.compute_v1.types.Policy", + "shortName": "set_iam_policy" }, - "description": "Sample for PerformMaintenance", - "file": "compute_v1_generated_reservation_sub_blocks_perform_maintenance_sync.py", + "description": "Sample for SetIamPolicy", + "file": "compute_v1_generated_reservation_sub_blocks_set_iam_policy_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ReservationSubBlocks_PerformMaintenance_sync", + "regionTag": "compute_v1_generated_ReservationSubBlocks_SetIamPolicy_sync", "segments": [ { "end": 54, @@ -56121,7 +57893,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_reservation_sub_blocks_perform_maintenance_sync.py" + "title": "compute_v1_generated_reservation_sub_blocks_set_iam_policy_sync.py" }, { "canonical": true, @@ -56130,19 +57902,19 @@ "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient", "shortName": "ReservationSubBlocksClient" }, - "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.report_faulty", + "fullName": "google.cloud.compute_v1.ReservationSubBlocksClient.test_iam_permissions", "method": { - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.ReportFaulty", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks.TestIamPermissions", "service": { "fullName": "google.cloud.compute.v1.ReservationSubBlocks", "shortName": "ReservationSubBlocks" }, - "shortName": "ReportFaulty" + "shortName": "TestIamPermissions" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ReportFaultyReservationSubBlockRequest" + "type": "google.cloud.compute_v1.types.TestIamPermissionsReservationSubBlockRequest" }, { "name": "project", @@ -56153,16 +57925,16 @@ "type": "str" }, { - "name": "parent_name", + "name": "parent_resource", "type": "str" }, { - "name": "reservation_sub_block", + "name": "resource", "type": "str" }, { - "name": "reservation_sub_blocks_report_faulty_request_resource", - "type": "google.cloud.compute_v1.types.ReservationSubBlocksReportFaultyRequest" + "name": "test_permissions_request_resource", + "type": "google.cloud.compute_v1.types.TestPermissionsRequest" }, { "name": "retry", @@ -56177,14 +57949,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "report_faulty" + "resultType": "google.cloud.compute_v1.types.TestPermissionsResponse", + "shortName": "test_iam_permissions" }, - "description": "Sample for ReportFaulty", - "file": "compute_v1_generated_reservation_sub_blocks_report_faulty_sync.py", + "description": "Sample for TestIamPermissions", + "file": "compute_v1_generated_reservation_sub_blocks_test_iam_permissions_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_ReservationSubBlocks_ReportFaulty_sync", + "regionTag": "compute_v1_generated_ReservationSubBlocks_TestIamPermissions_sync", "segments": [ { "end": 54, @@ -56217,7 +57989,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_reservation_sub_blocks_report_faulty_sync.py" + "title": "compute_v1_generated_reservation_sub_blocks_test_iam_permissions_sync.py" }, { "canonical": true, @@ -72717,7 +74489,263 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_vpn_gateways_test_iam_permissions_sync.py" + "title": "compute_v1_generated_vpn_gateways_test_iam_permissions_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnTunnelsClient", + "shortName": "VpnTunnelsClient" + }, + "fullName": "google.cloud.compute_v1.VpnTunnelsClient.aggregated_list", + "method": { + "fullName": "google.cloud.compute.v1.VpnTunnels.AggregatedList", + "service": { + "fullName": "google.cloud.compute.v1.VpnTunnels", + "shortName": "VpnTunnels" + }, + "shortName": "AggregatedList" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.AggregatedListVpnTunnelsRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.services.vpn_tunnels.pagers.AggregatedListPager", + "shortName": "aggregated_list" + }, + "description": "Sample for AggregatedList", + "file": "compute_v1_generated_vpn_tunnels_aggregated_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnTunnels_AggregatedList_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 45, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 46, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_vpn_tunnels_aggregated_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnTunnelsClient", + "shortName": "VpnTunnelsClient" + }, + "fullName": "google.cloud.compute_v1.VpnTunnelsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.VpnTunnels.Delete", + "service": { + "fullName": "google.cloud.compute.v1.VpnTunnels", + "shortName": "VpnTunnels" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteVpnTunnelRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "vpn_tunnel", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "delete" + }, + "description": "Sample for Delete", + "file": "compute_v1_generated_vpn_tunnels_delete_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnTunnels_Delete_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_vpn_tunnels_delete_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnTunnelsClient", + "shortName": "VpnTunnelsClient" + }, + "fullName": "google.cloud.compute_v1.VpnTunnelsClient.get", + "method": { + "fullName": "google.cloud.compute.v1.VpnTunnels.Get", + "service": { + "fullName": "google.cloud.compute.v1.VpnTunnels", + "shortName": "VpnTunnels" + }, + "shortName": "Get" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.GetVpnTunnelRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "vpn_tunnel", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.types.VpnTunnel", + "shortName": "get" + }, + "description": "Sample for Get", + "file": "compute_v1_generated_vpn_tunnels_get_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnTunnels_Get_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_vpn_tunnels_get_sync.py" }, { "canonical": true, @@ -72726,24 +74754,32 @@ "fullName": "google.cloud.compute_v1.VpnTunnelsClient", "shortName": "VpnTunnelsClient" }, - "fullName": "google.cloud.compute_v1.VpnTunnelsClient.aggregated_list", + "fullName": "google.cloud.compute_v1.VpnTunnelsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.VpnTunnels.AggregatedList", + "fullName": "google.cloud.compute.v1.VpnTunnels.Insert", "service": { "fullName": "google.cloud.compute.v1.VpnTunnels", "shortName": "VpnTunnels" }, - "shortName": "AggregatedList" + "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.AggregatedListVpnTunnelsRequest" + "type": "google.cloud.compute_v1.types.InsertVpnTunnelRequest" }, { "name": "project", "type": "str" }, + { + "name": "region", + "type": "str" + }, + { + "name": "vpn_tunnel_resource", + "type": "google.cloud.compute_v1.types.VpnTunnel" + }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -72757,14 +74793,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.vpn_tunnels.pagers.AggregatedListPager", - "shortName": "aggregated_list" + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "insert" }, - "description": "Sample for AggregatedList", - "file": "compute_v1_generated_vpn_tunnels_aggregated_list_sync.py", + "description": "Sample for Insert", + "file": "compute_v1_generated_vpn_tunnels_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_VpnTunnels_AggregatedList_sync", + "regionTag": "compute_v1_generated_VpnTunnels_Insert_sync", "segments": [ { "end": 52, @@ -72782,22 +74818,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { "end": 53, - "start": 49, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_vpn_tunnels_aggregated_list_sync.py" + "title": "compute_v1_generated_vpn_tunnels_insert_sync.py" }, { "canonical": true, @@ -72806,19 +74842,19 @@ "fullName": "google.cloud.compute_v1.VpnTunnelsClient", "shortName": "VpnTunnelsClient" }, - "fullName": "google.cloud.compute_v1.VpnTunnelsClient.delete", + "fullName": "google.cloud.compute_v1.VpnTunnelsClient.list", "method": { - "fullName": "google.cloud.compute.v1.VpnTunnels.Delete", + "fullName": "google.cloud.compute.v1.VpnTunnels.List", "service": { "fullName": "google.cloud.compute.v1.VpnTunnels", "shortName": "VpnTunnels" }, - "shortName": "Delete" + "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.DeleteVpnTunnelRequest" + "type": "google.cloud.compute_v1.types.ListVpnTunnelsRequest" }, { "name": "project", @@ -72829,7 +74865,183 @@ "type": "str" }, { - "name": "vpn_tunnel", + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.cloud.compute_v1.services.vpn_tunnels.pagers.ListPager", + "shortName": "list" + }, + "description": "Sample for List", + "file": "compute_v1_generated_vpn_tunnels_list_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnTunnels_List_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 46, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 47, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_vpn_tunnels_list_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.VpnTunnelsClient", + "shortName": "VpnTunnelsClient" + }, + "fullName": "google.cloud.compute_v1.VpnTunnelsClient.set_labels", + "method": { + "fullName": "google.cloud.compute.v1.VpnTunnels.SetLabels", + "service": { + "fullName": "google.cloud.compute.v1.VpnTunnels", + "shortName": "VpnTunnels" + }, + "shortName": "SetLabels" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.SetLabelsVpnTunnelRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "region", + "type": "str" + }, + { + "name": "resource", + "type": "str" + }, + { + "name": "region_set_labels_request_resource", + "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, Union[str, bytes]]]" + } + ], + "resultType": "google.api_core.extended_operation.ExtendedOperation", + "shortName": "set_labels" + }, + "description": "Sample for SetLabels", + "file": "compute_v1_generated_vpn_tunnels_set_labels_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "compute_v1_generated_VpnTunnels_SetLabels_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 48, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ], + "title": "compute_v1_generated_vpn_tunnels_set_labels_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.compute_v1.WireGroupsClient", + "shortName": "WireGroupsClient" + }, + "fullName": "google.cloud.compute_v1.WireGroupsClient.delete", + "method": { + "fullName": "google.cloud.compute.v1.WireGroups.Delete", + "service": { + "fullName": "google.cloud.compute.v1.WireGroups", + "shortName": "WireGroups" + }, + "shortName": "Delete" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.compute_v1.types.DeleteWireGroupRequest" + }, + { + "name": "project", + "type": "str" + }, + { + "name": "cross_site_network", + "type": "str" + }, + { + "name": "wire_group", "type": "str" }, { @@ -72849,10 +75061,10 @@ "shortName": "delete" }, "description": "Sample for Delete", - "file": "compute_v1_generated_vpn_tunnels_delete_sync.py", + "file": "compute_v1_generated_wire_groups_delete_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_VpnTunnels_Delete_sync", + "regionTag": "compute_v1_generated_WireGroups_Delete_sync", "segments": [ { "end": 53, @@ -72885,39 +75097,39 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_vpn_tunnels_delete_sync.py" + "title": "compute_v1_generated_wire_groups_delete_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.VpnTunnelsClient", - "shortName": "VpnTunnelsClient" + "fullName": "google.cloud.compute_v1.WireGroupsClient", + "shortName": "WireGroupsClient" }, - "fullName": "google.cloud.compute_v1.VpnTunnelsClient.get", + "fullName": "google.cloud.compute_v1.WireGroupsClient.get", "method": { - "fullName": "google.cloud.compute.v1.VpnTunnels.Get", + "fullName": "google.cloud.compute.v1.WireGroups.Get", "service": { - "fullName": "google.cloud.compute.v1.VpnTunnels", - "shortName": "VpnTunnels" + "fullName": "google.cloud.compute.v1.WireGroups", + "shortName": "WireGroups" }, "shortName": "Get" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.GetVpnTunnelRequest" + "type": "google.cloud.compute_v1.types.GetWireGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "cross_site_network", "type": "str" }, { - "name": "vpn_tunnel", + "name": "wire_group", "type": "str" }, { @@ -72933,14 +75145,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.types.VpnTunnel", + "resultType": "google.cloud.compute_v1.types.WireGroup", "shortName": "get" }, "description": "Sample for Get", - "file": "compute_v1_generated_vpn_tunnels_get_sync.py", + "file": "compute_v1_generated_wire_groups_get_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_VpnTunnels_Get_sync", + "regionTag": "compute_v1_generated_WireGroups_Get_sync", "segments": [ { "end": 53, @@ -72973,40 +75185,40 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_vpn_tunnels_get_sync.py" + "title": "compute_v1_generated_wire_groups_get_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.VpnTunnelsClient", - "shortName": "VpnTunnelsClient" + "fullName": "google.cloud.compute_v1.WireGroupsClient", + "shortName": "WireGroupsClient" }, - "fullName": "google.cloud.compute_v1.VpnTunnelsClient.insert", + "fullName": "google.cloud.compute_v1.WireGroupsClient.insert", "method": { - "fullName": "google.cloud.compute.v1.VpnTunnels.Insert", + "fullName": "google.cloud.compute.v1.WireGroups.Insert", "service": { - "fullName": "google.cloud.compute.v1.VpnTunnels", - "shortName": "VpnTunnels" + "fullName": "google.cloud.compute.v1.WireGroups", + "shortName": "WireGroups" }, "shortName": "Insert" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.InsertVpnTunnelRequest" + "type": "google.cloud.compute_v1.types.InsertWireGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "cross_site_network", "type": "str" }, { - "name": "vpn_tunnel_resource", - "type": "google.cloud.compute_v1.types.VpnTunnel" + "name": "wire_group_resource", + "type": "google.cloud.compute_v1.types.WireGroup" }, { "name": "retry", @@ -73025,10 +75237,10 @@ "shortName": "insert" }, "description": "Sample for Insert", - "file": "compute_v1_generated_vpn_tunnels_insert_sync.py", + "file": "compute_v1_generated_wire_groups_insert_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_VpnTunnels_Insert_sync", + "regionTag": "compute_v1_generated_WireGroups_Insert_sync", "segments": [ { "end": 52, @@ -73061,35 +75273,35 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_vpn_tunnels_insert_sync.py" + "title": "compute_v1_generated_wire_groups_insert_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.VpnTunnelsClient", - "shortName": "VpnTunnelsClient" + "fullName": "google.cloud.compute_v1.WireGroupsClient", + "shortName": "WireGroupsClient" }, - "fullName": "google.cloud.compute_v1.VpnTunnelsClient.list", + "fullName": "google.cloud.compute_v1.WireGroupsClient.list", "method": { - "fullName": "google.cloud.compute.v1.VpnTunnels.List", + "fullName": "google.cloud.compute.v1.WireGroups.List", "service": { - "fullName": "google.cloud.compute.v1.VpnTunnels", - "shortName": "VpnTunnels" + "fullName": "google.cloud.compute.v1.WireGroups", + "shortName": "WireGroups" }, "shortName": "List" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.ListVpnTunnelsRequest" + "type": "google.cloud.compute_v1.types.ListWireGroupsRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "cross_site_network", "type": "str" }, { @@ -73105,14 +75317,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.compute_v1.services.vpn_tunnels.pagers.ListPager", + "resultType": "google.cloud.compute_v1.services.wire_groups.pagers.ListPager", "shortName": "list" }, "description": "Sample for List", - "file": "compute_v1_generated_vpn_tunnels_list_sync.py", + "file": "compute_v1_generated_wire_groups_list_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_VpnTunnels_List_sync", + "regionTag": "compute_v1_generated_WireGroups_List_sync", "segments": [ { "end": 53, @@ -73145,44 +75357,44 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_vpn_tunnels_list_sync.py" + "title": "compute_v1_generated_wire_groups_list_sync.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.compute_v1.VpnTunnelsClient", - "shortName": "VpnTunnelsClient" + "fullName": "google.cloud.compute_v1.WireGroupsClient", + "shortName": "WireGroupsClient" }, - "fullName": "google.cloud.compute_v1.VpnTunnelsClient.set_labels", + "fullName": "google.cloud.compute_v1.WireGroupsClient.patch", "method": { - "fullName": "google.cloud.compute.v1.VpnTunnels.SetLabels", + "fullName": "google.cloud.compute.v1.WireGroups.Patch", "service": { - "fullName": "google.cloud.compute.v1.VpnTunnels", - "shortName": "VpnTunnels" + "fullName": "google.cloud.compute.v1.WireGroups", + "shortName": "WireGroups" }, - "shortName": "SetLabels" + "shortName": "Patch" }, "parameters": [ { "name": "request", - "type": "google.cloud.compute_v1.types.SetLabelsVpnTunnelRequest" + "type": "google.cloud.compute_v1.types.PatchWireGroupRequest" }, { "name": "project", "type": "str" }, { - "name": "region", + "name": "cross_site_network", "type": "str" }, { - "name": "resource", + "name": "wire_group", "type": "str" }, { - "name": "region_set_labels_request_resource", - "type": "google.cloud.compute_v1.types.RegionSetLabelsRequest" + "name": "wire_group_resource", + "type": "google.cloud.compute_v1.types.WireGroup" }, { "name": "retry", @@ -73198,13 +75410,13 @@ } ], "resultType": "google.api_core.extended_operation.ExtendedOperation", - "shortName": "set_labels" + "shortName": "patch" }, - "description": "Sample for SetLabels", - "file": "compute_v1_generated_vpn_tunnels_set_labels_sync.py", + "description": "Sample for Patch", + "file": "compute_v1_generated_wire_groups_patch_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "compute_v1_generated_VpnTunnels_SetLabels_sync", + "regionTag": "compute_v1_generated_WireGroups_Patch_sync", "segments": [ { "end": 53, @@ -73237,7 +75449,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "compute_v1_generated_vpn_tunnels_set_labels_sync.py" + "title": "compute_v1_generated_wire_groups_patch_sync.py" }, { "canonical": true, diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_addresses.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_addresses.py index 5862bd0d8fcb..ecb4049f5ecf 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_addresses.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_addresses.py @@ -4181,6 +4181,7 @@ def test_get_rest_call_success(request_type): creation_timestamp="creation_timestamp_value", description="description_value", id=205, + ip_collection="ip_collection_value", ip_version="ip_version_value", ipv6_endpoint_type="ipv6_endpoint_type_value", kind="kind_value", @@ -4216,6 +4217,7 @@ def test_get_rest_call_success(request_type): assert response.creation_timestamp == "creation_timestamp_value" assert response.description == "description_value" assert response.id == 205 + assert response.ip_collection == "ip_collection_value" assert response.ip_version == "ip_version_value" assert response.ipv6_endpoint_type == "ipv6_endpoint_type_value" assert response.kind == "kind_value" @@ -4333,6 +4335,7 @@ def test_insert_rest_call_success(request_type): "creation_timestamp": "creation_timestamp_value", "description": "description_value", "id": 205, + "ip_collection": "ip_collection_value", "ip_version": "ip_version_value", "ipv6_endpoint_type": "ipv6_endpoint_type_value", "kind": "kind_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_firewall_policies.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_firewall_policies.py index adf29d934b36..372e82143124 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_firewall_policies.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_firewall_policies.py @@ -7509,6 +7509,7 @@ def test_get_rest_call_success(request_type): kind="kind_value", name="name_value", parent="parent_value", + policy_type="policy_type_value", region="region_value", rule_tuple_count=1737, self_link="self_link_value", @@ -7538,6 +7539,7 @@ def test_get_rest_call_success(request_type): assert response.kind == "kind_value" assert response.name == "name_value" assert response.parent == "parent_value" + assert response.policy_type == "policy_type_value" assert response.region == "region_value" assert response.rule_tuple_count == 1737 assert response.self_link == "self_link_value" @@ -8146,6 +8148,7 @@ def test_insert_rest_call_success(request_type): } ], "parent": "parent_value", + "policy_type": "policy_type_value", "region": "region_value", "rule_tuple_count": 1737, "rules": {}, @@ -8905,6 +8908,7 @@ def test_patch_rest_call_success(request_type): } ], "parent": "parent_value", + "policy_type": "policy_type_value", "region": "region_value", "rule_tuple_count": 1737, "rules": {}, diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_firewalls.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_firewalls.py index bb47ac09a9cd..2bc5ea502da8 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_firewalls.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_firewalls.py @@ -2761,6 +2761,210 @@ def test_patch_unary_rest_flattened_error(transport: str = "rest"): ) +def test_test_iam_permissions_rest_use_cached_wrapped_rpc(): + # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, + # instead of constructing them on each call + with mock.patch("google.api_core.gapic_v1.method.wrap_method") as wrapper_fn: + client = FirewallsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Should wrap all calls on client creation + assert wrapper_fn.call_count > 0 + wrapper_fn.reset_mock() + + # Ensure method has been cached + assert ( + client._transport.test_iam_permissions in client._transport._wrapped_methods + ) + + # Replace cached wrapped function with mock + mock_rpc = mock.Mock() + mock_rpc.return_value.name = ( + "foo" # operation_request.operation in compute client(s) expect a string. + ) + client._transport._wrapped_methods[ + client._transport.test_iam_permissions + ] = mock_rpc + + request = {} + client.test_iam_permissions(request) + + # Establish that the underlying gRPC stub method was called. + assert mock_rpc.call_count == 1 + + client.test_iam_permissions(request) + + # Establish that a new wrapper was not created for this call + assert wrapper_fn.call_count == 0 + assert mock_rpc.call_count == 2 + + +def test_test_iam_permissions_rest_required_fields( + request_type=compute.TestIamPermissionsFirewallRequest, +): + transport_class = transports.FirewallsRestTransport + + request_init = {} + request_init["project"] = "" + request_init["resource"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson(pb_request, use_integers_for_enums=False) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).test_iam_permissions._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["project"] = "project_value" + jsonified_request["resource"] = "resource_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).test_iam_permissions._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "resource" in jsonified_request + assert jsonified_request["resource"] == "resource_value" + + client = FirewallsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.TestPermissionsResponse() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.TestPermissionsResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + response = client.test_iam_permissions(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_test_iam_permissions_rest_unset_required_fields(): + transport = transports.FirewallsRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.test_iam_permissions._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(()) + & set( + ( + "project", + "resource", + "testPermissionsRequestResource", + ) + ) + ) + + +def test_test_iam_permissions_rest_flattened(): + client = FirewallsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.TestPermissionsResponse() + + # get arguments that satisfy an http rule for this method + sample_request = {"project": "sample1", "resource": "sample2"} + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + resource="resource_value", + test_permissions_request_resource=compute.TestPermissionsRequest( + permissions=["permissions_value"] + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + # Convert return value to protobuf type + return_value = compute.TestPermissionsResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + client.test_iam_permissions(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/global/firewalls/{resource}/testIamPermissions" + % client.transport._host, + args[1], + ) + + +def test_test_iam_permissions_rest_flattened_error(transport: str = "rest"): + client = FirewallsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.test_iam_permissions( + compute.TestIamPermissionsFirewallRequest(), + project="project_value", + resource="resource_value", + test_permissions_request_resource=compute.TestPermissionsRequest( + permissions=["permissions_value"] + ), + ) + + def test_update_rest_use_cached_wrapped_rpc(): # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, # instead of constructing them on each call @@ -4234,6 +4438,211 @@ def test_patch_rest_interceptors(null_interceptor): post_with_metadata.assert_called_once() +def test_test_iam_permissions_rest_bad_request( + request_type=compute.TestIamPermissionsFirewallRequest, +): + client = FirewallsClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "resource": "sample2"} + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = mock.Mock() + json_return_value = "" + response_value.json = mock.Mock(return_value={}) + response_value.status_code = 400 + response_value.request = mock.Mock() + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + client.test_iam_permissions(request) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.TestIamPermissionsFirewallRequest, + dict, + ], +) +def test_test_iam_permissions_rest_call_success(request_type): + client = FirewallsClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "resource": "sample2"} + request_init["test_permissions_request_resource"] = { + "permissions": ["permissions_value1", "permissions_value2"] + } + # The version of a generated dependency at test runtime may differ from the version used during generation. + # Delete any fields which are not present in the current runtime dependency + # See https://github.com/googleapis/gapic-generator-python/issues/1748 + + # Determine if the message type is proto-plus or protobuf + test_field = compute.TestIamPermissionsFirewallRequest.meta.fields[ + "test_permissions_request_resource" + ] + + def get_message_fields(field): + # Given a field which is a message (composite type), return a list with + # all the fields of the message. + # If the field is not a composite type, return an empty list. + message_fields = [] + + if hasattr(field, "message") and field.message: + is_field_type_proto_plus_type = not hasattr(field.message, "DESCRIPTOR") + + if is_field_type_proto_plus_type: + message_fields = field.message.meta.fields.values() + # Add `# pragma: NO COVER` because there may not be any `*_pb2` field types + else: # pragma: NO COVER + message_fields = field.message.DESCRIPTOR.fields + return message_fields + + runtime_nested_fields = [ + (field.name, nested_field.name) + for field in get_message_fields(test_field) + for nested_field in get_message_fields(field) + ] + + subfields_not_in_runtime = [] + + # For each item in the sample request, create a list of sub fields which are not present at runtime + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for field, value in request_init[ + "test_permissions_request_resource" + ].items(): # pragma: NO COVER + result = None + is_repeated = False + # For repeated fields + if isinstance(value, list) and len(value): + is_repeated = True + result = value[0] + # For fields where the type is another message + if isinstance(value, dict): + result = value + + if result and hasattr(result, "keys"): + for subfield in result.keys(): + if (field, subfield) not in runtime_nested_fields: + subfields_not_in_runtime.append( + { + "field": field, + "subfield": subfield, + "is_repeated": is_repeated, + } + ) + + # Remove fields from the sample request which are not present in the runtime version of the dependency + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for subfield_to_delete in subfields_not_in_runtime: # pragma: NO COVER + field = subfield_to_delete.get("field") + field_repeated = subfield_to_delete.get("is_repeated") + subfield = subfield_to_delete.get("subfield") + if subfield: + if field_repeated: + for i in range( + 0, len(request_init["test_permissions_request_resource"][field]) + ): + del request_init["test_permissions_request_resource"][field][i][ + subfield + ] + else: + del request_init["test_permissions_request_resource"][field][subfield] + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.TestPermissionsResponse( + permissions=["permissions_value"], + ) + + # Wrap the value into a proper Response obj + response_value = mock.Mock() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.TestPermissionsResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value.content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + response = client.test_iam_permissions(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.TestPermissionsResponse) + assert response.permissions == ["permissions_value"] + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_test_iam_permissions_rest_interceptors(null_interceptor): + transport = transports.FirewallsRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None if null_interceptor else transports.FirewallsRestInterceptor(), + ) + client = FirewallsClient(transport=transport) + + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.FirewallsRestInterceptor, "post_test_iam_permissions" + ) as post, mock.patch.object( + transports.FirewallsRestInterceptor, "post_test_iam_permissions_with_metadata" + ) as post_with_metadata, mock.patch.object( + transports.FirewallsRestInterceptor, "pre_test_iam_permissions" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + post_with_metadata.assert_not_called() + pb_message = compute.TestIamPermissionsFirewallRequest.pb( + compute.TestIamPermissionsFirewallRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = mock.Mock() + req.return_value.status_code = 200 + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + return_value = compute.TestPermissionsResponse.to_json( + compute.TestPermissionsResponse() + ) + req.return_value.content = return_value + + request = compute.TestIamPermissionsFirewallRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.TestPermissionsResponse() + post_with_metadata.return_value = compute.TestPermissionsResponse(), metadata + + client.test_iam_permissions( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + post_with_metadata.assert_called_once() + + def test_update_rest_bad_request(request_type=compute.UpdateFirewallRequest): client = FirewallsClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" @@ -4612,6 +5021,28 @@ def test_patch_unary_empty_call_rest(): assert args[0] == request_msg +# This test is a coverage failsafe to make sure that totally empty calls, +# i.e. request == None and no flattened fields passed, work. +def test_test_iam_permissions_empty_call_rest(): + client = FirewallsClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the actual call, and fake the request. + with mock.patch.object( + type(client.transport.test_iam_permissions), "__call__" + ) as call: + client.test_iam_permissions(request=None) + + # Establish that the underlying stub method was called. + call.assert_called() + _, args, _ = call.mock_calls[0] + request_msg = compute.TestIamPermissionsFirewallRequest() + + assert args[0] == request_msg + + # This test is a coverage failsafe to make sure that totally empty calls, # i.e. request == None and no flattened fields passed, work. def test_update_unary_empty_call_rest(): @@ -4659,6 +5090,7 @@ def test_firewalls_base_transport(): "insert", "list", "patch", + "test_iam_permissions", "update", ) for method in methods: @@ -4812,6 +5244,9 @@ def test_firewalls_client_transport_session_collision(transport_name): session1 = client1.transport.patch._session session2 = client2.transport.patch._session assert session1 != session2 + session1 = client1.transport.test_iam_permissions._session + session2 = client2.transport.test_iam_permissions._session + assert session1 != session2 session1 = client1.transport.update._session session2 = client2.transport.update._session assert session1 != session2 diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_global_addresses.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_global_addresses.py index 6ca00d3cffea..774f65a259ff 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_global_addresses.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_global_addresses.py @@ -3709,6 +3709,7 @@ def test_get_rest_call_success(request_type): creation_timestamp="creation_timestamp_value", description="description_value", id=205, + ip_collection="ip_collection_value", ip_version="ip_version_value", ipv6_endpoint_type="ipv6_endpoint_type_value", kind="kind_value", @@ -3744,6 +3745,7 @@ def test_get_rest_call_success(request_type): assert response.creation_timestamp == "creation_timestamp_value" assert response.description == "description_value" assert response.id == 205 + assert response.ip_collection == "ip_collection_value" assert response.ip_version == "ip_version_value" assert response.ipv6_endpoint_type == "ipv6_endpoint_type_value" assert response.kind == "kind_value" @@ -3865,6 +3867,7 @@ def test_insert_rest_call_success(request_type): "creation_timestamp": "creation_timestamp_value", "description": "description_value", "id": 205, + "ip_collection": "ip_collection_value", "ip_version": "ip_version_value", "ipv6_endpoint_type": "ipv6_endpoint_type_value", "kind": "kind_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_global_public_delegated_prefixes.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_global_public_delegated_prefixes.py index 86d92d8f5651..93f8dafe46c6 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_global_public_delegated_prefixes.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_global_public_delegated_prefixes.py @@ -3205,9 +3205,11 @@ def test_get_rest_call_success(request_type): byoip_api_version="byoip_api_version_value", creation_timestamp="creation_timestamp_value", description="description_value", + enable_enhanced_ipv4_allocation=True, fingerprint="fingerprint_value", id=205, ip_cidr_range="ip_cidr_range_value", + ipv6_access_type="ipv6_access_type_value", is_live_migration=True, kind="kind_value", mode="mode_value", @@ -3236,9 +3238,11 @@ def test_get_rest_call_success(request_type): assert response.byoip_api_version == "byoip_api_version_value" assert response.creation_timestamp == "creation_timestamp_value" assert response.description == "description_value" + assert response.enable_enhanced_ipv4_allocation is True assert response.fingerprint == "fingerprint_value" assert response.id == 205 assert response.ip_cidr_range == "ip_cidr_range_value" + assert response.ipv6_access_type == "ipv6_access_type_value" assert response.is_live_migration is True assert response.kind == "kind_value" assert response.mode == "mode_value" @@ -3358,9 +3362,11 @@ def test_insert_rest_call_success(request_type): "byoip_api_version": "byoip_api_version_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", + "enable_enhanced_ipv4_allocation": True, "fingerprint": "fingerprint_value", "id": 205, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "is_live_migration": True, "kind": "kind_value", "mode": "mode_value", @@ -3371,7 +3377,9 @@ def test_insert_rest_call_success(request_type): "allocatable_prefix_length": 2626, "delegatee_project": "delegatee_project_value", "description": "description_value", + "enable_enhanced_ipv4_allocation": True, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "is_address": True, "mode": "mode_value", "name": "name_value", @@ -3769,9 +3777,11 @@ def test_patch_rest_call_success(request_type): "byoip_api_version": "byoip_api_version_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", + "enable_enhanced_ipv4_allocation": True, "fingerprint": "fingerprint_value", "id": 205, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "is_live_migration": True, "kind": "kind_value", "mode": "mode_value", @@ -3782,7 +3792,9 @@ def test_patch_rest_call_success(request_type): "allocatable_prefix_length": 2626, "delegatee_project": "delegatee_project_value", "description": "description_value", + "enable_enhanced_ipv4_allocation": True, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "is_address": True, "mode": "mode_value", "name": "name_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_health_checks.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_health_checks.py index 45d80c7fa3dd..48ecbd77a141 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_health_checks.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_health_checks.py @@ -4021,6 +4021,11 @@ def test_insert_rest_call_success(request_type): "port_name": "port_name_value", "port_specification": "port_specification_value", }, + "grpc_tls_health_check": { + "grpc_service_name": "grpc_service_name_value", + "port": 453, + "port_specification": "port_specification_value", + }, "healthy_threshold": 1819, "http2_health_check": { "host": "host_value", @@ -4453,6 +4458,11 @@ def test_patch_rest_call_success(request_type): "port_name": "port_name_value", "port_specification": "port_specification_value", }, + "grpc_tls_health_check": { + "grpc_service_name": "grpc_service_name_value", + "port": 453, + "port_specification": "port_specification_value", + }, "healthy_threshold": 1819, "http2_health_check": { "host": "host_value", @@ -4754,6 +4764,11 @@ def test_update_rest_call_success(request_type): "port_name": "port_name_value", "port_specification": "port_specification_value", }, + "grpc_tls_health_check": { + "grpc_service_name": "grpc_service_name_value", + "port": 453, + "port_specification": "port_specification_value", + }, "healthy_threshold": 1819, "http2_health_check": { "host": "host_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instance_templates.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instance_templates.py index b88c16d8d135..c6ad6f854aad 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instance_templates.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instance_templates.py @@ -4109,6 +4109,7 @@ def test_insert_rest_call_success(request_type): } ], "fingerprint": "fingerprint_value", + "igmp_query": "igmp_query_value", "internal_ipv6_prefix_length": 2831, "ipv6_access_configs": {}, "ipv6_access_type": "ipv6_access_type_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instances.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instances.py index 04b9703efc74..30377479e594 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instances.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_instances.py @@ -21473,6 +21473,7 @@ def test_add_network_interface_rest_call_success(request_type): } ], "fingerprint": "fingerprint_value", + "igmp_query": "igmp_query_value", "internal_ipv6_prefix_length": 2831, "ipv6_access_configs": {}, "ipv6_access_type": "ipv6_access_type_value", @@ -22518,6 +22519,7 @@ def test_bulk_insert_rest_call_success(request_type): } ], "fingerprint": "fingerprint_value", + "igmp_query": "igmp_query_value", "internal_ipv6_prefix_length": 2831, "ipv6_access_configs": {}, "ipv6_access_type": "ipv6_access_type_value", @@ -24570,6 +24572,7 @@ def test_insert_rest_call_success(request_type): } ], "fingerprint": "fingerprint_value", + "igmp_query": "igmp_query_value", "internal_ipv6_prefix_length": 2831, "ipv6_access_configs": {}, "ipv6_access_type": "ipv6_access_type_value", @@ -24619,6 +24622,9 @@ def test_insert_rest_call_success(request_type): "host": "host_value", "subblock": "subblock_value", }, + "reservation_consumption_info": { + "consumed_reservation": "consumed_reservation_value" + }, "scheduling": {"availability_domain": 2002}, "upcoming_maintenance": { "can_reschedule": True, @@ -30865,6 +30871,7 @@ def test_update_rest_call_success(request_type): } ], "fingerprint": "fingerprint_value", + "igmp_query": "igmp_query_value", "internal_ipv6_prefix_length": 2831, "ipv6_access_configs": {}, "ipv6_access_type": "ipv6_access_type_value", @@ -30914,6 +30921,9 @@ def test_update_rest_call_success(request_type): "host": "host_value", "subblock": "subblock_value", }, + "reservation_consumption_info": { + "consumed_reservation": "consumed_reservation_value" + }, "scheduling": {"availability_domain": 2002}, "upcoming_maintenance": { "can_reschedule": True, @@ -31718,6 +31728,7 @@ def test_update_network_interface_rest_call_success(request_type): } ], "fingerprint": "fingerprint_value", + "igmp_query": "igmp_query_value", "internal_ipv6_prefix_length": 2831, "ipv6_access_configs": {}, "ipv6_access_type": "ipv6_access_type_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_attachments.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_attachments.py index 1d5adb0d727a..b8effbaa5698 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_attachments.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnect_attachments.py @@ -4132,6 +4132,10 @@ def test_get_rest_call_success(request_type): admin_enabled=True, attachment_group="attachment_group_value", bandwidth="bandwidth_value", + candidate_cloud_router_ip_address="candidate_cloud_router_ip_address_value", + candidate_cloud_router_ipv6_address="candidate_cloud_router_ipv6_address_value", + candidate_customer_router_ip_address="candidate_customer_router_ip_address_value", + candidate_customer_router_ipv6_address="candidate_customer_router_ipv6_address_value", candidate_ipv6_subnets=["candidate_ipv6_subnets_value"], candidate_subnets=["candidate_subnets_value"], cloud_router_ip_address="cloud_router_ip_address_value", @@ -4185,6 +4189,22 @@ def test_get_rest_call_success(request_type): assert response.admin_enabled is True assert response.attachment_group == "attachment_group_value" assert response.bandwidth == "bandwidth_value" + assert ( + response.candidate_cloud_router_ip_address + == "candidate_cloud_router_ip_address_value" + ) + assert ( + response.candidate_cloud_router_ipv6_address + == "candidate_cloud_router_ipv6_address_value" + ) + assert ( + response.candidate_customer_router_ip_address + == "candidate_customer_router_ip_address_value" + ) + assert ( + response.candidate_customer_router_ipv6_address + == "candidate_customer_router_ipv6_address_value" + ) assert response.candidate_ipv6_subnets == ["candidate_ipv6_subnets_value"] assert response.candidate_subnets == ["candidate_subnets_value"] assert response.cloud_router_ip_address == "cloud_router_ip_address_value" @@ -4334,6 +4354,10 @@ def test_insert_rest_call_success(request_type): "admin_enabled": True, "attachment_group": "attachment_group_value", "bandwidth": "bandwidth_value", + "candidate_cloud_router_ip_address": "candidate_cloud_router_ip_address_value", + "candidate_cloud_router_ipv6_address": "candidate_cloud_router_ipv6_address_value", + "candidate_customer_router_ip_address": "candidate_customer_router_ip_address_value", + "candidate_customer_router_ipv6_address": "candidate_customer_router_ipv6_address_value", "candidate_ipv6_subnets": [ "candidate_ipv6_subnets_value1", "candidate_ipv6_subnets_value2", @@ -4362,12 +4386,20 @@ def test_insert_rest_call_success(request_type): "ipsec_internal_addresses_value2", ], "kind": "kind_value", + "l2_forwarding": { + "appliance_mappings": {}, + "default_appliance_ip_address": "default_appliance_ip_address_value", + "geneve_header": {"vni": 333}, + "network": "network_value", + "tunnel_endpoint_ip_address": "tunnel_endpoint_ip_address_value", + }, "label_fingerprint": "label_fingerprint_value", "labels": {}, "mtu": 342, "name": "name_value", "operational_status": "operational_status_value", "pairing_key": "pairing_key_value", + "params": {"resource_manager_tags": {}}, "partner_asn": 1181, "partner_metadata": { "interconnect_name": "interconnect_name_value", @@ -4775,6 +4807,10 @@ def test_patch_rest_call_success(request_type): "admin_enabled": True, "attachment_group": "attachment_group_value", "bandwidth": "bandwidth_value", + "candidate_cloud_router_ip_address": "candidate_cloud_router_ip_address_value", + "candidate_cloud_router_ipv6_address": "candidate_cloud_router_ipv6_address_value", + "candidate_customer_router_ip_address": "candidate_customer_router_ip_address_value", + "candidate_customer_router_ipv6_address": "candidate_customer_router_ipv6_address_value", "candidate_ipv6_subnets": [ "candidate_ipv6_subnets_value1", "candidate_ipv6_subnets_value2", @@ -4803,12 +4839,20 @@ def test_patch_rest_call_success(request_type): "ipsec_internal_addresses_value2", ], "kind": "kind_value", + "l2_forwarding": { + "appliance_mappings": {}, + "default_appliance_ip_address": "default_appliance_ip_address_value", + "geneve_header": {"vni": 333}, + "network": "network_value", + "tunnel_endpoint_ip_address": "tunnel_endpoint_ip_address_value", + }, "label_fingerprint": "label_fingerprint_value", "labels": {}, "mtu": 342, "name": "name_value", "operational_status": "operational_status_value", "pairing_key": "pairing_key_value", + "params": {"resource_manager_tags": {}}, "partner_asn": 1181, "partner_metadata": { "interconnect_name": "interconnect_name_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnects.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnects.py index e8ad0c306a32..8b9b2318212c 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnects.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_interconnects.py @@ -3891,6 +3891,7 @@ def test_get_rest_call_success(request_type): self_link="self_link_value", state="state_value", subzone="subzone_value", + wire_groups=["wire_groups_value"], ) # Wrap the value into a proper Response obj @@ -3936,6 +3937,7 @@ def test_get_rest_call_success(request_type): assert response.self_link == "self_link_value" assert response.state == "state_value" assert response.subzone == "subzone_value" + assert response.wire_groups == ["wire_groups_value"] @pytest.mark.parametrize("null_interceptor", [True, False]) @@ -4365,6 +4367,7 @@ def test_insert_rest_call_success(request_type): "name": "name_value", "noc_contact_email": "noc_contact_email_value", "operational_status": "operational_status_value", + "params": {"resource_manager_tags": {}}, "peer_ip_address": "peer_ip_address_value", "provisioned_link_count": 2375, "remote_location": "remote_location_value", @@ -4377,6 +4380,7 @@ def test_insert_rest_call_success(request_type): "self_link": "self_link_value", "state": "state_value", "subzone": "subzone_value", + "wire_groups": ["wire_groups_value1", "wire_groups_value2"], } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency @@ -4814,6 +4818,7 @@ def test_patch_rest_call_success(request_type): "name": "name_value", "noc_contact_email": "noc_contact_email_value", "operational_status": "operational_status_value", + "params": {"resource_manager_tags": {}}, "peer_ip_address": "peer_ip_address_value", "provisioned_link_count": 2375, "remote_location": "remote_location_value", @@ -4826,6 +4831,7 @@ def test_patch_rest_call_success(request_type): "self_link": "self_link_value", "state": "state_value", "subzone": "subzone_value", + "wire_groups": ["wire_groups_value1", "wire_groups_value2"], } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_machine_images.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_machine_images.py index c2550950dfc9..5cd60a8cb55d 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_machine_images.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_machine_images.py @@ -4093,6 +4093,7 @@ def test_insert_rest_call_success(request_type): } ], "fingerprint": "fingerprint_value", + "igmp_query": "igmp_query_value", "internal_ipv6_prefix_length": 2831, "ipv6_access_configs": {}, "ipv6_access_type": "ipv6_access_type_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_network_firewall_policies.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_network_firewall_policies.py index 25d28218276c..099663fdd56b 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_network_firewall_policies.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_network_firewall_policies.py @@ -9691,6 +9691,7 @@ def test_get_rest_call_success(request_type): kind="kind_value", name="name_value", parent="parent_value", + policy_type="policy_type_value", region="region_value", rule_tuple_count=1737, self_link="self_link_value", @@ -9720,6 +9721,7 @@ def test_get_rest_call_success(request_type): assert response.kind == "kind_value" assert response.name == "name_value" assert response.parent == "parent_value" + assert response.policy_type == "policy_type_value" assert response.region == "region_value" assert response.rule_tuple_count == 1737 assert response.self_link == "self_link_value" @@ -10488,6 +10490,7 @@ def test_insert_rest_call_success(request_type): } ], "parent": "parent_value", + "policy_type": "policy_type_value", "region": "region_value", "rule_tuple_count": 1737, "rules": {}, @@ -10947,6 +10950,7 @@ def test_patch_rest_call_success(request_type): } ], "parent": "parent_value", + "policy_type": "policy_type_value", "region": "region_value", "rule_tuple_count": 1737, "rules": {}, diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_organization_security_policies.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_organization_security_policies.py index 8edf49fbc36d..c9807bb68632 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_organization_security_policies.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_organization_security_policies.py @@ -7020,6 +7020,7 @@ def test_get_rest_call_success(request_type): kind="kind_value", label_fingerprint="label_fingerprint_value", name="name_value", + parent="parent_value", region="region_value", self_link="self_link_value", short_name="short_name_value", @@ -7047,6 +7048,7 @@ def test_get_rest_call_success(request_type): assert response.kind == "kind_value" assert response.label_fingerprint == "label_fingerprint_value" assert response.name == "name_value" + assert response.parent == "parent_value" assert response.region == "region_value" assert response.self_link == "self_link_value" assert response.short_name == "short_name_value" @@ -7464,6 +7466,7 @@ def test_insert_rest_call_success(request_type): }, "json_parsing": "json_parsing_value", "log_level": "log_level_value", + "request_body_inspection_size": "request_body_inspection_size_value", "user_ip_request_headers": [ "user_ip_request_headers_value1", "user_ip_request_headers_value2", @@ -7495,6 +7498,7 @@ def test_insert_rest_call_success(request_type): "label_fingerprint": "label_fingerprint_value", "labels": {}, "name": "name_value", + "parent": "parent_value", "recaptcha_options_config": {"redirect_site_key": "redirect_site_key_value"}, "region": "region_value", "rules": [ @@ -8472,6 +8476,7 @@ def test_patch_rest_call_success(request_type): }, "json_parsing": "json_parsing_value", "log_level": "log_level_value", + "request_body_inspection_size": "request_body_inspection_size_value", "user_ip_request_headers": [ "user_ip_request_headers_value1", "user_ip_request_headers_value2", @@ -8503,6 +8508,7 @@ def test_patch_rest_call_success(request_type): "label_fingerprint": "label_fingerprint_value", "labels": {}, "name": "name_value", + "parent": "parent_value", "recaptcha_options_config": {"redirect_site_key": "redirect_site_key_value"}, "region": "region_value", "rules": [ diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_public_advertised_prefixes.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_public_advertised_prefixes.py index dd8ecb6bbd63..237369971096 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_public_advertised_prefixes.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_public_advertised_prefixes.py @@ -4141,6 +4141,7 @@ def test_get_rest_call_success(request_type): fingerprint="fingerprint_value", id=205, ip_cidr_range="ip_cidr_range_value", + ipv6_access_type="ipv6_access_type_value", kind="kind_value", name="name_value", pdp_scope="pdp_scope_value", @@ -4170,6 +4171,7 @@ def test_get_rest_call_success(request_type): assert response.fingerprint == "fingerprint_value" assert response.id == 205 assert response.ip_cidr_range == "ip_cidr_range_value" + assert response.ipv6_access_type == "ipv6_access_type_value" assert response.kind == "kind_value" assert response.name == "name_value" assert response.pdp_scope == "pdp_scope_value" @@ -4289,6 +4291,7 @@ def test_insert_rest_call_success(request_type): "fingerprint": "fingerprint_value", "id": 205, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "kind": "kind_value", "name": "name_value", "pdp_scope": "pdp_scope_value", @@ -4692,6 +4695,7 @@ def test_patch_rest_call_success(request_type): "fingerprint": "fingerprint_value", "id": 205, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "kind": "kind_value", "name": "name_value", "pdp_scope": "pdp_scope_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_public_delegated_prefixes.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_public_delegated_prefixes.py index 5abe07a6532e..a00f4fb7685d 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_public_delegated_prefixes.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_public_delegated_prefixes.py @@ -4680,9 +4680,11 @@ def test_get_rest_call_success(request_type): byoip_api_version="byoip_api_version_value", creation_timestamp="creation_timestamp_value", description="description_value", + enable_enhanced_ipv4_allocation=True, fingerprint="fingerprint_value", id=205, ip_cidr_range="ip_cidr_range_value", + ipv6_access_type="ipv6_access_type_value", is_live_migration=True, kind="kind_value", mode="mode_value", @@ -4711,9 +4713,11 @@ def test_get_rest_call_success(request_type): assert response.byoip_api_version == "byoip_api_version_value" assert response.creation_timestamp == "creation_timestamp_value" assert response.description == "description_value" + assert response.enable_enhanced_ipv4_allocation is True assert response.fingerprint == "fingerprint_value" assert response.id == 205 assert response.ip_cidr_range == "ip_cidr_range_value" + assert response.ipv6_access_type == "ipv6_access_type_value" assert response.is_live_migration is True assert response.kind == "kind_value" assert response.mode == "mode_value" @@ -4832,9 +4836,11 @@ def test_insert_rest_call_success(request_type): "byoip_api_version": "byoip_api_version_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", + "enable_enhanced_ipv4_allocation": True, "fingerprint": "fingerprint_value", "id": 205, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "is_live_migration": True, "kind": "kind_value", "mode": "mode_value", @@ -4845,7 +4851,9 @@ def test_insert_rest_call_success(request_type): "allocatable_prefix_length": 2626, "delegatee_project": "delegatee_project_value", "description": "description_value", + "enable_enhanced_ipv4_allocation": True, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "is_address": True, "mode": "mode_value", "name": "name_value", @@ -5247,9 +5255,11 @@ def test_patch_rest_call_success(request_type): "byoip_api_version": "byoip_api_version_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", + "enable_enhanced_ipv4_allocation": True, "fingerprint": "fingerprint_value", "id": 205, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "is_live_migration": True, "kind": "kind_value", "mode": "mode_value", @@ -5260,7 +5270,9 @@ def test_patch_rest_call_success(request_type): "allocatable_prefix_length": 2626, "delegatee_project": "delegatee_project_value", "description": "description_value", + "enable_enhanced_ipv4_allocation": True, "ip_cidr_range": "ip_cidr_range_value", + "ipv6_access_type": "ipv6_access_type_value", "is_address": True, "mode": "mode_value", "name": "name_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_commitments.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_commitments.py index c781811812e5..23741f36f192 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_commitments.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_commitments.py @@ -3251,6 +3251,7 @@ def test_insert_rest_call_success(request_type): "linked_commitments_value2", ], "name": "name_value", + "protection_tier": "protection_tier_value", "reservation_sharing_policy": { "service_share_type": "service_share_type_value" }, @@ -3759,6 +3760,7 @@ def test_update_rest_call_success(request_type): "linked_commitments_value2", ], "name": "name_value", + "protection_tier": "protection_tier_value", "reservation_sharing_policy": { "service_share_type": "service_share_type_value" }, diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_health_checks.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_health_checks.py index b9ba15466a6a..e56ce6789bf4 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_health_checks.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_health_checks.py @@ -3783,6 +3783,11 @@ def test_insert_rest_call_success(request_type): "port_name": "port_name_value", "port_specification": "port_specification_value", }, + "grpc_tls_health_check": { + "grpc_service_name": "grpc_service_name_value", + "port": 453, + "port_specification": "port_specification_value", + }, "healthy_threshold": 1819, "http2_health_check": { "host": "host_value", @@ -4225,6 +4230,11 @@ def test_patch_rest_call_success(request_type): "port_name": "port_name_value", "port_specification": "port_specification_value", }, + "grpc_tls_health_check": { + "grpc_service_name": "grpc_service_name_value", + "port": 453, + "port_specification": "port_specification_value", + }, "healthy_threshold": 1819, "http2_health_check": { "host": "host_value", @@ -4536,6 +4546,11 @@ def test_update_rest_call_success(request_type): "port_name": "port_name_value", "port_specification": "port_specification_value", }, + "grpc_tls_health_check": { + "grpc_service_name": "grpc_service_name_value", + "port": 453, + "port_specification": "port_specification_value", + }, "healthy_threshold": 1819, "http2_health_check": { "host": "host_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instance_templates.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instance_templates.py index ed60ac92160e..83ed8ba6b218 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instance_templates.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instance_templates.py @@ -3065,6 +3065,7 @@ def test_insert_rest_call_success(request_type): } ], "fingerprint": "fingerprint_value", + "igmp_query": "igmp_query_value", "internal_ipv6_prefix_length": 2831, "ipv6_access_configs": {}, "ipv6_access_type": "ipv6_access_type_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instances.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instances.py index a7508de5abaf..96772c8f89db 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instances.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_instances.py @@ -1810,6 +1810,7 @@ def test_bulk_insert_rest_call_success(request_type): } ], "fingerprint": "fingerprint_value", + "igmp_query": "igmp_query_value", "internal_ipv6_prefix_length": 2831, "ipv6_access_configs": {}, "ipv6_access_type": "ipv6_access_type_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_network_firewall_policies.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_network_firewall_policies.py index a8ac774d63fb..db5df549664d 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_network_firewall_policies.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_network_firewall_policies.py @@ -8039,6 +8039,7 @@ def test_get_rest_call_success(request_type): kind="kind_value", name="name_value", parent="parent_value", + policy_type="policy_type_value", region="region_value", rule_tuple_count=1737, self_link="self_link_value", @@ -8068,6 +8069,7 @@ def test_get_rest_call_success(request_type): assert response.kind == "kind_value" assert response.name == "name_value" assert response.parent == "parent_value" + assert response.policy_type == "policy_type_value" assert response.region == "region_value" assert response.rule_tuple_count == 1737 assert response.self_link == "self_link_value" @@ -8844,6 +8846,7 @@ def test_insert_rest_call_success(request_type): } ], "parent": "parent_value", + "policy_type": "policy_type_value", "region": "region_value", "rule_tuple_count": 1737, "rules": {}, @@ -9317,6 +9320,7 @@ def test_patch_rest_call_success(request_type): } ], "parent": "parent_value", + "policy_type": "policy_type_value", "region": "region_value", "rule_tuple_count": 1737, "rules": {}, diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_security_policies.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_security_policies.py index b6565077f50b..0559c3ba56a9 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_security_policies.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_region_security_policies.py @@ -5610,6 +5610,7 @@ def test_get_rest_call_success(request_type): kind="kind_value", label_fingerprint="label_fingerprint_value", name="name_value", + parent="parent_value", region="region_value", self_link="self_link_value", short_name="short_name_value", @@ -5637,6 +5638,7 @@ def test_get_rest_call_success(request_type): assert response.kind == "kind_value" assert response.label_fingerprint == "label_fingerprint_value" assert response.name == "name_value" + assert response.parent == "parent_value" assert response.region == "region_value" assert response.self_link == "self_link_value" assert response.short_name == "short_name_value" @@ -5919,6 +5921,7 @@ def test_insert_rest_call_success(request_type): }, "json_parsing": "json_parsing_value", "log_level": "log_level_value", + "request_body_inspection_size": "request_body_inspection_size_value", "user_ip_request_headers": [ "user_ip_request_headers_value1", "user_ip_request_headers_value2", @@ -5950,6 +5953,7 @@ def test_insert_rest_call_success(request_type): "label_fingerprint": "label_fingerprint_value", "labels": {}, "name": "name_value", + "parent": "parent_value", "recaptcha_options_config": {"redirect_site_key": "redirect_site_key_value"}, "region": "region_value", "rules": [ @@ -6474,6 +6478,7 @@ def test_patch_rest_call_success(request_type): }, "json_parsing": "json_parsing_value", "log_level": "log_level_value", + "request_body_inspection_size": "request_body_inspection_size_value", "user_ip_request_headers": [ "user_ip_request_headers_value1", "user_ip_request_headers_value2", @@ -6505,6 +6510,7 @@ def test_patch_rest_call_success(request_type): "label_fingerprint": "label_fingerprint_value", "labels": {}, "name": "name_value", + "parent": "parent_value", "recaptcha_options_config": {"redirect_site_key": "redirect_site_key_value"}, "region": "region_value", "rules": [ diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservation_blocks.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservation_blocks.py index 83351ba3238f..566ed21923db 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservation_blocks.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservation_blocks.py @@ -1387,6 +1387,219 @@ def test_get_rest_flattened_error(transport: str = "rest"): ) +def test_get_iam_policy_rest_use_cached_wrapped_rpc(): + # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, + # instead of constructing them on each call + with mock.patch("google.api_core.gapic_v1.method.wrap_method") as wrapper_fn: + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Should wrap all calls on client creation + assert wrapper_fn.call_count > 0 + wrapper_fn.reset_mock() + + # Ensure method has been cached + assert client._transport.get_iam_policy in client._transport._wrapped_methods + + # Replace cached wrapped function with mock + mock_rpc = mock.Mock() + mock_rpc.return_value.name = ( + "foo" # operation_request.operation in compute client(s) expect a string. + ) + client._transport._wrapped_methods[client._transport.get_iam_policy] = mock_rpc + + request = {} + client.get_iam_policy(request) + + # Establish that the underlying gRPC stub method was called. + assert mock_rpc.call_count == 1 + + client.get_iam_policy(request) + + # Establish that a new wrapper was not created for this call + assert wrapper_fn.call_count == 0 + assert mock_rpc.call_count == 2 + + +def test_get_iam_policy_rest_required_fields( + request_type=compute.GetIamPolicyReservationBlockRequest, +): + transport_class = transports.ReservationBlocksRestTransport + + request_init = {} + request_init["parent_resource"] = "" + request_init["project"] = "" + request_init["resource"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson(pb_request, use_integers_for_enums=False) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).get_iam_policy._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["parentResource"] = "parent_resource_value" + jsonified_request["project"] = "project_value" + jsonified_request["resource"] = "resource_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).get_iam_policy._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("options_requested_policy_version",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "parentResource" in jsonified_request + assert jsonified_request["parentResource"] == "parent_resource_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "resource" in jsonified_request + assert jsonified_request["resource"] == "resource_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Policy() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "get", + "query_params": pb_request, + } + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + response = client.get_iam_policy(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_get_iam_policy_rest_unset_required_fields(): + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.get_iam_policy._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("optionsRequestedPolicyVersion",)) + & set( + ( + "parentResource", + "project", + "resource", + "zone", + ) + ) + ) + + +def test_get_iam_policy_rest_flattened(): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Policy() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + client.get_iam_policy(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/getIamPolicy" + % client.transport._host, + args[1], + ) + + +def test_get_iam_policy_rest_flattened_error(transport: str = "rest"): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.get_iam_policy( + compute.GetIamPolicyReservationBlockRequest(), + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + ) + + def test_list_rest_use_cached_wrapped_rpc(): # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, # instead of constructing them on each call @@ -2131,89 +2344,947 @@ def test_perform_maintenance_unary_rest_flattened_error(transport: str = "rest") ) -def test_credentials_transport_error(): - # It is an error to provide credentials and a transport instance. - transport = transports.ReservationBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - with pytest.raises(ValueError): +def test_set_iam_policy_rest_use_cached_wrapped_rpc(): + # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, + # instead of constructing them on each call + with mock.patch("google.api_core.gapic_v1.method.wrap_method") as wrapper_fn: client = ReservationBlocksClient( credentials=ga_credentials.AnonymousCredentials(), - transport=transport, + transport="rest", ) - # It is an error to provide a credentials file and a transport instance. - transport = transports.ReservationBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - with pytest.raises(ValueError): - client = ReservationBlocksClient( - client_options={"credentials_file": "credentials.json"}, - transport=transport, - ) + # Should wrap all calls on client creation + assert wrapper_fn.call_count > 0 + wrapper_fn.reset_mock() - # It is an error to provide an api_key and a transport instance. - transport = transports.ReservationBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - options = client_options.ClientOptions() - options.api_key = "api_key" - with pytest.raises(ValueError): - client = ReservationBlocksClient( - client_options=options, - transport=transport, - ) + # Ensure method has been cached + assert client._transport.set_iam_policy in client._transport._wrapped_methods - # It is an error to provide an api_key and a credential. - options = client_options.ClientOptions() - options.api_key = "api_key" - with pytest.raises(ValueError): - client = ReservationBlocksClient( - client_options=options, credentials=ga_credentials.AnonymousCredentials() + # Replace cached wrapped function with mock + mock_rpc = mock.Mock() + mock_rpc.return_value.name = ( + "foo" # operation_request.operation in compute client(s) expect a string. ) + client._transport._wrapped_methods[client._transport.set_iam_policy] = mock_rpc - # It is an error to provide scopes and a transport instance. - transport = transports.ReservationBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - with pytest.raises(ValueError): - client = ReservationBlocksClient( - client_options={"scopes": ["1", "2"]}, - transport=transport, - ) + request = {} + client.set_iam_policy(request) + # Establish that the underlying gRPC stub method was called. + assert mock_rpc.call_count == 1 -def test_transport_instance(): - # A client may be instantiated with a custom transport instance. - transport = transports.ReservationBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - client = ReservationBlocksClient(transport=transport) - assert client.transport is transport + client.set_iam_policy(request) + # Establish that a new wrapper was not created for this call + assert wrapper_fn.call_count == 0 + assert mock_rpc.call_count == 2 -@pytest.mark.parametrize( - "transport_class", - [ - transports.ReservationBlocksRestTransport, - ], -) -def test_transport_adc(transport_class): - # Test default credentials are used if not provided. - with mock.patch.object(google.auth, "default") as adc: - adc.return_value = (ga_credentials.AnonymousCredentials(), None) - transport_class() - adc.assert_called_once() +def test_set_iam_policy_rest_required_fields( + request_type=compute.SetIamPolicyReservationBlockRequest, +): + transport_class = transports.ReservationBlocksRestTransport -def test_transport_kind_rest(): - transport = ReservationBlocksClient.get_transport_class("rest")( + request_init = {} + request_init["parent_resource"] = "" + request_init["project"] = "" + request_init["resource"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson(pb_request, use_integers_for_enums=False) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).set_iam_policy._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["parentResource"] = "parent_resource_value" + jsonified_request["project"] = "project_value" + jsonified_request["resource"] = "resource_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).set_iam_policy._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "parentResource" in jsonified_request + assert jsonified_request["parentResource"] == "parent_resource_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "resource" in jsonified_request + assert jsonified_request["resource"] == "resource_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Policy() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + response = client.set_iam_policy(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_set_iam_policy_rest_unset_required_fields(): + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.set_iam_policy._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(()) + & set( + ( + "parentResource", + "project", + "resource", + "zone", + "zoneSetNestedPolicyRequestResource", + ) + ) + ) + + +def test_set_iam_policy_rest_flattened(): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Policy() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + zone_set_nested_policy_request_resource=compute.ZoneSetNestedPolicyRequest( + bindings=[compute.Binding(binding_id="binding_id_value")] + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + client.set_iam_policy(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/setIamPolicy" + % client.transport._host, + args[1], + ) + + +def test_set_iam_policy_rest_flattened_error(transport: str = "rest"): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.set_iam_policy( + compute.SetIamPolicyReservationBlockRequest(), + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + zone_set_nested_policy_request_resource=compute.ZoneSetNestedPolicyRequest( + bindings=[compute.Binding(binding_id="binding_id_value")] + ), + ) + + +def test_test_iam_permissions_rest_use_cached_wrapped_rpc(): + # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, + # instead of constructing them on each call + with mock.patch("google.api_core.gapic_v1.method.wrap_method") as wrapper_fn: + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Should wrap all calls on client creation + assert wrapper_fn.call_count > 0 + wrapper_fn.reset_mock() + + # Ensure method has been cached + assert ( + client._transport.test_iam_permissions in client._transport._wrapped_methods + ) + + # Replace cached wrapped function with mock + mock_rpc = mock.Mock() + mock_rpc.return_value.name = ( + "foo" # operation_request.operation in compute client(s) expect a string. + ) + client._transport._wrapped_methods[ + client._transport.test_iam_permissions + ] = mock_rpc + + request = {} + client.test_iam_permissions(request) + + # Establish that the underlying gRPC stub method was called. + assert mock_rpc.call_count == 1 + + client.test_iam_permissions(request) + + # Establish that a new wrapper was not created for this call + assert wrapper_fn.call_count == 0 + assert mock_rpc.call_count == 2 + + +def test_test_iam_permissions_rest_required_fields( + request_type=compute.TestIamPermissionsReservationBlockRequest, +): + transport_class = transports.ReservationBlocksRestTransport + + request_init = {} + request_init["parent_resource"] = "" + request_init["project"] = "" + request_init["resource"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson(pb_request, use_integers_for_enums=False) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).test_iam_permissions._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["parentResource"] = "parent_resource_value" + jsonified_request["project"] = "project_value" + jsonified_request["resource"] = "resource_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( credentials=ga_credentials.AnonymousCredentials() + ).test_iam_permissions._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "parentResource" in jsonified_request + assert jsonified_request["parentResource"] == "parent_resource_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "resource" in jsonified_request + assert jsonified_request["resource"] == "resource_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.TestPermissionsResponse() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.TestPermissionsResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + response = client.test_iam_permissions(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_test_iam_permissions_rest_unset_required_fields(): + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.test_iam_permissions._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(()) + & set( + ( + "parentResource", + "project", + "resource", + "testPermissionsRequestResource", + "zone", + ) + ) + ) + + +def test_test_iam_permissions_rest_flattened(): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.TestPermissionsResponse() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + test_permissions_request_resource=compute.TestPermissionsRequest( + permissions=["permissions_value"] + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + # Convert return value to protobuf type + return_value = compute.TestPermissionsResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + client.test_iam_permissions(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/reservations/{parent_resource}/reservationBlocks/{resource}/testIamPermissions" + % client.transport._host, + args[1], + ) + + +def test_test_iam_permissions_rest_flattened_error(transport: str = "rest"): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.test_iam_permissions( + compute.TestIamPermissionsReservationBlockRequest(), + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + test_permissions_request_resource=compute.TestPermissionsRequest( + permissions=["permissions_value"] + ), + ) + + +def test_credentials_transport_error(): + # It is an error to provide credentials and a transport instance. + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # It is an error to provide a credentials file and a transport instance. + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = ReservationBlocksClient( + client_options={"credentials_file": "credentials.json"}, + transport=transport, + ) + + # It is an error to provide an api_key and a transport instance. + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + options = client_options.ClientOptions() + options.api_key = "api_key" + with pytest.raises(ValueError): + client = ReservationBlocksClient( + client_options=options, + transport=transport, + ) + + # It is an error to provide an api_key and a credential. + options = client_options.ClientOptions() + options.api_key = "api_key" + with pytest.raises(ValueError): + client = ReservationBlocksClient( + client_options=options, credentials=ga_credentials.AnonymousCredentials() + ) + + # It is an error to provide scopes and a transport instance. + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = ReservationBlocksClient( + client_options={"scopes": ["1", "2"]}, + transport=transport, + ) + + +def test_transport_instance(): + # A client may be instantiated with a custom transport instance. + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + client = ReservationBlocksClient(transport=transport) + assert client.transport is transport + + +@pytest.mark.parametrize( + "transport_class", + [ + transports.ReservationBlocksRestTransport, + ], +) +def test_transport_adc(transport_class): + # Test default credentials are used if not provided. + with mock.patch.object(google.auth, "default") as adc: + adc.return_value = (ga_credentials.AnonymousCredentials(), None) + transport_class() + adc.assert_called_once() + + +def test_transport_kind_rest(): + transport = ReservationBlocksClient.get_transport_class("rest")( + credentials=ga_credentials.AnonymousCredentials() + ) + assert transport.kind == "rest" + + +def test_get_rest_bad_request(request_type=compute.GetReservationBlockRequest): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "zone": "sample2", + "reservation": "sample3", + "reservation_block": "sample4", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = mock.Mock() + json_return_value = "" + response_value.json = mock.Mock(return_value={}) + response_value.status_code = 400 + response_value.request = mock.Mock() + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + client.get(request) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.GetReservationBlockRequest, + dict, + ], +) +def test_get_rest_call_success(request_type): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "zone": "sample2", + "reservation": "sample3", + "reservation_block": "sample4", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.ReservationBlocksGetResponse() + + # Wrap the value into a proper Response obj + response_value = mock.Mock() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.ReservationBlocksGetResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value.content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + response = client.get(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.ReservationBlocksGetResponse) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_get_rest_interceptors(null_interceptor): + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.ReservationBlocksRestInterceptor(), + ) + client = ReservationBlocksClient(transport=transport) + + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.ReservationBlocksRestInterceptor, "post_get" + ) as post, mock.patch.object( + transports.ReservationBlocksRestInterceptor, "post_get_with_metadata" + ) as post_with_metadata, mock.patch.object( + transports.ReservationBlocksRestInterceptor, "pre_get" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + post_with_metadata.assert_not_called() + pb_message = compute.GetReservationBlockRequest.pb( + compute.GetReservationBlockRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = mock.Mock() + req.return_value.status_code = 200 + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + return_value = compute.ReservationBlocksGetResponse.to_json( + compute.ReservationBlocksGetResponse() + ) + req.return_value.content = return_value + + request = compute.GetReservationBlockRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.ReservationBlocksGetResponse() + post_with_metadata.return_value = ( + compute.ReservationBlocksGetResponse(), + metadata, + ) + + client.get( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + post_with_metadata.assert_called_once() + + +def test_get_iam_policy_rest_bad_request( + request_type=compute.GetIamPolicyReservationBlockRequest, +): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = mock.Mock() + json_return_value = "" + response_value.json = mock.Mock(return_value={}) + response_value.status_code = 400 + response_value.request = mock.Mock() + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + client.get_iam_policy(request) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.GetIamPolicyReservationBlockRequest, + dict, + ], +) +def test_get_iam_policy_rest_call_success(request_type): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Policy( + etag="etag_value", + iam_owned=True, + version=774, + ) + + # Wrap the value into a proper Response obj + response_value = mock.Mock() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value.content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + response = client.get_iam_policy(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.Policy) + assert response.etag == "etag_value" + assert response.iam_owned is True + assert response.version == 774 + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_get_iam_policy_rest_interceptors(null_interceptor): + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.ReservationBlocksRestInterceptor(), + ) + client = ReservationBlocksClient(transport=transport) + + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.ReservationBlocksRestInterceptor, "post_get_iam_policy" + ) as post, mock.patch.object( + transports.ReservationBlocksRestInterceptor, "post_get_iam_policy_with_metadata" + ) as post_with_metadata, mock.patch.object( + transports.ReservationBlocksRestInterceptor, "pre_get_iam_policy" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + post_with_metadata.assert_not_called() + pb_message = compute.GetIamPolicyReservationBlockRequest.pb( + compute.GetIamPolicyReservationBlockRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = mock.Mock() + req.return_value.status_code = 200 + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + return_value = compute.Policy.to_json(compute.Policy()) + req.return_value.content = return_value + + request = compute.GetIamPolicyReservationBlockRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Policy() + post_with_metadata.return_value = compute.Policy(), metadata + + client.get_iam_policy( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + post_with_metadata.assert_called_once() + + +def test_list_rest_bad_request(request_type=compute.ListReservationBlocksRequest): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "reservation": "sample3"} + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = mock.Mock() + json_return_value = "" + response_value.json = mock.Mock(return_value={}) + response_value.status_code = 400 + response_value.request = mock.Mock() + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + client.list(request) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.ListReservationBlocksRequest, + dict, + ], +) +def test_list_rest_call_success(request_type): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "reservation": "sample3"} + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.ReservationBlocksListResponse( + id="id_value", + kind="kind_value", + next_page_token="next_page_token_value", + self_link="self_link_value", + ) + + # Wrap the value into a proper Response obj + response_value = mock.Mock() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.ReservationBlocksListResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value.content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + response = client.list(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, pagers.ListPager) + assert response.id == "id_value" + assert response.kind == "kind_value" + assert response.next_page_token == "next_page_token_value" + assert response.self_link == "self_link_value" + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_list_rest_interceptors(null_interceptor): + transport = transports.ReservationBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.ReservationBlocksRestInterceptor(), ) - assert transport.kind == "rest" + client = ReservationBlocksClient(transport=transport) + + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.ReservationBlocksRestInterceptor, "post_list" + ) as post, mock.patch.object( + transports.ReservationBlocksRestInterceptor, "post_list_with_metadata" + ) as post_with_metadata, mock.patch.object( + transports.ReservationBlocksRestInterceptor, "pre_list" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + post_with_metadata.assert_not_called() + pb_message = compute.ListReservationBlocksRequest.pb( + compute.ListReservationBlocksRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + req.return_value = mock.Mock() + req.return_value.status_code = 200 + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + return_value = compute.ReservationBlocksListResponse.to_json( + compute.ReservationBlocksListResponse() + ) + req.return_value.content = return_value -def test_get_rest_bad_request(request_type=compute.GetReservationBlockRequest): + request = compute.ListReservationBlocksRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.ReservationBlocksListResponse() + post_with_metadata.return_value = ( + compute.ReservationBlocksListResponse(), + metadata, + ) + + client.list( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + post_with_metadata.assert_called_once() + + +def test_perform_maintenance_rest_bad_request( + request_type=compute.PerformMaintenanceReservationBlockRequest, +): client = ReservationBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) @@ -2238,17 +3309,17 @@ def test_get_rest_bad_request(request_type=compute.GetReservationBlockRequest): response_value.request = mock.Mock() req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - client.get(request) + client.perform_maintenance(request) @pytest.mark.parametrize( "request_type", [ - compute.GetReservationBlockRequest, + compute.PerformMaintenanceReservationBlockRequest, dict, ], ) -def test_get_rest_call_success(request_type): +def test_perform_maintenance_rest_call_success(request_type): client = ReservationBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) @@ -2260,31 +3331,161 @@ def test_get_rest_call_success(request_type): "reservation": "sample3", "reservation_block": "sample4", } + request_init["reservations_blocks_perform_maintenance_request_resource"] = { + "maintenance_scope": "maintenance_scope_value" + } + # The version of a generated dependency at test runtime may differ from the version used during generation. + # Delete any fields which are not present in the current runtime dependency + # See https://github.com/googleapis/gapic-generator-python/issues/1748 + + # Determine if the message type is proto-plus or protobuf + test_field = compute.PerformMaintenanceReservationBlockRequest.meta.fields[ + "reservations_blocks_perform_maintenance_request_resource" + ] + + def get_message_fields(field): + # Given a field which is a message (composite type), return a list with + # all the fields of the message. + # If the field is not a composite type, return an empty list. + message_fields = [] + + if hasattr(field, "message") and field.message: + is_field_type_proto_plus_type = not hasattr(field.message, "DESCRIPTOR") + + if is_field_type_proto_plus_type: + message_fields = field.message.meta.fields.values() + # Add `# pragma: NO COVER` because there may not be any `*_pb2` field types + else: # pragma: NO COVER + message_fields = field.message.DESCRIPTOR.fields + return message_fields + + runtime_nested_fields = [ + (field.name, nested_field.name) + for field in get_message_fields(test_field) + for nested_field in get_message_fields(field) + ] + + subfields_not_in_runtime = [] + + # For each item in the sample request, create a list of sub fields which are not present at runtime + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for field, value in request_init[ + "reservations_blocks_perform_maintenance_request_resource" + ].items(): # pragma: NO COVER + result = None + is_repeated = False + # For repeated fields + if isinstance(value, list) and len(value): + is_repeated = True + result = value[0] + # For fields where the type is another message + if isinstance(value, dict): + result = value + + if result and hasattr(result, "keys"): + for subfield in result.keys(): + if (field, subfield) not in runtime_nested_fields: + subfields_not_in_runtime.append( + { + "field": field, + "subfield": subfield, + "is_repeated": is_repeated, + } + ) + + # Remove fields from the sample request which are not present in the runtime version of the dependency + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for subfield_to_delete in subfields_not_in_runtime: # pragma: NO COVER + field = subfield_to_delete.get("field") + field_repeated = subfield_to_delete.get("is_repeated") + subfield = subfield_to_delete.get("subfield") + if subfield: + if field_repeated: + for i in range( + 0, + len( + request_init[ + "reservations_blocks_perform_maintenance_request_resource" + ][field] + ), + ): + del request_init[ + "reservations_blocks_perform_maintenance_request_resource" + ][field][i][subfield] + else: + del request_init[ + "reservations_blocks_perform_maintenance_request_resource" + ][field][subfield] request = request_type(**request_init) # Mock the http request call within the method and fake a response. with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. - return_value = compute.ReservationBlocksGetResponse() + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) # Wrap the value into a proper Response obj response_value = mock.Mock() response_value.status_code = 200 # Convert return value to protobuf type - return_value = compute.ReservationBlocksGetResponse.pb(return_value) + return_value = compute.Operation.pb(return_value) json_return_value = json_format.MessageToJson(return_value) response_value.content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - response = client.get(request) + response = client.perform_maintenance(request) # Establish that the response is the type that we expect. - assert isinstance(response, compute.ReservationBlocksGetResponse) + assert isinstance(response, extended_operation.ExtendedOperation) + assert response.client_operation_id == "client_operation_id_value" + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.end_time == "end_time_value" + assert response.http_error_message == "http_error_message_value" + assert response.http_error_status_code == 2374 + assert response.id == 205 + assert response.insert_time == "insert_time_value" + assert response.kind == "kind_value" + assert response.name == "name_value" + assert response.operation_group_id == "operation_group_id_value" + assert response.operation_type == "operation_type_value" + assert response.progress == 885 + assert response.region == "region_value" + assert response.self_link == "self_link_value" + assert response.start_time == "start_time_value" + assert response.status == compute.Operation.Status.DONE + assert response.status_message == "status_message_value" + assert response.target_id == 947 + assert response.target_link == "target_link_value" + assert response.user == "user_value" + assert response.zone == "zone_value" @pytest.mark.parametrize("null_interceptor", [True, False]) -def test_get_rest_interceptors(null_interceptor): +def test_perform_maintenance_rest_interceptors(null_interceptor): transport = transports.ReservationBlocksRestTransport( credentials=ga_credentials.AnonymousCredentials(), interceptor=None @@ -2298,17 +3499,18 @@ def test_get_rest_interceptors(null_interceptor): ) as req, mock.patch.object( path_template, "transcode" ) as transcode, mock.patch.object( - transports.ReservationBlocksRestInterceptor, "post_get" + transports.ReservationBlocksRestInterceptor, "post_perform_maintenance" ) as post, mock.patch.object( - transports.ReservationBlocksRestInterceptor, "post_get_with_metadata" + transports.ReservationBlocksRestInterceptor, + "post_perform_maintenance_with_metadata", ) as post_with_metadata, mock.patch.object( - transports.ReservationBlocksRestInterceptor, "pre_get" + transports.ReservationBlocksRestInterceptor, "pre_perform_maintenance" ) as pre: pre.assert_not_called() post.assert_not_called() post_with_metadata.assert_not_called() - pb_message = compute.GetReservationBlockRequest.pb( - compute.GetReservationBlockRequest() + pb_message = compute.PerformMaintenanceReservationBlockRequest.pb( + compute.PerformMaintenanceReservationBlockRequest() ) transcode.return_value = { "method": "post", @@ -2320,24 +3522,19 @@ def test_get_rest_interceptors(null_interceptor): req.return_value = mock.Mock() req.return_value.status_code = 200 req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - return_value = compute.ReservationBlocksGetResponse.to_json( - compute.ReservationBlocksGetResponse() - ) + return_value = compute.Operation.to_json(compute.Operation()) req.return_value.content = return_value - request = compute.GetReservationBlockRequest() + request = compute.PerformMaintenanceReservationBlockRequest() metadata = [ ("key", "val"), ("cephalopod", "squid"), ] pre.return_value = request, metadata - post.return_value = compute.ReservationBlocksGetResponse() - post_with_metadata.return_value = ( - compute.ReservationBlocksGetResponse(), - metadata, - ) + post.return_value = compute.Operation() + post_with_metadata.return_value = compute.Operation(), metadata - client.get( + client.perform_maintenance( request, metadata=[ ("key", "val"), @@ -2350,12 +3547,19 @@ def test_get_rest_interceptors(null_interceptor): post_with_metadata.assert_called_once() -def test_list_rest_bad_request(request_type=compute.ListReservationBlocksRequest): +def test_set_iam_policy_rest_bad_request( + request_type=compute.SetIamPolicyReservationBlockRequest, +): client = ReservationBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) # send a request that will satisfy transcoding - request_init = {"project": "sample1", "zone": "sample2", "reservation": "sample3"} + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } request = request_type(**request_init) # Mock the http request call within the method and fake a BadRequest error. @@ -2370,33 +3574,156 @@ def test_list_rest_bad_request(request_type=compute.ListReservationBlocksRequest response_value.request = mock.Mock() req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - client.list(request) + client.set_iam_policy(request) @pytest.mark.parametrize( "request_type", [ - compute.ListReservationBlocksRequest, + compute.SetIamPolicyReservationBlockRequest, dict, ], ) -def test_list_rest_call_success(request_type): +def test_set_iam_policy_rest_call_success(request_type): client = ReservationBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) # send a request that will satisfy transcoding - request_init = {"project": "sample1", "zone": "sample2", "reservation": "sample3"} + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + request_init["zone_set_nested_policy_request_resource"] = { + "bindings": [ + { + "binding_id": "binding_id_value", + "condition": { + "description": "description_value", + "expression": "expression_value", + "location": "location_value", + "title": "title_value", + }, + "members": ["members_value1", "members_value2"], + "role": "role_value", + } + ], + "etag": "etag_value", + "policy": { + "audit_configs": [ + { + "audit_log_configs": [ + { + "exempted_members": [ + "exempted_members_value1", + "exempted_members_value2", + ], + "ignore_child_exemptions": True, + "log_type": "log_type_value", + } + ], + "exempted_members": [ + "exempted_members_value1", + "exempted_members_value2", + ], + "service": "service_value", + } + ], + "bindings": {}, + "etag": "etag_value", + "iam_owned": True, + "version": 774, + }, + } + # The version of a generated dependency at test runtime may differ from the version used during generation. + # Delete any fields which are not present in the current runtime dependency + # See https://github.com/googleapis/gapic-generator-python/issues/1748 + + # Determine if the message type is proto-plus or protobuf + test_field = compute.SetIamPolicyReservationBlockRequest.meta.fields[ + "zone_set_nested_policy_request_resource" + ] + + def get_message_fields(field): + # Given a field which is a message (composite type), return a list with + # all the fields of the message. + # If the field is not a composite type, return an empty list. + message_fields = [] + + if hasattr(field, "message") and field.message: + is_field_type_proto_plus_type = not hasattr(field.message, "DESCRIPTOR") + + if is_field_type_proto_plus_type: + message_fields = field.message.meta.fields.values() + # Add `# pragma: NO COVER` because there may not be any `*_pb2` field types + else: # pragma: NO COVER + message_fields = field.message.DESCRIPTOR.fields + return message_fields + + runtime_nested_fields = [ + (field.name, nested_field.name) + for field in get_message_fields(test_field) + for nested_field in get_message_fields(field) + ] + + subfields_not_in_runtime = [] + + # For each item in the sample request, create a list of sub fields which are not present at runtime + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for field, value in request_init[ + "zone_set_nested_policy_request_resource" + ].items(): # pragma: NO COVER + result = None + is_repeated = False + # For repeated fields + if isinstance(value, list) and len(value): + is_repeated = True + result = value[0] + # For fields where the type is another message + if isinstance(value, dict): + result = value + + if result and hasattr(result, "keys"): + for subfield in result.keys(): + if (field, subfield) not in runtime_nested_fields: + subfields_not_in_runtime.append( + { + "field": field, + "subfield": subfield, + "is_repeated": is_repeated, + } + ) + + # Remove fields from the sample request which are not present in the runtime version of the dependency + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for subfield_to_delete in subfields_not_in_runtime: # pragma: NO COVER + field = subfield_to_delete.get("field") + field_repeated = subfield_to_delete.get("is_repeated") + subfield = subfield_to_delete.get("subfield") + if subfield: + if field_repeated: + for i in range( + 0, + len(request_init["zone_set_nested_policy_request_resource"][field]), + ): + del request_init["zone_set_nested_policy_request_resource"][field][ + i + ][subfield] + else: + del request_init["zone_set_nested_policy_request_resource"][field][ + subfield + ] request = request_type(**request_init) # Mock the http request call within the method and fake a response. with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. - return_value = compute.ReservationBlocksListResponse( - id="id_value", - kind="kind_value", - next_page_token="next_page_token_value", - self_link="self_link_value", + return_value = compute.Policy( + etag="etag_value", + iam_owned=True, + version=774, ) # Wrap the value into a proper Response obj @@ -2404,23 +3731,22 @@ def test_list_rest_call_success(request_type): response_value.status_code = 200 # Convert return value to protobuf type - return_value = compute.ReservationBlocksListResponse.pb(return_value) + return_value = compute.Policy.pb(return_value) json_return_value = json_format.MessageToJson(return_value) response_value.content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - response = client.list(request) + response = client.set_iam_policy(request) # Establish that the response is the type that we expect. - assert isinstance(response, pagers.ListPager) - assert response.id == "id_value" - assert response.kind == "kind_value" - assert response.next_page_token == "next_page_token_value" - assert response.self_link == "self_link_value" + assert isinstance(response, compute.Policy) + assert response.etag == "etag_value" + assert response.iam_owned is True + assert response.version == 774 @pytest.mark.parametrize("null_interceptor", [True, False]) -def test_list_rest_interceptors(null_interceptor): +def test_set_iam_policy_rest_interceptors(null_interceptor): transport = transports.ReservationBlocksRestTransport( credentials=ga_credentials.AnonymousCredentials(), interceptor=None @@ -2434,17 +3760,17 @@ def test_list_rest_interceptors(null_interceptor): ) as req, mock.patch.object( path_template, "transcode" ) as transcode, mock.patch.object( - transports.ReservationBlocksRestInterceptor, "post_list" + transports.ReservationBlocksRestInterceptor, "post_set_iam_policy" ) as post, mock.patch.object( - transports.ReservationBlocksRestInterceptor, "post_list_with_metadata" + transports.ReservationBlocksRestInterceptor, "post_set_iam_policy_with_metadata" ) as post_with_metadata, mock.patch.object( - transports.ReservationBlocksRestInterceptor, "pre_list" + transports.ReservationBlocksRestInterceptor, "pre_set_iam_policy" ) as pre: pre.assert_not_called() post.assert_not_called() post_with_metadata.assert_not_called() - pb_message = compute.ListReservationBlocksRequest.pb( - compute.ListReservationBlocksRequest() + pb_message = compute.SetIamPolicyReservationBlockRequest.pb( + compute.SetIamPolicyReservationBlockRequest() ) transcode.return_value = { "method": "post", @@ -2456,24 +3782,19 @@ def test_list_rest_interceptors(null_interceptor): req.return_value = mock.Mock() req.return_value.status_code = 200 req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - return_value = compute.ReservationBlocksListResponse.to_json( - compute.ReservationBlocksListResponse() - ) + return_value = compute.Policy.to_json(compute.Policy()) req.return_value.content = return_value - request = compute.ListReservationBlocksRequest() + request = compute.SetIamPolicyReservationBlockRequest() metadata = [ ("key", "val"), ("cephalopod", "squid"), ] pre.return_value = request, metadata - post.return_value = compute.ReservationBlocksListResponse() - post_with_metadata.return_value = ( - compute.ReservationBlocksListResponse(), - metadata, - ) + post.return_value = compute.Policy() + post_with_metadata.return_value = compute.Policy(), metadata - client.list( + client.set_iam_policy( request, metadata=[ ("key", "val"), @@ -2486,8 +3807,8 @@ def test_list_rest_interceptors(null_interceptor): post_with_metadata.assert_called_once() -def test_perform_maintenance_rest_bad_request( - request_type=compute.PerformMaintenanceReservationBlockRequest, +def test_test_iam_permissions_rest_bad_request( + request_type=compute.TestIamPermissionsReservationBlockRequest, ): client = ReservationBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" @@ -2496,8 +3817,8 @@ def test_perform_maintenance_rest_bad_request( request_init = { "project": "sample1", "zone": "sample2", - "reservation": "sample3", - "reservation_block": "sample4", + "parent_resource": "sample3", + "resource": "sample4", } request = request_type(**request_init) @@ -2513,17 +3834,17 @@ def test_perform_maintenance_rest_bad_request( response_value.request = mock.Mock() req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - client.perform_maintenance(request) + client.test_iam_permissions(request) @pytest.mark.parametrize( "request_type", [ - compute.PerformMaintenanceReservationBlockRequest, + compute.TestIamPermissionsReservationBlockRequest, dict, ], ) -def test_perform_maintenance_rest_call_success(request_type): +def test_test_iam_permissions_rest_call_success(request_type): client = ReservationBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) @@ -2532,19 +3853,19 @@ def test_perform_maintenance_rest_call_success(request_type): request_init = { "project": "sample1", "zone": "sample2", - "reservation": "sample3", - "reservation_block": "sample4", + "parent_resource": "sample3", + "resource": "sample4", } - request_init["reservations_blocks_perform_maintenance_request_resource"] = { - "maintenance_scope": "maintenance_scope_value" + request_init["test_permissions_request_resource"] = { + "permissions": ["permissions_value1", "permissions_value2"] } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 # Determine if the message type is proto-plus or protobuf - test_field = compute.PerformMaintenanceReservationBlockRequest.meta.fields[ - "reservations_blocks_perform_maintenance_request_resource" + test_field = compute.TestIamPermissionsReservationBlockRequest.meta.fields[ + "test_permissions_request_resource" ] def get_message_fields(field): @@ -2574,7 +3895,7 @@ def get_message_fields(field): # For each item in the sample request, create a list of sub fields which are not present at runtime # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime for field, value in request_init[ - "reservations_blocks_perform_maintenance_request_resource" + "test_permissions_request_resource" ].items(): # pragma: NO COVER result = None is_repeated = False @@ -2606,48 +3927,20 @@ def get_message_fields(field): if subfield: if field_repeated: for i in range( - 0, - len( - request_init[ - "reservations_blocks_perform_maintenance_request_resource" - ][field] - ), + 0, len(request_init["test_permissions_request_resource"][field]) ): - del request_init[ - "reservations_blocks_perform_maintenance_request_resource" - ][field][i][subfield] + del request_init["test_permissions_request_resource"][field][i][ + subfield + ] else: - del request_init[ - "reservations_blocks_perform_maintenance_request_resource" - ][field][subfield] + del request_init["test_permissions_request_resource"][field][subfield] request = request_type(**request_init) # Mock the http request call within the method and fake a response. with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. - return_value = compute.Operation( - client_operation_id="client_operation_id_value", - creation_timestamp="creation_timestamp_value", - description="description_value", - end_time="end_time_value", - http_error_message="http_error_message_value", - http_error_status_code=2374, - id=205, - insert_time="insert_time_value", - kind="kind_value", - name="name_value", - operation_group_id="operation_group_id_value", - operation_type="operation_type_value", - progress=885, - region="region_value", - self_link="self_link_value", - start_time="start_time_value", - status=compute.Operation.Status.DONE, - status_message="status_message_value", - target_id=947, - target_link="target_link_value", - user="user_value", - zone="zone_value", + return_value = compute.TestPermissionsResponse( + permissions=["permissions_value"], ) # Wrap the value into a proper Response obj @@ -2655,41 +3948,20 @@ def get_message_fields(field): response_value.status_code = 200 # Convert return value to protobuf type - return_value = compute.Operation.pb(return_value) + return_value = compute.TestPermissionsResponse.pb(return_value) json_return_value = json_format.MessageToJson(return_value) response_value.content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - response = client.perform_maintenance(request) + response = client.test_iam_permissions(request) # Establish that the response is the type that we expect. - assert isinstance(response, extended_operation.ExtendedOperation) - assert response.client_operation_id == "client_operation_id_value" - assert response.creation_timestamp == "creation_timestamp_value" - assert response.description == "description_value" - assert response.end_time == "end_time_value" - assert response.http_error_message == "http_error_message_value" - assert response.http_error_status_code == 2374 - assert response.id == 205 - assert response.insert_time == "insert_time_value" - assert response.kind == "kind_value" - assert response.name == "name_value" - assert response.operation_group_id == "operation_group_id_value" - assert response.operation_type == "operation_type_value" - assert response.progress == 885 - assert response.region == "region_value" - assert response.self_link == "self_link_value" - assert response.start_time == "start_time_value" - assert response.status == compute.Operation.Status.DONE - assert response.status_message == "status_message_value" - assert response.target_id == 947 - assert response.target_link == "target_link_value" - assert response.user == "user_value" - assert response.zone == "zone_value" + assert isinstance(response, compute.TestPermissionsResponse) + assert response.permissions == ["permissions_value"] @pytest.mark.parametrize("null_interceptor", [True, False]) -def test_perform_maintenance_rest_interceptors(null_interceptor): +def test_test_iam_permissions_rest_interceptors(null_interceptor): transport = transports.ReservationBlocksRestTransport( credentials=ga_credentials.AnonymousCredentials(), interceptor=None @@ -2703,18 +3975,18 @@ def test_perform_maintenance_rest_interceptors(null_interceptor): ) as req, mock.patch.object( path_template, "transcode" ) as transcode, mock.patch.object( - transports.ReservationBlocksRestInterceptor, "post_perform_maintenance" + transports.ReservationBlocksRestInterceptor, "post_test_iam_permissions" ) as post, mock.patch.object( transports.ReservationBlocksRestInterceptor, - "post_perform_maintenance_with_metadata", + "post_test_iam_permissions_with_metadata", ) as post_with_metadata, mock.patch.object( - transports.ReservationBlocksRestInterceptor, "pre_perform_maintenance" + transports.ReservationBlocksRestInterceptor, "pre_test_iam_permissions" ) as pre: pre.assert_not_called() post.assert_not_called() post_with_metadata.assert_not_called() - pb_message = compute.PerformMaintenanceReservationBlockRequest.pb( - compute.PerformMaintenanceReservationBlockRequest() + pb_message = compute.TestIamPermissionsReservationBlockRequest.pb( + compute.TestIamPermissionsReservationBlockRequest() ) transcode.return_value = { "method": "post", @@ -2726,19 +3998,21 @@ def test_perform_maintenance_rest_interceptors(null_interceptor): req.return_value = mock.Mock() req.return_value.status_code = 200 req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - return_value = compute.Operation.to_json(compute.Operation()) + return_value = compute.TestPermissionsResponse.to_json( + compute.TestPermissionsResponse() + ) req.return_value.content = return_value - request = compute.PerformMaintenanceReservationBlockRequest() + request = compute.TestIamPermissionsReservationBlockRequest() metadata = [ ("key", "val"), ("cephalopod", "squid"), ] pre.return_value = request, metadata - post.return_value = compute.Operation() - post_with_metadata.return_value = compute.Operation(), metadata + post.return_value = compute.TestPermissionsResponse() + post_with_metadata.return_value = compute.TestPermissionsResponse(), metadata - client.perform_maintenance( + client.test_iam_permissions( request, metadata=[ ("key", "val"), @@ -2778,6 +4052,26 @@ def test_get_empty_call_rest(): assert args[0] == request_msg +# This test is a coverage failsafe to make sure that totally empty calls, +# i.e. request == None and no flattened fields passed, work. +def test_get_iam_policy_empty_call_rest(): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the actual call, and fake the request. + with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call: + client.get_iam_policy(request=None) + + # Establish that the underlying stub method was called. + call.assert_called() + _, args, _ = call.mock_calls[0] + request_msg = compute.GetIamPolicyReservationBlockRequest() + + assert args[0] == request_msg + + # This test is a coverage failsafe to make sure that totally empty calls, # i.e. request == None and no flattened fields passed, work. def test_list_empty_call_rest(): @@ -2820,6 +4114,48 @@ def test_perform_maintenance_unary_empty_call_rest(): assert args[0] == request_msg +# This test is a coverage failsafe to make sure that totally empty calls, +# i.e. request == None and no flattened fields passed, work. +def test_set_iam_policy_empty_call_rest(): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the actual call, and fake the request. + with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call: + client.set_iam_policy(request=None) + + # Establish that the underlying stub method was called. + call.assert_called() + _, args, _ = call.mock_calls[0] + request_msg = compute.SetIamPolicyReservationBlockRequest() + + assert args[0] == request_msg + + +# This test is a coverage failsafe to make sure that totally empty calls, +# i.e. request == None and no flattened fields passed, work. +def test_test_iam_permissions_empty_call_rest(): + client = ReservationBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the actual call, and fake the request. + with mock.patch.object( + type(client.transport.test_iam_permissions), "__call__" + ) as call: + client.test_iam_permissions(request=None) + + # Establish that the underlying stub method was called. + call.assert_called() + _, args, _ = call.mock_calls[0] + request_msg = compute.TestIamPermissionsReservationBlockRequest() + + assert args[0] == request_msg + + def test_reservation_blocks_base_transport_error(): # Passing both a credentials object and credentials_file should raise an error with pytest.raises(core_exceptions.DuplicateCredentialArgs): @@ -2843,8 +4179,11 @@ def test_reservation_blocks_base_transport(): # raise NotImplementedError. methods = ( "get", + "get_iam_policy", "list", "perform_maintenance", + "set_iam_policy", + "test_iam_permissions", ) for method in methods: with pytest.raises(NotImplementedError): @@ -2985,12 +4324,21 @@ def test_reservation_blocks_client_transport_session_collision(transport_name): session1 = client1.transport.get._session session2 = client2.transport.get._session assert session1 != session2 + session1 = client1.transport.get_iam_policy._session + session2 = client2.transport.get_iam_policy._session + assert session1 != session2 session1 = client1.transport.list._session session2 = client2.transport.list._session assert session1 != session2 session1 = client1.transport.perform_maintenance._session session2 = client2.transport.perform_maintenance._session assert session1 != session2 + session1 = client1.transport.set_iam_policy._session + session2 = client2.transport.set_iam_policy._session + assert session1 != session2 + session1 = client1.transport.test_iam_permissions._session + session2 = client2.transport.test_iam_permissions._session + assert session1 != session2 def test_common_billing_account_path(): diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservation_sub_blocks.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservation_sub_blocks.py index ece2b78837bb..11fa7c380335 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservation_sub_blocks.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservation_sub_blocks.py @@ -1257,6 +1257,8 @@ def test_get_rest_required_fields(request_type=compute.GetReservationSubBlockReq unset_fields = transport_class( credentials=ga_credentials.AnonymousCredentials() ).get._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("view",)) jsonified_request.update(unset_fields) # verify required fields with non-default values are left alone @@ -1318,7 +1320,7 @@ def test_get_rest_unset_required_fields(): unset_fields = transport.get._get_unset_required_fields({}) assert set(unset_fields) == ( - set(()) + set(("view",)) & set( ( "parentName", @@ -1399,6 +1401,219 @@ def test_get_rest_flattened_error(transport: str = "rest"): ) +def test_get_iam_policy_rest_use_cached_wrapped_rpc(): + # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, + # instead of constructing them on each call + with mock.patch("google.api_core.gapic_v1.method.wrap_method") as wrapper_fn: + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Should wrap all calls on client creation + assert wrapper_fn.call_count > 0 + wrapper_fn.reset_mock() + + # Ensure method has been cached + assert client._transport.get_iam_policy in client._transport._wrapped_methods + + # Replace cached wrapped function with mock + mock_rpc = mock.Mock() + mock_rpc.return_value.name = ( + "foo" # operation_request.operation in compute client(s) expect a string. + ) + client._transport._wrapped_methods[client._transport.get_iam_policy] = mock_rpc + + request = {} + client.get_iam_policy(request) + + # Establish that the underlying gRPC stub method was called. + assert mock_rpc.call_count == 1 + + client.get_iam_policy(request) + + # Establish that a new wrapper was not created for this call + assert wrapper_fn.call_count == 0 + assert mock_rpc.call_count == 2 + + +def test_get_iam_policy_rest_required_fields( + request_type=compute.GetIamPolicyReservationSubBlockRequest, +): + transport_class = transports.ReservationSubBlocksRestTransport + + request_init = {} + request_init["parent_resource"] = "" + request_init["project"] = "" + request_init["resource"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson(pb_request, use_integers_for_enums=False) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).get_iam_policy._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["parentResource"] = "parent_resource_value" + jsonified_request["project"] = "project_value" + jsonified_request["resource"] = "resource_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).get_iam_policy._get_unset_required_fields(jsonified_request) + # Check that path parameters and body parameters are not mixing in. + assert not set(unset_fields) - set(("options_requested_policy_version",)) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "parentResource" in jsonified_request + assert jsonified_request["parentResource"] == "parent_resource_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "resource" in jsonified_request + assert jsonified_request["resource"] == "resource_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Policy() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "get", + "query_params": pb_request, + } + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + response = client.get_iam_policy(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_get_iam_policy_rest_unset_required_fields(): + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.get_iam_policy._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(("optionsRequestedPolicyVersion",)) + & set( + ( + "parentResource", + "project", + "resource", + "zone", + ) + ) + ) + + +def test_get_iam_policy_rest_flattened(): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Policy() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + client.get_iam_policy(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy" + % client.transport._host, + args[1], + ) + + +def test_get_iam_policy_rest_flattened_error(transport: str = "rest"): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.get_iam_policy( + compute.GetIamPolicyReservationSubBlockRequest(), + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + ) + + def test_list_rest_use_cached_wrapped_rpc(): # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, # instead of constructing them on each call @@ -2579,89 +2794,948 @@ def test_report_faulty_unary_rest_flattened_error(transport: str = "rest"): ) -def test_credentials_transport_error(): - # It is an error to provide credentials and a transport instance. - transport = transports.ReservationSubBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - with pytest.raises(ValueError): +def test_set_iam_policy_rest_use_cached_wrapped_rpc(): + # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, + # instead of constructing them on each call + with mock.patch("google.api_core.gapic_v1.method.wrap_method") as wrapper_fn: client = ReservationSubBlocksClient( credentials=ga_credentials.AnonymousCredentials(), - transport=transport, + transport="rest", ) - # It is an error to provide a credentials file and a transport instance. - transport = transports.ReservationSubBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - with pytest.raises(ValueError): - client = ReservationSubBlocksClient( - client_options={"credentials_file": "credentials.json"}, - transport=transport, - ) + # Should wrap all calls on client creation + assert wrapper_fn.call_count > 0 + wrapper_fn.reset_mock() - # It is an error to provide an api_key and a transport instance. - transport = transports.ReservationSubBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - options = client_options.ClientOptions() - options.api_key = "api_key" - with pytest.raises(ValueError): - client = ReservationSubBlocksClient( - client_options=options, - transport=transport, - ) + # Ensure method has been cached + assert client._transport.set_iam_policy in client._transport._wrapped_methods - # It is an error to provide an api_key and a credential. - options = client_options.ClientOptions() - options.api_key = "api_key" - with pytest.raises(ValueError): - client = ReservationSubBlocksClient( - client_options=options, credentials=ga_credentials.AnonymousCredentials() + # Replace cached wrapped function with mock + mock_rpc = mock.Mock() + mock_rpc.return_value.name = ( + "foo" # operation_request.operation in compute client(s) expect a string. ) + client._transport._wrapped_methods[client._transport.set_iam_policy] = mock_rpc - # It is an error to provide scopes and a transport instance. - transport = transports.ReservationSubBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - with pytest.raises(ValueError): - client = ReservationSubBlocksClient( - client_options={"scopes": ["1", "2"]}, - transport=transport, - ) + request = {} + client.set_iam_policy(request) + # Establish that the underlying gRPC stub method was called. + assert mock_rpc.call_count == 1 -def test_transport_instance(): - # A client may be instantiated with a custom transport instance. - transport = transports.ReservationSubBlocksRestTransport( - credentials=ga_credentials.AnonymousCredentials(), - ) - client = ReservationSubBlocksClient(transport=transport) - assert client.transport is transport + client.set_iam_policy(request) + # Establish that a new wrapper was not created for this call + assert wrapper_fn.call_count == 0 + assert mock_rpc.call_count == 2 -@pytest.mark.parametrize( - "transport_class", - [ - transports.ReservationSubBlocksRestTransport, - ], -) -def test_transport_adc(transport_class): - # Test default credentials are used if not provided. - with mock.patch.object(google.auth, "default") as adc: - adc.return_value = (ga_credentials.AnonymousCredentials(), None) - transport_class() - adc.assert_called_once() + +def test_set_iam_policy_rest_required_fields( + request_type=compute.SetIamPolicyReservationSubBlockRequest, +): + transport_class = transports.ReservationSubBlocksRestTransport + + request_init = {} + request_init["parent_resource"] = "" + request_init["project"] = "" + request_init["resource"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson(pb_request, use_integers_for_enums=False) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).set_iam_policy._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["parentResource"] = "parent_resource_value" + jsonified_request["project"] = "project_value" + jsonified_request["resource"] = "resource_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).set_iam_policy._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "parentResource" in jsonified_request + assert jsonified_request["parentResource"] == "parent_resource_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "resource" in jsonified_request + assert jsonified_request["resource"] == "resource_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.Policy() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + response = client.set_iam_policy(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_set_iam_policy_rest_unset_required_fields(): + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.set_iam_policy._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(()) + & set( + ( + "parentResource", + "project", + "resource", + "zone", + "zoneSetNestedPolicyRequestResource", + ) + ) + ) + + +def test_set_iam_policy_rest_flattened(): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Policy() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + zone_set_nested_policy_request_resource=compute.ZoneSetNestedPolicyRequest( + bindings=[compute.Binding(binding_id="binding_id_value")] + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + client.set_iam_policy(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy" + % client.transport._host, + args[1], + ) + + +def test_set_iam_policy_rest_flattened_error(transport: str = "rest"): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.set_iam_policy( + compute.SetIamPolicyReservationSubBlockRequest(), + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + zone_set_nested_policy_request_resource=compute.ZoneSetNestedPolicyRequest( + bindings=[compute.Binding(binding_id="binding_id_value")] + ), + ) + + +def test_test_iam_permissions_rest_use_cached_wrapped_rpc(): + # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, + # instead of constructing them on each call + with mock.patch("google.api_core.gapic_v1.method.wrap_method") as wrapper_fn: + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Should wrap all calls on client creation + assert wrapper_fn.call_count > 0 + wrapper_fn.reset_mock() + + # Ensure method has been cached + assert ( + client._transport.test_iam_permissions in client._transport._wrapped_methods + ) + + # Replace cached wrapped function with mock + mock_rpc = mock.Mock() + mock_rpc.return_value.name = ( + "foo" # operation_request.operation in compute client(s) expect a string. + ) + client._transport._wrapped_methods[ + client._transport.test_iam_permissions + ] = mock_rpc + + request = {} + client.test_iam_permissions(request) + + # Establish that the underlying gRPC stub method was called. + assert mock_rpc.call_count == 1 + + client.test_iam_permissions(request) + + # Establish that a new wrapper was not created for this call + assert wrapper_fn.call_count == 0 + assert mock_rpc.call_count == 2 + + +def test_test_iam_permissions_rest_required_fields( + request_type=compute.TestIamPermissionsReservationSubBlockRequest, +): + transport_class = transports.ReservationSubBlocksRestTransport + + request_init = {} + request_init["parent_resource"] = "" + request_init["project"] = "" + request_init["resource"] = "" + request_init["zone"] = "" + request = request_type(**request_init) + pb_request = request_type.pb(request) + jsonified_request = json.loads( + json_format.MessageToJson(pb_request, use_integers_for_enums=False) + ) + + # verify fields with default values are dropped + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).test_iam_permissions._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with default values are now present + + jsonified_request["parentResource"] = "parent_resource_value" + jsonified_request["project"] = "project_value" + jsonified_request["resource"] = "resource_value" + jsonified_request["zone"] = "zone_value" + + unset_fields = transport_class( + credentials=ga_credentials.AnonymousCredentials() + ).test_iam_permissions._get_unset_required_fields(jsonified_request) + jsonified_request.update(unset_fields) + + # verify required fields with non-default values are left alone + assert "parentResource" in jsonified_request + assert jsonified_request["parentResource"] == "parent_resource_value" + assert "project" in jsonified_request + assert jsonified_request["project"] == "project_value" + assert "resource" in jsonified_request + assert jsonified_request["resource"] == "resource_value" + assert "zone" in jsonified_request + assert jsonified_request["zone"] == "zone_value" + + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + request = request_type(**request_init) + + # Designate an appropriate value for the returned response. + return_value = compute.TestPermissionsResponse() + # Mock the http request call within the method and fake a response. + with mock.patch.object(Session, "request") as req: + # We need to mock transcode() because providing default values + # for required fields will fail the real version if the http_options + # expect actual values for those fields. + with mock.patch.object(path_template, "transcode") as transcode: + # A uri without fields and an empty body will force all the + # request fields to show up in the query_params. + pb_request = request_type.pb(request) + transcode_result = { + "uri": "v1/sample_method", + "method": "post", + "query_params": pb_request, + } + transcode_result["body"] = pb_request + transcode.return_value = transcode_result + + response_value = Response() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.TestPermissionsResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + response = client.test_iam_permissions(request) + + expected_params = [] + actual_params = req.call_args.kwargs["params"] + assert expected_params == actual_params + + +def test_test_iam_permissions_rest_unset_required_fields(): + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials + ) + + unset_fields = transport.test_iam_permissions._get_unset_required_fields({}) + assert set(unset_fields) == ( + set(()) + & set( + ( + "parentResource", + "project", + "resource", + "testPermissionsRequestResource", + "zone", + ) + ) + ) + + +def test_test_iam_permissions_rest_flattened(): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.TestPermissionsResponse() + + # get arguments that satisfy an http rule for this method + sample_request = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + + # get truthy value for each flattened field + mock_args = dict( + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + test_permissions_request_resource=compute.TestPermissionsRequest( + permissions=["permissions_value"] + ), + ) + mock_args.update(sample_request) + + # Wrap the value into a proper Response obj + response_value = Response() + response_value.status_code = 200 + # Convert return value to protobuf type + return_value = compute.TestPermissionsResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value._content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + + client.test_iam_permissions(**mock_args) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(req.mock_calls) == 1 + _, args, _ = req.mock_calls[0] + assert path_template.validate( + "%s/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions" + % client.transport._host, + args[1], + ) + + +def test_test_iam_permissions_rest_flattened_error(transport: str = "rest"): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.test_iam_permissions( + compute.TestIamPermissionsReservationSubBlockRequest(), + project="project_value", + zone="zone_value", + parent_resource="parent_resource_value", + resource="resource_value", + test_permissions_request_resource=compute.TestPermissionsRequest( + permissions=["permissions_value"] + ), + ) + + +def test_credentials_transport_error(): + # It is an error to provide credentials and a transport instance. + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # It is an error to provide a credentials file and a transport instance. + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = ReservationSubBlocksClient( + client_options={"credentials_file": "credentials.json"}, + transport=transport, + ) + + # It is an error to provide an api_key and a transport instance. + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + options = client_options.ClientOptions() + options.api_key = "api_key" + with pytest.raises(ValueError): + client = ReservationSubBlocksClient( + client_options=options, + transport=transport, + ) + + # It is an error to provide an api_key and a credential. + options = client_options.ClientOptions() + options.api_key = "api_key" + with pytest.raises(ValueError): + client = ReservationSubBlocksClient( + client_options=options, credentials=ga_credentials.AnonymousCredentials() + ) + + # It is an error to provide scopes and a transport instance. + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = ReservationSubBlocksClient( + client_options={"scopes": ["1", "2"]}, + transport=transport, + ) + + +def test_transport_instance(): + # A client may be instantiated with a custom transport instance. + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + client = ReservationSubBlocksClient(transport=transport) + assert client.transport is transport + + +@pytest.mark.parametrize( + "transport_class", + [ + transports.ReservationSubBlocksRestTransport, + ], +) +def test_transport_adc(transport_class): + # Test default credentials are used if not provided. + with mock.patch.object(google.auth, "default") as adc: + adc.return_value = (ga_credentials.AnonymousCredentials(), None) + transport_class() + adc.assert_called_once() def test_transport_kind_rest(): transport = ReservationSubBlocksClient.get_transport_class("rest")( credentials=ga_credentials.AnonymousCredentials() ) - assert transport.kind == "rest" + assert transport.kind == "rest" + + +def test_get_rest_bad_request(request_type=compute.GetReservationSubBlockRequest): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_name": "sample3", + "reservation_sub_block": "sample4", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = mock.Mock() + json_return_value = "" + response_value.json = mock.Mock(return_value={}) + response_value.status_code = 400 + response_value.request = mock.Mock() + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + client.get(request) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.GetReservationSubBlockRequest, + dict, + ], +) +def test_get_rest_call_success(request_type): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_name": "sample3", + "reservation_sub_block": "sample4", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.ReservationSubBlocksGetResponse() + + # Wrap the value into a proper Response obj + response_value = mock.Mock() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.ReservationSubBlocksGetResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value.content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + response = client.get(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.ReservationSubBlocksGetResponse) + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_get_rest_interceptors(null_interceptor): + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.ReservationSubBlocksRestInterceptor(), + ) + client = ReservationSubBlocksClient(transport=transport) + + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.ReservationSubBlocksRestInterceptor, "post_get" + ) as post, mock.patch.object( + transports.ReservationSubBlocksRestInterceptor, "post_get_with_metadata" + ) as post_with_metadata, mock.patch.object( + transports.ReservationSubBlocksRestInterceptor, "pre_get" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + post_with_metadata.assert_not_called() + pb_message = compute.GetReservationSubBlockRequest.pb( + compute.GetReservationSubBlockRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = mock.Mock() + req.return_value.status_code = 200 + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + return_value = compute.ReservationSubBlocksGetResponse.to_json( + compute.ReservationSubBlocksGetResponse() + ) + req.return_value.content = return_value + + request = compute.GetReservationSubBlockRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.ReservationSubBlocksGetResponse() + post_with_metadata.return_value = ( + compute.ReservationSubBlocksGetResponse(), + metadata, + ) + + client.get( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + post_with_metadata.assert_called_once() + + +def test_get_iam_policy_rest_bad_request( + request_type=compute.GetIamPolicyReservationSubBlockRequest, +): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = mock.Mock() + json_return_value = "" + response_value.json = mock.Mock(return_value={}) + response_value.status_code = 400 + response_value.request = mock.Mock() + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + client.get_iam_policy(request) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.GetIamPolicyReservationSubBlockRequest, + dict, + ], +) +def test_get_iam_policy_rest_call_success(request_type): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.Policy( + etag="etag_value", + iam_owned=True, + version=774, + ) + + # Wrap the value into a proper Response obj + response_value = mock.Mock() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.Policy.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value.content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + response = client.get_iam_policy(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, compute.Policy) + assert response.etag == "etag_value" + assert response.iam_owned is True + assert response.version == 774 + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_get_iam_policy_rest_interceptors(null_interceptor): + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.ReservationSubBlocksRestInterceptor(), + ) + client = ReservationSubBlocksClient(transport=transport) + + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.ReservationSubBlocksRestInterceptor, "post_get_iam_policy" + ) as post, mock.patch.object( + transports.ReservationSubBlocksRestInterceptor, + "post_get_iam_policy_with_metadata", + ) as post_with_metadata, mock.patch.object( + transports.ReservationSubBlocksRestInterceptor, "pre_get_iam_policy" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + post_with_metadata.assert_not_called() + pb_message = compute.GetIamPolicyReservationSubBlockRequest.pb( + compute.GetIamPolicyReservationSubBlockRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = mock.Mock() + req.return_value.status_code = 200 + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + return_value = compute.Policy.to_json(compute.Policy()) + req.return_value.content = return_value + + request = compute.GetIamPolicyReservationSubBlockRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.Policy() + post_with_metadata.return_value = compute.Policy(), metadata + + client.get_iam_policy( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + post_with_metadata.assert_called_once() + + +def test_list_rest_bad_request(request_type=compute.ListReservationSubBlocksRequest): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "parent_name": "sample3"} + request = request_type(**request_init) + + # Mock the http request call within the method and fake a BadRequest error. + with mock.patch.object(Session, "request") as req, pytest.raises( + core_exceptions.BadRequest + ): + # Wrap the value into a proper Response obj + response_value = mock.Mock() + json_return_value = "" + response_value.json = mock.Mock(return_value={}) + response_value.status_code = 400 + response_value.request = mock.Mock() + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + client.list(request) -def test_get_rest_bad_request(request_type=compute.GetReservationSubBlockRequest): +@pytest.mark.parametrize( + "request_type", + [ + compute.ListReservationSubBlocksRequest, + dict, + ], +) +def test_list_rest_call_success(request_type): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + # send a request that will satisfy transcoding + request_init = {"project": "sample1", "zone": "sample2", "parent_name": "sample3"} + request = request_type(**request_init) + + # Mock the http request call within the method and fake a response. + with mock.patch.object(type(client.transport._session), "request") as req: + # Designate an appropriate value for the returned response. + return_value = compute.ReservationSubBlocksListResponse( + id="id_value", + kind="kind_value", + next_page_token="next_page_token_value", + self_link="self_link_value", + ) + + # Wrap the value into a proper Response obj + response_value = mock.Mock() + response_value.status_code = 200 + + # Convert return value to protobuf type + return_value = compute.ReservationSubBlocksListResponse.pb(return_value) + json_return_value = json_format.MessageToJson(return_value) + response_value.content = json_return_value.encode("UTF-8") + req.return_value = response_value + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + response = client.list(request) + + # Establish that the response is the type that we expect. + assert isinstance(response, pagers.ListPager) + assert response.id == "id_value" + assert response.kind == "kind_value" + assert response.next_page_token == "next_page_token_value" + assert response.self_link == "self_link_value" + + +@pytest.mark.parametrize("null_interceptor", [True, False]) +def test_list_rest_interceptors(null_interceptor): + transport = transports.ReservationSubBlocksRestTransport( + credentials=ga_credentials.AnonymousCredentials(), + interceptor=None + if null_interceptor + else transports.ReservationSubBlocksRestInterceptor(), + ) + client = ReservationSubBlocksClient(transport=transport) + + with mock.patch.object( + type(client.transport._session), "request" + ) as req, mock.patch.object( + path_template, "transcode" + ) as transcode, mock.patch.object( + transports.ReservationSubBlocksRestInterceptor, "post_list" + ) as post, mock.patch.object( + transports.ReservationSubBlocksRestInterceptor, "post_list_with_metadata" + ) as post_with_metadata, mock.patch.object( + transports.ReservationSubBlocksRestInterceptor, "pre_list" + ) as pre: + pre.assert_not_called() + post.assert_not_called() + post_with_metadata.assert_not_called() + pb_message = compute.ListReservationSubBlocksRequest.pb( + compute.ListReservationSubBlocksRequest() + ) + transcode.return_value = { + "method": "post", + "uri": "my_uri", + "body": pb_message, + "query_params": pb_message, + } + + req.return_value = mock.Mock() + req.return_value.status_code = 200 + req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} + return_value = compute.ReservationSubBlocksListResponse.to_json( + compute.ReservationSubBlocksListResponse() + ) + req.return_value.content = return_value + + request = compute.ListReservationSubBlocksRequest() + metadata = [ + ("key", "val"), + ("cephalopod", "squid"), + ] + pre.return_value = request, metadata + post.return_value = compute.ReservationSubBlocksListResponse() + post_with_metadata.return_value = ( + compute.ReservationSubBlocksListResponse(), + metadata, + ) + + client.list( + request, + metadata=[ + ("key", "val"), + ("cephalopod", "squid"), + ], + ) + + pre.assert_called_once() + post.assert_called_once() + post_with_metadata.assert_called_once() + + +def test_perform_maintenance_rest_bad_request( + request_type=compute.PerformMaintenanceReservationSubBlockRequest, +): client = ReservationSubBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) @@ -2686,17 +3760,17 @@ def test_get_rest_bad_request(request_type=compute.GetReservationSubBlockRequest response_value.request = mock.Mock() req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - client.get(request) + client.perform_maintenance(request) @pytest.mark.parametrize( "request_type", [ - compute.GetReservationSubBlockRequest, + compute.PerformMaintenanceReservationSubBlockRequest, dict, ], ) -def test_get_rest_call_success(request_type): +def test_perform_maintenance_rest_call_success(request_type): client = ReservationSubBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) @@ -2713,26 +3787,71 @@ def test_get_rest_call_success(request_type): # Mock the http request call within the method and fake a response. with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. - return_value = compute.ReservationSubBlocksGetResponse() + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", + kind="kind_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", + self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", + ) # Wrap the value into a proper Response obj response_value = mock.Mock() response_value.status_code = 200 # Convert return value to protobuf type - return_value = compute.ReservationSubBlocksGetResponse.pb(return_value) + return_value = compute.Operation.pb(return_value) json_return_value = json_format.MessageToJson(return_value) response_value.content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - response = client.get(request) + response = client.perform_maintenance(request) # Establish that the response is the type that we expect. - assert isinstance(response, compute.ReservationSubBlocksGetResponse) + assert isinstance(response, extended_operation.ExtendedOperation) + assert response.client_operation_id == "client_operation_id_value" + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.end_time == "end_time_value" + assert response.http_error_message == "http_error_message_value" + assert response.http_error_status_code == 2374 + assert response.id == 205 + assert response.insert_time == "insert_time_value" + assert response.kind == "kind_value" + assert response.name == "name_value" + assert response.operation_group_id == "operation_group_id_value" + assert response.operation_type == "operation_type_value" + assert response.progress == 885 + assert response.region == "region_value" + assert response.self_link == "self_link_value" + assert response.start_time == "start_time_value" + assert response.status == compute.Operation.Status.DONE + assert response.status_message == "status_message_value" + assert response.target_id == 947 + assert response.target_link == "target_link_value" + assert response.user == "user_value" + assert response.zone == "zone_value" @pytest.mark.parametrize("null_interceptor", [True, False]) -def test_get_rest_interceptors(null_interceptor): +def test_perform_maintenance_rest_interceptors(null_interceptor): transport = transports.ReservationSubBlocksRestTransport( credentials=ga_credentials.AnonymousCredentials(), interceptor=None @@ -2746,17 +3865,18 @@ def test_get_rest_interceptors(null_interceptor): ) as req, mock.patch.object( path_template, "transcode" ) as transcode, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "post_get" + transports.ReservationSubBlocksRestInterceptor, "post_perform_maintenance" ) as post, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "post_get_with_metadata" + transports.ReservationSubBlocksRestInterceptor, + "post_perform_maintenance_with_metadata", ) as post_with_metadata, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "pre_get" + transports.ReservationSubBlocksRestInterceptor, "pre_perform_maintenance" ) as pre: pre.assert_not_called() post.assert_not_called() post_with_metadata.assert_not_called() - pb_message = compute.GetReservationSubBlockRequest.pb( - compute.GetReservationSubBlockRequest() + pb_message = compute.PerformMaintenanceReservationSubBlockRequest.pb( + compute.PerformMaintenanceReservationSubBlockRequest() ) transcode.return_value = { "method": "post", @@ -2768,24 +3888,19 @@ def test_get_rest_interceptors(null_interceptor): req.return_value = mock.Mock() req.return_value.status_code = 200 req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - return_value = compute.ReservationSubBlocksGetResponse.to_json( - compute.ReservationSubBlocksGetResponse() - ) + return_value = compute.Operation.to_json(compute.Operation()) req.return_value.content = return_value - request = compute.GetReservationSubBlockRequest() + request = compute.PerformMaintenanceReservationSubBlockRequest() metadata = [ ("key", "val"), ("cephalopod", "squid"), ] pre.return_value = request, metadata - post.return_value = compute.ReservationSubBlocksGetResponse() - post_with_metadata.return_value = ( - compute.ReservationSubBlocksGetResponse(), - metadata, - ) + post.return_value = compute.Operation() + post_with_metadata.return_value = compute.Operation(), metadata - client.get( + client.perform_maintenance( request, metadata=[ ("key", "val"), @@ -2798,12 +3913,19 @@ def test_get_rest_interceptors(null_interceptor): post_with_metadata.assert_called_once() -def test_list_rest_bad_request(request_type=compute.ListReservationSubBlocksRequest): +def test_report_faulty_rest_bad_request( + request_type=compute.ReportFaultyReservationSubBlockRequest, +): client = ReservationSubBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) # send a request that will satisfy transcoding - request_init = {"project": "sample1", "zone": "sample2", "parent_name": "sample3"} + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_name": "sample3", + "reservation_sub_block": "sample4", + } request = request_type(**request_init) # Mock the http request call within the method and fake a BadRequest error. @@ -2818,33 +3940,145 @@ def test_list_rest_bad_request(request_type=compute.ListReservationSubBlocksRequ response_value.request = mock.Mock() req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - client.list(request) + client.report_faulty(request) @pytest.mark.parametrize( "request_type", [ - compute.ListReservationSubBlocksRequest, + compute.ReportFaultyReservationSubBlockRequest, dict, ], ) -def test_list_rest_call_success(request_type): +def test_report_faulty_rest_call_success(request_type): client = ReservationSubBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) # send a request that will satisfy transcoding - request_init = {"project": "sample1", "zone": "sample2", "parent_name": "sample3"} + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_name": "sample3", + "reservation_sub_block": "sample4", + } + request_init["reservation_sub_blocks_report_faulty_request_resource"] = { + "disruption_schedule": "disruption_schedule_value", + "failure_component": "failure_component_value", + "fault_reasons": [ + {"behavior": "behavior_value", "description": "description_value"} + ], + } + # The version of a generated dependency at test runtime may differ from the version used during generation. + # Delete any fields which are not present in the current runtime dependency + # See https://github.com/googleapis/gapic-generator-python/issues/1748 + + # Determine if the message type is proto-plus or protobuf + test_field = compute.ReportFaultyReservationSubBlockRequest.meta.fields[ + "reservation_sub_blocks_report_faulty_request_resource" + ] + + def get_message_fields(field): + # Given a field which is a message (composite type), return a list with + # all the fields of the message. + # If the field is not a composite type, return an empty list. + message_fields = [] + + if hasattr(field, "message") and field.message: + is_field_type_proto_plus_type = not hasattr(field.message, "DESCRIPTOR") + + if is_field_type_proto_plus_type: + message_fields = field.message.meta.fields.values() + # Add `# pragma: NO COVER` because there may not be any `*_pb2` field types + else: # pragma: NO COVER + message_fields = field.message.DESCRIPTOR.fields + return message_fields + + runtime_nested_fields = [ + (field.name, nested_field.name) + for field in get_message_fields(test_field) + for nested_field in get_message_fields(field) + ] + + subfields_not_in_runtime = [] + + # For each item in the sample request, create a list of sub fields which are not present at runtime + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for field, value in request_init[ + "reservation_sub_blocks_report_faulty_request_resource" + ].items(): # pragma: NO COVER + result = None + is_repeated = False + # For repeated fields + if isinstance(value, list) and len(value): + is_repeated = True + result = value[0] + # For fields where the type is another message + if isinstance(value, dict): + result = value + + if result and hasattr(result, "keys"): + for subfield in result.keys(): + if (field, subfield) not in runtime_nested_fields: + subfields_not_in_runtime.append( + { + "field": field, + "subfield": subfield, + "is_repeated": is_repeated, + } + ) + + # Remove fields from the sample request which are not present in the runtime version of the dependency + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for subfield_to_delete in subfields_not_in_runtime: # pragma: NO COVER + field = subfield_to_delete.get("field") + field_repeated = subfield_to_delete.get("is_repeated") + subfield = subfield_to_delete.get("subfield") + if subfield: + if field_repeated: + for i in range( + 0, + len( + request_init[ + "reservation_sub_blocks_report_faulty_request_resource" + ][field] + ), + ): + del request_init[ + "reservation_sub_blocks_report_faulty_request_resource" + ][field][i][subfield] + else: + del request_init[ + "reservation_sub_blocks_report_faulty_request_resource" + ][field][subfield] request = request_type(**request_init) # Mock the http request call within the method and fake a response. with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. - return_value = compute.ReservationSubBlocksListResponse( - id="id_value", + return_value = compute.Operation( + client_operation_id="client_operation_id_value", + creation_timestamp="creation_timestamp_value", + description="description_value", + end_time="end_time_value", + http_error_message="http_error_message_value", + http_error_status_code=2374, + id=205, + insert_time="insert_time_value", kind="kind_value", - next_page_token="next_page_token_value", + name="name_value", + operation_group_id="operation_group_id_value", + operation_type="operation_type_value", + progress=885, + region="region_value", self_link="self_link_value", + start_time="start_time_value", + status=compute.Operation.Status.DONE, + status_message="status_message_value", + target_id=947, + target_link="target_link_value", + user="user_value", + zone="zone_value", ) # Wrap the value into a proper Response obj @@ -2852,23 +4086,41 @@ def test_list_rest_call_success(request_type): response_value.status_code = 200 # Convert return value to protobuf type - return_value = compute.ReservationSubBlocksListResponse.pb(return_value) + return_value = compute.Operation.pb(return_value) json_return_value = json_format.MessageToJson(return_value) response_value.content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - response = client.list(request) + response = client.report_faulty(request) # Establish that the response is the type that we expect. - assert isinstance(response, pagers.ListPager) - assert response.id == "id_value" + assert isinstance(response, extended_operation.ExtendedOperation) + assert response.client_operation_id == "client_operation_id_value" + assert response.creation_timestamp == "creation_timestamp_value" + assert response.description == "description_value" + assert response.end_time == "end_time_value" + assert response.http_error_message == "http_error_message_value" + assert response.http_error_status_code == 2374 + assert response.id == 205 + assert response.insert_time == "insert_time_value" assert response.kind == "kind_value" - assert response.next_page_token == "next_page_token_value" + assert response.name == "name_value" + assert response.operation_group_id == "operation_group_id_value" + assert response.operation_type == "operation_type_value" + assert response.progress == 885 + assert response.region == "region_value" assert response.self_link == "self_link_value" + assert response.start_time == "start_time_value" + assert response.status == compute.Operation.Status.DONE + assert response.status_message == "status_message_value" + assert response.target_id == 947 + assert response.target_link == "target_link_value" + assert response.user == "user_value" + assert response.zone == "zone_value" @pytest.mark.parametrize("null_interceptor", [True, False]) -def test_list_rest_interceptors(null_interceptor): +def test_report_faulty_rest_interceptors(null_interceptor): transport = transports.ReservationSubBlocksRestTransport( credentials=ga_credentials.AnonymousCredentials(), interceptor=None @@ -2882,17 +4134,18 @@ def test_list_rest_interceptors(null_interceptor): ) as req, mock.patch.object( path_template, "transcode" ) as transcode, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "post_list" + transports.ReservationSubBlocksRestInterceptor, "post_report_faulty" ) as post, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "post_list_with_metadata" + transports.ReservationSubBlocksRestInterceptor, + "post_report_faulty_with_metadata", ) as post_with_metadata, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "pre_list" + transports.ReservationSubBlocksRestInterceptor, "pre_report_faulty" ) as pre: pre.assert_not_called() post.assert_not_called() post_with_metadata.assert_not_called() - pb_message = compute.ListReservationSubBlocksRequest.pb( - compute.ListReservationSubBlocksRequest() + pb_message = compute.ReportFaultyReservationSubBlockRequest.pb( + compute.ReportFaultyReservationSubBlockRequest() ) transcode.return_value = { "method": "post", @@ -2904,24 +4157,19 @@ def test_list_rest_interceptors(null_interceptor): req.return_value = mock.Mock() req.return_value.status_code = 200 req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - return_value = compute.ReservationSubBlocksListResponse.to_json( - compute.ReservationSubBlocksListResponse() - ) + return_value = compute.Operation.to_json(compute.Operation()) req.return_value.content = return_value - request = compute.ListReservationSubBlocksRequest() + request = compute.ReportFaultyReservationSubBlockRequest() metadata = [ ("key", "val"), ("cephalopod", "squid"), ] pre.return_value = request, metadata - post.return_value = compute.ReservationSubBlocksListResponse() - post_with_metadata.return_value = ( - compute.ReservationSubBlocksListResponse(), - metadata, - ) + post.return_value = compute.Operation() + post_with_metadata.return_value = compute.Operation(), metadata - client.list( + client.report_faulty( request, metadata=[ ("key", "val"), @@ -2934,8 +4182,8 @@ def test_list_rest_interceptors(null_interceptor): post_with_metadata.assert_called_once() -def test_perform_maintenance_rest_bad_request( - request_type=compute.PerformMaintenanceReservationSubBlockRequest, +def test_set_iam_policy_rest_bad_request( + request_type=compute.SetIamPolicyReservationSubBlockRequest, ): client = ReservationSubBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" @@ -2944,8 +4192,8 @@ def test_perform_maintenance_rest_bad_request( request_init = { "project": "sample1", "zone": "sample2", - "parent_name": "sample3", - "reservation_sub_block": "sample4", + "parent_resource": "sample3", + "resource": "sample4", } request = request_type(**request_init) @@ -2961,56 +4209,156 @@ def test_perform_maintenance_rest_bad_request( response_value.request = mock.Mock() req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - client.perform_maintenance(request) + client.set_iam_policy(request) + + +@pytest.mark.parametrize( + "request_type", + [ + compute.SetIamPolicyReservationSubBlockRequest, + dict, + ], +) +def test_set_iam_policy_rest_call_success(request_type): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), transport="rest" + ) + + # send a request that will satisfy transcoding + request_init = { + "project": "sample1", + "zone": "sample2", + "parent_resource": "sample3", + "resource": "sample4", + } + request_init["zone_set_nested_policy_request_resource"] = { + "bindings": [ + { + "binding_id": "binding_id_value", + "condition": { + "description": "description_value", + "expression": "expression_value", + "location": "location_value", + "title": "title_value", + }, + "members": ["members_value1", "members_value2"], + "role": "role_value", + } + ], + "etag": "etag_value", + "policy": { + "audit_configs": [ + { + "audit_log_configs": [ + { + "exempted_members": [ + "exempted_members_value1", + "exempted_members_value2", + ], + "ignore_child_exemptions": True, + "log_type": "log_type_value", + } + ], + "exempted_members": [ + "exempted_members_value1", + "exempted_members_value2", + ], + "service": "service_value", + } + ], + "bindings": {}, + "etag": "etag_value", + "iam_owned": True, + "version": 774, + }, + } + # The version of a generated dependency at test runtime may differ from the version used during generation. + # Delete any fields which are not present in the current runtime dependency + # See https://github.com/googleapis/gapic-generator-python/issues/1748 + + # Determine if the message type is proto-plus or protobuf + test_field = compute.SetIamPolicyReservationSubBlockRequest.meta.fields[ + "zone_set_nested_policy_request_resource" + ] + + def get_message_fields(field): + # Given a field which is a message (composite type), return a list with + # all the fields of the message. + # If the field is not a composite type, return an empty list. + message_fields = [] + + if hasattr(field, "message") and field.message: + is_field_type_proto_plus_type = not hasattr(field.message, "DESCRIPTOR") + + if is_field_type_proto_plus_type: + message_fields = field.message.meta.fields.values() + # Add `# pragma: NO COVER` because there may not be any `*_pb2` field types + else: # pragma: NO COVER + message_fields = field.message.DESCRIPTOR.fields + return message_fields + + runtime_nested_fields = [ + (field.name, nested_field.name) + for field in get_message_fields(test_field) + for nested_field in get_message_fields(field) + ] + + subfields_not_in_runtime = [] + # For each item in the sample request, create a list of sub fields which are not present at runtime + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for field, value in request_init[ + "zone_set_nested_policy_request_resource" + ].items(): # pragma: NO COVER + result = None + is_repeated = False + # For repeated fields + if isinstance(value, list) and len(value): + is_repeated = True + result = value[0] + # For fields where the type is another message + if isinstance(value, dict): + result = value -@pytest.mark.parametrize( - "request_type", - [ - compute.PerformMaintenanceReservationSubBlockRequest, - dict, - ], -) -def test_perform_maintenance_rest_call_success(request_type): - client = ReservationSubBlocksClient( - credentials=ga_credentials.AnonymousCredentials(), transport="rest" - ) + if result and hasattr(result, "keys"): + for subfield in result.keys(): + if (field, subfield) not in runtime_nested_fields: + subfields_not_in_runtime.append( + { + "field": field, + "subfield": subfield, + "is_repeated": is_repeated, + } + ) - # send a request that will satisfy transcoding - request_init = { - "project": "sample1", - "zone": "sample2", - "parent_name": "sample3", - "reservation_sub_block": "sample4", - } + # Remove fields from the sample request which are not present in the runtime version of the dependency + # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime + for subfield_to_delete in subfields_not_in_runtime: # pragma: NO COVER + field = subfield_to_delete.get("field") + field_repeated = subfield_to_delete.get("is_repeated") + subfield = subfield_to_delete.get("subfield") + if subfield: + if field_repeated: + for i in range( + 0, + len(request_init["zone_set_nested_policy_request_resource"][field]), + ): + del request_init["zone_set_nested_policy_request_resource"][field][ + i + ][subfield] + else: + del request_init["zone_set_nested_policy_request_resource"][field][ + subfield + ] request = request_type(**request_init) # Mock the http request call within the method and fake a response. with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. - return_value = compute.Operation( - client_operation_id="client_operation_id_value", - creation_timestamp="creation_timestamp_value", - description="description_value", - end_time="end_time_value", - http_error_message="http_error_message_value", - http_error_status_code=2374, - id=205, - insert_time="insert_time_value", - kind="kind_value", - name="name_value", - operation_group_id="operation_group_id_value", - operation_type="operation_type_value", - progress=885, - region="region_value", - self_link="self_link_value", - start_time="start_time_value", - status=compute.Operation.Status.DONE, - status_message="status_message_value", - target_id=947, - target_link="target_link_value", - user="user_value", - zone="zone_value", + return_value = compute.Policy( + etag="etag_value", + iam_owned=True, + version=774, ) # Wrap the value into a proper Response obj @@ -3018,41 +4366,22 @@ def test_perform_maintenance_rest_call_success(request_type): response_value.status_code = 200 # Convert return value to protobuf type - return_value = compute.Operation.pb(return_value) + return_value = compute.Policy.pb(return_value) json_return_value = json_format.MessageToJson(return_value) response_value.content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - response = client.perform_maintenance(request) + response = client.set_iam_policy(request) # Establish that the response is the type that we expect. - assert isinstance(response, extended_operation.ExtendedOperation) - assert response.client_operation_id == "client_operation_id_value" - assert response.creation_timestamp == "creation_timestamp_value" - assert response.description == "description_value" - assert response.end_time == "end_time_value" - assert response.http_error_message == "http_error_message_value" - assert response.http_error_status_code == 2374 - assert response.id == 205 - assert response.insert_time == "insert_time_value" - assert response.kind == "kind_value" - assert response.name == "name_value" - assert response.operation_group_id == "operation_group_id_value" - assert response.operation_type == "operation_type_value" - assert response.progress == 885 - assert response.region == "region_value" - assert response.self_link == "self_link_value" - assert response.start_time == "start_time_value" - assert response.status == compute.Operation.Status.DONE - assert response.status_message == "status_message_value" - assert response.target_id == 947 - assert response.target_link == "target_link_value" - assert response.user == "user_value" - assert response.zone == "zone_value" + assert isinstance(response, compute.Policy) + assert response.etag == "etag_value" + assert response.iam_owned is True + assert response.version == 774 @pytest.mark.parametrize("null_interceptor", [True, False]) -def test_perform_maintenance_rest_interceptors(null_interceptor): +def test_set_iam_policy_rest_interceptors(null_interceptor): transport = transports.ReservationSubBlocksRestTransport( credentials=ga_credentials.AnonymousCredentials(), interceptor=None @@ -3066,18 +4395,18 @@ def test_perform_maintenance_rest_interceptors(null_interceptor): ) as req, mock.patch.object( path_template, "transcode" ) as transcode, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "post_perform_maintenance" + transports.ReservationSubBlocksRestInterceptor, "post_set_iam_policy" ) as post, mock.patch.object( transports.ReservationSubBlocksRestInterceptor, - "post_perform_maintenance_with_metadata", + "post_set_iam_policy_with_metadata", ) as post_with_metadata, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "pre_perform_maintenance" + transports.ReservationSubBlocksRestInterceptor, "pre_set_iam_policy" ) as pre: pre.assert_not_called() post.assert_not_called() post_with_metadata.assert_not_called() - pb_message = compute.PerformMaintenanceReservationSubBlockRequest.pb( - compute.PerformMaintenanceReservationSubBlockRequest() + pb_message = compute.SetIamPolicyReservationSubBlockRequest.pb( + compute.SetIamPolicyReservationSubBlockRequest() ) transcode.return_value = { "method": "post", @@ -3089,19 +4418,19 @@ def test_perform_maintenance_rest_interceptors(null_interceptor): req.return_value = mock.Mock() req.return_value.status_code = 200 req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - return_value = compute.Operation.to_json(compute.Operation()) + return_value = compute.Policy.to_json(compute.Policy()) req.return_value.content = return_value - request = compute.PerformMaintenanceReservationSubBlockRequest() + request = compute.SetIamPolicyReservationSubBlockRequest() metadata = [ ("key", "val"), ("cephalopod", "squid"), ] pre.return_value = request, metadata - post.return_value = compute.Operation() - post_with_metadata.return_value = compute.Operation(), metadata + post.return_value = compute.Policy() + post_with_metadata.return_value = compute.Policy(), metadata - client.perform_maintenance( + client.set_iam_policy( request, metadata=[ ("key", "val"), @@ -3114,8 +4443,8 @@ def test_perform_maintenance_rest_interceptors(null_interceptor): post_with_metadata.assert_called_once() -def test_report_faulty_rest_bad_request( - request_type=compute.ReportFaultyReservationSubBlockRequest, +def test_test_iam_permissions_rest_bad_request( + request_type=compute.TestIamPermissionsReservationSubBlockRequest, ): client = ReservationSubBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" @@ -3124,8 +4453,8 @@ def test_report_faulty_rest_bad_request( request_init = { "project": "sample1", "zone": "sample2", - "parent_name": "sample3", - "reservation_sub_block": "sample4", + "parent_resource": "sample3", + "resource": "sample4", } request = request_type(**request_init) @@ -3141,17 +4470,17 @@ def test_report_faulty_rest_bad_request( response_value.request = mock.Mock() req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - client.report_faulty(request) + client.test_iam_permissions(request) @pytest.mark.parametrize( "request_type", [ - compute.ReportFaultyReservationSubBlockRequest, + compute.TestIamPermissionsReservationSubBlockRequest, dict, ], ) -def test_report_faulty_rest_call_success(request_type): +def test_test_iam_permissions_rest_call_success(request_type): client = ReservationSubBlocksClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) @@ -3160,23 +4489,19 @@ def test_report_faulty_rest_call_success(request_type): request_init = { "project": "sample1", "zone": "sample2", - "parent_name": "sample3", - "reservation_sub_block": "sample4", + "parent_resource": "sample3", + "resource": "sample4", } - request_init["reservation_sub_blocks_report_faulty_request_resource"] = { - "disruption_schedule": "disruption_schedule_value", - "failure_component": "failure_component_value", - "fault_reasons": [ - {"behavior": "behavior_value", "description": "description_value"} - ], + request_init["test_permissions_request_resource"] = { + "permissions": ["permissions_value1", "permissions_value2"] } # The version of a generated dependency at test runtime may differ from the version used during generation. # Delete any fields which are not present in the current runtime dependency # See https://github.com/googleapis/gapic-generator-python/issues/1748 # Determine if the message type is proto-plus or protobuf - test_field = compute.ReportFaultyReservationSubBlockRequest.meta.fields[ - "reservation_sub_blocks_report_faulty_request_resource" + test_field = compute.TestIamPermissionsReservationSubBlockRequest.meta.fields[ + "test_permissions_request_resource" ] def get_message_fields(field): @@ -3206,7 +4531,7 @@ def get_message_fields(field): # For each item in the sample request, create a list of sub fields which are not present at runtime # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime for field, value in request_init[ - "reservation_sub_blocks_report_faulty_request_resource" + "test_permissions_request_resource" ].items(): # pragma: NO COVER result = None is_repeated = False @@ -3238,48 +4563,20 @@ def get_message_fields(field): if subfield: if field_repeated: for i in range( - 0, - len( - request_init[ - "reservation_sub_blocks_report_faulty_request_resource" - ][field] - ), + 0, len(request_init["test_permissions_request_resource"][field]) ): - del request_init[ - "reservation_sub_blocks_report_faulty_request_resource" - ][field][i][subfield] + del request_init["test_permissions_request_resource"][field][i][ + subfield + ] else: - del request_init[ - "reservation_sub_blocks_report_faulty_request_resource" - ][field][subfield] + del request_init["test_permissions_request_resource"][field][subfield] request = request_type(**request_init) # Mock the http request call within the method and fake a response. with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. - return_value = compute.Operation( - client_operation_id="client_operation_id_value", - creation_timestamp="creation_timestamp_value", - description="description_value", - end_time="end_time_value", - http_error_message="http_error_message_value", - http_error_status_code=2374, - id=205, - insert_time="insert_time_value", - kind="kind_value", - name="name_value", - operation_group_id="operation_group_id_value", - operation_type="operation_type_value", - progress=885, - region="region_value", - self_link="self_link_value", - start_time="start_time_value", - status=compute.Operation.Status.DONE, - status_message="status_message_value", - target_id=947, - target_link="target_link_value", - user="user_value", - zone="zone_value", + return_value = compute.TestPermissionsResponse( + permissions=["permissions_value"], ) # Wrap the value into a proper Response obj @@ -3287,41 +4584,20 @@ def get_message_fields(field): response_value.status_code = 200 # Convert return value to protobuf type - return_value = compute.Operation.pb(return_value) + return_value = compute.TestPermissionsResponse.pb(return_value) json_return_value = json_format.MessageToJson(return_value) response_value.content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - response = client.report_faulty(request) + response = client.test_iam_permissions(request) # Establish that the response is the type that we expect. - assert isinstance(response, extended_operation.ExtendedOperation) - assert response.client_operation_id == "client_operation_id_value" - assert response.creation_timestamp == "creation_timestamp_value" - assert response.description == "description_value" - assert response.end_time == "end_time_value" - assert response.http_error_message == "http_error_message_value" - assert response.http_error_status_code == 2374 - assert response.id == 205 - assert response.insert_time == "insert_time_value" - assert response.kind == "kind_value" - assert response.name == "name_value" - assert response.operation_group_id == "operation_group_id_value" - assert response.operation_type == "operation_type_value" - assert response.progress == 885 - assert response.region == "region_value" - assert response.self_link == "self_link_value" - assert response.start_time == "start_time_value" - assert response.status == compute.Operation.Status.DONE - assert response.status_message == "status_message_value" - assert response.target_id == 947 - assert response.target_link == "target_link_value" - assert response.user == "user_value" - assert response.zone == "zone_value" + assert isinstance(response, compute.TestPermissionsResponse) + assert response.permissions == ["permissions_value"] @pytest.mark.parametrize("null_interceptor", [True, False]) -def test_report_faulty_rest_interceptors(null_interceptor): +def test_test_iam_permissions_rest_interceptors(null_interceptor): transport = transports.ReservationSubBlocksRestTransport( credentials=ga_credentials.AnonymousCredentials(), interceptor=None @@ -3335,18 +4611,18 @@ def test_report_faulty_rest_interceptors(null_interceptor): ) as req, mock.patch.object( path_template, "transcode" ) as transcode, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "post_report_faulty" + transports.ReservationSubBlocksRestInterceptor, "post_test_iam_permissions" ) as post, mock.patch.object( transports.ReservationSubBlocksRestInterceptor, - "post_report_faulty_with_metadata", + "post_test_iam_permissions_with_metadata", ) as post_with_metadata, mock.patch.object( - transports.ReservationSubBlocksRestInterceptor, "pre_report_faulty" + transports.ReservationSubBlocksRestInterceptor, "pre_test_iam_permissions" ) as pre: pre.assert_not_called() post.assert_not_called() post_with_metadata.assert_not_called() - pb_message = compute.ReportFaultyReservationSubBlockRequest.pb( - compute.ReportFaultyReservationSubBlockRequest() + pb_message = compute.TestIamPermissionsReservationSubBlockRequest.pb( + compute.TestIamPermissionsReservationSubBlockRequest() ) transcode.return_value = { "method": "post", @@ -3358,19 +4634,21 @@ def test_report_faulty_rest_interceptors(null_interceptor): req.return_value = mock.Mock() req.return_value.status_code = 200 req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - return_value = compute.Operation.to_json(compute.Operation()) + return_value = compute.TestPermissionsResponse.to_json( + compute.TestPermissionsResponse() + ) req.return_value.content = return_value - request = compute.ReportFaultyReservationSubBlockRequest() + request = compute.TestIamPermissionsReservationSubBlockRequest() metadata = [ ("key", "val"), ("cephalopod", "squid"), ] pre.return_value = request, metadata - post.return_value = compute.Operation() - post_with_metadata.return_value = compute.Operation(), metadata + post.return_value = compute.TestPermissionsResponse() + post_with_metadata.return_value = compute.TestPermissionsResponse(), metadata - client.report_faulty( + client.test_iam_permissions( request, metadata=[ ("key", "val"), @@ -3410,6 +4688,26 @@ def test_get_empty_call_rest(): assert args[0] == request_msg +# This test is a coverage failsafe to make sure that totally empty calls, +# i.e. request == None and no flattened fields passed, work. +def test_get_iam_policy_empty_call_rest(): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the actual call, and fake the request. + with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call: + client.get_iam_policy(request=None) + + # Establish that the underlying stub method was called. + call.assert_called() + _, args, _ = call.mock_calls[0] + request_msg = compute.GetIamPolicyReservationSubBlockRequest() + + assert args[0] == request_msg + + # This test is a coverage failsafe to make sure that totally empty calls, # i.e. request == None and no flattened fields passed, work. def test_list_empty_call_rest(): @@ -3472,6 +4770,48 @@ def test_report_faulty_unary_empty_call_rest(): assert args[0] == request_msg +# This test is a coverage failsafe to make sure that totally empty calls, +# i.e. request == None and no flattened fields passed, work. +def test_set_iam_policy_empty_call_rest(): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the actual call, and fake the request. + with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call: + client.set_iam_policy(request=None) + + # Establish that the underlying stub method was called. + call.assert_called() + _, args, _ = call.mock_calls[0] + request_msg = compute.SetIamPolicyReservationSubBlockRequest() + + assert args[0] == request_msg + + +# This test is a coverage failsafe to make sure that totally empty calls, +# i.e. request == None and no flattened fields passed, work. +def test_test_iam_permissions_empty_call_rest(): + client = ReservationSubBlocksClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="rest", + ) + + # Mock the actual call, and fake the request. + with mock.patch.object( + type(client.transport.test_iam_permissions), "__call__" + ) as call: + client.test_iam_permissions(request=None) + + # Establish that the underlying stub method was called. + call.assert_called() + _, args, _ = call.mock_calls[0] + request_msg = compute.TestIamPermissionsReservationSubBlockRequest() + + assert args[0] == request_msg + + def test_reservation_sub_blocks_base_transport_error(): # Passing both a credentials object and credentials_file should raise an error with pytest.raises(core_exceptions.DuplicateCredentialArgs): @@ -3495,9 +4835,12 @@ def test_reservation_sub_blocks_base_transport(): # raise NotImplementedError. methods = ( "get", + "get_iam_policy", "list", "perform_maintenance", "report_faulty", + "set_iam_policy", + "test_iam_permissions", ) for method in methods: with pytest.raises(NotImplementedError): @@ -3638,6 +4981,9 @@ def test_reservation_sub_blocks_client_transport_session_collision(transport_nam session1 = client1.transport.get._session session2 = client2.transport.get._session assert session1 != session2 + session1 = client1.transport.get_iam_policy._session + session2 = client2.transport.get_iam_policy._session + assert session1 != session2 session1 = client1.transport.list._session session2 = client2.transport.list._session assert session1 != session2 @@ -3647,6 +4993,12 @@ def test_reservation_sub_blocks_client_transport_session_collision(transport_nam session1 = client1.transport.report_faulty._session session2 = client2.transport.report_faulty._session assert session1 != session2 + session1 = client1.transport.set_iam_policy._session + session2 = client2.transport.set_iam_policy._session + assert session1 != session2 + session1 = client1.transport.test_iam_permissions._session + session2 = client2.transport.test_iam_permissions._session + assert session1 != session2 def test_common_billing_account_path(): diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservations.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservations.py index eff682409476..efcb6247ee19 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservations.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_reservations.py @@ -5119,6 +5119,7 @@ def test_get_rest_call_success(request_type): kind="kind_value", linked_commitments=["linked_commitments_value"], name="name_value", + protection_tier="protection_tier_value", satisfies_pzs=True, scheduling_type="scheduling_type_value", self_link="self_link_value", @@ -5151,6 +5152,7 @@ def test_get_rest_call_success(request_type): assert response.kind == "kind_value" assert response.linked_commitments == ["linked_commitments_value"] assert response.name == "name_value" + assert response.protection_tier == "protection_tier_value" assert response.satisfies_pzs is True assert response.scheduling_type == "scheduling_type_value" assert response.self_link == "self_link_value" @@ -5418,6 +5420,7 @@ def test_insert_rest_call_success(request_type): "linked_commitments_value2", ], "name": "name_value", + "protection_tier": "protection_tier_value", "reservation_sharing_policy": { "service_share_type": "service_share_type_value" }, @@ -6834,6 +6837,7 @@ def test_update_rest_call_success(request_type): "linked_commitments_value2", ], "name": "name_value", + "protection_tier": "protection_tier_value", "reservation_sharing_policy": { "service_share_type": "service_share_type_value" }, diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_routes.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_routes.py index 057616d62f81..56f6538e1335 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_routes.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_routes.py @@ -2633,6 +2633,7 @@ def test_get_rest_call_success(request_type): next_hop_ilb="next_hop_ilb_value", next_hop_instance="next_hop_instance_value", next_hop_inter_region_cost=2785, + next_hop_interconnect_attachment="next_hop_interconnect_attachment_value", next_hop_ip="next_hop_ip_value", next_hop_med=1274, next_hop_network="next_hop_network_value", @@ -2672,6 +2673,10 @@ def test_get_rest_call_success(request_type): assert response.next_hop_ilb == "next_hop_ilb_value" assert response.next_hop_instance == "next_hop_instance_value" assert response.next_hop_inter_region_cost == 2785 + assert ( + response.next_hop_interconnect_attachment + == "next_hop_interconnect_attachment_value" + ) assert response.next_hop_ip == "next_hop_ip_value" assert response.next_hop_med == 1274 assert response.next_hop_network == "next_hop_network_value" @@ -2796,6 +2801,7 @@ def test_insert_rest_call_success(request_type): "next_hop_ilb": "next_hop_ilb_value", "next_hop_instance": "next_hop_instance_value", "next_hop_inter_region_cost": 2785, + "next_hop_interconnect_attachment": "next_hop_interconnect_attachment_value", "next_hop_ip": "next_hop_ip_value", "next_hop_med": 1274, "next_hop_network": "next_hop_network_value", diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_security_policies.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_security_policies.py index 620b0405108c..fef094659885 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_security_policies.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_security_policies.py @@ -5999,6 +5999,7 @@ def test_get_rest_call_success(request_type): kind="kind_value", label_fingerprint="label_fingerprint_value", name="name_value", + parent="parent_value", region="region_value", self_link="self_link_value", short_name="short_name_value", @@ -6026,6 +6027,7 @@ def test_get_rest_call_success(request_type): assert response.kind == "kind_value" assert response.label_fingerprint == "label_fingerprint_value" assert response.name == "name_value" + assert response.parent == "parent_value" assert response.region == "region_value" assert response.self_link == "self_link_value" assert response.short_name == "short_name_value" @@ -6296,6 +6298,7 @@ def test_insert_rest_call_success(request_type): }, "json_parsing": "json_parsing_value", "log_level": "log_level_value", + "request_body_inspection_size": "request_body_inspection_size_value", "user_ip_request_headers": [ "user_ip_request_headers_value1", "user_ip_request_headers_value2", @@ -6327,6 +6330,7 @@ def test_insert_rest_call_success(request_type): "label_fingerprint": "label_fingerprint_value", "labels": {}, "name": "name_value", + "parent": "parent_value", "recaptcha_options_config": {"redirect_site_key": "redirect_site_key_value"}, "region": "region_value", "rules": [ @@ -6985,6 +6989,7 @@ def test_patch_rest_call_success(request_type): }, "json_parsing": "json_parsing_value", "log_level": "log_level_value", + "request_body_inspection_size": "request_body_inspection_size_value", "user_ip_request_headers": [ "user_ip_request_headers_value1", "user_ip_request_headers_value2", @@ -7016,6 +7021,7 @@ def test_patch_rest_call_success(request_type): "label_fingerprint": "label_fingerprint_value", "labels": {}, "name": "name_value", + "parent": "parent_value", "recaptcha_options_config": {"redirect_site_key": "redirect_site_key_value"}, "region": "region_value", "rules": [ diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_storage_pools.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_storage_pools.py index 1c409b49a37d..cc0758d11baa 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_storage_pools.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_storage_pools.py @@ -4787,6 +4787,11 @@ def test_insert_rest_call_success(request_type): "capacity_provisioning_type": "capacity_provisioning_type_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", + "exapool_provisioned_capacity_gb": { + "capacity_optimized": 1922, + "read_optimized": 1488, + "write_optimized": 1631, + }, "id": 205, "kind": "kind_value", "label_fingerprint": "label_fingerprint_value", @@ -4798,6 +4803,10 @@ def test_insert_rest_call_success(request_type): "pool_provisioned_throughput": 2948, "resource_status": { "disk_count": 1075, + "exapool_max_read_iops": 2226, + "exapool_max_read_throughput": 2897, + "exapool_max_write_iops": 2369, + "exapool_max_write_throughput": 3040, "last_resize_timestamp": "last_resize_timestamp_value", "max_total_provisioned_disk_capacity_gb": 4025, "pool_used_capacity_bytes": 2557, @@ -5782,6 +5791,11 @@ def test_update_rest_call_success(request_type): "capacity_provisioning_type": "capacity_provisioning_type_value", "creation_timestamp": "creation_timestamp_value", "description": "description_value", + "exapool_provisioned_capacity_gb": { + "capacity_optimized": 1922, + "read_optimized": 1488, + "write_optimized": 1631, + }, "id": 205, "kind": "kind_value", "label_fingerprint": "label_fingerprint_value", @@ -5793,6 +5807,10 @@ def test_update_rest_call_success(request_type): "pool_provisioned_throughput": 2948, "resource_status": { "disk_count": 1075, + "exapool_max_read_iops": 2226, + "exapool_max_read_throughput": 2897, + "exapool_max_write_iops": 2369, + "exapool_max_write_throughput": 3040, "last_resize_timestamp": "last_resize_timestamp_value", "max_total_provisioned_disk_capacity_gb": 4025, "pool_used_capacity_bytes": 2557, diff --git a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_subnetworks.py b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_subnetworks.py index 89278b4150f9..726ae4b50c4b 100644 --- a/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_subnetworks.py +++ b/packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_subnetworks.py @@ -1200,6 +1200,7 @@ def test_aggregated_list_rest_required_fields( "page_token", "return_partial_success", "service_project_number", + "views", ) ) jsonified_request.update(unset_fields) @@ -1266,6 +1267,7 @@ def test_aggregated_list_rest_unset_required_fields(): "pageToken", "returnPartialSuccess", "serviceProjectNumber", + "views", ) ) & set(("project",)) @@ -2826,7 +2828,7 @@ def test_insert_rest_flattened(): project="project_value", region="region_value", subnetwork_resource=compute.Subnetwork( - creation_timestamp="creation_timestamp_value" + allow_subnet_cidr_routes_overlap=True ), ) mock_args.update(sample_request) @@ -2868,7 +2870,7 @@ def test_insert_rest_flattened_error(transport: str = "rest"): project="project_value", region="region_value", subnetwork_resource=compute.Subnetwork( - creation_timestamp="creation_timestamp_value" + allow_subnet_cidr_routes_overlap=True ), ) @@ -3032,7 +3034,7 @@ def test_insert_unary_rest_flattened(): project="project_value", region="region_value", subnetwork_resource=compute.Subnetwork( - creation_timestamp="creation_timestamp_value" + allow_subnet_cidr_routes_overlap=True ), ) mock_args.update(sample_request) @@ -3074,7 +3076,7 @@ def test_insert_unary_rest_flattened_error(transport: str = "rest"): project="project_value", region="region_value", subnetwork_resource=compute.Subnetwork( - creation_timestamp="creation_timestamp_value" + allow_subnet_cidr_routes_overlap=True ), ) @@ -3791,7 +3793,7 @@ def test_patch_rest_flattened(): region="region_value", subnetwork="subnetwork_value", subnetwork_resource=compute.Subnetwork( - creation_timestamp="creation_timestamp_value" + allow_subnet_cidr_routes_overlap=True ), ) mock_args.update(sample_request) @@ -3834,7 +3836,7 @@ def test_patch_rest_flattened_error(transport: str = "rest"): region="region_value", subnetwork="subnetwork_value", subnetwork_resource=compute.Subnetwork( - creation_timestamp="creation_timestamp_value" + allow_subnet_cidr_routes_overlap=True ), ) @@ -4016,7 +4018,7 @@ def test_patch_unary_rest_flattened(): region="region_value", subnetwork="subnetwork_value", subnetwork_resource=compute.Subnetwork( - creation_timestamp="creation_timestamp_value" + allow_subnet_cidr_routes_overlap=True ), ) mock_args.update(sample_request) @@ -4059,7 +4061,7 @@ def test_patch_unary_rest_flattened_error(transport: str = "rest"): region="region_value", subnetwork="subnetwork_value", subnetwork_resource=compute.Subnetwork( - creation_timestamp="creation_timestamp_value" + allow_subnet_cidr_routes_overlap=True ), ) @@ -5619,6 +5621,7 @@ def test_get_rest_call_success(request_type): with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. return_value = compute.Subnetwork( + allow_subnet_cidr_routes_overlap=True, creation_timestamp="creation_timestamp_value", description="description_value", enable_flow_logs=True, @@ -5666,6 +5669,7 @@ def test_get_rest_call_success(request_type): # Establish that the response is the type that we expect. assert isinstance(response, compute.Subnetwork) + assert response.allow_subnet_cidr_routes_overlap is True assert response.creation_timestamp == "creation_timestamp_value" assert response.description == "description_value" assert response.enable_flow_logs is True @@ -5928,6 +5932,7 @@ def test_insert_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {"project": "sample1", "region": "sample2"} request_init["subnetwork_resource"] = { + "allow_subnet_cidr_routes_overlap": True, "creation_timestamp": "creation_timestamp_value", "description": "description_value", "enable_flow_logs": True, @@ -6497,6 +6502,7 @@ def test_patch_rest_call_success(request_type): # send a request that will satisfy transcoding request_init = {"project": "sample1", "region": "sample2", "subnetwork": "sample3"} request_init["subnetwork_resource"] = { + "allow_subnet_cidr_routes_overlap": True, "creation_timestamp": "creation_timestamp_value", "description": "description_value", "enable_flow_logs": True,